@simplysm/excel 14.0.4 → 14.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,7 +14,8 @@ npm install @simplysm/excel
14
14
 
15
15
  | Category | Items | Documentation |
16
16
  |---|---|---|
17
- | Types & Utilities | ExcelXmlContentTypeData, ExcelXmlRelationshipData, ExcelRelationshipData, ExcelXmlWorkbookData, ExcelXmlWorksheetData, ExcelRowData, ExcelCellData, ExcelXmlDrawingData, ExcelXmlSharedStringData, ExcelXmlSharedStringDataSi, ExcelXmlSharedStringDataText, ExcelXmlStyleData, ExcelXmlStyleDataXf, ExcelXmlStyleDataFill, ExcelXmlStyleDataBorder, ExcelValueType, ExcelNumberFormat, ExcelCellType, ExcelAddressPoint, ExcelAddressRangePoint, ExcelXml, ExcelBorderPosition, ExcelHorizontalAlign, ExcelVerticalAlign, ExcelStyleOptions, ExcelUtils | [docs/types.md](docs/types.md) |
17
+ | Types | ExcelXmlContentTypeData, ExcelXmlRelationshipData, ExcelRelationshipData, ExcelXmlWorkbookData, ExcelXmlWorksheetData, ExcelRowData, ExcelCellData, ExcelXmlDrawingData, ExcelXmlSharedStringData, ExcelXmlSharedStringDataSi, ExcelXmlSharedStringDataText, ExcelXmlStyleData, ExcelXmlStyleDataXf, ExcelXmlStyleDataFill, ExcelXmlStyleDataBorder, ExcelValueType, ExcelNumberFormat, ExcelCellType, ExcelAddressPoint, ExcelAddressRangePoint, ExcelXml, ExcelBorderPosition, ExcelHorizontalAlign, ExcelVerticalAlign, ExcelStyleOptions | [docs/types.md](docs/types.md) |
18
+ | Utils | ExcelUtils | [docs/utils.md](docs/utils.md) |
18
19
  | Core Classes | ExcelCell, ExcelRow, ExcelCol, ExcelWorksheet, ExcelWorkbook | [docs/core.md](docs/core.md) |
19
20
  | Wrapper | ExcelWrapper | [docs/wrapper.md](docs/wrapper.md) |
20
21
 
package/docs/types.md CHANGED
@@ -1,6 +1,6 @@
1
- # Types & Utilities
1
+ # Types
2
2
 
3
- Types, enums, and utility functions for Excel file processing.
3
+ Types and enums for Excel file processing.
4
4
 
5
5
  ## XML Data Types
6
6
 
@@ -263,24 +263,3 @@ Cell style options.
263
263
  | `verticalAlign?` | `ExcelVerticalAlign` | Vertical alignment |
264
264
  | `numberFormat?` | `ExcelNumberFormat` | Number format |
265
265
 
266
- ## ExcelUtils
267
-
268
- Static utility class for cell address conversion, date/number conversion, and number format handling.
269
-
270
- ### Static Methods
271
-
272
- | Method | Signature | Description |
273
- |---|---|---|
274
- | `stringifyAddr` | `(point: ExcelAddressPoint) => string` | Convert cell coordinate to "A1" format string |
275
- | `stringifyRowAddr` | `(r: number) => string` | Convert 0-based row index to row address (e.g., 0 -> "1") |
276
- | `stringifyColAddr` | `(c: number) => string` | Convert 0-based column index to column address (e.g., 0 -> "A", 26 -> "AA") |
277
- | `parseRowAddr` | `(addr: string) => number` | Extract 0-based row index from cell address (e.g., "A3" -> 2) |
278
- | `parseColAddr` | `(addr: string) => number` | Extract 0-based column index from cell address (e.g., "B3" -> 1) |
279
- | `parseCellAddr` | `(addr: string) => ExcelAddressPoint` | Parse cell address to coordinate (e.g., "B3" -> `{r: 2, c: 1}`) |
280
- | `parseRangeAddr` | `(rangeAddr: string) => ExcelAddressRangePoint` | Parse range address (e.g., "A1:C3" -> `{s: {r:0,c:0}, e: {r:2,c:2}}`) |
281
- | `stringifyRangeAddr` | `(point: ExcelAddressRangePoint) => string` | Convert range coordinate to address string |
282
- | `convertTimeTickToNumber` | `(tick: number) => number` | Convert JS timestamp (ms) to Excel date number |
283
- | `convertNumberToTimeTick` | `(value: number) => number` | Convert Excel date number to JS timestamp (ms) |
284
- | `convertNumFmtCodeToName` | `(numFmtCode: string) => ExcelNumberFormat` | Convert number format code to format name |
285
- | `convertNumFmtIdToName` | `(numFmtId: number) => ExcelNumberFormat` | Convert built-in number format ID to format name |
286
- | `convertNumFmtNameToId` | `(numFmtName: ExcelNumberFormat) => number` | Convert format name to built-in format ID |
package/docs/utils.md ADDED
@@ -0,0 +1,41 @@
1
+ # Utils
2
+
3
+ ## `ExcelUtils`
4
+
5
+ Static utility class for Excel address conversion, date/number conversion, and number format handling.
6
+
7
+ ```typescript
8
+ export class ExcelUtils {
9
+ static stringifyAddr(point: ExcelAddressPoint): string;
10
+ static stringifyRowAddr(r: number): string;
11
+ static stringifyColAddr(c: number): string;
12
+ static parseRowAddr(addr: string): number;
13
+ static parseColAddr(addr: string): number;
14
+ static parseCellAddr(addr: string): ExcelAddressPoint;
15
+ static parseRangeAddr(rangeAddr: string): ExcelAddressRangePoint;
16
+ static stringifyRangeAddr(point: ExcelAddressRangePoint): string;
17
+ static convertTimeTickToNumber(tick: number): number;
18
+ static convertNumberToTimeTick(value: number): number;
19
+ static convertNumFmtCodeToName(numFmtCode: string): ExcelNumberFormat;
20
+ static convertNumFmtIdToName(numFmtId: number): ExcelNumberFormat;
21
+ static convertNumFmtNameToId(numFmtName: ExcelNumberFormat): number;
22
+ }
23
+ ```
24
+
25
+ ### Methods
26
+
27
+ | Method | Parameters | Returns | Description |
28
+ |---|---|---|---|
29
+ | `stringifyAddr` | `point: ExcelAddressPoint` | `string` | Convert coordinate to "A1" format string |
30
+ | `stringifyRowAddr` | `r: number` | `string` | Convert row index (0-based) to row address (e.g. 0 -> "1") |
31
+ | `stringifyColAddr` | `c: number` | `string` | Convert column index (0-based) to column address (e.g. 0 -> "A", 26 -> "AA"). Range: 0-16383 |
32
+ | `parseRowAddr` | `addr: string` | `number` | Extract row index from cell address (e.g. "A3" -> 2) |
33
+ | `parseColAddr` | `addr: string` | `number` | Extract column index from cell address (e.g. "B3" -> 1) |
34
+ | `parseCellAddr` | `addr: string` | `ExcelAddressPoint` | Parse cell address to coordinate (e.g. "B3" -> `{r: 2, c: 1}`) |
35
+ | `parseRangeAddr` | `rangeAddr: string` | `ExcelAddressRangePoint` | Parse range address to coordinates (e.g. "A1:C3" -> `{s: {r:0,c:0}, e: {r:2,c:2}}`) |
36
+ | `stringifyRangeAddr` | `point: ExcelAddressRangePoint` | `string` | Convert range coordinates to address string |
37
+ | `convertTimeTickToNumber` | `tick: number` | `number` | Convert JS timestamp (ms) to Excel date number (1900 date system) |
38
+ | `convertNumberToTimeTick` | `value: number` | `number` | Convert Excel date number to JS timestamp (ms) |
39
+ | `convertNumFmtCodeToName` | `numFmtCode: string` | `ExcelNumberFormat` | Convert number format code string to format name |
40
+ | `convertNumFmtIdToName` | `numFmtId: number` | `ExcelNumberFormat` | Convert built-in number format ID to format name |
41
+ | `convertNumFmtNameToId` | `numFmtName: ExcelNumberFormat` | `number` | Convert format name to built-in number format ID |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/excel",
3
- "version": "14.0.4",
3
+ "version": "14.0.5",
4
4
  "description": "심플리즘 패키지 - 엑셀 (neutral)",
5
5
  "author": "심플리즘",
6
6
  "license": "Apache-2.0",
@@ -24,6 +24,6 @@
24
24
  "dependencies": {
25
25
  "mime": "^4.1.0",
26
26
  "zod": "^4.3.6",
27
- "@simplysm/core-common": "14.0.4"
27
+ "@simplysm/core-common": "14.0.5"
28
28
  }
29
29
  }