@fileverse-dev/dsheet 4.0.1-ref → 4.0.2-a
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/sidebar/use-right-panels.d.ts +1 -1
- package/dist/{executeStringFunction-CCpEDh3D.js → executeStringFunction-BQvE7aeV.js} +6484 -6985
- package/dist/formula.js +1 -1
- package/dist/{index-Sxwr9Syr.js → index-Bw9u774w.js} +13833 -14373
- package/dist/index.es.js +14 -14
- package/dist/sheet-engine/core/context.d.ts +1 -3
- package/dist/sheet-engine/core/index.d.ts +2 -2
- package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +0 -11
- package/dist/sheet-engine/core/modules/formula.d.ts +0 -27
- package/dist/sheet-engine/core/modules/index.d.ts +2 -3
- package/dist/sheet-engine/core/settings.d.ts +0 -2
- package/dist/sheet-engine/core/types.d.ts +0 -17
- package/dist/style.css +1 -1
- package/dist/use-xlsx-import-impl-KgnUKKnW.js +1572 -0
- package/dist/xlsx-export-impl-BXPAAWnu.js +3138 -0
- package/package.json +1 -1
- package/dist/editor/components/sidebars/named-ranges.d.ts +0 -2
- package/dist/editor/utils/defined-names-ydoc.d.ts +0 -31
- package/dist/editor/utils/xlsx-defined-names.d.ts +0 -41
- package/dist/jszip.min-DHgf03FP.js +0 -2319
- package/dist/sheet-engine/core/modules/namedRanges.d.ts +0 -53
- package/dist/sheet-engine/react/components/NamedRanges/index.d.ts +0 -4
- package/dist/use-xlsx-import-impl-DV7gsVeb.js +0 -1613
- package/dist/xlsx-defined-names-_KUWFAe9.js +0 -117
- package/dist/xlsx-export-impl-BCGdJj_E.js +0 -830
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as s, a as t, b as o, S as r, d as l, i as d, e as n, T as i, f as S, g as c, h, j as m, k as p, l as C, n as u, o as E, p as
|
|
2
|
-
import {
|
|
1
|
+
import { C as s, a as t, b as o, S as r, d as l, i as d, e as n, T as i, f as S, g as c, h, j as m, k as p, l as C, n as u, o as E, p as F, q as g, s as x, t as R, u as f, v as w, w as A, x as I, z as L, A as T, B as v, D as b, E as D } from "./index-Bw9u774w.js";
|
|
2
|
+
import { cr as k, cs as V, ct as y, cy as z, bo as P, e as U, f as X, l as _, a as B, d7 as O, d8 as j, b7 as G, d9 as H, da as q, de as J, df as K, dh as N, I as W, dw as Y, dW as Z, b0 as Q } from "./executeStringFunction-BQvE7aeV.js";
|
|
3
3
|
import { FLVURL as ee } from "@fileverse-dev/formulajs";
|
|
4
4
|
import { E as se, S as te } from "./constants-Cdz6oSCq.js";
|
|
5
5
|
export {
|
|
@@ -28,18 +28,18 @@ export {
|
|
|
28
28
|
_ as getFlowdata,
|
|
29
29
|
p as getRemoveDuplicatesErrorMessage,
|
|
30
30
|
C as getRemoveDuplicatesPreview,
|
|
31
|
-
|
|
31
|
+
B as getSheetIndex,
|
|
32
32
|
u as handleCSVUpload,
|
|
33
33
|
E as handleCopy,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
F as handleExportToCSV,
|
|
35
|
+
g as handleExportToJSON,
|
|
36
36
|
x as handleExportToXLSX,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
O as handleFreeze,
|
|
38
|
+
j as handleHorizontalAlign,
|
|
39
|
+
G as handleLink,
|
|
40
|
+
H as handleMerge,
|
|
41
41
|
R as handlePasteByClick,
|
|
42
|
-
|
|
42
|
+
q as handleSort,
|
|
43
43
|
J as handleTextSize,
|
|
44
44
|
K as handleVerticalAlign,
|
|
45
45
|
f as importSpreadsheetFile,
|
|
@@ -47,13 +47,13 @@ export {
|
|
|
47
47
|
w as isBrowserZoomShortcut,
|
|
48
48
|
A as isFormulaListShortcut,
|
|
49
49
|
I as isOpenShortcutsModalShortcut,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
W as jfrefreshgrid,
|
|
51
|
+
Y as loadLocale,
|
|
52
52
|
L as removeActiveImage,
|
|
53
53
|
T as removeDuplicates,
|
|
54
54
|
v as showImgChooser,
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
Z as toolbarItemClickHandler,
|
|
56
|
+
Q as updateFormat,
|
|
57
57
|
b as useEnsStatus,
|
|
58
58
|
D as useXLSXImport
|
|
59
59
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SheetConfig, Sheet, Selection, Cell, CommentBox, Rect, Image, Presence, LinkCardProps, FilterOptions, RangeDialogProps, DataRegulationProps, ConditionRulesProps, GlobalCache, CellError
|
|
1
|
+
import { SheetConfig, Sheet, Selection, Cell, CommentBox, Rect, Image, Presence, LinkCardProps, FilterOptions, RangeDialogProps, DataRegulationProps, ConditionRulesProps, GlobalCache, CellError } from './types';
|
|
2
2
|
import { FormulaCache } from './modules';
|
|
3
3
|
import { FormulaAsyncEvalJob } from './modules/formula-async-eval';
|
|
4
4
|
import { DateBaseLocale, Hooks } from './settings';
|
|
@@ -116,8 +116,6 @@ export type Context = {
|
|
|
116
116
|
currentSheetId: string;
|
|
117
117
|
calculateSheetId: string;
|
|
118
118
|
config: SheetConfig;
|
|
119
|
-
/** Workbook-level named ranges (synced via Yjs `${dsheetId}:definedNames`). */
|
|
120
|
-
definedNames: DefinedName[];
|
|
121
119
|
visibledatarow: number[];
|
|
122
120
|
visibledatacolumn: number[];
|
|
123
121
|
ch_width: number;
|
|
@@ -7,11 +7,11 @@ export { defaultSettings } from './settings';
|
|
|
7
7
|
export type { Settings, Hooks, DateBaseLocale } from './settings';
|
|
8
8
|
export { handleCopy, handleGlobalKeyDown, handlePaste, handlePasteByClick, fixPositionOnFrozenCells, handleCellAreaMouseDown, handleCellAreaDoubleClick, handleContextMenu, mouseRender, handleOverlayMouseMove, handleOverlayMouseUp, handleRowHeaderMouseDown, handleColumnHeaderMouseDown, handleColSizeHandleMouseDown, handleColSizeHandleDoubleClick, handleRowSizeHandleMouseDown, handleColFreezeHandleMouseDown, handleRowFreezeHandleMouseDown, describeMatchedShortcut, isBrowserZoomShortcut, isOpenShortcutsModalShortcut, isFormulaListShortcut, } from './events';
|
|
9
9
|
export * from './locale';
|
|
10
|
-
export { getBorderInfoComputeRange, getBorderInfoCompute, normalizedCellAttr, normalizedAttr, getCellValue, setCellValue, getRealCellValue, mergeBorder, cancelNormalSelected, updateCell, getRangetxt, getRangeByTxt, isValidRangeText, getInlineStringHTML, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, getStyleByCell, clearSelectedCellFormat, clearRowsCellsFormat, clearColumnsCellsFormat, clipboard, moveToEnd, getRangeRectsByCharacterOffset, getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, buildFiatCurrencyFormat, quoteSsfLiteral, FormulaCache, groupValuesRefresh, execFunctionGroup, runFormulaEvalChunk, applyWorkerFormulaChunkResults, isFormulaEvalPending, FORMULA_ASYNC_CHUNK_SIZE, FORMULA_ASYNC_EVAL_THRESHOLD, FORMULA_WORKER_CHUNK_SIZE, FORMULA_WORKER_THRESHOLD, setCaretPosition, getrangeseleciton, getFormulaEditorOwner, rangeHightlightselected, handleFormulaInput, israngeseleciton, createRangeHightlight, maybeRecoverDirtyRangeSelection, getFormulaRangeIndexAtCaret, isCaretAtValidFormulaRangeInsertionPoint, isLegacyFormulaRangeMode, markRangeSelectionDirty, setFormulaEditorOwner, functionHTMLGenerate, suppressFormulaRangeSelectionForInitialEdit,
|
|
10
|
+
export { getBorderInfoComputeRange, getBorderInfoCompute, normalizedCellAttr, normalizedAttr, getCellValue, setCellValue, getRealCellValue, mergeBorder, cancelNormalSelected, updateCell, getRangetxt, getRangeByTxt, isValidRangeText, getInlineStringHTML, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, getStyleByCell, clearSelectedCellFormat, clearRowsCellsFormat, clearColumnsCellsFormat, clipboard, moveToEnd, getRangeRectsByCharacterOffset, getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, buildFiatCurrencyFormat, quoteSsfLiteral, FormulaCache, groupValuesRefresh, execFunctionGroup, runFormulaEvalChunk, applyWorkerFormulaChunkResults, isFormulaEvalPending, FORMULA_ASYNC_CHUNK_SIZE, FORMULA_ASYNC_EVAL_THRESHOLD, FORMULA_WORKER_CHUNK_SIZE, FORMULA_WORKER_THRESHOLD, setCaretPosition, getrangeseleciton, getFormulaEditorOwner, rangeHightlightselected, handleFormulaInput, israngeseleciton, createRangeHightlight, maybeRecoverDirtyRangeSelection, getFormulaRangeIndexAtCaret, isCaretAtValidFormulaRangeInsertionPoint, isLegacyFormulaRangeMode, markRangeSelectionDirty, setFormulaEditorOwner, functionHTMLGenerate, suppressFormulaRangeSelectionForInitialEdit, rangeSetValue, getFormulaRangeIndexForKeyboardSync, createFormulaRangeSelect, isFormulaReferenceInputMode, seedFormulaFuncSelectedRangeFromLastSelection, initFreeze, isInlineStringCell, getInlineStringNoStyle, rowLocation, rowLocationByIndex, colLocation, colLocationByIndex, insertRowCol, deleteRowCol, hideSelected, showSelected, isShowHidenCR, getFilterHiddenRowsUnionFromFilterMap, getFilterHiddenRowsUnion, ensureManualHiddenInitialized, rebuildRowHiddenUnion, scrollToHighlightCell, selectTitlesMap, selectTitlesRange, defaultLuckysheetSelectRanges, normalizeSelection, syncPrimaryCellActiveFromSelection, selectionIsExactlyOneMergeBlock, setPrimaryCellActive, advancePrimaryCellInLastMultiSelection, snapSheetSelectionFocusToCellPreserveMultiRange, moveHighlightCell, deleteSelectedCellText, selectAll, fixRowStyleOverflowInFreeze, fixColumnStyleOverflowInFreeze, calcSelectionInfo, addSheet, deleteSheet, editSheetName, changeSheet, updateFormat, autoSelectionFormula, handleBold, handleItalic, handleStrikeThrough, handleUnderline, handleHorizontalAlign, handleVerticalAlign, handleTextColor, handleTextBackground, handleBorder, handleMerge, mergeSelectionHasValues, handleSort, getRemoveDuplicatesPreview, removeDuplicates, getRemoveDuplicatesErrorMessage, handleFreeze, handleTextSize, handleSum, handleLink, captureLinkEditorOpenSnapshot, isHyperlinkCreationBlocked, toolbarItemClickHandler, toolbarItemSelectedFunc, handleScreenShot, insertImage, showImgChooser, drawArrow, setEditingComment, removeEditingComment, removeOverShowComment, newComment, editComment, deleteComment, showComments, showHideComment, showHideAllComments, onCommentBoxMoveStart, removeActiveImage, copyActiveImage, cutActiveImage, pasteImageItem, loadImageFromFile, getImageClipboard, getImageCutSourceId, cancelActiveImgItem, onImageMoveStart, onImageResizeStart, createDropCellRange, sortSelection, sortSheetBySelectedColumn, searchAll, searchNext, replace, replaceAll, replaceAllScoped, getSearchIndexArr, getSearchIndexArrAsync, getFindRangeOnCurrentSheet, getQuickSearchIndexArr, getQuickSearchHiddenConfig, getCellHyperlinks, getHyperlinkDisplayTextInCell, getInlineLinkPlainRange, getUniformLinkCoveringPlainRange, getUniformLinkAtPlainOffset, removeHyperlinkForLink, updateHyperlinkForLink, syncLinkCardAfterHyperlinkChange, expandCellRectForMerge, shouldQuickSearchUseAsync, runQuickSearchIndexArrAsync, QUICK_SEARCH_ASYNC_ROW_THRESHOLD, parseRangeText, getCellRowColumn, getCellHyperlink, saveHyperlink, removeHyperlink, showLinkCard, goToLink, isLinkValid, createFilterOptions, clearFilter, clearFilterForColumn, toggleViewerFilter, createFilter, applySheetFilterState, getFilterColumnValues, getFilterColumnColors, orderbydatafiler, saveFilter, onCellsMoveStart, cfSplitRange, updateMoreCell, getRegStr, getDataArr, applyLocation, getOptionValue, getSelectRange, getDropdownList, setDropdownValue, confirmMessage, setConditionRules, CF_DATE_DEFAULT_FORMAT, parseCfDateConditionForUi, formatCfDatePresetSnapshot, parseDdMmYyyyToSerial, handleOverlayTouchStart, handleOverlayTouchEnd, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, jfrefreshgrid, sanitizeDuneUrl, insertDuneChart, onIframeMoveStart, onIframeResizeStart, onIframeMove, onIframeMoveEnd, onIframeResize, onIframeResizeEnd, setCellError, clearCellError, detectDateFormat, isdatatypemulti, diff, isdatetime, isRealNull, isRealNum, isNumericCellType, iscelldata, getcellrange, cancelFunctionrangeSelected, seletedHighlistByindex, spillSortResult, execfunction, insertUpdateFunctionGroup, remapFormulaReferencesByMap, checkCF, getComputeMap, cancelPaintModel, hideCRCount, getdatabyselection, } from './modules';
|
|
11
11
|
export type { FilterDate, FilterValue, FilterColor } from './modules';
|
|
12
12
|
export { getFreezeState, toggleFreeze, indexToColumnChar, escapeScriptTag, escapeHTMLTag, getSheetIndex, replaceHtml, isAllowEdit, isAllowEditReadOnly, filterPatch, patchToOp, opToPatch, inverseRowColOptions, } from './utils';
|
|
13
13
|
export type { PatchOptions, ChangedSheet } from './utils';
|
|
14
|
-
export type { Op, Cell, CellWithRowAndCol, CellMatrix, HyperlinkEntry, Selection, Presence, Sheet, GlobalCache, SingleRange, Range, SearchResult, LinkCardProps, LiveQueryData, Freezen,
|
|
14
|
+
export type { Op, Cell, CellWithRowAndCol, CellMatrix, HyperlinkEntry, Selection, Presence, Sheet, GlobalCache, SingleRange, Range, SearchResult, LinkCardProps, LiveQueryData, Freezen, } from './types';
|
|
15
15
|
export type { RemoveDuplicatesColumnOption, RemoveDuplicatesError, RemoveDuplicatesOptions, RemoveDuplicatesPreview, RemoveDuplicatesResult, } from './modules';
|
|
16
16
|
export type { CheckModes, HyperlinkMap, FindSearchScope, ReplaceScope, SearchHiddenConfig, SearchNextResult, ReplaceAllResult, } from './modules/searchReplace';
|
|
17
17
|
export { cellFadeAnimator, markCellChanged } from './animate';
|
|
@@ -28,17 +28,6 @@ export type SnapshotEvalInput = {
|
|
|
28
28
|
f: unknown;
|
|
29
29
|
}>;
|
|
30
30
|
formulas: SnapshotFormulaCell[];
|
|
31
|
-
/** Workbook-level named ranges for VARIABLE resolution. */
|
|
32
|
-
definedNames?: Array<{
|
|
33
|
-
name: string;
|
|
34
|
-
sheetId: string;
|
|
35
|
-
range: {
|
|
36
|
-
row: [number, number];
|
|
37
|
-
column: [number, number];
|
|
38
|
-
};
|
|
39
|
-
scope?: 'workbook' | 'sheet';
|
|
40
|
-
localSheetId?: string;
|
|
41
|
-
}>;
|
|
42
31
|
};
|
|
43
32
|
export type SnapshotEvalOutput = {
|
|
44
33
|
execFunctionGlobalData: Record<string, {
|
|
@@ -31,11 +31,6 @@ export declare class FormulaCache {
|
|
|
31
31
|
/** True after arrow/Shift+arrow moved `func_selectedrange` without updating yellow selection. */
|
|
32
32
|
formulaKeyboardRefSync?: boolean;
|
|
33
33
|
formulaEditorOwner?: 'cell' | 'fx' | null;
|
|
34
|
-
/**
|
|
35
|
-
* Set when switching sheets while a formula edit stays open so InputBox/Fx
|
|
36
|
-
* can restore focus/caret for continued keyboard ref picking.
|
|
37
|
-
*/
|
|
38
|
-
refocusFormulaEditorAfterSheetSwitch?: boolean;
|
|
39
34
|
functionRangeIndex?: number[];
|
|
40
35
|
functionRangeGlobalOffset?: number | null;
|
|
41
36
|
functionlistMap: any;
|
|
@@ -85,11 +80,6 @@ export declare function groupValuesRefresh(ctx: Context): void;
|
|
|
85
80
|
export declare function applyWorkerFormulaChunkResults(ctx: Context, output: SnapshotEvalOutput, impactedByCircular: Set<string>, cycleNodes: Set<string>, calcChainKeys?: string[], data?: CellMatrix | null): void;
|
|
86
81
|
/** Run up to `chunkSize` formulas from an async job. Returns true when job is complete. */
|
|
87
82
|
export declare function runFormulaEvalChunk(ctx: Context, job: FormulaAsyncEvalJob, chunkSize?: number): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Re-evaluate formula cells that reference the given defined names
|
|
90
|
-
* (e.g. after a named range was edited, shifted, or deleted).
|
|
91
|
-
*/
|
|
92
|
-
export declare function refreshFormulasUsingDefinedNames(ctx: Context, names: string[]): void;
|
|
93
83
|
export declare function execFunctionGroup(ctx: Context, origin_r: number, origin_c: number, value: any, id?: string, data?: any, isForce?: boolean): void;
|
|
94
84
|
/**
|
|
95
85
|
* Before the first `moveHighlightCell/Range(..., "rangeOfFormula")` while editing
|
|
@@ -112,23 +102,6 @@ export declare function getLastFormulaRangeIndex($editor: HTMLDivElement): numbe
|
|
|
112
102
|
export declare function getFormulaRangeIndexAtCaret($editor: HTMLDivElement): number | null;
|
|
113
103
|
export declare function setFormulaEditorOwner(ctx: Context, owner: 'cell' | 'fx' | null): void;
|
|
114
104
|
export declare function getFormulaEditorOwner(ctx: Context): 'cell' | 'fx' | null;
|
|
115
|
-
/**
|
|
116
|
-
* Record the sheet where the formula edit started so cross-sheet picks can emit
|
|
117
|
-
* `SheetName!A1` via `rangeSetValue` / `getRangetxt`.
|
|
118
|
-
*/
|
|
119
|
-
export declare function ensureFormulaRangeToSheet(ctx: Context): void;
|
|
120
|
-
/** True while an in-cell / fx formula edit should survive sheet-tab switches. */
|
|
121
|
-
export declare function shouldPreserveFormulaEditOnSheetSwitch(ctx: Context): boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Activate another sheet from tab click or Alt/Option+Arrow navigation.
|
|
124
|
-
* Returns whether the sheet changed and whether formula edit was preserved.
|
|
125
|
-
*/
|
|
126
|
-
export declare function activateSheetForNavigation(ctx: Context, targetSheetId: string): 'preserved-formula' | 'cancel-edit' | false;
|
|
127
|
-
/**
|
|
128
|
-
* Switch back to the formula's origin sheet (and restore its scroll/selection)
|
|
129
|
-
* before commit or cancel. Returns true when a switch happened.
|
|
130
|
-
*/
|
|
131
|
-
export declare function returnToFormulaOriginSheet(ctx: Context): boolean;
|
|
132
105
|
/**
|
|
133
106
|
* True when the formula text looks like a truncated A1-style range: LHS has a row
|
|
134
107
|
* number but RHS after ":" is only column letters (e.g. =A1:A after deleting the
|
|
@@ -4,7 +4,7 @@ export { default as clipboard } from './clipboard';
|
|
|
4
4
|
export { moveToEnd, getRangeRectsByCharacterOffset } from './cursor';
|
|
5
5
|
export { getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, } from './date-base-locale';
|
|
6
6
|
export { update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, buildFiatCurrencyFormat, quoteSsfLiteral, } from './format';
|
|
7
|
-
export { FormulaCache, groupValuesRefresh, setCaretPosition, getrangeseleciton, getFormulaEditorOwner, rangeHightlightselected, handleFormulaInput, israngeseleciton, createRangeHightlight, createFormulaRangeSelect, maybeRecoverDirtyRangeSelection, delFunctionGroup, functionHTMLGenerate, onFormulaRangeDragEnd, rangeDrag, rangeSetValue, remapFormulaReferencesByMap, getFormulaRangeIndexAtCaret, isCaretAtValidFormulaRangeInsertionPoint, isLegacyFormulaRangeMode, markRangeSelectionDirty, getFormulaRangeIndexForKeyboardSync, isFormulaReferenceInputMode, seedFormulaFuncSelectedRangeFromLastSelection, functionStrChange, setFormulaEditorOwner, getAllFunctionGroup, suppressFormulaRangeSelectionForInitialEdit,
|
|
7
|
+
export { FormulaCache, groupValuesRefresh, setCaretPosition, getrangeseleciton, getFormulaEditorOwner, rangeHightlightselected, handleFormulaInput, israngeseleciton, createRangeHightlight, createFormulaRangeSelect, maybeRecoverDirtyRangeSelection, delFunctionGroup, functionHTMLGenerate, onFormulaRangeDragEnd, rangeDrag, rangeSetValue, remapFormulaReferencesByMap, getFormulaRangeIndexAtCaret, isCaretAtValidFormulaRangeInsertionPoint, isLegacyFormulaRangeMode, markRangeSelectionDirty, getFormulaRangeIndexForKeyboardSync, isFormulaReferenceInputMode, seedFormulaFuncSelectedRangeFromLastSelection, functionStrChange, setFormulaEditorOwner, getAllFunctionGroup, suppressFormulaRangeSelectionForInitialEdit, } from './formula';
|
|
8
8
|
export { FORMULA_ASYNC_CHUNK_SIZE, FORMULA_ASYNC_EVAL_THRESHOLD, FORMULA_WORKER_CHUNK_SIZE, FORMULA_WORKER_THRESHOLD, isFormulaEvalPending, } from './formula-async-eval';
|
|
9
9
|
export type { FormulaAsyncEvalJob } from './formula-async-eval';
|
|
10
10
|
export { initFreeze } from './freeze';
|
|
@@ -42,7 +42,6 @@ export { sanitizeDuneUrl, insertDuneChart, onIframeMoveStart, onIframeResizeStar
|
|
|
42
42
|
export { setCellError, clearCellError, overShowError, } from './error-state-helpers';
|
|
43
43
|
export { checkCellIsLocked } from './protection';
|
|
44
44
|
export { detectDateFormat, isdatatypemulti, diff, isdatetime, isRealNull, isRealNum, isNumericCellType, } from './validation';
|
|
45
|
-
export { iscelldata, getcellrange, execfunction, execFunctionGroup,
|
|
45
|
+
export { iscelldata, getcellrange, execfunction, execFunctionGroup, runFormulaEvalChunk, applyWorkerFormulaChunkResults, insertUpdateFunctionGroup, functionCopy, } from './formula';
|
|
46
46
|
export { checkCF, getComputeMap } from './ConditionFormat';
|
|
47
|
-
export { isValidDefinedNameIdentifier, getDefinedNameDisplayRange, findDefinedNameForSelection, findDefinedNameByName, resolveDefinedNameForFormula, addDefinedName, updateDefinedName, deleteDefinedName, selectDefinedName, openNamedRangesSidebar, scheduleDefinedNamesSync, shiftDefinedNamesOnInsert, shiftDefinedNamesOnDelete, removeDefinedNamesForSheet, } from './namedRanges';
|
|
48
47
|
export { getdatabyselection, getQKBorder } from './cell';
|
|
@@ -22,8 +22,6 @@ export type Hooks = {
|
|
|
22
22
|
filterChange?: () => void;
|
|
23
23
|
cellDataChange?: () => void;
|
|
24
24
|
hyperlinkChange?: () => void;
|
|
25
|
-
/** Workbook-level named ranges (definedNames) changed — sync to Yjs. */
|
|
26
|
-
definedNamesChange?: () => void;
|
|
27
25
|
updateCellYdoc?: (changes: SheetChangePath[]) => void;
|
|
28
26
|
updateAllCell?: (sheetId: string, caller?: string) => void;
|
|
29
27
|
beforeUpdateCell?: (r: number, c: number, value: any) => boolean;
|
|
@@ -147,23 +147,6 @@ export type SheetConfig = {
|
|
|
147
147
|
rowReadOnly?: Record<number, number>;
|
|
148
148
|
colReadOnly?: Record<number, number>;
|
|
149
149
|
};
|
|
150
|
-
/**
|
|
151
|
-
* Workbook-level named range (Google Sheets / Excel definedNames).
|
|
152
|
-
* Runtime list lives on Context; persisted in Yjs as `${dsheetId}:definedNames`.
|
|
153
|
-
*/
|
|
154
|
-
export type DefinedName = {
|
|
155
|
-
id: string;
|
|
156
|
-
name: string;
|
|
157
|
-
sheetId: string;
|
|
158
|
-
range: {
|
|
159
|
-
row: [number, number];
|
|
160
|
-
column: [number, number];
|
|
161
|
-
};
|
|
162
|
-
scope: 'workbook' | 'sheet';
|
|
163
|
-
/** When scope === 'sheet', which sheet owns the name. */
|
|
164
|
-
localSheetId?: string;
|
|
165
|
-
comment?: string;
|
|
166
|
-
};
|
|
167
150
|
export type Image = {
|
|
168
151
|
id: string;
|
|
169
152
|
width: number;
|