@extend-ai/react-xlsx 0.24.0 → 0.24.1
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 +8 -4
- package/dist/{chunk-DGNSB5M5.cjs → chunk-WW6G674Q.cjs} +728 -618
- package/dist/chunk-WW6G674Q.cjs.map +1 -0
- package/dist/{chunk-C4WTJIRG.js → chunk-XUHSQ3GF.js} +146 -36
- package/dist/chunk-XUHSQ3GF.js.map +1 -0
- package/dist/index.cjs +344 -234
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +146 -36
- package/dist/index.js.map +1 -1
- package/dist/{internal-CwTqluL7.d.cts → internal-D5HReXVR.d.cts} +9 -1
- package/dist/{internal-CwTqluL7.d.ts → internal-D5HReXVR.d.ts} +9 -1
- package/dist/internal.cjs +2 -2
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/vanilla.cjs +2 -2
- package/dist/vanilla.d.cts +2 -2
- package/dist/vanilla.d.ts +2 -2
- package/dist/vanilla.js +1 -1
- package/dist/{workbook-runtime-QFXDLSSI.cjs → workbook-runtime-7WEPIK5Y.cjs} +41 -29
- package/dist/workbook-runtime-7WEPIK5Y.cjs.map +1 -0
- package/dist/{workbook-runtime-56Y3B64Y.js → workbook-runtime-BAAYDYYK.js} +17 -5
- package/dist/workbook-runtime-BAAYDYYK.js.map +1 -0
- package/dist/{workbook-runtime-7DSKESFL.js → workbook-runtime-FCKPXLTW.js} +17 -5
- package/dist/workbook-runtime-FCKPXLTW.js.map +1 -0
- package/dist/{workbook-runtime-MEI3CEWO.cjs → workbook-runtime-MOGSEJ5R.cjs} +41 -29
- package/dist/workbook-runtime-MOGSEJ5R.cjs.map +1 -0
- package/dist/xlsx-worker.js +16 -4
- package/dist/xlsx-worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-C4WTJIRG.js.map +0 -1
- package/dist/chunk-DGNSB5M5.cjs.map +0 -1
- package/dist/workbook-runtime-56Y3B64Y.js.map +0 -1
- package/dist/workbook-runtime-7DSKESFL.js.map +0 -1
- package/dist/workbook-runtime-MEI3CEWO.cjs.map +0 -1
- package/dist/workbook-runtime-QFXDLSSI.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -524,7 +524,9 @@ Exports contain native pivot definitions, cache definitions/records, relationshi
|
|
|
524
524
|
|
|
525
525
|
## Worksheet Layout
|
|
526
526
|
|
|
527
|
-
`useXlsxViewerLayout()` and the viewer controller expose the same commands for the active worksheet.
|
|
527
|
+
`useXlsxViewerLayout()` and the viewer controller expose the same commands for the active worksheet. In editing mode, layout changes participate in undo and redo and persist in XLSX exports.
|
|
528
|
+
|
|
529
|
+
In read-only mode, set `allowFreezeInReadOnly` to allow freezing and unfreezing or `allowHideInReadOnly` to allow hiding and unhiding rows and columns. Both options default to `false` and also apply when `readOnlyAboveBytes` activates read-only mode. Set them on the controller when supplying your own. Each worksheet keeps its view until the workbook is reloaded. Exports and edit history retain the workbook layout.
|
|
528
530
|
|
|
529
531
|
| Command | Default target | Explicit target |
|
|
530
532
|
| --- | --- | --- |
|
|
@@ -533,7 +535,7 @@ Exports contain native pivot definitions, cache definitions/records, relationshi
|
|
|
533
535
|
| `freezePanes()` | Rows above the selected row header, columns to the left of the selected column header, or both axes at the active cell | A zero-based cell address. `freezePanes({ row: 2, col: 1 })` keeps rows 1–2 and column A visible |
|
|
534
536
|
| `unfreezePanes()` | The active worksheet | — |
|
|
535
537
|
|
|
536
|
-
Read `canFreezePanes` to enable a freeze command for the current selection and `frozenPanes` for the current row and column counts, or `null` when unfrozen. To unhide a block from the grid, select headers on both sides and choose **Unhide**. For hidden leading rows or columns, select the first visible header.
|
|
538
|
+
Read `canChangeVisibility` and `canChangeFreezePanes` to enable layout menus. Use `canFreezePanes` to enable a freeze command for the current selection and `frozenPanes` for the current row and column counts, or `null` when unfrozen. To unhide a block from the grid, select headers on both sides and choose **Unhide**. For hidden leading rows or columns, select the first visible header.
|
|
537
539
|
|
|
538
540
|
## Merging Cells
|
|
539
541
|
|
|
@@ -736,7 +738,7 @@ Right-click a chart, image, worksheet cell, row header, column header, or the to
|
|
|
736
738
|
|
|
737
739
|
Viewer mode (`readOnly`) offers Copy and selection actions. Editor mode also offers Cut, Paste, Edit cell, Clear contents, Undo/Redo, Merge/Unmerge, and sorting when the target belongs to a table. Actions use the existing controller and undo history. Row and column selections span the displayed grid, matching header selection. Worker-backed viewers copy tab-separated text; editable workbooks also preserve structured cell data when the browser supports custom clipboard formats. Clipboard commands require browser clipboard access; failed operations display an error and Cut only clears cells after copying succeeds.
|
|
738
740
|
|
|
739
|
-
Row and column headers have their own menus. In editing mode they offer Cut, Copy, Paste, Clear Contents, Row Height or Column Width, Hide, and Unhide. Sizing uses logical pixels and applies to all selected headers in one undo step. Read-only headers offer Copy and optionally sizing
|
|
741
|
+
Row and column headers have their own menus. In editing mode they offer Cut, Copy, Paste, Clear Contents, Row Height or Column Width, Hide, and Unhide. Sizing uses logical pixels and applies to all selected headers in one undo step. Read-only headers offer Copy and optionally sizing with `allowResizeInReadOnly` and Hide and Unhide with `allowHideInReadOnly`. Shift+F10 opens the same menu for a header selection.
|
|
740
742
|
|
|
741
743
|
Chart and image menus start with Undo and Redo, followed by a separator. Drawing Cut and Copy are not offered; copying worksheet cells remains supported. Bring to Front and Send to Back contain the one-step layer commands. Charts also have a nested Change Chart Type menu, grouped by family; options that require a different series count are disabled. Drawing positions, sizes, layer order, and chart types participate in undo/redo and are preserved by `download()` and `exportXlsx()`.
|
|
742
744
|
|
|
@@ -1101,7 +1103,7 @@ Common source and loading props:
|
|
|
1101
1103
|
|
|
1102
1104
|
Double-click the divider at the right edge of a column header to fit its contents. Double-click the divider at the bottom of a row header to fit its contents at the current column widths, including wrapped text. Autofit includes offscreen cells and skips hidden cells and merges that span the axis being resized.
|
|
1103
1105
|
|
|
1104
|
-
`allowResizeInReadOnly` enables autofit and drag resizing in a read-only viewer. When supplying your own controller, set this option on both `useXlsxViewerController` (or `XlsxViewerProvider`) and `XlsxViewer`. Workbooks forced into read-only mode by `readOnlyAboveBytes`
|
|
1106
|
+
`allowResizeInReadOnly` enables autofit and drag resizing in a read-only viewer. When supplying your own controller, set this option on both `useXlsxViewerController` (or `XlsxViewerProvider`) and `XlsxViewer`. Workbooks forced into read-only mode by `readOnlyAboveBytes` keep their original row and column sizes. Autofit uses the selected row or column, so it can evaluate conditional styles whose operands are literals or cells on that axis.
|
|
1105
1107
|
|
|
1106
1108
|
Common rendering props:
|
|
1107
1109
|
|
|
@@ -1116,6 +1118,8 @@ Common rendering props:
|
|
|
1116
1118
|
- `experimentalCanvas?: boolean`
|
|
1117
1119
|
- `enableGestureZoom?: boolean`
|
|
1118
1120
|
- `enableCanvasSelectionAnimation?: boolean`
|
|
1121
|
+
- `allowFreezeInReadOnly?: boolean`
|
|
1122
|
+
- `allowHideInReadOnly?: boolean`
|
|
1119
1123
|
- `allowResizeInReadOnly?: boolean`
|
|
1120
1124
|
- `highlightedRanges?: string | readonly string[] | null`
|
|
1121
1125
|
- `autoScrollToHighlightedRanges?: boolean`
|