Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to typescript and update react18 #410

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f868225
feat: init
royue Jun 29, 2022
1fcf85b
feat: cell render add render method
royue Jun 30, 2022
5e3ce21
fix: 修复key错误问题
royue Jul 12, 2022
7f2442c
feat: 新增底部固定栏
royue Jul 13, 2022
54db15f
fix(修复展开项): 修改无法展开
royue Jul 14, 2022
70996a4
feat(列属性): 新增gridHeadCellStyle、gridCellStyle
royue Jul 20, 2022
f6c8d43
feat(expand detail): 支持expand detail 不随x轴滚动
royue Jul 23, 2022
5e41a0a
fix(detail view): 修复滚动问题
royue Jul 28, 2022
8014526
fix(baseIdx、isForceKey): 字段支持
royue Sep 14, 2022
b4d2d44
fix(headerProps): header render headerProps 参数传递
royue Sep 14, 2022
a490cac
feat: width 为0的column隐藏显示列
royue Feb 6, 2023
c279996
feat: 依赖版本升级,加入ts
royue Mar 3, 2023
f4cfa58
feat(typescript): ts转化
royue Mar 7, 2023
bdc1188
build(update lib): react-test-renderer
royue Mar 7, 2023
51c7ee4
chore(release): 1.1.0
royue Mar 7, 2023
66b220a
chore(release): 1.1.1
royue Mar 7, 2023
5e0d2f4
chore(release): 1.1.2
royue Mar 7, 2023
1c7d2eb
chore(release): null
royue Mar 7, 2023
85be07f
chore(release): 1.1.2-alpha.0
royue Mar 7, 2023
c0c78c0
chore(release): 1.1.2-alpha.1
royue Mar 7, 2023
280e881
chore(release): 1.1.2-alpha.2
royue Mar 7, 2023
c1001e6
chore(release): 1.1.2-alpha.3
royue Mar 7, 2023
3501a90
ci(config): build types config
royue Mar 7, 2023
eadb26e
feat(tsx): update dependencies
royue Mar 9, 2023
73a4f9e
chore(release): 1.2.0-alpha.0
royue Mar 9, 2023
86cb014
perf(compression): Compressed packaging code
royue Mar 9, 2023
48d0707
chore(souce map): build dont create souce map
royue Mar 21, 2023
4663532
fix(AutoSizer): AutoSizer
royue Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 21 additions & 26 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs",
},
],
"@babel/preset-react",
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-runtime"
],
"env": {
"es": {
"presets": [
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"loose": true,
},
"@babel/preset-env",
{
"modules": "commonjs"
}
],
],
},
},
}
"@babel/preset-typescript",
"@babel/preset-react",
[
"minify",
{
"builtIns": false
}
]
],
"comments": false,
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-runtime"
]
}
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{json,yml}]
indent_size = 2

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ website/
node_modules/
package-lock.json
yarn.lock
/**/*.d.ts
31 changes: 25 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
{
"extends": ["react-app", "plugin:prettier/recommended", "prettier"],
"plugins": ["prettier"],
"rules": {
"react/prop-types": 2
}
}
"parser": "@typescript-eslint/parser",
"extends": [
"react-app",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": [
"eslint-plugin-react",
"prettier",
"@typescript-eslint"
],
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"env": {
"browser": true,
"es6": true,
"jest": true
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ styles.css
es/
lib/
coverage/
types/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.16.0
18.14.2
11 changes: 8 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 120
}
"useTabs": false,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"printWidth": 120,
"endOfLine": "auto"
}
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.18
78 changes: 78 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,81 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.2.0-alpha.0](https://github.com/royue/react-context-table/compare/v1.1.2-alpha.3...v1.2.0-alpha.0) (2023-03-09)


### Features

* **tsx:** update dependencies ([eadb26e](https://github.com/royue/react-context-table/commit/eadb26eb7892b2a0c16a2a424e9f22b3d3638137))

### [1.1.2-alpha.3](https://github.com/royue/react-context-table/compare/v1.1.2-alpha.2...v1.1.2-alpha.3) (2023-03-07)

### [1.1.2-alpha.2](https://github.com/royue/react-context-table/compare/v1.1.2-alpha.1...v1.1.2-alpha.2) (2023-03-07)

### [1.1.2-alpha.1](https://github.com/royue/react-context-table/compare/v1.1.2-alpha.0...v1.1.2-alpha.1) (2023-03-07)

### [1.1.2-alpha.0](https://github.com/royue/react-context-table/compare/v1.1.2...v1.1.2-alpha.0) (2023-03-07)

### [1.1.2](https://github.com/royue/react-context-table/compare/v1.1.1...v1.1.2) (2023-03-07)

### [1.1.1](https://github.com/royue/react-context-table/compare/v1.1.0...v1.1.1) (2023-03-07)

## [1.1.0](https://github.com/royue/react-context-table/compare/v1.0.0...v1.1.0) (2023-03-07)


### Features

* add ignoreFunctionInColumnCompare to solve closure problem in renderers ([#213](https://github.com/royue/react-context-table/issues/213)) ([7da845d](https://github.com/royue/react-context-table/commit/7da845d297425a47e5ec3f3b549cf5e257b1aa61))
* add support for dynamic row height ([#170](https://github.com/royue/react-context-table/issues/170)) ([784b475](https://github.com/royue/react-context-table/commit/784b4759a504349409256e4481d745b6c0a8b99e))
* add the ability to pass function in estimatedRowHeight to determine the initial height of rows ([#241](https://github.com/royue/react-context-table/issues/241)) ([8e657a4](https://github.com/royue/react-context-table/commit/8e657a4dbf424cf3c3cdac2287f26c5723021372))
* add type declarations ([#193](https://github.com/royue/react-context-table/issues/193)) ([4231399](https://github.com/royue/react-context-table/commit/42313999a522648588e6849f48026da96ccf7ac4))
* Added onColumnResizeEnd prop to BaseTable ([#95](https://github.com/royue/react-context-table/issues/95)) ([f0f8d56](https://github.com/royue/react-context-table/commit/f0f8d5621154341a9422abddec671ca8e2279785))
* cell render add render method ([1fcf85b](https://github.com/royue/react-context-table/commit/1fcf85bd66f764246db42328cb68db6d6a63a635))
* **expand detail:** 支持expand detail 不随x轴滚动 ([f6c8d43](https://github.com/royue/react-context-table/commit/f6c8d4344dc9c957920b6164aa8caf78e8b693b4))
* init ([f868225](https://github.com/royue/react-context-table/commit/f8682255a5ad8869222830f92361b2c36d87695a))
* **typescript:** ts转化 ([f4cfa58](https://github.com/royue/react-context-table/commit/f4cfa581f7a3c047c5131f3488b8883c84304368))
* width 为0的column隐藏显示列 ([a490cac](https://github.com/royue/react-context-table/commit/a490cacfb9bca2c34ee2942a89365cd97a3d0b90))
* 依赖版本升级,加入ts ([c279996](https://github.com/royue/react-context-table/commit/c279996cc2a3a062636ec2a96da58e6b751bc342))
* **列属性:** 新增gridHeadCellStyle、gridCellStyle ([70996a4](https://github.com/royue/react-context-table/commit/70996a4d13b8b1a74b2c1f4000812d55a5f27de8))
* 新增底部固定栏 ([7f2442c](https://github.com/royue/react-context-table/commit/7f2442c9e989d24c245e95cfdd33348333abf1c8))


### Bug Fixes

* add missing types for propTypes of BaseTable ([#219](https://github.com/royue/react-context-table/issues/219)) ([9a89e35](https://github.com/royue/react-context-table/commit/9a89e350f6a693fda0c4386363a2fc75cdcbcfe8))
* **baseIdx、isForceKey:** 字段支持 ([8014526](https://github.com/royue/react-context-table/commit/801452690900ad991f19fd28b65b32d2f4c5d894))
* bring back column resize on touch support ([#83](https://github.com/royue/react-context-table/issues/83)) ([8095e78](https://github.com/royue/react-context-table/commit/8095e78ce639d60423220e5615df942776597a59))
* change propTypes for BaseTable.components ([#274](https://github.com/royue/react-context-table/issues/274)) ([6c8b237](https://github.com/royue/react-context-table/commit/6c8b2372c8185c1c6d80a7c7bab7cc2f01e3e689))
* content been selected when dragging on IE/FF ([2261925](https://github.com/royue/react-context-table/commit/2261925993e285eee3f1e54d23efcd5126100920))
* **detail view:** 修复滚动问题 ([5e41a0a](https://github.com/royue/react-context-table/commit/5e41a0a03795fce4697b9a27ead88d28fe40690f))
* dynamic rowHeight is not updated when data/columns changed ([#181](https://github.com/royue/react-context-table/issues/181)) ([ba904fe](https://github.com/royue/react-context-table/commit/ba904feb1d58a0a0ed300bf13b9e71d504dd8970))
* dynamic rowHeight is not updated when resizing column ([#175](https://github.com/royue/react-context-table/issues/175)) ([0ff11a5](https://github.com/royue/react-context-table/commit/0ff11a523c524b430fe0d7de40f70e50b001b7f2))
* flattenOnKeys not works with immutable data ([1723769](https://github.com/royue/react-context-table/commit/1723769b4c597809d90de8cf1e054e2b125ea790))
* flicker on expanding in dynamic mode ([#188](https://github.com/royue/react-context-table/issues/188)) ([e6a98ff](https://github.com/royue/react-context-table/commit/e6a98ff58b41c1f558fd3d9a8a42e14669457b79))
* frozen data not shown with empty data ([#147](https://github.com/royue/react-context-table/issues/147)) ([c2ea383](https://github.com/royue/react-context-table/commit/c2ea3838f57302be07f8bb29292e0e002778b453))
* getTotalRowsHeight could be different before/after render in dynamic mode ([#201](https://github.com/royue/react-context-table/issues/201)) ([3576376](https://github.com/royue/react-context-table/commit/357637638d2bf0b2e9ca97d0bd593f179945c302))
* getTotalRowsHeight could be different before/after render in dynamic mode again ([#204](https://github.com/royue/react-context-table/issues/204)) ([7cc37cc](https://github.com/royue/react-context-table/commit/7cc37cc4e6019762995448c14e27cd77cd028fac))
* **headerProps:** header render headerProps 参数传递 ([b4d2d44](https://github.com/royue/react-context-table/commit/b4d2d446bb937ad1f5541fd3dae54f6ee2da867a))
* horizontal scrollbar in flex mode with dynamic row height ([#183](https://github.com/royue/react-context-table/issues/183)) ([a56ee2a](https://github.com/royue/react-context-table/commit/a56ee2a9cc5f6770bfbe14d7208ad1e43f500a31))
* infinite loading should work with maxHeight ([#57](https://github.com/royue/react-context-table/issues/57)) ([c63b052](https://github.com/royue/react-context-table/commit/c63b052e1f4b0413294a65070f821b20384a2efa))
* input loses focus on unmount ([#212](https://github.com/royue/react-context-table/issues/212)) ([b513ce0](https://github.com/royue/react-context-table/commit/b513ce0632c11875c1d624f28c230db7a75da64d))
* omit minWidth in ColumnResizer ([8be9d04](https://github.com/royue/react-context-table/commit/8be9d0460dc496a694cbd998b201f3e5d50b7df6))
* optimization render task performance ([#348](https://github.com/royue/react-context-table/issues/348)) ([38e8d12](https://github.com/royue/react-context-table/commit/38e8d1246d7599faeda44afcc3e38f0f5923a530))
* regression of expansion with frozen columns ([#180](https://github.com/royue/react-context-table/issues/180)) ([8960c71](https://github.com/royue/react-context-table/commit/8960c7161a2b82b5853ceb64074683ceea24bdae))
* remove propTypes for Column.key ([#222](https://github.com/royue/react-context-table/issues/222)) ([86bfb5e](https://github.com/royue/react-context-table/commit/86bfb5e55620438a4eff37ecc08f148a45508306))
* resizing line rendered incorrectly ([#51](https://github.com/royue/react-context-table/issues/51)) ([a4dc5f7](https://github.com/royue/react-context-table/commit/a4dc5f7280f2a28623c352fa6891ece4383b45e0))
* rowHeight is not calculated correctly with frozen columns ([#174](https://github.com/royue/react-context-table/issues/174)) ([10b5f29](https://github.com/royue/react-context-table/commit/10b5f29d51e81a16a1cf6cfd208861a9f2093247))
* scroll position would be reset to top if column becomes frozen ([#208](https://github.com/royue/react-context-table/issues/208)) ([e4d956b](https://github.com/royue/react-context-table/commit/e4d956b597d68f4ee628ee2ceff60da0797770f0))
* style value unset is not supported on IE ([e360fd5](https://github.com/royue/react-context-table/commit/e360fd5f8fc9be7b31e19299284d04c940a3eae8))
* support function component with hooks ([#80](https://github.com/royue/react-context-table/issues/80)) ([342bcf6](https://github.com/royue/react-context-table/commit/342bcf6581f6bc7851dac9184d99f178fd144c3b))
* table crash on setting scroll ([#374](https://github.com/royue/react-context-table/issues/374)) ([f5dd5bb](https://github.com/royue/react-context-table/commit/f5dd5bbde7b0030fad5d387fdf347991839055a4))
* undefined parentId should be considered as root item ([29f21d7](https://github.com/royue/react-context-table/commit/29f21d7dd66de8ff61415ae5ed4799de38708788))
* unflatten should not override the existing children ([#97](https://github.com/royue/react-context-table/issues/97)) ([480863e](https://github.com/royue/react-context-table/commit/480863e2c1302e559364473bd2b4ae1f821b46f8))
* wrong description for Column props ([#157](https://github.com/royue/react-context-table/issues/157)) ([34bff67](https://github.com/royue/react-context-table/commit/34bff6734837c967f0d3149fd93f26733e6bc79b))
* 修复key错误问题 ([5e3ce21](https://github.com/royue/react-context-table/commit/5e3ce214028f3dfc8ba240128b29a3212deb09de))
* **修复展开项:** 修改无法展开 ([54db15f](https://github.com/royue/react-context-table/commit/54db15f85cd62b39d22e0e4cea5c247acd2d3105))

# CHANGELOG

## NEXT VERSION
Expand Down
Loading