@fileverse-dev/dsheet 2.0.36-rtc-8 → 2.0.36-shortcut
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/{constants-yStXQJiK.js → constants-CnhOvijG.js} +14 -35
- package/dist/constants.d.ts +0 -4
- package/dist/constants.js +3 -6
- package/dist/editor/contexts/editor-context.d.ts +5 -15
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/hooks/use-editor-collaboration.d.ts +9 -0
- package/dist/editor/hooks/use-editor-data.d.ts +1 -2
- package/dist/editor/hooks/use-editor-sync.d.ts +6 -9
- package/dist/editor/types.d.ts +2 -2
- package/dist/editor/utils/after-update-cell.d.ts +0 -12
- package/dist/editor/utils/formula-ui-sync.d.ts +1 -3
- package/dist/{executeStringFunction-F9mb-SpN.js → executeStringFunction-6r6Tl4Z6.js} +4593 -4546
- package/dist/formula.js +1 -1
- package/dist/index-CYIKZDtd.js +40340 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.es.js +35 -36
- package/dist/sheet-engine/core/api/cell.d.ts +0 -21
- package/dist/sheet-engine/core/events/shortcuts-v2.d.ts +7 -0
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/filter.d.ts +0 -13
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/selection.d.ts +7 -0
- package/dist/sheet-engine/core/settings.d.ts +0 -3
- package/dist/sheet-engine/core/types.d.ts +0 -1
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +0 -23
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +0 -15
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-Cu-q8lC5.js → use-xlsx-import-impl-DczoKg4D.js} +2 -2
- package/dist/{xlsx-export-impl-CRw27cg1.js → xlsx-export-impl-BLKOiPKJ.js} +295 -293
- package/package.json +11 -14
- package/dist/editor/components/collab-status-chip.d.ts +0 -8
- package/dist/editor/hooks/use-collab-awareness.d.ts +0 -17
- package/dist/editor/utils/remote-apply-guard.d.ts +0 -19
- package/dist/index-CpskXdSI.js +0 -51878
- package/dist/sync-local/SyncManager.d.ts +0 -67
- package/dist/sync-local/collabStateMachine.d.ts +0 -23
- package/dist/sync-local/crypto/index.d.ts +0 -6
- package/dist/sync-local/index.d.ts +0 -3
- package/dist/sync-local/socketClient.d.ts +0 -68
- package/dist/sync-local/types/index.d.ts +0 -211
- package/dist/sync-local/useSyncManager.d.ts +0 -12
- package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +0 -8
- package/dist/sync-local/utils/objectToFile.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export { default as DSheetEditor } from './editor/dsheet-editor';
|
|
2
|
-
export { default as DSheetSkeleton } from './editor/components/skeleton-loader';
|
|
3
2
|
export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
|
|
4
3
|
export { executeStringFunction } from './editor/utils/executeStringFunction';
|
|
5
4
|
export { FLVURL } from '@fileverse-dev/formulajs';
|
|
6
5
|
export { loadLocale } from './sheet-engine/core';
|
|
7
6
|
export type { ErrorMessageHandlerReturnType } from './editor/types';
|
|
8
7
|
export type { WorkbookInstance } from './sheet-engine/react';
|
|
9
|
-
export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabStatus, CollabError, CollabErrorCode, CollabUser, } from './sync-local/types';
|
|
10
8
|
export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/shared-constants';
|
|
11
9
|
export { TEMPLATES } from '@fileverse-dev/dsheets-templates/template-metadata-list';
|
|
12
10
|
export { handleCSVUpload } from './editor/utils/csv-import';
|
package/dist/index.es.js
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { S as s,
|
|
2
|
-
import {
|
|
3
|
-
import { FLVURL as
|
|
4
|
-
import { E as
|
|
1
|
+
import { S as s, i as l, T as o, a as r, c as t, b as n, h as d, d as S, e as h, f as i, g as c, j as m, k as C, l as p, n as E, o as F, p as x, q as g, r as f, s as R, t as u, u as L, v as T, w as b } from "./index-CYIKZDtd.js";
|
|
2
|
+
import { bO as I, bP as w, bQ as V, bU as k, be as P, e as U, f as X, h as _, a as v, ce as y, aq as z, cl as M } from "./executeStringFunction-6r6Tl4Z6.js";
|
|
3
|
+
import { FLVURL as j } from "@fileverse-dev/formulajs";
|
|
4
|
+
import { E as G, S as H } from "./constants-CnhOvijG.js";
|
|
5
5
|
export {
|
|
6
6
|
s as DSheetEditor,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
t as TEMPLATES,
|
|
7
|
+
G as ERROR_MESSAGES_FLAG,
|
|
8
|
+
j as FLVURL,
|
|
9
|
+
l as FortuneCore,
|
|
10
|
+
H as SERVICES_API_KEY,
|
|
11
|
+
o as TEMPLATES,
|
|
13
12
|
r as api,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
I as clearColumnsCellsFormat,
|
|
14
|
+
t as clearFilter,
|
|
15
|
+
w as clearRowsCellsFormat,
|
|
17
16
|
V as clearSelectedCellFormat,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
n as createFilter,
|
|
18
|
+
k as deleteRowCol,
|
|
19
|
+
P as deleteSelectedCellText,
|
|
20
|
+
U as executeStringFunction,
|
|
21
|
+
X as formulaResponseUiSync,
|
|
22
|
+
_ as getFlowdata,
|
|
24
23
|
v as getSheetIndex,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
d as handleCSVUpload,
|
|
25
|
+
S as handleCopy,
|
|
26
|
+
h as handleExportToCSV,
|
|
27
|
+
i as handleExportToJSON,
|
|
28
|
+
c as handleExportToXLSX,
|
|
29
|
+
m as handleFreeze,
|
|
30
|
+
C as handleHorizontalAlign,
|
|
31
|
+
p as handleLink,
|
|
32
|
+
E as handleMerge,
|
|
34
33
|
F as handlePasteByClick,
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
x as handleSort,
|
|
35
|
+
g as handleTextSize,
|
|
37
36
|
f as handleVerticalAlign,
|
|
38
37
|
y as insertRowCol,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
z as jfrefreshgrid,
|
|
39
|
+
M as loadLocale,
|
|
40
|
+
R as removeActiveImage,
|
|
41
|
+
u as showImgChooser,
|
|
42
|
+
L as toolbarItemClickHandler,
|
|
44
43
|
T as updateFormat,
|
|
45
|
-
|
|
44
|
+
b as useXLSXImport
|
|
46
45
|
};
|
|
@@ -6,27 +6,6 @@ export declare function getCellValue(ctx: Context, row: number, column: number,
|
|
|
6
6
|
type?: keyof Cell;
|
|
7
7
|
}): any;
|
|
8
8
|
export declare function setCellValue(ctx: Context, row: number, column: number, value: any, cellInput: HTMLDivElement | null, options?: CommonOptions, callAfterUpdate?: boolean): void;
|
|
9
|
-
/**
|
|
10
|
-
* Apply a cell value coming from a remote RTC peer, verbatim.
|
|
11
|
-
*
|
|
12
|
-
* This differs from `setCellValue` in two important ways and must be used for
|
|
13
|
-
* every Yjs-driven remote apply:
|
|
14
|
-
*
|
|
15
|
-
* 1. It NEVER runs the formula engine and NEVER fires the local-edit hooks
|
|
16
|
-
* (`onLocalCellEdit` / `afterUpdateCell`). The peer already computed the
|
|
17
|
-
* value, so we use the synced `v`/`m`/`f` as-is. This avoids both
|
|
18
|
-
* recomputation divergence and an update loop back into Yjs.
|
|
19
|
-
*
|
|
20
|
-
* 2. It PRESERVES the formula calc list. The regular `setCellValue` object
|
|
21
|
-
* branch calls `delFunctionGroup`, which removes the cell from `calcChain`
|
|
22
|
-
* and strips its dependency edges. Because `execFunctionGroup` walks
|
|
23
|
-
* `calcChain` to decide what to recompute, dropping a formula cell there
|
|
24
|
-
* permanently breaks its reactivity on that client (even after RTC stops).
|
|
25
|
-
* Here we instead keep formula cells registered via
|
|
26
|
-
* `insertUpdateFunctionGroup`, so they stay reactive to future local edits
|
|
27
|
-
* on both owner and peer.
|
|
28
|
-
*/
|
|
29
|
-
export declare function applyRemoteCellValue(ctx: Context, row: number, column: number, value: any, options?: CommonOptions): void;
|
|
30
9
|
export declare function clearCell(ctx: Context, row: number, column: number, options?: CommonOptions): void;
|
|
31
10
|
export declare function setCellFormat(ctx: Context, row: number, column: number, attr: keyof Cell, value: any, options?: CommonOptions): void;
|
|
32
11
|
export declare function autoFillCell(ctx: Context, copyRange: SingleRange, applyRange: SingleRange, direction: 'up' | 'down' | 'left' | 'right'): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Context } from '../context';
|
|
2
|
+
import { GlobalCache } from '../types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* TEC-2311 shortcuts v2 — returns true when the event was handled.
|
|
6
|
+
*/
|
|
7
|
+
export declare function handleShortcutsV2(ctx: Context, cellInput: HTMLDivElement, e: KeyboardEvent, cache: GlobalCache, canvas?: CanvasRenderingContext2D): boolean;
|
|
@@ -7,7 +7,7 @@ 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, } 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, 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, handleFreeze, handleTextSize, handleSum, handleLink, captureLinkEditorOpenSnapshot, isHyperlinkCreationBlocked, toolbarItemClickHandler, toolbarItemSelectedFunc, handleScreenShot, insertImage, showImgChooser, drawArrow, setEditingComment, removeEditingComment, removeOverShowComment, newComment, editComment, deleteComment, showComments, showHideComment, showHideAllComments, onCommentBoxMoveStart, removeActiveImage, 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,
|
|
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, 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, handleFreeze, handleTextSize, handleSum, handleLink, captureLinkEditorOpenSnapshot, isHyperlinkCreationBlocked, toolbarItemClickHandler, toolbarItemSelectedFunc, handleScreenShot, insertImage, showImgChooser, drawArrow, setEditingComment, removeEditingComment, removeOverShowComment, newComment, editComment, deleteComment, showComments, showHideComment, showHideAllComments, onCommentBoxMoveStart, removeActiveImage, 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, 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, handleKeydownForZoom, 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';
|
|
@@ -46,16 +46,3 @@ export declare function getFilterColumnColors(ctx: Context, col: number, startRo
|
|
|
46
46
|
fcColors: FilterColor[];
|
|
47
47
|
};
|
|
48
48
|
export declare function saveFilter(ctx: Context, optionState: boolean, hiddenRows: Record<string, number>, caljs: any, st_r: number, ed_r: number, cindex: number, st_c: number, ed_c: number): void;
|
|
49
|
-
type SheetFilterState = {
|
|
50
|
-
filter?: Record<string, any> | null;
|
|
51
|
-
filter_select?: {
|
|
52
|
-
row: number[];
|
|
53
|
-
column: number[];
|
|
54
|
-
} | null;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Apply filter state from Yjs on a remote RTC peer without a Workbook remount.
|
|
58
|
-
* Bypasses isAllowEdit — caller must only invoke for remote-origin updates.
|
|
59
|
-
*/
|
|
60
|
-
export declare function applySheetFilterState(ctx: Context, sheetId: string, state: SheetFilterState): void;
|
|
61
|
-
export {};
|
|
@@ -22,7 +22,7 @@ export { sortSelection, sortSheetBySelectedColumn, spillSortResult, } from './so
|
|
|
22
22
|
export { searchAll, searchNext, replace, replaceAll, replaceAllScoped, getSearchIndexArr, getSearchIndexArrAsync, getFindRangeOnCurrentSheet, getQuickSearchIndexArr, getQuickSearchHiddenConfig, expandCellRectForMerge, shouldQuickSearchUseAsync, runQuickSearchIndexArrAsync, QUICK_SEARCH_ASYNC_ROW_THRESHOLD, parseRangeText, } from './searchReplace';
|
|
23
23
|
export type { CheckModes, HyperlinkMap, FindSearchScope, ReplaceScope, SearchHiddenConfig, SearchNextResult, ReplaceAllResult, } from './searchReplace';
|
|
24
24
|
export { getCellRowColumn, getCellHyperlink, getCellHyperlinks, getHyperlinkDisplayTextInCell, getInlineLinkPlainRange, getUniformLinkCoveringPlainRange, getUniformLinkAtPlainOffset, saveHyperlink, removeHyperlink, removeHyperlinkForLink, updateHyperlinkForLink, syncLinkCardAfterHyperlinkChange, showLinkCard, goToLink, isLinkValid, } from './hyperlink';
|
|
25
|
-
export { createFilterOptions, clearFilter, clearFilterForColumn, toggleViewerFilter, createFilter,
|
|
25
|
+
export { createFilterOptions, clearFilter, clearFilterForColumn, toggleViewerFilter, createFilter, getFilterColumnValues, getFilterColumnColors, orderbydatafiler, saveFilter, } from './filter';
|
|
26
26
|
export type { FilterDate, FilterValue, FilterColor } from './filter';
|
|
27
27
|
export { onCellsMoveStart, onCellsMove, onCellsMoveEnd } from './moveCells';
|
|
28
28
|
export { cfSplitRange } from './conditionalFormat';
|
|
@@ -90,4 +90,11 @@ export declare function calcSelectionInfo(ctx: Context): {
|
|
|
90
90
|
min: number;
|
|
91
91
|
average: string;
|
|
92
92
|
};
|
|
93
|
+
/** Move the active selection focus to an absolute row/column (Home/End navigation). */
|
|
94
|
+
export declare function jumpHighlightCell(ctx: Context, targetRow: number, targetCol: number): void;
|
|
95
|
+
/**
|
|
96
|
+
* Fill every cell in the current selection with the active/focus cell value
|
|
97
|
+
* (Ctrl/Cmd+Enter — same value across the whole selection).
|
|
98
|
+
*/
|
|
99
|
+
export declare function fillSelectionWithActiveValue(ctx: Context, cellInput: HTMLDivElement, canvas?: CanvasRenderingContext2D): boolean;
|
|
93
100
|
export {};
|
|
@@ -25,8 +25,6 @@ export type Hooks = {
|
|
|
25
25
|
updateCellYdoc?: (changes: SheetChangePath[]) => void;
|
|
26
26
|
updateAllCell?: (sheetId: string) => void;
|
|
27
27
|
beforeUpdateCell?: (r: number, c: number, value: any) => boolean;
|
|
28
|
-
/** Clears RTC remote-apply lock so local edits can run data-block formulas. */
|
|
29
|
-
onLocalCellEdit?: () => void;
|
|
30
28
|
afterUpdateCell?: (row: number, column: number, oldValue: any, newValue: any) => void;
|
|
31
29
|
afterSelectionChange?: (sheetId: string, selection: Selection) => void;
|
|
32
30
|
beforeRenderRowHeaderCell?: (rowNumber: string, rowIndex: number, top: number, width: number, height: number, ctx: CanvasRenderingContext2D) => boolean;
|
|
@@ -133,7 +131,6 @@ export type Settings = {
|
|
|
133
131
|
onSheetCountChange?: (count: number) => void;
|
|
134
132
|
isAuthorized?: boolean;
|
|
135
133
|
isFlvReadOnly?: boolean;
|
|
136
|
-
isRTCActive?: boolean;
|
|
137
134
|
dateBaseLocale?: DateBaseLocale;
|
|
138
135
|
/** When true, do not auto-select A1 on load (e.g. onboarding modal runs first). */
|
|
139
136
|
suppressInitialCellSelection?: boolean;
|
|
@@ -19,17 +19,6 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
19
19
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
20
20
|
type?: keyof Cell;
|
|
21
21
|
}, callAfterUpdate?: boolean) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Apply a cell value coming from a remote RTC peer, verbatim.
|
|
24
|
-
*
|
|
25
|
-
* Use this (instead of `setCellValue`) for every Yjs-driven remote apply:
|
|
26
|
-
* it writes the synced value/formula as-is without running the formula
|
|
27
|
-
* engine and without firing local-edit hooks, while keeping formula cells
|
|
28
|
-
* registered in `calcChain` so they remain reactive to future local edits.
|
|
29
|
-
*/
|
|
30
|
-
applyRemoteCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
31
|
-
type?: keyof Cell;
|
|
32
|
-
}) => void;
|
|
33
22
|
setCellError: (row: number, column: number, errorMessage: {
|
|
34
23
|
title: string;
|
|
35
24
|
message: string;
|
|
@@ -137,18 +126,6 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
137
126
|
activateSheet: (options?: api.CommonOptions) => void;
|
|
138
127
|
setSheetName: (name: string, options?: api.CommonOptions) => void;
|
|
139
128
|
setSheetOrder: (orderList: Record<string, number>) => void;
|
|
140
|
-
setSheetImages: (images: any[], options?: api.CommonOptions) => void;
|
|
141
|
-
setSheetIframes: (iframes: any[], options?: api.CommonOptions) => void;
|
|
142
|
-
setSheetDataVerification: (dataVerification: Record<string, any>, options?: api.CommonOptions) => void;
|
|
143
|
-
setSheetFilterState: (state: {
|
|
144
|
-
filter?: Record<string, any> | null;
|
|
145
|
-
filter_select?: {
|
|
146
|
-
row: number[];
|
|
147
|
-
column: number[];
|
|
148
|
-
} | null;
|
|
149
|
-
}, options?: api.CommonOptions) => void;
|
|
150
|
-
setSheetMapField: (field: string, value: Record<string, any> | null | undefined, options?: api.CommonOptions) => void;
|
|
151
|
-
setSheetConditionFormatRules: (rules: any[], options?: api.CommonOptions) => void;
|
|
152
129
|
scroll: (options: {
|
|
153
130
|
scrollLeft?: number;
|
|
154
131
|
scrollTop?: number;
|
|
@@ -23,9 +23,6 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
23
23
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
24
24
|
type?: keyof import('../../../core').Cell;
|
|
25
25
|
}, callAfterUpdate?: boolean) => void;
|
|
26
|
-
applyRemoteCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
27
|
-
type?: keyof import('../../../core').Cell;
|
|
28
|
-
}) => void;
|
|
29
26
|
setCellError: (row: number, column: number, errorMessage: {
|
|
30
27
|
title: string;
|
|
31
28
|
message: string;
|
|
@@ -133,18 +130,6 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
133
130
|
activateSheet: (options?: api.CommonOptions) => void;
|
|
134
131
|
setSheetName: (name: string, options?: api.CommonOptions) => void;
|
|
135
132
|
setSheetOrder: (orderList: Record<string, number>) => void;
|
|
136
|
-
setSheetImages: (images: any[], options?: api.CommonOptions) => void;
|
|
137
|
-
setSheetIframes: (iframes: any[], options?: api.CommonOptions) => void;
|
|
138
|
-
setSheetDataVerification: (dataVerification: Record<string, any>, options?: api.CommonOptions) => void;
|
|
139
|
-
setSheetFilterState: (state: {
|
|
140
|
-
filter?: Record<string, any> | null;
|
|
141
|
-
filter_select?: {
|
|
142
|
-
row: number[];
|
|
143
|
-
column: number[];
|
|
144
|
-
} | null;
|
|
145
|
-
}, options?: api.CommonOptions) => void;
|
|
146
|
-
setSheetMapField: (field: string, value: Record<string, any> | null | undefined, options?: api.CommonOptions) => void;
|
|
147
|
-
setSheetConditionFormatRules: (rules: any[], options?: api.CommonOptions) => void;
|
|
148
133
|
scroll: (options: {
|
|
149
134
|
scrollLeft?: number;
|
|
150
135
|
scrollTop?: number;
|