Skip to content

Commit

Permalink
Merge pull request #1977 from VisActor/release/1.4.1
Browse files Browse the repository at this point in the history
[Auto release] release 1.4.1
  • Loading branch information
fangsmile committed Jun 25, 2024
2 parents fc3191e + b395f00 commit 09f15d2
Show file tree
Hide file tree
Showing 15 changed files with 140 additions and 42 deletions.
7 changes: 7 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@
"summary": "Start the document development server",
"description": "Run this command to start document development server",
"shellCommand": "rush run -p @visactor/table -s build:es && rush run -p @internal/docs -s start"
},
{
"commandKind": "global",
"name": "sync-bnpm",
"summary": "Sync bnpm",
"description": "Sync bnpm",
"shellCommand": "bnpm sync @visactor/vtable && bnpm sync @visactor/vtable-editors && bnpm sync @visactor/react-vtable && bnpm sync @visactor/openinula-vtable && bnpm sync @visactor/vtable-export && bnpm sync @visactor/vtable-search"
}
],
"parameters": [
Expand Down
37 changes: 31 additions & 6 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.4.0","mainProject":"@visactor/vtable","nextBump":"minor"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.4.1","mainProject":"@visactor/vtable","nextBump":"patch"}]
29 changes: 29 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# v1.4.0

2024-06-21


**🆕 New feature**

- **@visactor/vtable**: support corner header cell edit value [#1945](https://github.com/VisActor/VTable/issues/1945)
- **@visactor/vtable**: add indent in vtable-export
- **@visactor/vtable**: add CustomComponent in react-vtable
- **@visactor/vtable**: add CustomLayout component in react-vtable
- **@visactor/vtable**: support calculate field for PivotTable [#1941](https://github.com/VisActor/VTable/issues/1941)

**🐛 Bug fix**

- **@visactor/vtable**: updateSortState api occor error [#1939](https://github.com/VisActor/VTable/issues/1939)
- **@visactor/vtable**: when setRecords should update emptyTip [#1953](https://github.com/VisActor/VTable/issues/1953)
- **@visactor/vtable**: getCellRect api when cell is frozen get bounds error [#1955](https://github.com/VisActor/VTable/issues/1955)
- **@visactor/vtable**: when drag cell and enter edit state but can not exit edit rightly [#1956](https://github.com/VisActor/VTable/issues/1956)
- **@visactor/vtable**: fix custom width problem [#1905](https://github.com/VisActor/VTable/issues/1905)
- **@visactor/vtable**: fix content judgement in getCellRange() [#1911](https://github.com/VisActor/VTable/issues/1911)
- **@visactor/vtable**: fix size update problem in pivot table sort [#1958](https://github.com/VisActor/VTable/issues/1958)

**🔧 Configuration releated**

- **@visactor/vtable**: update vrender version

[more detail about v1.4.0](https://github.com/VisActor/VTable/releases/tag/v1.4.0)

# v1.3.2

2024-06-17
Expand Down
56 changes: 37 additions & 19 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,47 @@
# v1.4.0

2024-06-21


**🆕 新增功能**

- **@visactor/vtable**: 支持角头单元格编辑 [#1945](https://github.com/VisActor/VTable/issues/1945)
- **@visactor/vtable**: vtable-export支持缩进导出
- **@visactor/vtable**: react-vtable支持 CustomComponent & CustomLayout component 组件
- **@visactor/vtable**: PivotTable支持field计算 [#1941](https://github.com/VisActor/VTable/issues/1941)

**🐛 功能修复**

- **@visactor/vtable**: 修复updateSortState api 调用问题 [#1939](https://github.com/VisActor/VTable/issues/1939)
- **@visactor/vtable**: 调用 setRecords 时更新 emptyTip 组件 [#1953](https://github.com/VisActor/VTable/issues/1953)
- **@visactor/vtable**: 修复冻结单元格 getCellRect api 获取 bounds 错误 [#1955](https://github.com/VisActor/VTable/issues/1955)
- **@visactor/vtable**: when drag cell and enter edit state but can not exit edit rightly [#1956](https://github.com/VisActor/VTable/issues/1956)
- **@visactor/vtable**: 修复自定义单元格列宽计算问题 [#1905](https://github.com/VisActor/VTable/issues/1905)
- **@visactor/vtable**: 修复 getCellRange 中的内容判断逻辑 [#1911](https://github.com/VisActor/VTable/issues/1911)
- **@visactor/vtable**: 修复透视表排序时尺寸更新问题 [#1958](https://github.com/VisActor/VTable/issues/1958)

[更多详情请查看 v1.4.0](https://github.com/VisActor/VTable/releases/tag/v1.4.0)

# v1.3.2

2024-06-17


**🆕 新增功能**

- **@visactor/vtable**: add blankAreaClickDeselect and outsideClickDeselect config

- **@visactor/vtable**: 增加 blankAreaClickDeselect & outsideClickDeselect 配置

**🐛 功能修复**

- **@visactor/vtable**: cellIsInVisualView api error [#1864](https://github.com/VisActor/VTable/issues/1864)
- **@visactor/vtable**: if set style autoWrapText, this config not wort when resize column width [#1892](https://github.com/VisActor/VTable/issues/1892)

- **@visactor/vtable**: 修复cellIsInVisualView api调用问题 [#1864](https://github.com/VisActor/VTable/issues/1864)
- **@visactor/vtable**: 修复改变列宽时autoWrapText不生效问题 [#1892](https://github.com/VisActor/VTable/issues/1892)

**🔨 功能重构**

- **@visactor/vtable**: tooltip support scroll [#1887](https://github.com/VisActor/VTable/issues/1887)
- **@visactor/vtable**: when not records pivot table can show corner header [#1895](https://github.com/VisActor/VTable/issues/1895)
- **@visactor/vtable**: when rowTree children not set value can supplement indicators [#1924](https://github.com/VisActor/VTable/issues/1924)


- **@visactor/vtable**: 支持tooltip滚动 [#1887](https://github.com/VisActor/VTable/issues/1887)
- **@visactor/vtable**: 支持透视表没有数据是的角头展示 [#1895](https://github.com/VisActor/VTable/issues/1895)
- **@visactor/vtable**: 支持rowTree没有children时的指标展示 [#1924](https://github.com/VisActor/VTable/issues/1924)



[更多详情请查看 v1.3.2](https://github.com/VisActor/VTable/releases/tag/v1.3.2)
Expand All @@ -28,16 +52,10 @@


**🐛 功能修复**

- **@visactor/vtable**: fix frozenColCount large than colCount error [#1872](https://github.com/VisActor/VTable/issues/1872)
- **@visactor/vtable**: fix merge cell size update [#1869](https://github.com/VisActor/VTable/issues/1869)
- **@visactor/vtable**: optimize row height update when useOneRowHeightFillAll

**📖 文档更新**

- **@visactor/vtable**: update changlog of rush


- **@visactor/vtable**: 修复frozenColCount超过列数时的显示问题 [#1872](https://github.com/VisActor/VTable/issues/1872)
- **@visactor/vtable**: 修复合并单元格的尺寸更新问题 [#1869](https://github.com/VisActor/VTable/issues/1869)
- **@visactor/vtable**: 修复单行填充所有行时的行高更新问题

[更多详情请查看 v1.3.1](https://github.com/VisActor/VTable/releases/tag/v1.3.1)

Expand Down
2 changes: 1 addition & 1 deletion packages/openinula-vtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/openinula-vtable",
"version": "1.4.0",
"version": "1.4.1",
"description": "The openinula version of VTable",
"keywords": [
"openinula",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-vtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vtable",
"version": "1.4.0",
"version": "1.4.1",
"description": "The react version of VTable",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable-editors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-editors",
"version": "1.4.0",
"version": "1.4.1",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable-export/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-export",
"version": "1.4.0",
"version": "1.4.1",
"description": "The export util of VTable",
"author": {
"name": "VisActor",
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable-search/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-search",
"version": "1.4.0",
"version": "1.4.1",
"description": "The search util of VTable",
"author": {
"name": "VisActor",
Expand Down
12 changes: 12 additions & 0 deletions packages/vtable/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vtable",
"entries": [
{
"version": "1.4.1",
"tag": "@visactor/vtable_v1.4.1",
"date": "Mon, 24 Jun 2024 08:48:40 GMT",
"comments": {
"none": [
{
"comment": "fix: fix editingEditor missing problem"
}
]
}
},
{
"version": "1.4.0",
"tag": "@visactor/vtable_v1.4.0",
Expand Down
9 changes: 8 additions & 1 deletion packages/vtable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @visactor/vtable

This log was last generated on Fri, 21 Jun 2024 10:26:08 GMT and should not be manually modified.
This log was last generated on Mon, 24 Jun 2024 08:48:40 GMT and should not be manually modified.

## 1.4.1
Mon, 24 Jun 2024 08:48:40 GMT

### Updates

- fix: fix editingEditor missing problem

## 1.4.0
Fri, 21 Jun 2024 10:26:08 GMT
Expand Down
8 changes: 4 additions & 4 deletions packages/vtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable",
"version": "1.4.0",
"version": "1.4.1",
"description": "canvas table width high performance",
"keywords": [
"grid",
Expand Down Expand Up @@ -50,9 +50,9 @@
},
"dependencies": {
"@visactor/vtable-editors": "workspace:*",
"@visactor/vrender-core": "0.19.11",
"@visactor/vrender-kits": "0.19.11",
"@visactor/vrender-components": "0.19.11",
"@visactor/vrender-core": "0.19.13-beta.0",
"@visactor/vrender-kits": "0.19.13-beta.0",
"@visactor/vrender-components": "0.19.13-beta.0",
"@visactor/vutils": "~0.18.9",
"@visactor/vscale": "~0.18.1",
"@visactor/vdataset": "~0.18.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/vtable/src/event/listener/container-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function bindContainerDomListener(eventManager: EventManager) {
) {
if (
!(table.options.keyboardOptions?.moveEditCellOnArrowKeys ?? false) &&
(table as ListTableAPI).editorManager.editingEditor
(table as ListTableAPI).editorManager?.editingEditor
) {
// 编辑单元格状态下 如果没有开启方向键切换cell 则退出 。方向键可以在编辑input内移动光标
return;
Expand Down Expand Up @@ -107,7 +107,7 @@ export function bindContainerDomListener(eventManager: EventManager) {
table.selectCell(targetCol, targetRow, e.shiftKey);
if (
(table.options.keyboardOptions?.moveEditCellOnArrowKeys ?? false) &&
(table as ListTableAPI).editorManager.editingEditor
(table as ListTableAPI).editorManager?.editingEditor
) {
// 开启了方向键切换编辑单元格 并且当前已经在编辑状态下 切换到下一个需先退出再进入下个单元格的编辑
(table as ListTableAPI).editorManager.completeEdit();
Expand All @@ -120,7 +120,7 @@ export function bindContainerDomListener(eventManager: EventManager) {
(table as ListTableAPI).editorManager.cancelEdit();
} else if (e.key === 'Enter') {
// 如果按enter键 可以结束当前的编辑 或开启编辑选中的单元格(仅限单选)
if ((table as ListTableAPI).editorManager.editingEditor) {
if ((table as ListTableAPI).editorManager?.editingEditor) {
(table as ListTableAPI).editorManager.completeEdit();
table.getElement().focus();
} else {
Expand Down Expand Up @@ -157,7 +157,7 @@ export function bindContainerDomListener(eventManager: EventManager) {
targetCol = stateManager.select.cellPos.col + 1;
}
table.selectCell(targetCol, targetRow);
if ((table as ListTableAPI).editorManager.editingEditor) {
if ((table as ListTableAPI).editorManager?.editingEditor) {
(table as ListTableAPI).editorManager.completeEdit();
table.getElement().focus();
if ((table as ListTableAPI).getEditor(targetCol, targetRow)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable/src/event/listener/table-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function bindTableGroupListener(eventManager: EventManager) {
// }
if (
stateManager.interactionState === InteractionState.grabing &&
!(table as ListTableAPI).editorManager.editingEditor
!(table as ListTableAPI).editorManager?.editingEditor
) {
if (Math.abs(lastX - e.x) + Math.abs(lastY - e.y) >= 1) {
if (stateManager.isResizeCol()) {
Expand All @@ -59,7 +59,7 @@ export function bindTableGroupListener(eventManager: EventManager) {
} else if (
table.eventManager.isDraging &&
stateManager.isSelecting() &&
!(table as ListTableAPI).editorManager.editingEditor
!(table as ListTableAPI).editorManager?.editingEditor
) {
eventManager.dealTableSelect(eventArgsSet, true);
}
Expand Down

0 comments on commit 09f15d2

Please sign in to comment.