@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/dist/xlsx-worker.js
CHANGED
|
@@ -7495,6 +7495,18 @@ function buildSheetList(nextWorkbook, themePalette, structureAssets, sheetLayout
|
|
|
7495
7495
|
};
|
|
7496
7496
|
const hiddenRows = Array.from(worksheet.hiddenRows);
|
|
7497
7497
|
const hiddenCols = Array.from(worksheet.hiddenColumns);
|
|
7498
|
+
const rowHeightOverridesPx = sheetState?.rowHeightOverridesPx ?? {};
|
|
7499
|
+
const colWidthOverridesPx = sheetState?.colWidthOverridesPx ?? {};
|
|
7500
|
+
if (!sheetState) {
|
|
7501
|
+
for (const row of hiddenRows) {
|
|
7502
|
+
const height = resolveRowHeightPx(row);
|
|
7503
|
+
if (height !== defaultRowHeightPx) rowHeightOverridesPx[row] = height;
|
|
7504
|
+
}
|
|
7505
|
+
for (const col of hiddenCols) {
|
|
7506
|
+
const width = resolveColumnWidthPx(col);
|
|
7507
|
+
if (width !== defaultColWidthPx) colWidthOverridesPx[col] = width;
|
|
7508
|
+
}
|
|
7509
|
+
}
|
|
7498
7510
|
const usedRange = worksheet.usedRange();
|
|
7499
7511
|
if (!usedRange) {
|
|
7500
7512
|
sheetsByWorkbookSheetIndex.push({
|
|
@@ -7503,7 +7515,7 @@ function buildSheetList(nextWorkbook, themePalette, structureAssets, sheetLayout
|
|
|
7503
7515
|
columnWidthCharacterWidthPx: sheetState?.columnWidthCharacterWidthPx,
|
|
7504
7516
|
colCount: 0,
|
|
7505
7517
|
colStyleIds: sheetState?.colStyleIds ?? {},
|
|
7506
|
-
colWidthOverridesPx
|
|
7518
|
+
colWidthOverridesPx,
|
|
7507
7519
|
colWidths: [],
|
|
7508
7520
|
conditionalFormatRules: sheetState?.conditionalFormatRules ?? [],
|
|
7509
7521
|
dataValidations: parseWorksheetDataValidations(worksheet),
|
|
@@ -7526,7 +7538,7 @@ function buildSheetList(nextWorkbook, themePalette, structureAssets, sheetLayout
|
|
|
7526
7538
|
visibility,
|
|
7527
7539
|
namedCellStyleByName: structureAssets?.namedCellStyleByName ?? {},
|
|
7528
7540
|
rowCount: 0,
|
|
7529
|
-
rowHeightOverridesPx
|
|
7541
|
+
rowHeightOverridesPx,
|
|
7530
7542
|
rowHeights: [],
|
|
7531
7543
|
rowStyleIds: sheetState?.rowStyleIds ?? {},
|
|
7532
7544
|
cellStyleIds: sheetState?.cellStyleIds ?? {},
|
|
@@ -7561,7 +7573,7 @@ function buildSheetList(nextWorkbook, themePalette, structureAssets, sheetLayout
|
|
|
7561
7573
|
columnWidthCharacterWidthPx: sheetState?.columnWidthCharacterWidthPx,
|
|
7562
7574
|
colCount: visibleCols.length,
|
|
7563
7575
|
colStyleIds: sheetState?.colStyleIds ?? {},
|
|
7564
|
-
colWidthOverridesPx
|
|
7576
|
+
colWidthOverridesPx,
|
|
7565
7577
|
colWidths: visibleCols.map(resolveColumnWidthPx),
|
|
7566
7578
|
conditionalFormatRules: sheetState?.conditionalFormatRules ?? [],
|
|
7567
7579
|
dataValidations: parseWorksheetDataValidations(worksheet),
|
|
@@ -7584,7 +7596,7 @@ function buildSheetList(nextWorkbook, themePalette, structureAssets, sheetLayout
|
|
|
7584
7596
|
visibility,
|
|
7585
7597
|
namedCellStyleByName: structureAssets?.namedCellStyleByName ?? {},
|
|
7586
7598
|
rowCount: visibleRows.length,
|
|
7587
|
-
rowHeightOverridesPx
|
|
7599
|
+
rowHeightOverridesPx,
|
|
7588
7600
|
rowHeights: visibleRows.map(resolveRowHeightPx),
|
|
7589
7601
|
rowStyleIds: sheetState?.rowStyleIds ?? {},
|
|
7590
7602
|
cellStyleIds: sheetState?.cellStyleIds ?? {},
|