Skip to content

Commit

Permalink
Add new NumFmt field in the PivotTableField data type
Browse files Browse the repository at this point in the history
- Upgrade the dependencies package version
  • Loading branch information
xuri committed Aug 19, 2024
1 parent bd65563 commit 63cc7c2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 22 deletions.
10 changes: 5 additions & 5 deletions cmd/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.18

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

require (
Expand All @@ -16,8 +16,8 @@ require (
github.com/richardlehane/msoleps v1.0.3 // indirect
github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d // indirect
github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/text v0.17.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
20 changes: 10 additions & 10 deletions cmd/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d h1:llb0neMWDQe87IzJLS4Ci7psK/lVsjIS2otl+1WyRyY=
github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d/go.mod h1:ybY/Jr0T0GTCnYjKqmdwxyxn2BQf2RcQIIvex5QldPI=
github.com/xuri/excelize/v2 v2.8.2-0.20240713024157-9c278365f213 h1:cdWe1AJcvApomqtIMBow4tvD+x7heU4AEilR8+HIUzo=
github.com/xuri/excelize/v2 v2.8.2-0.20240713024157-9c278365f213/go.mod h1:0hWeRQBdU+HQng3S1AXdYm8Ob0dbevUncXAWI0QswPU=
github.com/xuri/excelize/v2 v2.8.2-0.20240817161802-9a386575152d h1:jdlS3YAi4lfGkLTVLOfBkmIMSTewPugizWstqPa9/Zc=
github.com/xuri/excelize/v2 v2.8.2-0.20240817161802-9a386575152d/go.mod h1:0hWeRQBdU+HQng3S1AXdYm8Ob0dbevUncXAWI0QswPU=
github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7 h1:hPVCafDV85blFTabnqKgNhDCkJX25eik94Si9cTER4A=
github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7/go.mod h1:WwHg+CVyzlv/TX9xqBFXEZAuxOPxn2k1GNHwG41IIUQ=
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw=
golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54=
golang.org/x/image v0.19.0 h1:D9FX4QWkLfkeqaC62SonffIIuYdOk/UE2XKUBgRIBIQ=
golang.org/x/image v0.19.0/go.mod h1:y0zrRqlQRWQ5PXaYCOMLTW2fpsxZ8Qh9I/ohnInJEys=
golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE=
golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
24 changes: 17 additions & 7 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@ declare module 'excelize-wasm' {

/**
* PivotTableField directly maps the field settings of the pivot table.
*
* Name specifies the name of the data field. Maximum 255 characters
* are allowed in data field name, excess characters will be truncated.
*
* Subtotal specifies the aggregation function that applies to this data
* field. The default value is sum. The possible values for this attribute
* are:
Expand All @@ -647,8 +651,9 @@ declare module 'excelize-wasm' {
* Var
* Varp
*
* Name specifies the name of the data field. Maximum 255 characters
* are allowed in data field name, excess characters will be truncated.
* NumFmt specifies the number format ID of the data field, this filed only
* accepts built-in number format ID and does not support custom number format
* expression currently.
*/
export type PivotTableField = {
Compact?: boolean;
Expand All @@ -657,6 +662,7 @@ declare module 'excelize-wasm' {
Outline?: boolean;
Subtotal?: string;
DefaultSubtotal?: boolean;
NumFmt?: number;
};

/**
Expand Down Expand Up @@ -851,7 +857,9 @@ declare module 'excelize-wasm' {
BlackAndWhite?: boolean;
};

// PageLayoutMarginsOptions directly maps the settings of page layout margins.
/**
* PageLayoutMarginsOptions directly maps the settings of page layout margins.
*/
export type PageLayoutMarginsOptions = {
Bottom?: number;
Footer?: number;
Expand All @@ -863,7 +871,9 @@ declare module 'excelize-wasm' {
Vertically?: boolean;
};

// SheetPropsOptions directly maps the settings of sheet view.
/*
* SheetPropsOptions directly maps the settings of sheet view.
*/
export type SheetPropsOptions = {
// Specifies a stable name of the sheet, which should not change over time,
// and does not change from user input. This name should be used by code
Expand Down Expand Up @@ -3680,8 +3690,8 @@ declare module 'excelize-wasm' {
ChartDataLabelsPositionRight: typeof ChartDataLabelPositionType.ChartDataLabelsPositionRight;
ChartDataLabelsPositionAbove: typeof ChartDataLabelPositionType.ChartDataLabelsPositionAbove;
ChartTickLabelNextToAxis: typeof ChartTickLabelPositionType.ChartTickLabelNextToAxis;
ChartTickLabelHigh: typeof ChartTickLabelPositionType.ChartTickLabelHigh;
ChartTickLabelLow: typeof ChartTickLabelPositionType.ChartTickLabelLow;
ChartTickLabelNone: typeof ChartTickLabelPositionType.ChartTickLabelNone;
ChartTickLabelHigh: typeof ChartTickLabelPositionType.ChartTickLabelHigh;
ChartTickLabelLow: typeof ChartTickLabelPositionType.ChartTickLabelLow;
ChartTickLabelNone: typeof ChartTickLabelPositionType.ChartTickLabelNone;
}>;
}

0 comments on commit 63cc7c2

Please sign in to comment.