@fileverse-dev/dsheet 2.0.0-text → 2.0.1-search-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/dist/editor/components/import-button-ui.d.ts +1 -1
- package/dist/editor/open-find-and-replace.d.ts +11 -0
- package/dist/editor/utils/csv-import.d.ts +1 -1
- package/dist/editor/utils/custom-toolbar-item.d.ts +1 -1
- package/dist/editor/utils/export-filename.d.ts +1 -0
- package/dist/{es-DqFXH9BK.js → es-BJ3y6kL2.js} +29 -4
- package/dist/{hi-cBN4FoX2.js → hi-BLJfbm0w.js} +29 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +22196 -20665
- package/dist/sheet-engine/core/api/cell.d.ts +1 -1
- package/dist/sheet-engine/core/context.d.ts +36 -0
- package/dist/sheet-engine/core/events/mouse.d.ts +1 -1
- package/dist/sheet-engine/core/index.d.ts +2 -1
- package/dist/sheet-engine/core/locale/en.d.ts +25 -0
- package/dist/sheet-engine/core/locale/es.d.ts +25 -0
- package/dist/sheet-engine/core/locale/hi.d.ts +25 -0
- package/dist/sheet-engine/core/locale/zh.d.ts +25 -0
- package/dist/sheet-engine/core/locale/zh_tw.d.ts +25 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +13 -4
- package/dist/sheet-engine/core/modules/index.d.ts +4 -3
- package/dist/sheet-engine/core/modules/inline-string.d.ts +6 -6
- package/dist/sheet-engine/core/modules/rowcol.d.ts +3 -3
- package/dist/sheet-engine/core/modules/searchReplace.d.ts +118 -26
- package/dist/sheet-engine/core/modules/selection.d.ts +12 -6
- package/dist/sheet-engine/core/types.d.ts +4 -2
- package/dist/sheet-engine/react/components/QuickSearch/index.d.ts +4 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +6 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +4 -0
- package/dist/sheet-engine/react/hooks/useFormulaEditorHistory.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{zh-UJov73Dl.js → zh-DNw41bZD.js} +29 -4
- package/dist/{zh_tw-DTGOcDTq.js → zh_tw-MZjDyZzy.js} +29 -4
- package/package.json +2 -2
|
@@ -6,6 +6,8 @@ import { useDialog } from '../../hooks/useDialog';
|
|
|
6
6
|
export declare function generateAPIs(context: Context, setContext: (recipe: (ctx: Context) => void, options?: SetContextOptions) => void, handleUndo: () => void, handleRedo: () => void, settings: Required<Settings>, cellInput: HTMLDivElement | null, scrollbarX: HTMLDivElement | null, scrollbarY: HTMLDivElement | null, globalCache: GlobalCache | null, refs: any): {
|
|
7
7
|
applyOp: (ops: Op[]) => void;
|
|
8
8
|
getCryptoPrice: typeof getCryptoPrice;
|
|
9
|
+
/** Runs the formula engine on every cell in calcChain (all sheets). Use after XLSX import so values are computed, not cached from the file. */
|
|
10
|
+
recalculateAllFormulas: () => void;
|
|
9
11
|
getCellValue: (row: number, column: number, options?: api.CommonOptions & {
|
|
10
12
|
type?: keyof Cell;
|
|
11
13
|
}) => any;
|
|
@@ -155,4 +157,8 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
155
157
|
getConditionalFormatComponent: () => import('react').FC<{
|
|
156
158
|
context?: any;
|
|
157
159
|
}>;
|
|
160
|
+
/** Opens the Find and Replace dialog (same UI as Ctrl+H / context menu). */
|
|
161
|
+
openFindAndReplace: (options?: {
|
|
162
|
+
prefill?: string;
|
|
163
|
+
}) => void;
|
|
158
164
|
};
|
|
@@ -12,6 +12,7 @@ type AdditionalProps = {
|
|
|
12
12
|
declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
|
|
13
13
|
applyOp: (ops: Op[]) => void;
|
|
14
14
|
getCryptoPrice: typeof getCryptoPrice;
|
|
15
|
+
recalculateAllFormulas: () => void;
|
|
15
16
|
getCellValue: (row: number, column: number, options?: api.CommonOptions & {
|
|
16
17
|
type?: keyof import('../../../core').Cell;
|
|
17
18
|
}) => any;
|
|
@@ -161,5 +162,8 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
161
162
|
getConditionalFormatComponent: () => React.FC<{
|
|
162
163
|
context?: any;
|
|
163
164
|
}>;
|
|
165
|
+
openFindAndReplace: (options?: {
|
|
166
|
+
prefill?: string;
|
|
167
|
+
}) => void;
|
|
164
168
|
}>>;
|
|
165
169
|
export default Workbook;
|
|
@@ -7,7 +7,7 @@ export type FormulaHistoryEntry = {
|
|
|
7
7
|
caret: number;
|
|
8
8
|
};
|
|
9
9
|
/** Which editor receives caret placement and drives history snapshots. */
|
|
10
|
-
export type FormulaEditorHistoryPrimary =
|
|
10
|
+
export type FormulaEditorHistoryPrimary = 'cell' | 'fx';
|
|
11
11
|
type SetContext = (recipe: (ctx: Context) => void, options?: SetContextOptions) => void;
|
|
12
12
|
/**
|
|
13
13
|
* Custom undo/redo for the cell overlay and Fx bar — **one code path** for
|