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

[Auto release] release 1.5.0 #2049

Merged
merged 51 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
27dc11c
feat: reuse @visactor/vutils-extension
Rui-Sun Jun 26, 2024
fbb7ca8
fix: remove unused vrender register
Rui-Sun Jun 26, 2024
73a570a
feat: move axis into factory
Rui-Sun Jun 26, 2024
caf4a23
feat: move the rest of components to factory
Rui-Sun Jun 26, 2024
3fe5e47
feat: move cell type into factory
Rui-Sun Jun 26, 2024
3ae4444
feat: split ListTableSimple & ListTableAll
Rui-Sun Jun 27, 2024
5726806
fix: change default axis label font size
Rui-Sun Jun 27, 2024
24757c9
fix: fix axis config in chart spec
Rui-Sun Jun 27, 2024
9af438e
fix: fix lineCap for split stroke
Rui-Sun Jun 28, 2024
e68228f
Revert "fix: fix lineCap for split stroke"
Rui-Sun Jun 28, 2024
9b2cb35
feat: add PivotTableSample
Rui-Sun Jul 1, 2024
e0cdef4
chore: add rush change log
Rui-Sun Jul 1, 2024
4ef4d4a
docs: add load on demand docs
Rui-Sun Jul 2, 2024
c1bba3c
fix: pivot chart select state #2017
fangsmile Jul 2, 2024
0fd92e6
docs: update changlog of rush
fangsmile Jul 2, 2024
0857bad
feat: add showMoverLine and hideMoverLine api #2009
fangsmile Jul 2, 2024
8a8cf93
docs: update changlog of rush
fangsmile Jul 2, 2024
4349da7
docs: add methods api
fangsmile Jul 3, 2024
841d7a5
Merge remote-tracking branch 'origin/develop' into 2009-feature-add-a…
fangsmile Jul 3, 2024
0629ee9
Merge pull request #2030 from VisActor/main
fangsmile Jul 3, 2024
cfcdeee
feat: support checkbox header icon
Rui-Sun Jun 28, 2024
1738d23
feat: add image cell icon
Rui-Sun Jul 1, 2024
8b48212
fix: fix frozen cell update problem in sort #1997
Rui-Sun Jul 1, 2024
8c378fb
feat: add formatExcelJSCell config in vtable-export #1989
Rui-Sun Jul 1, 2024
98b2cc7
fix: fix left top frozen cell computation in getTargetColAtConsiderRi…
Rui-Sun Jul 2, 2024
0f8887b
Merge origin/develop into feat/package-size
Rui-Sun Jul 3, 2024
e9e4ff1
Merge branch 'develop' into feat/package-size
Rui-Sun Jul 3, 2024
ad6cb82
Merge pull request #2021 from VisActor/2017-bug-pivot-chart-selectState
fangsmile Jul 4, 2024
84c759c
Merge pull request #2024 from VisActor/2009-feature-add-api-columnres…
fangsmile Jul 4, 2024
4cbfcca
feat: add frozenRowCount config in option
Rui-Sun Jul 1, 2024
5a79a7c
docs: add frozen row docs
Rui-Sun Jul 3, 2024
7540a2a
docs: fix docs link url
Rui-Sun Jul 3, 2024
58aebb5
fix: fix select-rect update when scroll #2015
Rui-Sun Jul 2, 2024
5af5503
fix: fix selected highlight update when scrolling #2028
Rui-Sun Jul 3, 2024
89cb688
fix: fix test judgement in customMergeCell #2031
Rui-Sun Jul 3, 2024
90c8f28
Merge remote-tracking branch 'origin/develop' into feat/package-size
Rui-Sun Jul 4, 2024
50d3afd
fix: last column resize width error #2040
fangsmile Jul 4, 2024
1f805d0
docs: update changlog of rush
fangsmile Jul 4, 2024
b84c08f
fix: disable select and edit input should move when input is outside …
fangsmile Jul 4, 2024
24adcc7
docs: update changlog of rush
fangsmile Jul 4, 2024
449d9aa
fix: fix fillhandle error in updateComponent()
Rui-Sun Jul 4, 2024
d3be757
fix: fix frozen select display
Rui-Sun Jul 4, 2024
cb663df
Merge remote-tracking branch 'origin/develop' into feat/package-size
Rui-Sun Jul 5, 2024
5368718
Merge pull request #2043 from VisActor/2040-bug-lastColResizeWidth
fangsmile Jul 5, 2024
d3e614c
Merge pull request #2045 from VisActor/2039-bug-editInputPosition
fangsmile Jul 5, 2024
e8552f7
Update feat-export-format_2024-07-01-13-15.json
fangsmile Jul 5, 2024
fbcaa1c
Merge pull request #2047 from VisActor/fangsmile-patch-1
fangsmile Jul 5, 2024
d3127f3
docs: generate changelog of release v1.4.2
fangsmile Jul 5, 2024
d1b4d94
Merge pull request #1994 from VisActor/feat/package-size
Rui-Sun Jul 5, 2024
d221ca6
Merge pull request #2048 from VisActor/docs/generate-changelog-v1.4.2
fangsmile Jul 5, 2024
9a4b343
build: prelease version 1.5.0
github-actions[bot] Jul 5, 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
9 changes: 9 additions & 0 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.2","mainProject":"@visactor/vtable","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.5.0","mainProject":"@visactor/vtable","nextBump":"minor"}]
43 changes: 43 additions & 0 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -1165,3 +1165,46 @@ Determines whether the cell is in the visible area of the cell. If the cell is c
```
cellIsInVisualView(col: number, row: number)
```

## getCellAtRelativePosition(Function)

Gets the cell position relative to the upper left corner of the table.

In the case of scrolling, the cells obtained are those after scrolling. For example, if the currently displayed rows are 100-120, the cell position relative to the upper left corner of the table (10,100) is (first column, 103rd row), assuming the row height is 40px.

```
/**
* Get the cell information corresponding to the screen coordinates, taking scrolling into account
* @param this
* @param relativeX The left x value, relative to the upper left corner of the container, taking into account the scrolling of the grid
* @param relativeY The left y value, relative to the upper left corner of the container, taking into account the scrolling of the grid
* @returns
*/
getCellAtRelativePosition(relativeX: number, relativeY: number): CellAddressWithBound
```

## showMoverLine(Function)

Displays a highlighted line for moving columns or rows

```
/**
* Display the highlight line of the moving column or row If the (col, row) cell is the column header, the highlight column line is displayed; If the (col, row) cell is the row header, the highlight row line is displayed
* @param col Which column in the table header should be highlighted after?
* @param row The row after which the highlighted line is displayed
*/
showMoverLine(col: number, row: number)
```

## hideMoverLine(Function)

Hide the highlight line of the moved column or row

```
/**
* Hide the highlight line of the moved column or row
* @param col
* @param row
*/
hideMoverLine(col: number, row: number)
```
43 changes: 43 additions & 0 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -1163,3 +1163,46 @@ interface ISortedMapItem {
```
cellIsInVisualView(col: number, row: number)
```

## getCellAtRelativePosition(Function)

获取相对于表格左上角的坐标对应的单元格位置。

有滚动的情况下,获取的单元格是滚动后的,如当前显示的行是 100-120 行,获取相对于表格左上角(10,100)位置的单元格位置是(第一列,第 103 行),假设行高 40px。

```
/**
* 获取屏幕坐标对应的单元格信息,考虑滚动
* @param this
* @param relativeX 左边x值,相对于容器左上角,已考虑格滚动情况
* @param relativeY 左边y值,相对于容器左上角,已考虑格滚动情况
* @returns
*/
getCellAtRelativePosition(relativeX: number, relativeY: number): CellAddressWithBound
```

## showMoverLine(Function)

显示移动列或移动行的高亮标记线

```
/**
* 显示移动列或移动行的高亮线 如果(col,row)单元格是列头 则显示高亮列线; 如果(col,row)单元格是行头 则显示高亮行线
* @param col 在表头哪一列后显示高亮线
* @param row 在表头哪一行后显示高亮线
*/
showMoverLine(col: number, row: number)
```

## hideMoverLine(Function)

隐藏掉移动列或移动行的高亮线

```
/**
* 隐藏掉移动列或移动行的高亮线
* @param col
* @param row
*/
hideMoverLine(col: number, row: number)
```
30 changes: 30 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# v1.4.2

2024-07-05


**🆕 New feature**

- **@visactor/vtable**: corner title can display row and column diemensionTitle [#1926](https://github.com/VisActor/VTable/issues/1926)
- **@visactor/vtable**: add column hide config [#1991](https://github.com/VisActor/VTable/issues/1991)
- **@visactor/vtable**: add getCellAtRelativePosition api

**🐛 Bug fix**

- **@visactor/vtable**: when not exit edit state then can not select other cells [#1974](https://github.com/VisActor/VTable/issues/1974)
- **@visactor/vtable**: selected_clear event trigger [#1981](https://github.com/VisActor/VTable/issues/1981)
- **@visactor/vtable**: pivotTable virtual node edit value not work [#2002](https://github.com/VisActor/VTable/issues/2002)
- **@visactor/vtable**: tooltip content can not be selected [#2003](https://github.com/VisActor/VTable/issues/2003)
- **@visactor/vtable**: fix vrender export module
- **@visactor/vtable**: fix merge cell update performance problem [#1972](https://github.com/VisActor/VTable/issues/1972)
- **@visactor/vtable**: fix regexp format for webpack 3 [#2005](https://github.com/VisActor/VTable/issues/2005)
- **@visactor/vtable**: fix width computation in shrinkSparklineFirst mode

**🔨 Refactor**

- **@visactor/vtable**: sparkline cellType set aggregationType None automatically [#1999](https://github.com/VisActor/VTable/issues/1999)



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

# v1.4.0

2024-06-21
Expand Down
30 changes: 30 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# v1.4.2

2024-07-05


**🆕 新增功能**

- **@visactor/vtable**: corner title can display row and column diemensionTitle [#1926](https://github.com/VisActor/VTable/issues/1926)
- **@visactor/vtable**: add column hide config [#1991](https://github.com/VisActor/VTable/issues/1991)
- **@visactor/vtable**: add getCellAtRelativePosition api

**🐛 功能修复**

- **@visactor/vtable**: when not exit edit state then can not select other cells [#1974](https://github.com/VisActor/VTable/issues/1974)
- **@visactor/vtable**: selected_clear event trigger [#1981](https://github.com/VisActor/VTable/issues/1981)
- **@visactor/vtable**: pivotTable virtual node edit value not work [#2002](https://github.com/VisActor/VTable/issues/2002)
- **@visactor/vtable**: tooltip content can not be selected [#2003](https://github.com/VisActor/VTable/issues/2003)
- **@visactor/vtable**: fix vrender export module
- **@visactor/vtable**: fix merge cell update performance problem [#1972](https://github.com/VisActor/VTable/issues/1972)
- **@visactor/vtable**: fix regexp format for webpack 3 [#2005](https://github.com/VisActor/VTable/issues/2005)
- **@visactor/vtable**: fix width computation in shrinkSparklineFirst mode

**🔨 功能重构**

- **@visactor/vtable**: sparkline cellType set aggregationType None automatically [#1999](https://github.com/VisActor/VTable/issues/1999)



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

# v1.4.0

2024-06-21
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo-react/en/custom-layout/cell-custom-dom.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ group: component
title: cell custom dom component
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/react-vtable-cell-dom-component.jpeg
order: 1-1
link: '../guide/Developer_Ecology/react'
link: '../../guide/Developer_Ecology/react'
---

# cell custom dom component
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo-react/zh/custom-layout/cell-custom-dom.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ group: component
title: 单元格内dom组件
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/react-vtable-cell-dom-component.jpeg
order: 1-1
link: '../guide/Developer_Ecology/react'
link: '../../guide/Developer_Ecology/react'
---

# 单元格内dom组件
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/basic-functionality/frozen-col.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ category: examples
group: Basic Features
title: frozen column
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/frozen-col.gif
link: '../guide/basic_function/frozen_column'
link: '../guide/basic_function/frozen_column_row'
option: ListTable#frozenColCount
---

Expand Down
154 changes: 154 additions & 0 deletions docs/assets/demo/en/basic-functionality/frozen-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
---
category: examples
group: Basic Features
title: Freeze Row
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/frozen-row.gif
link: '../guide/basic_function/frozen_column_row'
option: ListTable#frozenRowCount
---

# Freeze Row

In order to keep these key information rows visible throughout the horizontal scroll, we need to "freeze" these rows.

## Key Configurations

- `frozenRowCount` The number of frozen rows (including header), default is the number of header rows

## Code demo

```javascript livedemo template=vtable

let tableInstance;
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_Pivot_data.json')
.then(res => res.json())
.then(data => {
const option = {
records: data,
rows: [
{
dimensionKey: 'City',
title: 'City',
headerStyle: {
textStick: true,
color: (args) => {
if (args.row < 4) {
return 'red';
}
return '#000';
},
bgColor: (args) => {
if (args.row < 4) {
return 'rgba(255, 0, 0, 0.1)';
}
return '#fff';
}
},
width: 'auto'
}
],
columns: [
{
dimensionKey: 'Category',
title: 'Category',
headerStyle: {
textStick: true
},
width: 'auto'
}
],
indicators: [
{
indicatorKey: 'Quantity',
title: 'Quantity',
width: 'auto',
showSort: false,
headerStyle: {
fontWeight: 'normal'
},
style: {
padding: [16, 28, 16, 28],
color(args) {
if (args.dataValue >= 0) return 'black';
return 'red';
},
bgColor: (args) => {
if (args.row < 4) {
return 'rgba(255, 0, 0, 0.1)';
}
return '#fff';
}
}
},
{
indicatorKey: 'Sales',
title: 'Sales',
width: 'auto',
showSort: false,
headerStyle: {
fontWeight: 'normal'
},
format: rec => {
return '$' + Number(rec).toFixed(2);
},
style: {
padding: [16, 28, 16, 28],
color(args) {
if (args.dataValue >= 0) return 'black';
return 'red';
},
bgColor: (args) => {
if (args.row < 4) {
return 'rgba(255, 0, 0, 0.1)';
}
return '#fff';
}
}
},
{
indicatorKey: 'Profit',
title: 'Profit',
width: 'auto',
showSort: false,
headerStyle: {
fontWeight: 'normal'
},
format: rec => {
return '$' + Number(rec).toFixed(2);
},
style: {
padding: [16, 28, 16, 28],
color(args) {
if (args.dataValue >= 0) return 'black';
return 'red';
},
bgColor: (args) => {
if (args.row < 4) {
return 'rgba(255, 0, 0, 0.1)';
}
return '#fff';
}
}
}
],
corner: {
titleOnDimension: 'row',
headerStyle: {
textStick: true
}
},
dataConfig: {
sortRules: [
{
sortField: 'Category',
sortBy: ['Office Supplies', 'Technology', 'Furniture']
}
]
},
widthMode: 'standard',
frozenRowCount: 4,
};
tableInstance = new VTable.PivotTable(document.getElementById(CONTAINER_ID), option);
window['tableInstance'] = tableInstance;
});
```
Loading