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

feat: 小计/总计功能,支持按维度分组汇总 #2328

Closed
wants to merge 388 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
388 commits
Select commit Hold shift + click to select a range
0ad69ce
chore(release): @antv/[email protected]
lcx-seima Jun 21, 2022
486b01b
chore(release): 🤖 @antv/s2-v1.21.1 [skip ci]
semantic-release-bot Jun 21, 2022
a3196bc
Merge branch 'master' of github.com:antvis/S2 into latest
xingwanying Jun 24, 2022
721d724
chore(release): 🔖@antv/[email protected] @antv/[email protected] @antv/s2-vue@…
xingwanying Jun 24, 2022
d77b1e5
chore(release): 🤖 @antv/s2-v1.22.0 [skip ci]
semantic-release-bot Jun 24, 2022
3fe9ad1
chore(release): 🤖 @antv/s2-react-v1.20.0 [skip ci]
semantic-release-bot Jun 24, 2022
bfbd2d9
chore(release): 🤖 @antv/s2-vue-v1.1.0 [skip ci]
semantic-release-bot Jun 24, 2022
16d84e5
Merge branch 'master' into latest
lijinke666 Jul 8, 2022
dc26d34
chore(release): bump version
lijinke666 Jul 8, 2022
32443ba
chore(release): 🤖 @antv/s2-v1.23.0 [skip ci]
semantic-release-bot Jul 8, 2022
c268d77
chore(release): 🤖 @antv/s2-react-v1.21.0 [skip ci]
semantic-release-bot Jul 8, 2022
37e8ae0
Merge branch 'master' into latest
lijinke666 Jul 22, 2022
d5381b6
chore(release): bump version
lijinke666 Jul 22, 2022
7823d2d
chore(release): 🤖 @antv/s2-v1.24.0 [skip ci]
semantic-release-bot Jul 22, 2022
290e1db
chore(release): 🤖 @antv/s2-react-v1.22.0 [skip ci]
semantic-release-bot Jul 22, 2022
67be6d9
chore(release): 🤖 @antv/s2-vue-v1.2.0 [skip ci]
semantic-release-bot Jul 22, 2022
c5389ca
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Aug 5, 2022
98bc972
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Aug 5, 2022
92c0e4a
chore(release): bump version
lcx-seima Aug 5, 2022
fc2edcb
chore(release): 🤖 @antv/s2-v1.25.0 [skip ci]
semantic-release-bot Aug 5, 2022
c4c5327
chore(release): 🤖 @antv/s2-react-v1.23.0 [skip ci]
semantic-release-bot Aug 5, 2022
d75d5f6
chore(release): 🤖 @antv/s2-vue-v1.2.1 [skip ci]
semantic-release-bot Aug 5, 2022
6bb98b5
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Aug 15, 2022
9a5982a
chore(release): bump version
lcx-seima Aug 15, 2022
85a2f3d
chore(release): 🤖 @antv/s2-v1.26.0 [skip ci]
semantic-release-bot Aug 15, 2022
28d46cf
chore(release): 🤖 @antv/s2-react-v1.24.0 [skip ci]
semantic-release-bot Aug 15, 2022
68df060
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Aug 22, 2022
3639879
chore(release): bump version
lcx-seima Aug 22, 2022
b3d0441
chore(release): 🤖 @antv/s2-v1.27.0 [skip ci]
semantic-release-bot Aug 22, 2022
92773dc
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Aug 29, 2022
4a97979
chore(release): bump version
lcx-seima Aug 29, 2022
5e16770
chore(release): 🤖 @antv/s2-v1.28.0 [skip ci]
semantic-release-bot Aug 29, 2022
294135f
chore(release): 🤖 @antv/s2-react-v1.25.0 [skip ci]
semantic-release-bot Aug 29, 2022
945fe0d
chore(release): 🤖 @antv/s2-vue-v1.2.2 [skip ci]
semantic-release-bot Aug 29, 2022
8ce07bf
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Sep 5, 2022
ae98b51
chore(release): bump version
lcx-seima Sep 5, 2022
174e57a
chore(release): 🤖 @antv/s2-v1.29.0 [skip ci]
semantic-release-bot Sep 5, 2022
ffee8b9
chore(release): 🤖 @antv/s2-react-v1.26.0 [skip ci]
semantic-release-bot Sep 5, 2022
6078ceb
chore(release): 🤖 @antv/s2-vue-v1.3.0 [skip ci]
semantic-release-bot Sep 5, 2022
f24adec
Merge branch 'master' into latest
wjgogogo Sep 13, 2022
8c39b90
chore(release): bump version
wjgogogo Sep 13, 2022
4ccf346
chore(release): 🤖 @antv/s2-v1.29.1 [skip ci]
semantic-release-bot Sep 13, 2022
aa2189f
chore(release): 🤖 @antv/s2-react-v1.26.1 [skip ci]
semantic-release-bot Sep 13, 2022
a253bf9
Merge branch 'master' into latest
GaoFuhong Sep 16, 2022
cf09134
Merge remote-tracking branch 'origin/master' into latest
GaoFuhong Sep 16, 2022
f10e5d4
chore(release): bump version
GaoFuhong Sep 16, 2022
df913ca
chore(release): 🤖 @antv/s2-v1.30.0 [skip ci]
semantic-release-bot Sep 16, 2022
0b3fbf7
chore(release): 🤖 @antv/s2-react-v1.27.0 [skip ci]
semantic-release-bot Sep 16, 2022
3049a81
Merge branch 'master' into latest
Sep 30, 2022
0e3a7f4
Merge branch 'master' of github.com:antvis/S2 into latest
xingwanying Oct 2, 2022
bc4b919
chore(release): bump version (#1804)
xingwanying Oct 2, 2022
a8739bf
chore(release): 🤖 @antv/s2-v1.31.0 [skip ci]
semantic-release-bot Oct 2, 2022
b8158ca
chore(release): 🤖 @antv/s2-react-v1.28.0 [skip ci]
semantic-release-bot Oct 2, 2022
89faca0
fix: data-cell文字无法交互
lcx-seima Oct 14, 2022
cf94690
chore(release): bump version
lcx-seima Oct 14, 2022
64c0e6c
chore(release): 🤖 @antv/s2-v1.31.1 [skip ci]
semantic-release-bot Oct 14, 2022
c9aa305
Merge branch 'master' into latest
Oct 14, 2022
14d9c3c
chore(release): bump version
Oct 14, 2022
f445fed
chore(release): 🤖 @antv/s2-v1.32.0 [skip ci]
semantic-release-bot Oct 14, 2022
51d0436
chore(release): 🤖 @antv/s2-react-v1.29.0 [skip ci]
semantic-release-bot Oct 14, 2022
fb1085d
Merge branch 'master' into latest
YardWill Oct 24, 2022
82cf69b
Merge branch 'master' into latest
lijinke666 Oct 24, 2022
99469e0
chore(release): bump version
lijinke666 Oct 24, 2022
fcde7dc
chore(release): 🤖 @antv/s2-v1.33.0 [skip ci]
semantic-release-bot Oct 24, 2022
8981ad3
chore(release): 🤖 @antv/s2-react-v1.30.0 [skip ci]
semantic-release-bot Oct 24, 2022
2955901
chore(release): 🤖 @antv/s2-vue-v1.4.0 [skip ci]
semantic-release-bot Oct 24, 2022
8c6a881
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Nov 1, 2022
66f87c7
chore(release): bump version
lcx-seima Nov 1, 2022
26c8f86
Merge remote-tracking branch 'origin/master' into latest
lcx-seima Nov 4, 2022
0e6e783
chore(release): bump version
lcx-seima Nov 4, 2022
7e0ffa1
chore(release): 🤖 @antv/s2-v1.33.1 [skip ci]
semantic-release-bot Nov 4, 2022
c70f970
Merge branch 'master' of github.com:antvis/S2 into latest
xingwanying Nov 11, 2022
fa85bea
chore(release): bump version (#1901)
xingwanying Nov 11, 2022
4f74843
chore(release): 🤖 @antv/s2-v1.34.0 [skip ci]
semantic-release-bot Nov 11, 2022
0240ff1
chore(release): 🤖 @antv/s2-react-v1.31.0 [skip ci]
semantic-release-bot Nov 11, 2022
f0a4964
Merge branch 'master' into latest
lijinke666 Nov 18, 2022
01474b9
chore(release): bump version
lijinke666 Nov 18, 2022
adfc116
chore(release): 🤖 @antv/s2-v1.34.1 [skip ci]
semantic-release-bot Nov 18, 2022
eeb46ce
Merge branch 'master' into latest
xingwanying Nov 21, 2022
18e6d5d
chore(release): bump version (#1928)
xingwanying Nov 21, 2022
efb6f57
chore(release): 🤖 @antv/s2-v1.35.0 [skip ci]
semantic-release-bot Nov 21, 2022
7883e85
chore(release): 🤖 @antv/s2-react-v1.32.0 [skip ci]
semantic-release-bot Nov 21, 2022
7137adb
Merge remote-tracking branch 'origin/master' into latest
Nov 28, 2022
6132122
chore(release): bump version
Nov 28, 2022
c581fda
chore(release): 🤖 @antv/s2-v1.35.1 [skip ci]
semantic-release-bot Nov 28, 2022
5ff6196
Merge branch 'master' into latest
wjgogogo Dec 2, 2022
7bb1512
Merge branch 'master' into latest
wjgogogo Dec 2, 2022
015e28f
chore(release): bump version
wjgogogo Dec 2, 2022
f675ad3
chore(release): 🤖 @antv/s2-v1.36.0 [skip ci]
semantic-release-bot Dec 2, 2022
4bb9234
chore(release): 🤖 @antv/s2-react-v1.33.0 [skip ci]
semantic-release-bot Dec 2, 2022
5e08055
feat: 新增链接跳转配置
GaoFuhong Dec 8, 2022
da30c8e
Merge remote-tracking branch 'origin/master' into latest
GaoFuhong Dec 9, 2022
f1df36b
chore(release): bump version
GaoFuhong Dec 9, 2022
556d65e
chore(release): 🤖 @antv/s2-v1.37.0 [skip ci]
semantic-release-bot Dec 9, 2022
c27fad5
chore(release): 🤖 @antv/s2-react-v1.34.0 [skip ci]
semantic-release-bot Dec 9, 2022
e6c48ac
chore(release): 🤖 @antv/s2-vue-v1.5.0 [skip ci]
semantic-release-bot Dec 9, 2022
52f099e
chore: merge master code
GaoFuhong Dec 12, 2022
0debe99
Merge branch 'master' of https://github.com/antvis/S2
GaoFuhong Dec 13, 2022
7519a15
Merge branch 'master' of https://github.com/antvis/S2
GaoFuhong Dec 15, 2022
45ae5e4
Merge branch 'master' of https://github.com/antvis/S2
GaoFuhong Dec 16, 2022
40a52c8
Merge branch 'master' into latest
GaoFuhong Dec 16, 2022
1b88a2b
chore(release): bump version
GaoFuhong Dec 16, 2022
9eec0bf
chore(release): 🤖 @antv/s2-v1.38.0 [skip ci]
semantic-release-bot Dec 16, 2022
1c37e6b
Merge branch 'master' into latest
Dec 19, 2022
9e70436
chore(release): bump version
Dec 19, 2022
10d6630
chore(release): 🤖 @antv/s2-v1.39.0 [skip ci]
semantic-release-bot Dec 19, 2022
87b7d56
Merge remote-tracking branch 'origin/master' into latest
Dec 20, 2022
ec38942
chore(release): bump version
Dec 20, 2022
77f2890
chore(release): 🤖 @antv/s2-v1.39.1 [skip ci]
semantic-release-bot Dec 20, 2022
bfc1b0b
Merge remote-tracking branch 'origin/master' into latest
Jan 3, 2023
11e975d
chore(release): bump version
Jan 3, 2023
d2590e7
chore(release): 🤖 @antv/s2-v1.40.0 [skip ci]
semantic-release-bot Jan 3, 2023
ad98317
chore(release): 🤖 @antv/s2-react-v1.35.0 [skip ci]
semantic-release-bot Jan 3, 2023
9531dac
Merge branch 'master' into latest
Jan 16, 2023
4312444
chore(release): bump version
Jan 16, 2023
3d6b966
chore(release): 🤖 @antv/s2-v1.41.0 [skip ci]
semantic-release-bot Jan 16, 2023
f83e09c
chore(release): 🤖 @antv/s2-react-v1.36.0 [skip ci]
semantic-release-bot Jan 16, 2023
0e8a374
Merge remote-tracking branch 'origin/master' into latest
Feb 17, 2023
40c883f
chore(release): bump version
Feb 17, 2023
71f19c8
chore(release): 🤖 @antv/s2-v1.41.1 [skip ci]
semantic-release-bot Feb 17, 2023
9ed5759
Merge remote-tracking branch 'origin/master' into latest
GaoFuhong Feb 24, 2023
e549120
chore(release): bump version
GaoFuhong Feb 24, 2023
d10ec37
Merge branch 'latest' of https://github.com/antvis/S2 into latest
GaoFuhong Feb 24, 2023
fe14bb2
chore(release): bump version
GaoFuhong Feb 24, 2023
5b849c9
chore(release): 🤖 @antv/s2-v1.42.0 [skip ci]
semantic-release-bot Feb 24, 2023
54e822d
chore(release): 🤖 @antv/s2-react-v1.37.0 [skip ci]
semantic-release-bot Feb 24, 2023
8b080af
fix(interaction): 修复行头滚动刷选范围判断错误
lijinke666 Feb 28, 2023
324c814
Merge branch 'latest' into alpha
lijinke666 Feb 28, 2023
7922c07
Merge branch 'latest' into alpha
lijinke666 Feb 28, 2023
ddb3a24
Merge branch 'fix-row-brush' into alpha
lijinke666 Feb 28, 2023
4f8bb33
chore(release): bump version
lijinke666 Feb 28, 2023
97abd95
chore(release): bump version
lijinke666 Feb 28, 2023
a6b83b0
chore(release): 🤖 @antv/s2-v1.42.1-alpha.1 [skip ci]
semantic-release-bot Feb 28, 2023
dc21295
chore(release): 🤖 @antv/s2-react-v1.37.1-alpha.1 [skip ci]
semantic-release-bot Feb 28, 2023
8fa39e5
Merge branch 'master' into latest
Mar 8, 2023
c7dd5e4
chore: fix merge conflict
Mar 8, 2023
313d809
chore(release): bump version
Mar 8, 2023
2230ae1
chore(release): 🤖 @antv/s2-v1.42.1-alpha.2 [skip ci]
semantic-release-bot Mar 8, 2023
251b845
fix: delete last method from lodash
Mar 8, 2023
1d99fdc
chore(release): bump version
Mar 8, 2023
736114a
chore(release): bump version
lijinke666 Mar 8, 2023
8355b77
chore(release): 🤖 @antv/s2-v1.42.1-alpha.2 [skip ci]
semantic-release-bot Mar 8, 2023
257770f
chore(release): bump version
lijinke666 Mar 8, 2023
36817dc
chore(release): 🤖 @antv/s2-v1.42.1-alpha.2 [skip ci]
semantic-release-bot Mar 8, 2023
2e95cff
chore(release): 🤖 @antv/s2-react-v1.37.1-alpha.2 [skip ci]
semantic-release-bot Mar 8, 2023
26724cb
Merge branch 'master' into alpha
lijinke666 Mar 8, 2023
4229d29
chore(release): bump version
lijinke666 Mar 8, 2023
8493589
chore(release): 🤖 @antv/s2-v1.43.0-alpha.1 [skip ci]
semantic-release-bot Mar 8, 2023
4905d1f
Merge branch 'master' into latest
lijinke666 Mar 10, 2023
3a4d222
chore(release): bump version
lijinke666 Mar 10, 2023
45f92bb
chore(release): 🤖 @antv/s2-v1.43.0 [skip ci]
semantic-release-bot Mar 10, 2023
e97ab66
chore(release): 🤖 @antv/s2-react-v1.37.1 [skip ci]
semantic-release-bot Mar 10, 2023
cc6f848
Merge branch 'master' into latest
wjgogogo Mar 24, 2023
041e4e1
chore(release): bump version
wjgogogo Mar 24, 2023
e76f638
chore(release): 🤖 @antv/s2-v1.44.0 [skip ci]
semantic-release-bot Mar 24, 2023
45d685b
chore(release): 🤖 @antv/s2-react-v1.38.0 [skip ci]
semantic-release-bot Mar 24, 2023
3f38bc6
chore: 解决合并冲突
Mar 31, 2023
2c1e3c0
chore(release): bump version
Mar 31, 2023
a4b40f0
chore(release): 🤖 @antv/s2-react-v1.39.0 [skip ci]
semantic-release-bot Mar 31, 2023
a8e8cf5
Merge remote-tracking branch 'origin/master' into latest
Apr 21, 2023
7db5c12
chore(release): bump version
Apr 21, 2023
5feef1d
chore(release): 🤖 @antv/s2-v1.45.0 [skip ci]
semantic-release-bot Apr 21, 2023
31a1c26
Merge branch 'master' into latest
Apr 28, 2023
46d0258
chore(release): bump version
Apr 28, 2023
027f072
chore(release): 🤖 @antv/s2-v1.45.1 [skip ci]
semantic-release-bot Apr 28, 2023
2db3b97
Merge branch 'master' into latest
wjgogogo May 15, 2023
4ae17e3
chore(release): bump version
wjgogogo May 15, 2023
5bcdeda
chore(release): 🤖 @antv/s2-v1.46.0 [skip ci]
semantic-release-bot May 15, 2023
d2ef4b9
Merge remote-tracking branch 'origin/master' into latest
May 22, 2023
dd4c8e3
chore(release): bump version
May 22, 2023
f0b489f
chore(release): 🤖 @antv/s2-v1.47.0 [skip ci]
semantic-release-bot May 22, 2023
8d38fb1
chore(release): 🤖 @antv/s2-react-v1.40.0 [skip ci]
semantic-release-bot May 22, 2023
012a50e
Merge branch 'master' into latest
wjgogogo May 23, 2023
bc87d0d
chore(release): bump version
wjgogogo May 23, 2023
59741f5
chore(release): 🤖 @antv/s2-v1.47.1 [skip ci]
semantic-release-bot May 23, 2023
d8e249b
Merge remote-tracking branch 'origin/master' into latest
Jun 9, 2023
84423a3
chore(release): bump version
Jun 9, 2023
f0f0006
chore(release): 🤖 @antv/s2-v1.48.0 [skip ci]
semantic-release-bot Jun 9, 2023
e4d0288
chore(release): 🤖 @antv/s2-react-v1.41.0 [skip ci]
semantic-release-bot Jun 9, 2023
6b13285
Merge branch 'master' into latest
wjgogogo Jul 14, 2023
5c87cd1
chore(release): bump version
wjgogogo Jul 14, 2023
1727b2b
chore(release): 🤖 @antv/s2-v1.49.0 [skip ci]
semantic-release-bot Jul 14, 2023
94ab9e8
chore(release): 🤖 @antv/s2-react-v1.42.0 [skip ci]
semantic-release-bot Jul 14, 2023
177e590
Merge remote-tracking branch 'origin/master' into latest
Jul 24, 2023
c71d853
chore(release): bump version
Jul 24, 2023
b1bb88d
chore(release): 🤖 @antv/s2-v1.49.1 [skip ci]
semantic-release-bot Jul 24, 2023
7999e1f
Merge remote-tracking branch 'origin/master' into latest
Aug 11, 2023
3135a21
chore(release): bump version
Aug 11, 2023
4050fe2
chore(release): 🤖 @antv/s2-v1.49.2 [skip ci]
semantic-release-bot Aug 11, 2023
2c91bd4
chore(release): 🤖 @antv/s2-react-v1.42.1 [skip ci]
semantic-release-bot Aug 11, 2023
9b5f285
feat(Api): 添加 totalDimensionGroup/subTotalDimensionGroup api,以及一些临时的开发函数
Aug 24, 2023
66b6337
feat(Hierarchy): 总计小计结点下添加Hierarchy
Aug 25, 2023
800a919
feat(Render): getMultipleMap 实现,计算总计小计下的布局信息
Aug 25, 2023
a39c9ed
feat(Render): 按维度分组的小计总计下表头位置的调整和渲染
Aug 27, 2023
d07e072
feat(DataSet): 存在维度分组时的汇总值获取
Aug 29, 2023
14a667a
feat(DataSet): 存在维度分组时的汇总值获取
Aug 30, 2023
e9d7e56
feat(DataSet): 存在维度分组时的汇总值获取
Aug 30, 2023
4ed13e1
feat: 补充注释
Aug 30, 2023
5707e73
feat: 单测快照更新,添加isTotalRoot属性
Aug 31, 2023
2d1c143
fix: 有多个 Value 时不允许隐藏度量列
Aug 31, 2023
0c1686b
fix: 有多个 Value 时不允许隐藏度量列
Aug 31, 2023
68e98fe
fix: 删除了一个莫名其妙的函数
Aug 31, 2023
0b472c5
Merge branch 'master' into Juze_TotalsDimGroup
Aug 31, 2023
ae46e08
test: 按维度分组汇总能力单测
Aug 31, 2023
209e5f5
docs: 按维度分组汇总能力文档
Sep 1, 2023
a53cd1c
test: 更新,多度量指标不允许隐藏指标头
Sep 1, 2023
4bdab0f
docs: 图片示例
Sep 1, 2023
fd0151a
test: 更新 snap 数据文件
Sep 4, 2023
a56eca1
Merge branch 'antvis:master' into Juze_TotalsDimGroup
NoobNotN Sep 4, 2023
288c124
chore: 版本号更新
Sep 4, 2023
d2ef9a9
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
f733e64
chore: 版本号更新
Sep 4, 2023
72321d6
chore: 版本号更新
Sep 4, 2023
ce70d04
chore: 版本号更新
Sep 4, 2023
1638888
chore: 版本号更新
Sep 4, 2023
2ce87cd
chore: 版本号更新
Sep 4, 2023
72db41a
chore: 版本号更新
Sep 4, 2023
6e20190
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
9d9721e
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
e78b4be
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
a14e5f8
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
d78f5e9
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
482e1f4
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
e2f0ce1
test: 更新快照
Sep 4, 2023
0e583e7
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
0424794
Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_T…
Sep 4, 2023
8edb616
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 4, 2023
405a73f
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 4, 2023
57db05a
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 5, 2023
14692d8
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 5, 2023
3e3c847
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 6, 2023
17120dc
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 6, 2023
94d81ad
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 6, 2023
6ddf80b
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 6, 2023
d5fc742
Merge remote-tracking branch 'origin/TotalsDimGroup' into TotalsDimGroup
Sep 6, 2023
5c11b4d
chore: 删除开发测试文件
Sep 6, 2023
8550e31
fix: 汇总指标节点也是汇总节点
Sep 6, 2023
3bf638d
chore: 删除无用文件
Sep 6, 2023
8c36de6
fix: isTotalRoot 替换 isTotals
Sep 7, 2023
610c1fb
Merge branch 'master' into alpha
lijinke666 Sep 7, 2023
b114511
Merge branch 'latest' into alpha
lijinke666 Sep 7, 2023
ce4aa59
fix: isTotalRoot 替换 isTotals
Sep 7, 2023
e51ab22
fix: isTotalRoot 替换 isTotals
Sep 7, 2023
f29c466
feat: 小计/总计功能,支持按维度分组汇总 #2337 (#2338)
NoobNotN Sep 7, 2023
cb2d127
Merge branch 'latest' into alpha
lijinke666 Sep 7, 2023
3520893
chore(release): bump version
lijinke666 Sep 7, 2023
d7cf96a
chore(release): 🤖 @antv/s2-v1.50.0-alpha.1 [skip ci]
semantic-release-bot Sep 7, 2023
93e1539
chore(release): 🤖 @antv/s2-react-v1.42.2-alpha.1 [skip ci]
semantic-release-bot Sep 7, 2023
4f44045
test: 更新 React 包快照
Sep 8, 2023
b02ca11
Merge remote-tracking branch 'upstream/alpha' into TotalsDimGroup
Sep 8, 2023
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
2,471 changes: 1,157 additions & 1,314 deletions packages/s2-core/CHANGELOG.md

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions packages/s2-core/__tests__/bugs/issue-1715-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ describe('Multi Values GrandTotal Height Test', () => {

const grandTotalsNode = s2
.getColumnNodes()
.find((node) => node.isGrandTotals);
.find((node) => node.isGrandTotals && node.isTotalRoot);

expect(s2.facet.layoutResult.colsHierarchy.height).toBe(60);
expect(grandTotalsNode.height).toEqual(30);
// 有多个 Value 时不允许隐藏度量列
expect(s2.facet.layoutResult.colsHierarchy.height).toBe(90);
expect(grandTotalsNode.height).toEqual(60);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "province",
"label": "province",
Expand Down Expand Up @@ -47,6 +48,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "city",
"label": "city",
Expand Down Expand Up @@ -81,6 +83,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "series-number-node",
"label": "序号",
Expand Down Expand Up @@ -110,6 +113,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "province",
"label": "province",
Expand Down Expand Up @@ -139,6 +143,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "city",
"label": "city",
Expand Down Expand Up @@ -173,6 +178,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "",
"label": "province/city/数值",
Expand Down Expand Up @@ -207,6 +213,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "series-number-node",
"label": "序号",
Expand Down Expand Up @@ -236,6 +243,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "",
"label": "province/city/数值",
Expand Down Expand Up @@ -270,6 +278,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "province",
"label": "province",
Expand Down Expand Up @@ -299,6 +308,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "city",
"label": "city",
Expand Down Expand Up @@ -333,6 +343,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "series-number-node",
"label": "序号",
Expand Down Expand Up @@ -362,6 +373,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "province",
"label": "province",
Expand Down Expand Up @@ -391,6 +403,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "city",
"label": "city",
Expand Down Expand Up @@ -425,6 +438,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "",
"label": "province/city",
Expand Down Expand Up @@ -459,6 +473,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "series-number-node",
"label": "序号",
Expand Down Expand Up @@ -488,6 +503,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "",
"label": "province/city",
Expand Down Expand Up @@ -522,6 +538,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "province",
"label": "province",
Expand Down Expand Up @@ -551,6 +568,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "city",
"label": "city",
Expand Down Expand Up @@ -585,6 +603,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "series-number-node",
"label": "序号",
Expand Down Expand Up @@ -614,6 +633,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "province",
"label": "province",
Expand Down Expand Up @@ -643,6 +663,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "city",
"label": "city",
Expand Down Expand Up @@ -677,6 +698,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "",
"label": "province/city",
Expand Down Expand Up @@ -711,6 +733,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "series-number-node",
"label": "序号",
Expand Down Expand Up @@ -740,6 +763,7 @@ Array [
"isPivotMode": true,
"isSubTotals": undefined,
"isTotalMeasure": undefined,
"isTotalRoot": undefined,
"isTotals": undefined,
"key": "",
"label": "province/city",
Expand Down
8 changes: 8 additions & 0 deletions packages/s2-core/__tests__/spreadsheet/corner-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('PivotSheet Corner Tests', () => {
fields: {
...simpleDataConfig.fields,
columns: [],
values: ['price'],
},
});
s2.setOptions({
Expand Down Expand Up @@ -88,6 +89,13 @@ describe('PivotSheet Corner Tests', () => {
},
},
});
s2.setDataCfg({
...simpleDataConfig,
fields: {
...simpleDataConfig.fields,
values: ['price'],
},
});
s2.render();

const cornerNodes = s2.facet.getCornerNodes();
Expand Down
11 changes: 11 additions & 0 deletions packages/s2-core/__tests__/spreadsheet/sort-by-order-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,15 @@ describe('Manual Sort Tests', () => {
}),
).toEqual(['整体访问', '小程序访问', '支付宝访问']);
});

test('getTotalDimensionValues should include correct values', () => {
const sortedType1 = s2.dataSet.getTotalDimensionValues('type1', {});
expect(sortedType1).toEqual(['整体访问', '小程序访问', '支付宝访问']);

expect(s2.dataSet.getTotalDimensionValues('type2', {})).toEqual([
'整体访问',
'小程序访问',
'支付宝访问',
]);
});
});
4 changes: 2 additions & 2 deletions packages/s2-core/__tests__/unit/cell/header-cell-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@
});

test('should not format pivot col and row total cell', () => {
const colNode = new Node({

Check warning on line 57 in packages/s2-core/__tests__/unit/cell/header-cell-spec.ts

View workflow job for this annotation

GitHub Actions / lint (18)

'colNode' is already declared in the upper scope

Check warning on line 57 in packages/s2-core/__tests__/unit/cell/header-cell-spec.ts

View workflow job for this annotation

GitHub Actions / lint (18)

'colNode' is already declared in the upper scope
id: `root[&]总计`,
key: '',
value: '总计',
parent: root,
label: '总计',
isTotals: true,
isTotalRoot: true,
});
const rowNode = new Node({

Check warning on line 65 in packages/s2-core/__tests__/unit/cell/header-cell-spec.ts

View workflow job for this annotation

GitHub Actions / lint (18)

'rowNode' is already declared in the upper scope

Check warning on line 65 in packages/s2-core/__tests__/unit/cell/header-cell-spec.ts

View workflow job for this annotation

GitHub Actions / lint (18)

'rowNode' is already declared in the upper scope
id: `root[&]杭州[&]小计`,
key: '',
value: '小计',
parent: root,
label: '小计',
isTotals: true,
isTotalRoot: true,
});

const formatter: Formatter = (value) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 1`] = `
Array [
Object {
"$$extra$$": "number",
"$$value$$": 7789,
"city": "杭州市",
"number": 7789,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 2367,
"city": "绍兴市",
"number": 2367,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 3877,
"city": "宁波市",
"number": 3877,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 4342,
"city": "舟山市",
"number": 4342,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
]
`;

exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 2`] = `Array []`;

exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 3`] = `
Array [
Object {
"$$extra$$": "number",
"$$value$$": 7789,
"city": "杭州市",
"number": 7789,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 2367,
"city": "绍兴市",
"number": 2367,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 3877,
"city": "宁波市",
"number": 3877,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 4342,
"city": "舟山市",
"number": 4342,
"province": "浙江省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 1723,
"city": "成都市",
"number": 1723,
"province": "四川省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 1822,
"city": "绵阳市",
"number": 1822,
"province": "四川省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 1943,
"city": "南充市",
"number": 1943,
"province": "四川省",
"sub_type": "桌子",
"type": "家具",
},
Object {
"$$extra$$": "number",
"$$value$$": 2330,
"city": "乐山市",
"number": 2330,
"province": "四川省",
"sub_type": "桌子",
"type": "家具",
},
]
`;
Loading
Loading