@easyvision/easyvision-ui 1.9.1 → 1.9.2
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/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19,7 +19,6 @@ import { es } from 'date-fns/locale';
|
|
|
19
19
|
import { DayPicker } from 'react-day-picker';
|
|
20
20
|
import { useReactTable, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
21
21
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
22
|
-
import ExcelJS from 'exceljs';
|
|
23
22
|
|
|
24
23
|
// index.ts
|
|
25
24
|
function cn(...inputs) {
|
|
@@ -3120,6 +3119,8 @@ function EasyVisionTable(props) {
|
|
|
3120
3119
|
] })
|
|
3121
3120
|
] }) });
|
|
3122
3121
|
}
|
|
3122
|
+
|
|
3123
|
+
// export/buildWorkbook.ts
|
|
3123
3124
|
var HEADER_FILL_ARGB = "FFCCCCCC";
|
|
3124
3125
|
var MIN_COLUMN_WIDTH = 10;
|
|
3125
3126
|
var COLUMN_WIDTH_PADDING = 2;
|
|
@@ -3168,7 +3169,8 @@ async function buildWorkbook(sheets) {
|
|
|
3168
3169
|
(sheet) => sheet.rows.length > 0 && sheet.columns.length > 0
|
|
3169
3170
|
);
|
|
3170
3171
|
if (usable.length === 0) return null;
|
|
3171
|
-
const
|
|
3172
|
+
const { default: Excel } = await import('exceljs');
|
|
3173
|
+
const workbook = new Excel.Workbook();
|
|
3172
3174
|
const takenNames = /* @__PURE__ */ new Set();
|
|
3173
3175
|
for (const sheet of usable) {
|
|
3174
3176
|
const worksheet = workbook.addWorksheet(uniqueSheetName(sheet.name, takenNames));
|