@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.cjs
CHANGED
|
@@ -20,9 +20,6 @@ var locale = require('date-fns/locale');
|
|
|
20
20
|
var reactDayPicker = require('react-day-picker');
|
|
21
21
|
var reactTable = require('@tanstack/react-table');
|
|
22
22
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
23
|
-
var ExcelJS = require('exceljs');
|
|
24
|
-
|
|
25
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
23
|
|
|
27
24
|
function _interopNamespace(e) {
|
|
28
25
|
if (e && e.__esModule) return e;
|
|
@@ -47,7 +44,6 @@ var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive)
|
|
|
47
44
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
48
45
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
49
46
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
50
|
-
var ExcelJS__default = /*#__PURE__*/_interopDefault(ExcelJS);
|
|
51
47
|
|
|
52
48
|
// index.ts
|
|
53
49
|
function cn(...inputs) {
|
|
@@ -3148,6 +3144,8 @@ function EasyVisionTable(props) {
|
|
|
3148
3144
|
] })
|
|
3149
3145
|
] }) });
|
|
3150
3146
|
}
|
|
3147
|
+
|
|
3148
|
+
// export/buildWorkbook.ts
|
|
3151
3149
|
var HEADER_FILL_ARGB = "FFCCCCCC";
|
|
3152
3150
|
var MIN_COLUMN_WIDTH = 10;
|
|
3153
3151
|
var COLUMN_WIDTH_PADDING = 2;
|
|
@@ -3196,7 +3194,8 @@ async function buildWorkbook(sheets) {
|
|
|
3196
3194
|
(sheet) => sheet.rows.length > 0 && sheet.columns.length > 0
|
|
3197
3195
|
);
|
|
3198
3196
|
if (usable.length === 0) return null;
|
|
3199
|
-
const
|
|
3197
|
+
const { default: Excel } = await import('exceljs');
|
|
3198
|
+
const workbook = new Excel.Workbook();
|
|
3200
3199
|
const takenNames = /* @__PURE__ */ new Set();
|
|
3201
3200
|
for (const sheet of usable) {
|
|
3202
3201
|
const worksheet = workbook.addWorksheet(uniqueSheetName(sheet.name, takenNames));
|