@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/README.md
CHANGED
|
@@ -693,7 +693,7 @@ Override per field with `toCondition: (value) => unknown` (return either a primi
|
|
|
693
693
|
| `onPerform` | `(snap) => void` | — | Fires when perform commits — from Buscar, `performOnMount`, the imperative `perform()` ref, or (live mode) any value/field change after the debounce. Dispatched on a microtask so calling `setState` inside is safe. |
|
|
694
694
|
| `onChange` | `(snap) => void` | — | Every change (per keystroke / option toggle). |
|
|
695
695
|
| `onStateChange` | `(snap) => void` | — | Same as `onChange`; provided for API symmetry. |
|
|
696
|
-
| `showClearAll` | `boolean` | `editable` |
|
|
696
|
+
| `showClearAll` | `boolean` | `editable` | Resets values & active fields to their initial state (`defaultValue`s and `pinned`/`initiallyActive` fields). |
|
|
697
697
|
| `labels` | `Partial<MultifilterLabels>` | Spanish defaults | |
|
|
698
698
|
| `className`, `persist`, `clearWhen` | as in Input/Selector | | |
|
|
699
699
|
|
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) {
|
|
@@ -1389,22 +1385,15 @@ var EasyVisionMultifilter = React9.forwardRef(function EasyVisionMultifilter2(pr
|
|
|
1389
1385
|
);
|
|
1390
1386
|
const [clearTick, setClearTick] = React9.useState(0);
|
|
1391
1387
|
const clearAll = React9.useCallback(() => {
|
|
1392
|
-
const seed = {};
|
|
1393
|
-
if (config.searchField?.defaultValue !== void 0) {
|
|
1394
|
-
seed[config.searchField.id] = config.searchField.defaultValue;
|
|
1395
|
-
}
|
|
1396
1388
|
patch({
|
|
1397
|
-
values:
|
|
1398
|
-
activeFields: initialActive
|
|
1399
|
-
const def = config.fields.find((f) => f.id === id2);
|
|
1400
|
-
return def?.pinned;
|
|
1401
|
-
}).concat(config.searchField ? [config.searchField.id] : []),
|
|
1389
|
+
values: initialValues,
|
|
1390
|
+
activeFields: initialActive,
|
|
1402
1391
|
lastConfirmedSnapshotJSON: null
|
|
1403
1392
|
});
|
|
1404
1393
|
if (lastConfirmedSnapshotJSON !== null && resolvedPerformMode !== "live") {
|
|
1405
1394
|
setClearTick((n) => n + 1);
|
|
1406
1395
|
}
|
|
1407
|
-
}, [
|
|
1396
|
+
}, [patch, initialValues, initialActive, lastConfirmedSnapshotJSON, resolvedPerformMode]);
|
|
1408
1397
|
React9.useEffect(() => {
|
|
1409
1398
|
if (clearTick > 0) performAction();
|
|
1410
1399
|
}, [clearTick]);
|
|
@@ -3148,6 +3137,8 @@ function EasyVisionTable(props) {
|
|
|
3148
3137
|
] })
|
|
3149
3138
|
] }) });
|
|
3150
3139
|
}
|
|
3140
|
+
|
|
3141
|
+
// export/buildWorkbook.ts
|
|
3151
3142
|
var HEADER_FILL_ARGB = "FFCCCCCC";
|
|
3152
3143
|
var MIN_COLUMN_WIDTH = 10;
|
|
3153
3144
|
var COLUMN_WIDTH_PADDING = 2;
|
|
@@ -3196,7 +3187,8 @@ async function buildWorkbook(sheets) {
|
|
|
3196
3187
|
(sheet) => sheet.rows.length > 0 && sheet.columns.length > 0
|
|
3197
3188
|
);
|
|
3198
3189
|
if (usable.length === 0) return null;
|
|
3199
|
-
const
|
|
3190
|
+
const { default: Excel } = await import('exceljs');
|
|
3191
|
+
const workbook = new Excel.Workbook();
|
|
3200
3192
|
const takenNames = /* @__PURE__ */ new Set();
|
|
3201
3193
|
for (const sheet of usable) {
|
|
3202
3194
|
const worksheet = workbook.addWorksheet(uniqueSheetName(sheet.name, takenNames));
|