@easyvision/easyvision-ui 1.9.1 → 1.9.3
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 +1 -1
- package/dist/index.cjs +7 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -12
- 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) {
|
|
@@ -1361,22 +1360,15 @@ var EasyVisionMultifilter = forwardRef(function EasyVisionMultifilter2(props, re
|
|
|
1361
1360
|
);
|
|
1362
1361
|
const [clearTick, setClearTick] = useState(0);
|
|
1363
1362
|
const clearAll = useCallback(() => {
|
|
1364
|
-
const seed = {};
|
|
1365
|
-
if (config.searchField?.defaultValue !== void 0) {
|
|
1366
|
-
seed[config.searchField.id] = config.searchField.defaultValue;
|
|
1367
|
-
}
|
|
1368
1363
|
patch({
|
|
1369
|
-
values:
|
|
1370
|
-
activeFields: initialActive
|
|
1371
|
-
const def = config.fields.find((f) => f.id === id2);
|
|
1372
|
-
return def?.pinned;
|
|
1373
|
-
}).concat(config.searchField ? [config.searchField.id] : []),
|
|
1364
|
+
values: initialValues,
|
|
1365
|
+
activeFields: initialActive,
|
|
1374
1366
|
lastConfirmedSnapshotJSON: null
|
|
1375
1367
|
});
|
|
1376
1368
|
if (lastConfirmedSnapshotJSON !== null && resolvedPerformMode !== "live") {
|
|
1377
1369
|
setClearTick((n) => n + 1);
|
|
1378
1370
|
}
|
|
1379
|
-
}, [
|
|
1371
|
+
}, [patch, initialValues, initialActive, lastConfirmedSnapshotJSON, resolvedPerformMode]);
|
|
1380
1372
|
useEffect(() => {
|
|
1381
1373
|
if (clearTick > 0) performAction();
|
|
1382
1374
|
}, [clearTick]);
|
|
@@ -3120,6 +3112,8 @@ function EasyVisionTable(props) {
|
|
|
3120
3112
|
] })
|
|
3121
3113
|
] }) });
|
|
3122
3114
|
}
|
|
3115
|
+
|
|
3116
|
+
// export/buildWorkbook.ts
|
|
3123
3117
|
var HEADER_FILL_ARGB = "FFCCCCCC";
|
|
3124
3118
|
var MIN_COLUMN_WIDTH = 10;
|
|
3125
3119
|
var COLUMN_WIDTH_PADDING = 2;
|
|
@@ -3168,7 +3162,8 @@ async function buildWorkbook(sheets) {
|
|
|
3168
3162
|
(sheet) => sheet.rows.length > 0 && sheet.columns.length > 0
|
|
3169
3163
|
);
|
|
3170
3164
|
if (usable.length === 0) return null;
|
|
3171
|
-
const
|
|
3165
|
+
const { default: Excel } = await import('exceljs');
|
|
3166
|
+
const workbook = new Excel.Workbook();
|
|
3172
3167
|
const takenNames = /* @__PURE__ */ new Set();
|
|
3173
3168
|
for (const sheet of usable) {
|
|
3174
3169
|
const worksheet = workbook.addWorksheet(uniqueSheetName(sheet.name, takenNames));
|