Skip to content

Commit 63cc7c2

Browse files
committed
Add new NumFmt field in the PivotTableField data type
- Upgrade the dependencies package version
1 parent bd65563 commit 63cc7c2

File tree

3 files changed

+32
-22
lines changed

3 files changed

+32
-22
lines changed

cmd/go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.18
44

55
require (
66
github.com/stretchr/testify v1.8.4
7-
github.com/xuri/excelize/v2 v2.8.2-0.20240713024157-9c278365f213
8-
golang.org/x/image v0.18.0
7+
github.com/xuri/excelize/v2 v2.8.2-0.20240817161802-9a386575152d
8+
golang.org/x/image v0.19.0
99
)
1010

1111
require (
@@ -16,8 +16,8 @@ require (
1616
github.com/richardlehane/msoleps v1.0.3 // indirect
1717
github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d // indirect
1818
github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7 // indirect
19-
golang.org/x/crypto v0.25.0 // indirect
20-
golang.org/x/net v0.27.0 // indirect
21-
golang.org/x/text v0.16.0 // indirect
19+
golang.org/x/crypto v0.26.0 // indirect
20+
golang.org/x/net v0.28.0 // indirect
21+
golang.org/x/text v0.17.0 // indirect
2222
gopkg.in/yaml.v3 v3.0.1 // indirect
2323
)

cmd/go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
1313
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
1414
github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d h1:llb0neMWDQe87IzJLS4Ci7psK/lVsjIS2otl+1WyRyY=
1515
github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d/go.mod h1:ybY/Jr0T0GTCnYjKqmdwxyxn2BQf2RcQIIvex5QldPI=
16-
github.com/xuri/excelize/v2 v2.8.2-0.20240713024157-9c278365f213 h1:cdWe1AJcvApomqtIMBow4tvD+x7heU4AEilR8+HIUzo=
17-
github.com/xuri/excelize/v2 v2.8.2-0.20240713024157-9c278365f213/go.mod h1:0hWeRQBdU+HQng3S1AXdYm8Ob0dbevUncXAWI0QswPU=
16+
github.com/xuri/excelize/v2 v2.8.2-0.20240817161802-9a386575152d h1:jdlS3YAi4lfGkLTVLOfBkmIMSTewPugizWstqPa9/Zc=
17+
github.com/xuri/excelize/v2 v2.8.2-0.20240817161802-9a386575152d/go.mod h1:0hWeRQBdU+HQng3S1AXdYm8Ob0dbevUncXAWI0QswPU=
1818
github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7 h1:hPVCafDV85blFTabnqKgNhDCkJX25eik94Si9cTER4A=
1919
github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7/go.mod h1:WwHg+CVyzlv/TX9xqBFXEZAuxOPxn2k1GNHwG41IIUQ=
20-
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
21-
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
22-
golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
23-
golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
24-
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
25-
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
26-
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
27-
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
20+
golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw=
21+
golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54=
22+
golang.org/x/image v0.19.0 h1:D9FX4QWkLfkeqaC62SonffIIuYdOk/UE2XKUBgRIBIQ=
23+
golang.org/x/image v0.19.0/go.mod h1:y0zrRqlQRWQ5PXaYCOMLTW2fpsxZ8Qh9I/ohnInJEys=
24+
golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE=
25+
golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
26+
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
27+
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
2828
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
2929
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3030
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

src/index.d.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,10 @@ declare module 'excelize-wasm' {
631631

632632
/**
633633
* PivotTableField directly maps the field settings of the pivot table.
634+
*
635+
* Name specifies the name of the data field. Maximum 255 characters
636+
* are allowed in data field name, excess characters will be truncated.
637+
*
634638
* Subtotal specifies the aggregation function that applies to this data
635639
* field. The default value is sum. The possible values for this attribute
636640
* are:
@@ -647,8 +651,9 @@ declare module 'excelize-wasm' {
647651
* Var
648652
* Varp
649653
*
650-
* Name specifies the name of the data field. Maximum 255 characters
651-
* are allowed in data field name, excess characters will be truncated.
654+
* NumFmt specifies the number format ID of the data field, this filed only
655+
* accepts built-in number format ID and does not support custom number format
656+
* expression currently.
652657
*/
653658
export type PivotTableField = {
654659
Compact?: boolean;
@@ -657,6 +662,7 @@ declare module 'excelize-wasm' {
657662
Outline?: boolean;
658663
Subtotal?: string;
659664
DefaultSubtotal?: boolean;
665+
NumFmt?: number;
660666
};
661667

662668
/**
@@ -851,7 +857,9 @@ declare module 'excelize-wasm' {
851857
BlackAndWhite?: boolean;
852858
};
853859

854-
// PageLayoutMarginsOptions directly maps the settings of page layout margins.
860+
/**
861+
* PageLayoutMarginsOptions directly maps the settings of page layout margins.
862+
*/
855863
export type PageLayoutMarginsOptions = {
856864
Bottom?: number;
857865
Footer?: number;
@@ -863,7 +871,9 @@ declare module 'excelize-wasm' {
863871
Vertically?: boolean;
864872
};
865873

866-
// SheetPropsOptions directly maps the settings of sheet view.
874+
/*
875+
* SheetPropsOptions directly maps the settings of sheet view.
876+
*/
867877
export type SheetPropsOptions = {
868878
// Specifies a stable name of the sheet, which should not change over time,
869879
// and does not change from user input. This name should be used by code
@@ -3680,8 +3690,8 @@ declare module 'excelize-wasm' {
36803690
ChartDataLabelsPositionRight: typeof ChartDataLabelPositionType.ChartDataLabelsPositionRight;
36813691
ChartDataLabelsPositionAbove: typeof ChartDataLabelPositionType.ChartDataLabelsPositionAbove;
36823692
ChartTickLabelNextToAxis: typeof ChartTickLabelPositionType.ChartTickLabelNextToAxis;
3683-
ChartTickLabelHigh: typeof ChartTickLabelPositionType.ChartTickLabelHigh;
3684-
ChartTickLabelLow: typeof ChartTickLabelPositionType.ChartTickLabelLow;
3685-
ChartTickLabelNone: typeof ChartTickLabelPositionType.ChartTickLabelNone;
3693+
ChartTickLabelHigh: typeof ChartTickLabelPositionType.ChartTickLabelHigh;
3694+
ChartTickLabelLow: typeof ChartTickLabelPositionType.ChartTickLabelLow;
3695+
ChartTickLabelNone: typeof ChartTickLabelPositionType.ChartTickLabelNone;
36863696
}>;
36873697
}

0 commit comments

Comments
 (0)