@fileverse-dev/dsheet 4.1.23 → 4.1.24-opaque-sheets.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/contexts/editor-context.d.ts +1 -0
- package/dist/editor/hooks/use-editor-sync.d.ts +1 -1
- package/dist/editor/hooks/use-editor-sync.test.d.ts +1 -0
- package/dist/editor/types.d.ts +3 -0
- package/dist/editor/utils/xlsx-export-impl.d.ts +1 -0
- package/dist/editor/utils/xlsx-export.d.ts +1 -0
- package/dist/{executeStringFunction-ZHYCWIpK.js → executeStringFunction-B3Tw7e1U.js} +2411 -2201
- package/dist/formula.js +1 -1
- package/dist/{index-8_qnUyMl.js → index-BtcfHWdy.js} +11956 -11944
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +42 -41
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/formula-arrow-mode.d.ts +81 -0
- package/dist/sheet-engine/core/modules/formula-arrow-mode.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +32 -1
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +32 -32
- package/dist/sync-local/SyncManager.test.d.ts +1 -0
- package/dist/sync-local/socketClient.d.ts +2 -0
- package/dist/sync-local/socketClient.test.d.ts +1 -0
- package/dist/sync-local/types/index.d.ts +3 -0
- package/dist/{use-xlsx-import-impl-cgDH14_y.js → use-xlsx-import-impl-f0Pn-kEL.js} +4 -4
- package/dist/{xlsx-defined-names-DCK7aKIO.js → xlsx-defined-names-C3eKkAAi.js} +2 -2
- package/dist/xlsx-export-impl-aKH0aAVf.js +903 -0
- package/dist/{xlsx-hyperlink-inline-T4GsXFm7.js → xlsx-hyperlink-inline-CZLjsAbR.js} +2 -2
- package/package.json +1 -1
- package/dist/xlsx-export-impl-BHDWz0aW.js +0 -880
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/share
|
|
|
23
23
|
export { TEMPLATES } from '@fileverse-dev/dsheets-templates/template-metadata-list';
|
|
24
24
|
export { handleCSVUpload } from './editor/utils/csv-import';
|
|
25
25
|
export { importSpreadsheetFile, type ImportSpreadsheetFileOptions, type ImportSpreadsheetFileResult, type SpreadsheetImportFileType, } from './editor/utils/spreadsheet-import';
|
|
26
|
-
export { handleExportToXLSX, handleExportToODS } from './editor/utils/xlsx-export';
|
|
26
|
+
export { handleExportToXLSX, handleExportToODS, exportToXLSXBytes, } from './editor/utils/xlsx-export';
|
|
27
27
|
export { handleExportToCSV } from './editor/utils/csv-export';
|
|
28
28
|
export { handleExportToJSON } from './editor/utils/json-export';
|
|
29
29
|
export { useXLSXImport } from './editor/hooks/use-xlsx-import';
|
package/dist/index.es.js
CHANGED
|
@@ -1,65 +1,66 @@
|
|
|
1
|
-
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as
|
|
2
|
-
import {
|
|
3
|
-
import { FLVURL as
|
|
4
|
-
import { E as
|
|
1
|
+
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as x, x as g, z as R, A as L, B as f, D as A, E as I, F as T, G as w, H as y, I as v, J as D, K as M, L as b, M as O, N as X, O as k, P as B, Q as P } from "./index-BtcfHWdy.js";
|
|
2
|
+
import { cB as z, cC as K, cD as U, cJ as _, bx as G, e as H, f as J, l as j, a as q, dn as N, dp as Q, bb as Y, dq as Z, dr as W, dv as $, dw as ee, dy as ae, I as se, dO as oe, el as te, b4 as re } from "./executeStringFunction-B3Tw7e1U.js";
|
|
3
|
+
import { FLVURL as ne } from "@fileverse-dev/formulajs";
|
|
4
|
+
import { E as Se, S as ce } from "./constants-8Ij49Lxv.js";
|
|
5
5
|
export {
|
|
6
6
|
s as CommentAction,
|
|
7
7
|
o as CommentCellUI,
|
|
8
8
|
t as CommentsContent,
|
|
9
9
|
r as DSheetEditor,
|
|
10
10
|
l as DSheetSkeleton,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Se as ERROR_MESSAGES_FLAG,
|
|
12
|
+
ne as FLVURL,
|
|
13
13
|
n as FortuneCore,
|
|
14
|
-
|
|
14
|
+
ce as SERVICES_API_KEY,
|
|
15
15
|
d as SupportedChain,
|
|
16
16
|
S as TEMPLATES,
|
|
17
17
|
c as api,
|
|
18
|
-
|
|
18
|
+
z as clearColumnsCellsFormat,
|
|
19
19
|
i as clearFilter,
|
|
20
20
|
K as clearRowsCellsFormat,
|
|
21
21
|
U as clearSelectedCellFormat,
|
|
22
22
|
m as createFilter,
|
|
23
23
|
h as decryptForRoomKey,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
_ as deleteRowCol,
|
|
25
|
+
G as deleteSelectedCellText,
|
|
26
26
|
p as describeMatchedShortcut,
|
|
27
27
|
C as encryptForRoomKey,
|
|
28
|
-
|
|
29
|
-
u as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
F as
|
|
34
|
-
|
|
28
|
+
H as executeStringFunction,
|
|
29
|
+
u as exportToXLSXBytes,
|
|
30
|
+
E as fetchSessionState,
|
|
31
|
+
J as formulaResponseUiSync,
|
|
32
|
+
j as getFlowdata,
|
|
33
|
+
F as getRemoveDuplicatesErrorMessage,
|
|
34
|
+
x as getRemoveDuplicatesPreview,
|
|
35
|
+
q as getSheetIndex,
|
|
35
36
|
g as handleCSVUpload,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
R as handleCopy,
|
|
38
|
+
L as handleExportToCSV,
|
|
39
|
+
f as handleExportToJSON,
|
|
40
|
+
A as handleExportToODS,
|
|
40
41
|
I as handleExportToXLSX,
|
|
41
42
|
N as handleFreeze,
|
|
42
|
-
|
|
43
|
+
Q as handleHorizontalAlign,
|
|
43
44
|
Y as handleLink,
|
|
44
45
|
Z as handleMerge,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
46
|
+
T as handlePasteByClick,
|
|
47
|
+
W as handleSort,
|
|
48
|
+
$ as handleTextSize,
|
|
49
|
+
ee as handleVerticalAlign,
|
|
50
|
+
w as importSpreadsheetFile,
|
|
51
|
+
ae as insertRowCol,
|
|
52
|
+
y as isBrowserZoomShortcut,
|
|
53
|
+
v as isFormulaListShortcut,
|
|
54
|
+
D as isOpenShortcutsModalShortcut,
|
|
55
|
+
se as jfrefreshgrid,
|
|
56
|
+
oe as loadLocale,
|
|
57
|
+
M as remapCommentAnchors,
|
|
58
|
+
b as removeActiveImage,
|
|
59
|
+
O as removeDuplicates,
|
|
60
|
+
X as seedSession,
|
|
61
|
+
k as showImgChooser,
|
|
62
|
+
te as toolbarItemClickHandler,
|
|
63
|
+
re as updateFormat,
|
|
64
|
+
B as useEnsStatus,
|
|
64
65
|
P as useXLSXImport
|
|
65
66
|
};
|
|
@@ -7,7 +7,7 @@ export { defaultSettings } from './settings';
|
|
|
7
7
|
export type { Settings, Hooks, DateBaseLocale, CommentAnchorMove, } 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, getCanonicalDateDisplayFormat, 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, ensureFormulaRangeToSheet, shouldPreserveFormulaEditOnSheetSwitch, activateSheetForNavigation, returnToFormulaOriginSheet, 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, refreshFormulasUsingDefinedNames, checkCF, getComputeMap, isValidDefinedNameIdentifier, getDefinedNameDisplayRange, findDefinedNameForSelection, findDefinedNameByName, resolveDefinedNameForFormula, addDefinedName, updateDefinedName, deleteDefinedName, selectDefinedName, openNamedRangesSidebar, scheduleDefinedNamesSync, shiftDefinedNamesOnInsert, shiftDefinedNamesOnDelete, removeDefinedNamesForSheet, cancelPaintModel, hideCRCount, getdatabyselection, } from './modules';
|
|
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, getCanonicalDateDisplayFormat, 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, resetFormulaArrowSession, ensureFormulaRangeToSheet, shouldPreserveFormulaEditOnSheetSwitch, activateSheetForNavigation, returnToFormulaOriginSheet, 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, refreshFormulasUsingDefinedNames, checkCF, getComputeMap, isValidDefinedNameIdentifier, getDefinedNameDisplayRange, findDefinedNameForSelection, findDefinedNameByName, resolveDefinedNameForFormula, addDefinedName, updateDefinedName, deleteDefinedName, selectDefinedName, openNamedRangesSidebar, scheduleDefinedNamesSync, shiftDefinedNamesOnInsert, shiftDefinedNamesOnDelete, removeDefinedNamesForSheet, cancelPaintModel, hideCRCount, getdatabyselection, } from './modules';
|
|
11
11
|
export type { FilterDate, FilterValue, FilterColor } from './modules';
|
|
12
12
|
export { getFreezeState, getFrozenPixelBounds, toggleFreeze, indexToColumnChar, escapeScriptTag, escapeHTMLTag, getSheetIndex, replaceHtml, isAllowEdit, isAllowEditReadOnly, filterPatch, patchToOp, opToPatch, inverseRowColOptions, } from './utils';
|
|
13
13
|
export type { PatchOptions, ChangedSheet } from './utils';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure (DOM-free, ctx-free) logic that decides what an arrow key does while a
|
|
3
|
+
* formula is being edited.
|
|
4
|
+
*
|
|
5
|
+
* GRID - not editing: arrows move the grid selection
|
|
6
|
+
* TEXT_EDIT - arrows move the text caret
|
|
7
|
+
* REFERENCE_READY - next arrow inserts a new cell reference at the caret
|
|
8
|
+
* REFERENCE_ACTIVE - arrows move/extend the reference that was just inserted
|
|
9
|
+
*/
|
|
10
|
+
export type FormulaArrowMode = 'GRID' | 'TEXT_EDIT' | 'REFERENCE_READY' | 'REFERENCE_ACTIVE';
|
|
11
|
+
/** Sticky, user-controlled (F2). `null` = automatic behavior. */
|
|
12
|
+
export type FormulaArrowOverride = null | 'TEXT_EDIT' | 'REFERENCE';
|
|
13
|
+
export type TokenKind = 'EQ' | 'SPACE' | 'STRING' | 'REF' | 'NAME' | 'NUMBER' | 'FUNC_NAME' | 'LPAREN' | 'RPAREN' | 'COMMA' | 'OPERATOR' | 'POSTFIX' | 'UNKNOWN';
|
|
14
|
+
export type Token = {
|
|
15
|
+
kind: TokenKind;
|
|
16
|
+
start: number;
|
|
17
|
+
end: number;
|
|
18
|
+
text: string;
|
|
19
|
+
/** STRING / quoted sheet name: closing quote present. */
|
|
20
|
+
terminated?: boolean;
|
|
21
|
+
/** REF that is not (yet) a complete reference, e.g. `A1:A`, `A1:`. */
|
|
22
|
+
partial?: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** Never throws. Offsets index into `text` as given. */
|
|
25
|
+
export declare function tokenizeFormula(text: string): Token[];
|
|
26
|
+
export type CaretContext = {
|
|
27
|
+
inString: boolean;
|
|
28
|
+
/** Caret strictly inside a non-string token (e.g. `A|1`, `SU|M(`). */
|
|
29
|
+
insideToken: Token | null;
|
|
30
|
+
/** REF token the caret is inside or right after (start < caret <= end). */
|
|
31
|
+
touchingRef: Token | null;
|
|
32
|
+
prevSig: Token | null;
|
|
33
|
+
nextSig: Token | null;
|
|
34
|
+
};
|
|
35
|
+
export declare function getCaretContext(tokens: Token[], caret: number): CaretContext;
|
|
36
|
+
/**
|
|
37
|
+
* True when a new operand (cell reference) can be entered at the caret:
|
|
38
|
+
* the previous significant token wants an operand, the caret is not inside a
|
|
39
|
+
* string or token, and no operand sits immediately to the right.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isOperandSlot(ctx: CaretContext): boolean;
|
|
42
|
+
export type ArrowModeInput = {
|
|
43
|
+
editing: boolean;
|
|
44
|
+
/** Full editor text (offsets of `caretOffset` index into it). */
|
|
45
|
+
text: string;
|
|
46
|
+
/** null when the caret is not inside the editor. */
|
|
47
|
+
caretOffset: number | null;
|
|
48
|
+
override: FormulaArrowOverride;
|
|
49
|
+
/** false for sessions opened on an existing formula (F2 / dblclick / bar). */
|
|
50
|
+
autoAllowed: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The engine is driving a reference right now (mouse drag, or a reference the
|
|
53
|
+
* keyboard just inserted and the caret is still on).
|
|
54
|
+
*/
|
|
55
|
+
refActive: boolean;
|
|
56
|
+
};
|
|
57
|
+
/** Decision priority from the product spec, evaluated in this exact order. */
|
|
58
|
+
export declare function resolveArrowMode(input: ArrowModeInput): FormulaArrowMode;
|
|
59
|
+
/**
|
|
60
|
+
* F2 while editing a formula: flip between caret and reference selection.
|
|
61
|
+
*
|
|
62
|
+
* Toggles the stored override once one exists, so a second press always undoes
|
|
63
|
+
* the first, even at a caret where the derived mode cannot change (e.g. after
|
|
64
|
+
* `)`). With no stored override, flips from the mode the user is looking at.
|
|
65
|
+
*/
|
|
66
|
+
export declare function overrideAfterF2(mode: FormulaArrowMode, current?: FormulaArrowOverride): FormulaArrowOverride;
|
|
67
|
+
/**
|
|
68
|
+
* Rule 4: keys typed while a reference is active end the arrow-driven
|
|
69
|
+
* reference. The next mode is then derived from the caret position
|
|
70
|
+
* (operator or `,` -> READY, `)` or anything else -> TEXT_EDIT).
|
|
71
|
+
* keyCode based because it is called from keyup/keydown handlers.
|
|
72
|
+
*/
|
|
73
|
+
export declare function isTextChangingKeyCode(kcode: number): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Keys that edit characters *inside* a reference token (letters, digits incl.
|
|
76
|
+
* numpad digits, Backspace/Delete). Typing them over an arrow-inserted
|
|
77
|
+
* reference makes it a hand-edited token, so its highlight must be dropped.
|
|
78
|
+
* Operators, commas and spaces are not here: they end the reference but leave
|
|
79
|
+
* its highlight alone (see `isTextChangingKeyCode`).
|
|
80
|
+
*/
|
|
81
|
+
export declare function isReferenceDirtyingKeyCode(kcode: number): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Cell, CellMatrix, Rect, Selection } from '../types';
|
|
2
2
|
import { Context } from '../context';
|
|
3
|
+
import { FormulaArrowMode, FormulaArrowOverride } from './formula-arrow-mode';
|
|
3
4
|
import { FormulaAsyncEvalJob } from './formula-async-eval';
|
|
4
5
|
import { RangePassCacheEntry } from './formula-range-cache';
|
|
5
6
|
import { SnapshotEvalOutput } from './formula-snapshot-eval';
|
|
@@ -28,6 +29,9 @@ export declare class FormulaCache {
|
|
|
28
29
|
rangedrag_row_start?: boolean;
|
|
29
30
|
rangeSelectionActive?: boolean | null;
|
|
30
31
|
keyboardRangeSelectionLock?: boolean;
|
|
32
|
+
arrowOverride?: FormulaArrowOverride;
|
|
33
|
+
arrowAutoAllowed?: boolean;
|
|
34
|
+
arrowSessionCell?: [number, number];
|
|
31
35
|
/** True after arrow/Shift+arrow moved `func_selectedrange` without updating yellow selection. */
|
|
32
36
|
formulaKeyboardRefSync?: boolean;
|
|
33
37
|
formulaEditorOwner?: 'cell' | 'fx' | null;
|
|
@@ -98,6 +102,14 @@ export declare function execFunctionGroup(ctx: Context, origin_r: number, origin
|
|
|
98
102
|
* without resizing `luckysheet_select_save`.
|
|
99
103
|
*/
|
|
100
104
|
export declare function seedFormulaFuncSelectedRangeFromLastSelection(ctx: Context): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Explicit reference selection (F2) with the caret on an existing reference:
|
|
107
|
+
* seed the keyboard range from *that reference*, so the first arrow moves it
|
|
108
|
+
* from where it is (`=SUM(A1|)` + Right -> `=SUM(B1)`), not from the edited
|
|
109
|
+
* cell. Replaces any stale `func_selectedrange`. Returns false when the caret
|
|
110
|
+
* is not on a complete reference on the visible sheet.
|
|
111
|
+
*/
|
|
112
|
+
export declare function seedFormulaFuncSelectedRangeFromTouchedReference(ctx: Context): boolean;
|
|
101
113
|
export declare function createFormulaRangeSelect(ctx: Context, select: {
|
|
102
114
|
rangeIndex: number;
|
|
103
115
|
} & Rect): void;
|
|
@@ -146,7 +158,7 @@ export declare function isBareCellOrRangeOnlyFormula(formulaText: string): boole
|
|
|
146
158
|
* disable sheet-driven range selection until the caret reaches a fresh insertion slot
|
|
147
159
|
* (comma, open paren, operator, etc.) or the user starts an active range drag.
|
|
148
160
|
*/
|
|
149
|
-
export declare function suppressFormulaRangeSelectionForInitialEdit(ctx: Context): void;
|
|
161
|
+
export declare function suppressFormulaRangeSelectionForInitialEdit(ctx: Context, cell?: [number, number]): void;
|
|
150
162
|
export declare function isCaretAtValidFormulaRangeInsertionPoint(editor: HTMLElement | null): boolean;
|
|
151
163
|
export declare function markRangeSelectionDirty(ctx: Context): void;
|
|
152
164
|
/**
|
|
@@ -161,6 +173,25 @@ export declare function toggleFormulaAbsoluteReferenceAtCaret(ctx: Context, $cop
|
|
|
161
173
|
/** True while picking a range for a formula (sheet selection drives references). */
|
|
162
174
|
export declare function isLegacyFormulaRangeMode(ctx: Context): boolean;
|
|
163
175
|
export declare function israngeseleciton(ctx: Context, istooltip?: boolean): boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Start (or end) an arrow-key session with the defaults: automatic reference
|
|
178
|
+
* selection on, no F2 override. Call when a session opens on a cell that does
|
|
179
|
+
* not hold a formula, and when one ends.
|
|
180
|
+
*/
|
|
181
|
+
export declare function resetFormulaArrowSession(ctx: Context): void;
|
|
182
|
+
/** The F2 override / auto flag in effect for the cell being edited right now. */
|
|
183
|
+
export declare function getFormulaArrowSession(ctx: Context): {
|
|
184
|
+
override: FormulaArrowOverride;
|
|
185
|
+
autoAllowed: boolean;
|
|
186
|
+
};
|
|
187
|
+
/** F2 pressed while editing: store the new override for this cell's session. */
|
|
188
|
+
export declare function setFormulaArrowOverride(ctx: Context, override: FormulaArrowOverride): void;
|
|
189
|
+
/**
|
|
190
|
+
* Single source of truth for what an arrow key does while editing.
|
|
191
|
+
* Thin ctx/DOM adapter over the pure `resolveArrowMode`.
|
|
192
|
+
*/
|
|
193
|
+
export declare function getFormulaArrowMode(ctx: Context): FormulaArrowMode;
|
|
194
|
+
/** True while arrows should drive a cell reference (READY or ACTIVE). */
|
|
164
195
|
export declare function isFormulaReferenceInputMode(ctx: Context): boolean;
|
|
165
196
|
export declare function maybeRecoverDirtyRangeSelection(ctx: Context): boolean;
|
|
166
197
|
export declare function functionStrChange(txt: string, type: string, rc: 'row' | 'col', orient: string | null, stindex: number, step: number): string;
|
|
@@ -4,7 +4,7 @@ export { default as clipboard } from './clipboard';
|
|
|
4
4
|
export { moveToEnd, getRangeRectsByCharacterOffset } from './cursor';
|
|
5
5
|
export { getDateBaseLocale, getCanonicalDateDisplayFormat, 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, ensureFormulaRangeToSheet, shouldPreserveFormulaEditOnSheetSwitch, activateSheetForNavigation, returnToFormulaOriginSheet, } from './formula';
|
|
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, resetFormulaArrowSession, ensureFormulaRangeToSheet, shouldPreserveFormulaEditOnSheetSwitch, activateSheetForNavigation, returnToFormulaOriginSheet, } 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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Settings, Context, CellWithRowAndCol, Sheet as SheetType, Op, CellMatrix
|
|
1
|
+
import { Settings, Context, CellWithRowAndCol, Sheet as SheetType, Op, CellMatrix } from '../../../core';
|
|
2
2
|
import { ThemeKey } from '../../../core/theme';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { getCryptoPrice } from '../../utils/cryptoApi';
|
|
@@ -19,7 +19,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
19
19
|
applyOp: (ops: Op[]) => void;
|
|
20
20
|
getCryptoPrice: typeof getCryptoPrice;
|
|
21
21
|
recalculateAllFormulas: () => void;
|
|
22
|
-
getCellValue: (row: number, column: number, options?: api.CommonOptions & {
|
|
22
|
+
getCellValue: (row: number, column: number, options?: import('../../../core/api').CommonOptions & {
|
|
23
23
|
type?: keyof import('../../../core').Cell;
|
|
24
24
|
}) => any;
|
|
25
25
|
onboardingActiveCell: (functionName: string) => void;
|
|
@@ -27,10 +27,10 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
27
27
|
openCommentUI: (row: number, column: number) => void;
|
|
28
28
|
updateSheetLiveQueryList: (subsheetIndex: number, _data: import('../../../core').LiveQueryData) => void;
|
|
29
29
|
removeFromLiveQueryList: (subSheetIndex: number, id: string) => void;
|
|
30
|
-
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
30
|
+
setCellValue: (row: number, column: number, value: any, options?: import('../../../core/api').CommonOptions & {
|
|
31
31
|
type?: keyof import('../../../core').Cell;
|
|
32
32
|
}, callAfterUpdate?: boolean) => void;
|
|
33
|
-
applyRemoteCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
33
|
+
applyRemoteCellValue: (row: number, column: number, value: any, options?: import('../../../core/api').CommonOptions & {
|
|
34
34
|
type?: keyof import('../../../core').Cell;
|
|
35
35
|
}) => void;
|
|
36
36
|
setCellError: (row: number, column: number, errorMessage: {
|
|
@@ -38,21 +38,21 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
38
38
|
message: string;
|
|
39
39
|
}) => void;
|
|
40
40
|
clearCellError: (row: number, column: number) => void;
|
|
41
|
-
clearCell: (row: number, column: number, options?: api.CommonOptions) => void;
|
|
42
|
-
setCellFormat: (row: number, column: number, attr: keyof import('../../../core').Cell, value: any, options?: api.CommonOptions) => void;
|
|
41
|
+
clearCell: (row: number, column: number, options?: import('../../../core/api').CommonOptions) => void;
|
|
42
|
+
setCellFormat: (row: number, column: number, attr: keyof import('../../../core').Cell, value: any, options?: import('../../../core/api').CommonOptions) => void;
|
|
43
43
|
autoFillCell: (copyRange: import('../../../core').SingleRange, applyRange: import('../../../core').SingleRange, direction: "up" | "down" | "left" | "right") => void;
|
|
44
44
|
freeze: (type: "row" | "column" | "both", range: {
|
|
45
45
|
row: number;
|
|
46
46
|
column: number;
|
|
47
|
-
}, options?: api.CommonOptions) => void;
|
|
48
|
-
insertRowOrColumn: (type: "row" | "column", index: number, count: number, direction?: "lefttop" | "rightbottom", options?: api.CommonOptions) => void;
|
|
49
|
-
deleteRowOrColumn: (type: "row" | "column", start: number, end: number, options?: api.CommonOptions) => void;
|
|
47
|
+
}, options?: import('../../../core/api').CommonOptions) => void;
|
|
48
|
+
insertRowOrColumn: (type: "row" | "column", index: number, count: number, direction?: "lefttop" | "rightbottom", options?: import('../../../core/api').CommonOptions) => void;
|
|
49
|
+
deleteRowOrColumn: (type: "row" | "column", start: number, end: number, options?: import('../../../core/api').CommonOptions) => void;
|
|
50
50
|
hideRowOrColumn: (rowOrColInfo: string[], type: "row" | "column") => void;
|
|
51
51
|
showRowOrColumn: (rowOrColInfo: string[], type: "row" | "column") => void;
|
|
52
|
-
setRowHeight: (rowInfo: Record<string, number>, options?: api.CommonOptions, custom?: boolean) => void;
|
|
53
|
-
setColumnWidth: (columnInfo: Record<string, number>, options?: api.CommonOptions, custom?: boolean) => void;
|
|
54
|
-
getRowHeight: (rows: number[], options?: api.CommonOptions) => Record<number, number>;
|
|
55
|
-
getColumnWidth: (columns: number[], options?: api.CommonOptions) => Record<number, number>;
|
|
52
|
+
setRowHeight: (rowInfo: Record<string, number>, options?: import('../../../core/api').CommonOptions, custom?: boolean) => void;
|
|
53
|
+
setColumnWidth: (columnInfo: Record<string, number>, options?: import('../../../core/api').CommonOptions, custom?: boolean) => void;
|
|
54
|
+
getRowHeight: (rows: number[], options?: import('../../../core/api').CommonOptions) => Record<number, number>;
|
|
55
|
+
getColumnWidth: (columns: number[], options?: import('../../../core/api').CommonOptions) => Record<number, number>;
|
|
56
56
|
getSelection: () => {
|
|
57
57
|
row: number[];
|
|
58
58
|
column: number[];
|
|
@@ -66,15 +66,15 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
66
66
|
c: number;
|
|
67
67
|
}[]) => (import('../../../core').Cell | null)[];
|
|
68
68
|
getSelectionCoordinates: () => string[];
|
|
69
|
-
getCellsByRange: (range: import('../../../core').Selection, options?: api.CommonOptions) => (import('../../../core').Cell | null)[][];
|
|
70
|
-
getHtmlByRange: (range: import('../../../core').Range, options?: api.CommonOptions) => string | null;
|
|
71
|
-
setSelection: (range: import('../../../core').Range, options?: api.CommonOptions) => void;
|
|
72
|
-
setCellValuesByRange: (data: any[][], range: import('../../../core').SingleRange, options?: api.CommonOptions, cellAfter?: boolean) => void;
|
|
73
|
-
setCellFormatByRange: (attr: keyof import('../../../core').Cell, value: any, range: import('../../../core').Range | import('../../../core').SingleRange, options?: api.CommonOptions) => void;
|
|
74
|
-
mergeCells: (ranges: import('../../../core').Range, type: string, options?: api.CommonOptions) => void;
|
|
75
|
-
cancelMerge: (ranges: import('../../../core').Range, options?: api.CommonOptions) => void;
|
|
69
|
+
getCellsByRange: (range: import('../../../core').Selection, options?: import('../../../core/api').CommonOptions) => (import('../../../core').Cell | null)[][];
|
|
70
|
+
getHtmlByRange: (range: import('../../../core').Range, options?: import('../../../core/api').CommonOptions) => string | null;
|
|
71
|
+
setSelection: (range: import('../../../core').Range, options?: import('../../../core/api').CommonOptions) => void;
|
|
72
|
+
setCellValuesByRange: (data: any[][], range: import('../../../core').SingleRange, options?: import('../../../core/api').CommonOptions, cellAfter?: boolean) => void;
|
|
73
|
+
setCellFormatByRange: (attr: keyof import('../../../core').Cell, value: any, range: import('../../../core').Range | import('../../../core').SingleRange, options?: import('../../../core/api').CommonOptions) => void;
|
|
74
|
+
mergeCells: (ranges: import('../../../core').Range, type: string, options?: import('../../../core/api').CommonOptions) => void;
|
|
75
|
+
cancelMerge: (ranges: import('../../../core').Range, options?: import('../../../core/api').CommonOptions) => void;
|
|
76
76
|
getAllSheets: () => SheetType[];
|
|
77
|
-
getSheet: (options?: api.CommonOptions) => {
|
|
77
|
+
getSheet: (options?: import('../../../core/api').CommonOptions) => {
|
|
78
78
|
celldata: CellWithRowAndCol[];
|
|
79
79
|
name: string;
|
|
80
80
|
config?: import('../../../core/types').SheetConfig;
|
|
@@ -136,27 +136,27 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
136
136
|
liveQueryList?: Record<string, import('../../../core').LiveQueryData>;
|
|
137
137
|
};
|
|
138
138
|
addSheet: () => void;
|
|
139
|
-
deleteSheet: (options?: api.CommonOptions) => void;
|
|
139
|
+
deleteSheet: (options?: import('../../../core/api').CommonOptions) => void;
|
|
140
140
|
updateSheet: (data: SheetType[]) => void;
|
|
141
|
-
activateSheet: (options?: api.CommonOptions) => void;
|
|
142
|
-
setSheetName: (name: string, options?: api.CommonOptions) => void;
|
|
141
|
+
activateSheet: (options?: import('../../../core/api').CommonOptions) => void;
|
|
142
|
+
setSheetName: (name: string, options?: import('../../../core/api').CommonOptions) => void;
|
|
143
143
|
setSheetOrder: (orderList: Record<string, number>) => void;
|
|
144
|
-
setSheetImages: (images: any[], options?: api.CommonOptions) => void;
|
|
145
|
-
setSheetIframes: (iframes: any[], options?: api.CommonOptions) => void;
|
|
146
|
-
setSheetDataVerification: (dataVerification: Record<string, any>, options?: api.CommonOptions) => void;
|
|
144
|
+
setSheetImages: (images: any[], options?: import('../../../core/api').CommonOptions) => void;
|
|
145
|
+
setSheetIframes: (iframes: any[], options?: import('../../../core/api').CommonOptions) => void;
|
|
146
|
+
setSheetDataVerification: (dataVerification: Record<string, any>, options?: import('../../../core/api').CommonOptions) => void;
|
|
147
147
|
setSheetFilterState: (state: {
|
|
148
148
|
filter?: Record<string, any> | null;
|
|
149
149
|
filter_select?: {
|
|
150
150
|
row: number[];
|
|
151
151
|
column: number[];
|
|
152
152
|
} | null;
|
|
153
|
-
}, options?: api.CommonOptions) => void;
|
|
154
|
-
setSheetMapField: (field: string, value: Record<string, any> | null | undefined, options?: api.CommonOptions) => void;
|
|
155
|
-
patchSheetMapField: (field: string, updates: Record<string, any>, deleteKeys?: string[], options?: api.CommonOptions) => void;
|
|
156
|
-
setSheetConfigFields: (partial: Record<string, any>, options?: api.CommonOptions & {
|
|
153
|
+
}, options?: import('../../../core/api').CommonOptions) => void;
|
|
154
|
+
setSheetMapField: (field: string, value: Record<string, any> | null | undefined, options?: import('../../../core/api').CommonOptions) => void;
|
|
155
|
+
patchSheetMapField: (field: string, updates: Record<string, any>, deleteKeys?: string[], options?: import('../../../core/api').CommonOptions) => void;
|
|
156
|
+
setSheetConfigFields: (partial: Record<string, any>, options?: import('../../../core/api').CommonOptions & {
|
|
157
157
|
deleteKeys?: string[];
|
|
158
158
|
}) => void;
|
|
159
|
-
setSheetConditionFormatRules: (rules: any[], options?: api.CommonOptions) => void;
|
|
159
|
+
setSheetConditionFormatRules: (rules: any[], options?: import('../../../core/api').CommonOptions) => void;
|
|
160
160
|
scroll: (options: {
|
|
161
161
|
scrollLeft?: number;
|
|
162
162
|
scrollTop?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,6 +8,7 @@ interface ISocketClientConfig {
|
|
|
8
8
|
ownerEdSecret?: string;
|
|
9
9
|
contractAddress?: string;
|
|
10
10
|
ownerAddress?: string;
|
|
11
|
+
appFileId?: string;
|
|
11
12
|
editLock?: string;
|
|
12
13
|
encryptedTitle?: string;
|
|
13
14
|
identityToken?: string;
|
|
@@ -72,6 +73,7 @@ export declare class SocketClient {
|
|
|
72
73
|
private collaborationUcan?;
|
|
73
74
|
private serverClock;
|
|
74
75
|
private ownerAddress?;
|
|
76
|
+
private appFileId?;
|
|
75
77
|
private editLock?;
|
|
76
78
|
private encryptedTitle?;
|
|
77
79
|
private identityToken?;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -77,6 +77,8 @@ export interface CollabConnectionConfig {
|
|
|
77
77
|
ownerEdSecret?: string;
|
|
78
78
|
contractAddress?: string;
|
|
79
79
|
ownerAddress?: string;
|
|
80
|
+
/** Host signal (opaque-link sheets): the on-chain dsheetId, sent to the server as ddocId alongside the public room id. */
|
|
81
|
+
appFileId?: string;
|
|
80
82
|
roomInfo?: {
|
|
81
83
|
documentTitle: string;
|
|
82
84
|
portalAddress: string;
|
|
@@ -299,6 +301,7 @@ export interface IAuthArgs {
|
|
|
299
301
|
ownerToken?: string;
|
|
300
302
|
ownerAddress?: string;
|
|
301
303
|
contractAddress?: string;
|
|
304
|
+
ddocId?: string;
|
|
302
305
|
sessionDid?: string;
|
|
303
306
|
roomInfo?: string;
|
|
304
307
|
identityToken?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as BZ from "yjs";
|
|
2
|
-
import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-
|
|
3
|
-
import { g as sl } from "./executeStringFunction-
|
|
2
|
+
import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-BtcfHWdy.js";
|
|
3
|
+
import { g as sl } from "./executeStringFunction-B3Tw7e1U.js";
|
|
4
4
|
import { Workbook as al } from "exceljs";
|
|
5
5
|
import Kl from "luckyexcel";
|
|
6
|
-
import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-
|
|
7
|
-
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-
|
|
6
|
+
import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-CZLjsAbR.js";
|
|
7
|
+
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-C3eKkAAi.js";
|
|
8
8
|
import { toast as fZ } from "@fileverse/ui";
|
|
9
9
|
var Zl = { exports: {} };
|
|
10
10
|
(function(m) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as w } from "./executeStringFunction-
|
|
2
|
-
import { J as x } from "./xlsx-hyperlink-inline-
|
|
1
|
+
import { i as w } from "./executeStringFunction-B3Tw7e1U.js";
|
|
2
|
+
import { J as x } from "./xlsx-hyperlink-inline-CZLjsAbR.js";
|
|
3
3
|
function g(o) {
|
|
4
4
|
return o.startsWith("_xlnm.");
|
|
5
5
|
}
|