OSDN Git Service

excelize/excelize.git
6 months agoRecalculate and use the same shared string count and unique count to overwrite incorr...
xuri [Wed, 22 Nov 2023 16:03:10 +0000 (00:03 +0800)]
Recalculate and use the same shared string count and unique count to overwrite incorrect existing values

6 months agoFixed invalid shared string table index on set cell value (#1725)
ZX [Tue, 21 Nov 2023 03:23:54 +0000 (11:23 +0800)]
Fixed invalid shared string table index on set cell value (#1725)

6 months agoThe GetCellRichText function support to return inline rich text (#1724)
Tian [Mon, 20 Nov 2023 15:57:45 +0000 (23:57 +0800)]
The GetCellRichText function support to return inline rich text (#1724)

Co-authored-by: jintian.wang <jintian.wang@mihoyo.com>
6 months agoThis closes #1723, fix panic on read workbook in some cases (#1692)
lujin [Sat, 18 Nov 2023 08:44:45 +0000 (16:44 +0800)]
This closes #1723, fix panic on read workbook in some cases (#1692)

- Fix panic on read workbook with internal row element without r attribute
- Check worksheet XML before get all cell value by column or row
- Update the unit tests

6 months agoFix panic on GetPictureCells without drawing relationships parts (#1721)
Tajang [Thu, 16 Nov 2023 01:34:37 +0000 (09:34 +0800)]
Fix panic on GetPictureCells without drawing relationships parts (#1721)

6 months agoThis add new exported function GetHeaderFooter (#1720)
15535382838 [Wed, 15 Nov 2023 04:49:18 +0000 (22:49 -0600)]
This add new exported function GetHeaderFooter (#1720)

6 months agoSupport set time period type conditional formatting (#1718)
Yang Li [Tue, 14 Nov 2023 01:47:57 +0000 (09:47 +0800)]
Support set time period type conditional formatting (#1718)

6 months agoSupport 5 new kinds of conditional formatting types
xuri [Sun, 12 Nov 2023 16:16:29 +0000 (00:16 +0800)]
Support 5 new kinds of conditional formatting types

- New conditional formatting types: text, blanks, no blanks, errors, and no errors
- Support calculate formula with multiple dash arithmetic symbol
- Fix empty calculate result with numeric arguments in LEN, LOWER, PROPER, REPT, UPPER, and IF formula functions
- Uniform double quote in calculation unit tests
- Update unit tests

6 months agoSupport update data validations on inserting/deleting columns/rows
xuri [Fri, 10 Nov 2023 16:04:05 +0000 (00:04 +0800)]
Support update data validations on inserting/deleting columns/rows

7 months agoSupport update conditional formatting on inserting/deleting columns/rows (#1717)
ByteFlyCoding [Fri, 10 Nov 2023 01:25:59 +0000 (09:25 +0800)]
Support update conditional formatting on inserting/deleting columns/rows (#1717)

Return error for unsupported conditional formatting rule types

7 months agoUpdate data validation type and operator's enumerations (#1714)
Nick [Wed, 8 Nov 2023 16:15:10 +0000 (00:15 +0800)]
Update data validation type and operator's enumerations (#1714)

7 months agoSupport update defined names on inserting/deleting columns/rows
xuri [Tue, 7 Nov 2023 16:01:35 +0000 (00:01 +0800)]
Support update defined names on inserting/deleting columns/rows

7 months agoThis closes #1712, reduce memory consumption (#1713)
Marko Krstic [Tue, 7 Nov 2023 00:46:01 +0000 (01:46 +0100)]
This closes #1712, reduce memory consumption (#1713)

7 months agoThis closes #1125, support update drawing objects on inserting/deleting columns/rows...
Anton Petrov [Mon, 6 Nov 2023 01:51:19 +0000 (04:51 +0300)]
This closes #1125, support update drawing objects on inserting/deleting columns/rows (#1127)

7 months agoFix number format scientific notation zero fill issues (#1710)
magicrabbit [Sat, 4 Nov 2023 00:02:09 +0000 (08:02 +0800)]
Fix number format scientific notation zero fill issues (#1710)

7 months agoThis closes #1706 and closes #1708
xuri [Thu, 2 Nov 2023 16:12:43 +0000 (00:12 +0800)]
This closes #1706 and closes #1708

- Add export ChartLineType enumeration to specify the chart line type
- Add new Border field in the Chart type to set the chart area border
- Add new Type field in the ChartLine type to set the line type
- Fix some format missing on get style definition
- Update the unit tests

7 months agoSupport update volatile dependencies on inserting/deleting columns/rows
xuri [Wed, 1 Nov 2023 16:15:41 +0000 (00:15 +0800)]
Support update volatile dependencies on inserting/deleting columns/rows

7 months agoSupport to adjust formula cross worksheet on inserting/deleting columns/rows (#1705)
rjtee [Tue, 31 Oct 2023 16:52:18 +0000 (00:52 +0800)]
Support to adjust formula cross worksheet on inserting/deleting columns/rows (#1705)

7 months agoThis improves compatibility for adjusting tables and formula references on inserting...
xuri [Mon, 30 Oct 2023 16:01:57 +0000 (00:01 +0800)]
This improves compatibility for adjusting tables and formula references on inserting/deleting columns or rows

7 months agoSupport adjust formula for entire cols/rows reference (#1702)
rjtee [Sun, 29 Oct 2023 05:40:21 +0000 (13:40 +0800)]
Support adjust formula for entire cols/rows reference (#1702)

- Update the unit tests

7 months agoThis closes #1306 and closes #1615 (#1698)
rjtee [Mon, 23 Oct 2023 16:05:52 +0000 (00:05 +0800)]
This closes #1306 and closes #1615 (#1698)

- Support adjust formula on inserting/deleting columns/rows

7 months agoThis closes #1694, using namespace prefix in workbook theme XML
xuri [Thu, 19 Oct 2023 16:04:31 +0000 (00:04 +0800)]
This closes #1694, using namespace prefix in workbook theme XML

- Improve compatibility with the viewer which doesn't support default theme part namespace
- ref #1690, support read background color style, and conditional format with default pattern type
- Update the unit tests

7 months agoThis closes #1690, new exported function `GetConditionalStyle`
xuri [Tue, 17 Oct 2023 00:52:34 +0000 (08:52 +0800)]
This closes #1690, new exported function `GetConditionalStyle`

- Support get the conditional format style definition
- Update the unit test

7 months agoThis closes #1218 and closes #1689 (#1634)
壹次心 [Thu, 12 Oct 2023 16:06:07 +0000 (00:06 +0800)]
This closes #1218 and closes #1689 (#1634)

- Introduce new exported function GetPictureCells
- Upgrade dependencies module golang.org/x/net from 0.16.0 to 0.17.0
- Update unit tests

7 months agoRemove redundant `len` check in `GroupSheets` and `UngroupSheets` (#1685)
Eng Zer Jun [Thu, 12 Oct 2023 01:23:31 +0000 (09:23 +0800)]
Remove redundant `len` check in `GroupSheets` and `UngroupSheets` (#1685)

8 months agoThis closes #1687 and closes #1688
xuri [Tue, 10 Oct 2023 16:04:38 +0000 (00:04 +0800)]
This closes #1687 and closes #1688

- Using sync map internally to get cell value concurrency safe
- Support set the height and width for the comment box
- Update the unit test

8 months agoSupport format cell value with fraction number format code
xuri [Mon, 9 Oct 2023 16:04:10 +0000 (00:04 +0800)]
Support format cell value with fraction number format code

- Fix delete incorrect image files when picture deleting pictures
- Update the unit test and dependencies modules

8 months agoThis closed #1680, fixing a potential issue that stream reader temporary files can...
xuri [Sun, 8 Oct 2023 16:14:56 +0000 (00:14 +0800)]
This closed #1680, fixing a potential issue that stream reader temporary files can not be clear

- Delete image files from the workbook internally when deleting pictures to reduce generated workbook size and resolve potential security issues

8 months agoThis closes #1681, closes #1683
xuri [Sat, 7 Oct 2023 16:06:11 +0000 (00:06 +0800)]
This closes #1681, closes #1683

- Fix incorrect formula calculation result
- Introduce new exported function `SetCellUint`
- Updates unit test
- Typo fixed

8 months agoKeep all cells value in the table range when deleting table (#1684)
Abdelaziz-Ouhammou [Fri, 6 Oct 2023 16:05:50 +0000 (19:05 +0300)]
Keep all cells value in the table range when deleting table (#1684)

8 months agoThis fix #1682, removes table and content type parts when deleting the table
xuri [Thu, 5 Oct 2023 16:04:38 +0000 (00:04 +0800)]
This fix #1682, removes table and content type parts when deleting the table

- Move worksheet-related functions in one place

8 months agoThis improves performance for adding and removing pivot table
xuri [Wed, 4 Oct 2023 16:08:31 +0000 (00:08 +0800)]
This improves performance for adding and removing pivot table

8 months agoUpdate actions/checkout from 3 to 4 (#1676)
dependabot[bot] [Tue, 3 Oct 2023 16:11:50 +0000 (00:11 +0800)]
Update actions/checkout from 3 to 4 (#1676)

8 months agoAdd new exported function `DeletePivotTable`
xuri [Mon, 2 Oct 2023 16:59:31 +0000 (00:59 +0800)]
Add new exported function `DeletePivotTable`

- Support adding pivot table by specific table name
- Update unit tests

8 months agoThis closes #1677, fix the incorrect custom number format ID allocated
xuri [Sun, 1 Oct 2023 16:06:38 +0000 (00:06 +0800)]
This closes #1677, fix the incorrect custom number format ID allocated

- Improve compatibility with empty custom number format code

8 months agoref #65, formula functions TEXTAFTER and TEXTBEFORE (array formula not support yet)
xuri [Sun, 1 Oct 2023 05:37:47 +0000 (13:37 +0800)]
ref #65, formula functions TEXTAFTER and TEXTBEFORE (array formula not support yet)

8 months agoThis sorted exported error constants by name and listed them in one place
xuri [Thu, 28 Sep 2023 00:53:54 +0000 (08:53 +0800)]
This sorted exported error constants by name and listed them in one place

8 months agoThe `AddSlicer` function now support create pivot table slicer
xuri [Tue, 26 Sep 2023 16:05:59 +0000 (00:05 +0800)]
The `AddSlicer` function now support create pivot table slicer

8 months agoThis fix #1665, supports getting formula string cell value
xuri [Wed, 20 Sep 2023 16:06:31 +0000 (00:06 +0800)]
This fix #1665, supports getting formula string cell value

- Improve compatibility for absolute path drawing part
- Fix incorrect table ID generated in the workbook which contains single table cells
- Fix missing relationship parts in the content types in some cases
- Upgrade number format parser to fix missing literal tokens in some cases
- Update built-in zh-cn and zh-tw language number format
- Ref #65, init new formula function: TEXT
- Remove duplicate style-related variables
- Update the unit tests

8 months agoThis closes #1661, fix incorrect time number format result
xuri [Sun, 17 Sep 2023 10:30:58 +0000 (18:30 +0800)]
This closes #1661, fix incorrect time number format result

8 months agoIntroduce the new exported function `AddSlicer` for adding table slicer
xuri [Sat, 16 Sep 2023 04:21:11 +0000 (12:21 +0800)]
Introduce the new exported function `AddSlicer` for adding table slicer

- Fix a v2.8.0 regression bug, generate workbook corruption caused by incorrect MRU colors style parts
- Fix corrupted workbooks generated when adding tables in some cases
- Added several exported extension list child element URI constants
- Move part of the internal constant and variables definition to the template source code file
- Updated unit tests

8 months agoThis fixes #1658
xuri [Thu, 14 Sep 2023 14:56:28 +0000 (22:56 +0800)]
This fixes #1658

- Fix a v2.8.0 regression bug, number format code apply result was empty
- Fix calculate formula functions CHITEST and MMULT panic in some cases
- Updated unit tests

9 months agoThis fixes #1645 and fixes #1655
xuri [Sat, 9 Sep 2023 05:51:00 +0000 (13:51 +0800)]
This fixes #1645 and fixes #1655

- Breaking changes, change the data type for the `HeaderFooterOptions` structure fields `AlignWithMargins` and `ScaleWithDoc` as a pointer
- Fixed panic on `AutoFilter` by adding nil pointer guard for local sheet ID
- Allow dot character in the defined name, table name, or pivot table name
- Update the unit tests

9 months agoFix bug in checkDefinedNames
Matthias Endler [Tue, 5 Sep 2023 11:43:22 +0000 (13:43 +0200)]
Fix bug in checkDefinedNames

9 months agoThis fixes #1643, fixes #1647 and fixes #1653
xuri [Thu, 7 Sep 2023 16:09:41 +0000 (00:09 +0800)]
This fixes #1643, fixes #1647 and fixes #1653

- Correction cell type when formatting date type cell value
- Add check for MID and MIDB formula functions num_chars arguments, prevent panic on specifying a negative number
- Ref #65, add support for 2 formula functions: SEARCH and SEARCHB
- Fix a v2.8.0 regression bug, error on set print area and print titles with built-in special defined name
- Add new exported function `GetPivotTables` for get pivot tables
- Add a new `Name` field in the `PivotTableOptions` to support specify pivot table name
- Using relative cell reference in the pivot table docs and unit tests
- Support adding slicer content type part internally
- Add new exported source relationship and namespace `NameSpaceSpreadSheetXR10`, `ContentTypeSlicer`, `ContentTypeSlicerCache`, and `SourceRelationshipSlicer`
- Add new exported extended URI `ExtURIPivotCacheDefinition`
- Fix formula argument wildcard match issues
- Update GitHub Actions configuration, test on Go 1.21.x with 1.21.1 and later
- Avoid corrupted workbooks generated by improving compatibility with internally indexed color styles

9 months agoadd Footer & Header clarification to docs (#1644)
Francis Nickels III [Sun, 3 Sep 2023 16:11:35 +0000 (09:11 -0700)]
add Footer & Header clarification to docs (#1644)

9 months agoUpdate the README and documentation for the data validation functions v2.8.0
xuri [Sun, 27 Aug 2023 16:02:25 +0000 (00:02 +0800)]
Update the README and documentation for the data validation functions

9 months agoref #65, add support for 10 formula functions
fsfsx [Sat, 26 Aug 2023 05:14:03 +0000 (13:14 +0800)]
ref #65, add support for 10 formula functions

- Add support for 10 formula functions: ARRAYTOTEXT, FORECAST, FORECAST.LINEAR, FREQUENCY, INTERCEPT, ODDFYIELD, ODDLPRICE, ODDLYIELD, PROB and VALUETOTEXT
- Update unit tests

9 months agoThis closes #1628, fix the GetPictures function returns pictures doesn't correct...
xuri [Thu, 24 Aug 2023 17:06:41 +0000 (01:06 +0800)]
This closes #1628, fix the GetPictures function returns pictures doesn't correct in some cases

9 months agoThis closes #314, closes #1520 and closes #1521 (#1574)
cnmlgbgithub [Thu, 24 Aug 2023 15:51:07 +0000 (23:51 +0800)]
This closes #314, closes #1520 and closes #1521 (#1574)

- Add new function GetStyle support for get style definition

9 months agoThis closes #674, closes #1454, add new exported functions GetTables and DeleteTable...
fsfsx [Wed, 23 Aug 2023 02:51:11 +0000 (10:51 +0800)]
This closes #674, closes #1454, add new exported functions GetTables and DeleteTable (#1573)

9 months agoThis improves applying cell value with currency and accounting number format
xuri [Sun, 20 Aug 2023 16:04:28 +0000 (00:04 +0800)]
This improves applying cell value with currency and accounting number format

- Update the unit test and dependencies modules

9 months agoThis fixed #1610, support to create a conditional format with number format and prote...
xuri [Thu, 17 Aug 2023 03:34:28 +0000 (11:34 +0800)]
This fixed #1610, support to create a conditional format with number format and protection

9 months agoThis improves the date and time number formats
xuri [Mon, 14 Aug 2023 16:01:57 +0000 (00:01 +0800)]
This improves the date and time number formats

- Now support applying date and time number format for 812 language tags
- Fix panic on getting merged cells with the same start and end axis

10 months agoThis ref #1585, support to read one cell anchor pictures and improve date and time...
xuri [Tue, 8 Aug 2023 16:11:06 +0000 (00:11 +0800)]
This ref #1585, support to read one cell anchor pictures and improve date and time number format

- Support apply date and time number format with 16 languages: Persian, Polish, Portuguese, Punjabi, Quechua, Romanian, Romansh, Sakha, Sami, Sanskrit, Scottish Gaelic, Serbian, Sesotho sa Leboa, Setswana, Sindhi, Sinhala and Slovak
- Update the unit test and dependencies modules

10 months agoThis fixes #1599, and improve date and time number format
xuri [Sat, 5 Aug 2023 16:02:48 +0000 (00:02 +0800)]
This fixes #1599, and improve date and time number format

- Fix basic arithmetic operator priority issues
- Support apply date and time number format with 52 languages: Estonian, Faroese, Filipino, Finnish, Frisian, Fulah, Galician, Georgian, Greek, Greenlandic, Guarani, Gujarati, Hausa, Hawaiian, Hebrew, Hindi, Hungarian, Icelandic, Igbo, Indonesian, Inuktitut, Kannada, Kashmiri, Kazakh, Khmer, Kiche, Kinyarwanda, Kiswahili, Konkani, Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malay, Malayalam, Maltese, Maori, Mapudungun, Marathi, Mohawk, Morocco, Nepali, Nigeria, Norwegian, Occitan, Odia, Oromo, Pashto and Syllabics
- Support apply the Chinese weekdays' number formats
- Update the unit test and dependencies modules

10 months agoSupport apply number format with the Japanese era years
xuri [Mon, 31 Jul 2023 16:11:02 +0000 (00:11 +0800)]
Support apply number format with the Japanese era years

10 months agoThis closes #1590, add the Japanese calendar number format support
xuri [Sun, 30 Jul 2023 16:08:10 +0000 (00:08 +0800)]
This closes #1590, add the Japanese calendar number format support

- The `GetFormControl` now support to get text, rich-text and font format of the form controls
- Update the unit tests and the documentation

10 months agoThis closes #1588, closes #1591, breaking changes for the `AddChart` function
xuri [Thu, 27 Jul 2023 16:24:08 +0000 (00:24 +0800)]
This closes #1588, closes #1591, breaking changes for the `AddChart` function

- Removed exported `ChartTitle` data type
- The `AddChart` function now supports formatting and setting rich text titles for the chart
- New exported function `GetFormControl` for getting form control
- Made case in-sensitive for internal worksheet XML path to improve compatibility
- Update the unit tests
- Update the documentation and internal comments on the codes

10 months agoThis closes #1587, fix incorrect date time format result
xuri [Wed, 26 Jul 2023 16:03:15 +0000 (00:03 +0800)]
This closes #1587, fix incorrect date time format result

10 months agoThis closes #1584, fix graphic object counter issues
xuri [Mon, 24 Jul 2023 16:08:24 +0000 (00:08 +0800)]
This closes #1584, fix graphic object counter issues

- Optimize number format parser
- Update documentation for the `AddFormControl` function
- Update unit tests
- Upgrade dependencies package

10 months agoThis closes #1582, fixes the formula calculation bug, and improves form controls
xuri [Thu, 20 Jul 2023 16:03:37 +0000 (00:03 +0800)]
This closes #1582, fixes the formula calculation bug, and improves form controls

- Fix incorrect formula calculate results on a nested argument function which returns a numeric result
- Add a new exported error variable `ErrorFormControlValue`
- Rename exported enumeration `FormControlCheckbox` to `FormControlCheckBox`
- Rename exported enumeration `FormControlRadio` to `FormControlOptionButton`
- The `AddFormControl` function supports new 5 form controls: spin button, check box, group box, label, and scroll bar
- Update documentation for the `GraphicOptions` data type, `AddFormControl` and `NewStreamWriter` functions
- Update the unit tests

10 months agoThis closes #301, support delete and add radio button form control
xuri [Wed, 12 Jul 2023 16:03:24 +0000 (00:03 +0800)]
This closes #301, support delete and add radio button form control

- New exported function `DeleteFormControl` has been added
- Update unit tests
- Fix comments was missing after form control added
- Update pull request templates

10 months agoThis closes #1169, initialize add form controls supported (#1181)
David [Tue, 11 Jul 2023 15:43:45 +0000 (11:43 -0400)]
This closes #1169, initialize add form controls supported (#1181)

- Breaking changes:
* Change
    `func (f *File) AddShape(sheet, cell string, opts *Shape) error`
    to
    `func (f *File) AddShape(sheet string, opts *Shape) error`
* Rename the `Runs` field to `Paragraph` in the exported `Comment` data type
- Add new exported function `AddFormControl` support to add button and radio form controls
- Add check for shape type for the `AddShape` function, an error will be returned if no shape type is specified
- Updated functions documentation and the unit tests

11 months agoThis closes #1572
xuri [Sat, 8 Jul 2023 10:36:35 +0000 (18:36 +0800)]
This closes #1572

- Breaking changes: changed the data type for the `DecimalPlaces` to pointer of integer
- Fallback to default 2 zero placeholder for invalid decimal places
- Update unit tests

11 months agoThis closes #518, support creating chart with a secondary series axis
xuri [Fri, 7 Jul 2023 11:00:54 +0000 (11:00 +0000)]
This closes #518, support creating chart with a secondary series axis

11 months agoThis closes #1569, formula function CONCAT, CONCATENATE support concatenation of...
xuri [Thu, 6 Jul 2023 10:49:49 +0000 (10:49 +0000)]
This closes #1569, formula function CONCAT, CONCATENATE support concatenation of multiple cell values

11 months agoThis closes #1565, support adjust formula when instering columns and rows (#1567)
lidp20 [Mon, 3 Jul 2023 16:06:37 +0000 (00:06 +0800)]
This closes #1565, support adjust formula when instering columns and rows (#1567)

11 months agoThis fixed #1564, apply all of its arguments that meet multiple criteria
xuri [Sun, 2 Jul 2023 16:05:26 +0000 (00:05 +0800)]
This fixed #1564, apply all of its arguments that meet multiple criteria

11 months agoMade unit tests compatibility with the next Go language version
xuri [Fri, 30 Jun 2023 05:02:18 +0000 (05:02 +0000)]
Made unit tests compatibility with the next Go language version

- Fix documents issues for the `AddChart` function
- Update GitHub sponsor profile

11 months agoThis closes #1553, the `AddChart` function support set primary titles
xuri [Sat, 17 Jun 2023 16:12:50 +0000 (00:12 +0800)]
This closes #1553, the `AddChart` function support set primary titles

- Update unit tests and documentation
- Lint issues fixed

11 months agoThis optimize the code, simplify unit test and drawing object position calculation...
chengxinyao [Wed, 14 Jun 2023 14:49:40 +0000 (22:49 +0800)]
This optimize the code, simplify unit test and drawing object position calculation (#1561)

Co-authored-by: xinyao.cheng <xinyao.cheng@zerone.com.cn>
11 months agoThis closes #1560, fix incorrect row number when get object position
xuri [Sun, 11 Jun 2023 16:09:40 +0000 (00:09 +0800)]
This closes #1560, fix incorrect row number when get object position

12 months agoNew function `GetPanes` for get sheet panes and view selection (#1556)
vb6iscool [Thu, 8 Jun 2023 01:50:38 +0000 (09:50 +0800)]
New function `GetPanes` for get sheet panes and view selection (#1556)

- Breaking changes: rename exported type `PaneOptions` to `Selection`
- Update unit tests
- Upgrade dependencies package
- Add internal error variables
- Simplify variable declarations

12 months agoSupport apply built-in number format code 22 with custom short date pattern
xuri [Sun, 4 Jun 2023 16:06:27 +0000 (00:06 +0800)]
Support apply built-in number format code 22 with custom short date pattern

12 months agoThis fixed incorrect formula calculation exception expected result
xuri [Mon, 29 May 2023 16:14:44 +0000 (00:14 +0800)]
This fixed incorrect formula calculation exception expected result

- Simplify and remove duplicate code for optimization
- Update documentation comments with typo fix
- Handle error return to save the workbook
- Add file path length limitation details in the error message

12 months agoThis closes #1548, support to get multiple images in one cell (#1549)
壹次心 [Sat, 27 May 2023 16:46:34 +0000 (00:46 +0800)]
This closes #1548, support to get multiple images in one cell (#1549)

12 months agoThis fix date and time pattern validation issues (#1547)
joehan109 [Fri, 26 May 2023 16:22:35 +0000 (00:22 +0800)]
This fix date and time pattern validation issues (#1547)

12 months agoThis closes #1539, fix adjust table issue when after removing rows
xuri [Mon, 22 May 2023 16:18:55 +0000 (00:18 +0800)]
This closes #1539, fix adjust table issue when after removing rows

12 months agoThis avoid unnecessary byte/string conversion (#1541)
Eng Zer Jun [Mon, 22 May 2023 01:24:28 +0000 (09:24 +0800)]
This avoid unnecessary byte/string conversion (#1541)

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
12 months agoThis closes #279, refs #1536, change the default point to pixels conversion factor
xuri [Fri, 19 May 2023 11:53:18 +0000 (19:53 +0800)]
This closes #279, refs #1536, change the default point to pixels conversion factor

12 months agoThis closes #1536, support fallback to default column width in sheet format property
xuri [Thu, 18 May 2023 12:33:16 +0000 (20:33 +0800)]
This closes #1536, support fallback to default column width in sheet format property

12 months agoThis fixed across worksheet reference issue for the formula calculation engine
xuri [Tue, 16 May 2023 16:05:27 +0000 (00:05 +0800)]
This fixed across worksheet reference issue for the formula calculation engine

12 months agoThis closes #1535, add documentation for the fields for style alignment
xuri [Tue, 16 May 2023 01:44:08 +0000 (09:44 +0800)]
This closes #1535, add documentation for the fields for style alignment

13 months agoRef #1199, this support applies partial built-in language number format code
xuri [Thu, 11 May 2023 01:08:38 +0000 (09:08 +0800)]
Ref #1199, this support applies partial built-in language number format code

- Remove the `Lang` field in the `Style` data type
- Rename field name `ShortDateFmtCode` to `ShortDatePattern` in the `Options` data type
- Rename field name `LongDateFmtCode` to `LongDatePattern` in the `Options` data type
- Rename field name `LongTimeFmtCode` to `LongTimePattern` in the `Options` data type
- Apply built-in language number format code number when creating a new style
- Checking and returning error if the date and time pattern was invalid
- Add new `Options` field `CultureInfo` and new exported data type `CultureName`
- Add new culture name types enumeration for country code
- Update unit tests
- Move built-in number format code and currency number format code definition source code
- Remove the built-in language number format code mapping with Unicode values
- Fix incorrect number formatted result for date and time with 12 hours at AM

13 months agoThis closes #1199, support apply number format by system date and time options
fudali [Sat, 6 May 2023 12:34:18 +0000 (20:34 +0800)]
This closes #1199, support apply number format by system date and time options

- Add new options `ShortDateFmtCode`, `LongDateFmtCode` and `LongTimeFmtCode`
- Update unit tests

13 months agoThis closes #660, supports currency string, and switches argument for the number...
xuri [Thu, 4 May 2023 02:52:26 +0000 (02:52 +0000)]
This closes #660, supports currency string, and switches argument for the number format code

- Support round millisecond for the date time
- Update built-in number formats mapping
- Update unit tests
- Upgrade dependencies package

13 months agoRef #660, support placeholder, padding and rounds numbers by specified number format...
xuri [Sun, 30 Apr 2023 03:10:51 +0000 (11:10 +0800)]
Ref #660, support placeholder, padding and rounds numbers by specified number format code

- Remove built-in number formats functions
- Update unit tests
- Upgrade dependencies package

13 months agoRef #1533, this made number format text handler just handle text tokens
xuri [Tue, 25 Apr 2023 16:04:47 +0000 (00:04 +0800)]
Ref #1533, this made number format text handler just handle text tokens

- Fix race conditions for concurrency read and write shared string table
- Unit tests has been updated

13 months agoThis closes #1528, closes #1533
xuri [Tue, 25 Apr 2023 00:44:41 +0000 (08:44 +0800)]
This closes #1528, closes #1533

- Avoid format text cell value as a numeric
- Fix race conditions for concurrency safety functions

13 months agoThis optimizes internal functions signature and mutex declarations
xuri [Sun, 23 Apr 2023 16:02:13 +0000 (00:02 +0800)]
This optimizes internal functions signature and mutex declarations

13 months agoOptimizing regexp calls to improve performance (#1532)
Chen Zhidong [Sun, 23 Apr 2023 10:00:31 +0000 (18:00 +0800)]
Optimizing regexp calls to improve performance (#1532)

13 months agoBreaking changes: rename exported variable `ErrTableNameLength` to `ErrNameLength`
xuri [Fri, 21 Apr 2023 00:51:04 +0000 (08:51 +0800)]
Breaking changes: rename exported variable `ErrTableNameLength` to `ErrNameLength`

- Check the defined name
- Improve the cell comment box shape size compatibility with KingSoft WPS
- Update unit test

13 months agoThis closes #1523, preventing format text cell value as a numeric
xuri [Tue, 18 Apr 2023 16:05:59 +0000 (00:05 +0800)]
This closes #1523, preventing format text cell value as a numeric

- Simplify variable declaration and error return statements
- Remove the internal `xlsxTabColor` data type
- Using the `xlsxColor` data type instead of `xlsxTabColor`
- Update unit test, improve code coverage

13 months agoThis commit contains 5 changes:
xuri [Mon, 17 Apr 2023 00:48:30 +0000 (08:48 +0800)]
This commit contains 5 changes:

- Fix incorrect comment box size for multi-line plain text comments
- Prevent create duplicate tables with the same name
- Add new exported error variable `ErrExistsTableName`
- Allocate buffer inside escape XML characters
- Update the unit tests

13 months agoThis closes #1519, escape XML characters after checking cell value length
xuri [Sun, 16 Apr 2023 06:22:55 +0000 (14:22 +0800)]
This closes #1519, escape XML characters after checking cell value length

13 months agoSupport checking cell value length with multi-bytes characters (#1517)
Valery Ozarnichuk [Wed, 12 Apr 2023 00:17:10 +0000 (03:17 +0300)]
Support checking cell value length with multi-bytes characters (#1517)

14 months agoUpgrade actions/setup-go from 3 to 4 (#1512)
dependabot[bot] [Mon, 10 Apr 2023 16:27:17 +0000 (00:27 +0800)]
Upgrade actions/setup-go from 3 to 4 (#1512)

14 months agoThis upgrade dependencies package v2.7.1
xuri [Sun, 9 Apr 2023 16:02:20 +0000 (00:02 +0800)]
This upgrade dependencies package

14 months agoRequire using ChartType enumeration value to specify the chart type
xuri [Fri, 31 Mar 2023 16:08:53 +0000 (00:08 +0800)]
Require using ChartType enumeration value to specify the chart type

- Update docs and unit tests