@fileverse-dev/dsheet 2.1.3-package-cleanup-1 → 2.1.3-rtc-debug-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor/components/editor-workbook.d.ts +14 -11
- package/dist/editor/contexts/editor-context.d.ts +4 -16
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/hooks/live-query/use-live-query.d.ts +2 -4
- package/dist/editor/hooks/use-editor-data.d.ts +2 -4
- package/dist/editor/types.d.ts +29 -36
- package/dist/editor/utils/after-update-cell.d.ts +8 -13
- package/dist/{executeStringFunction-C26SXUpc.js → executeStringFunction-BkmJj04p.js} +4364 -4742
- package/dist/formula.js +1 -1
- package/dist/index-DbuVGe3U.js +52666 -0
- package/dist/index.d.ts +1 -8
- package/dist/index.es.js +51 -55
- package/dist/sheet-engine/core/context.d.ts +0 -5
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/formula.d.ts +1 -26
- package/dist/sheet-engine/core/modules/index.d.ts +1 -3
- package/dist/sheet-engine/react/components/SheetOverlay/Icon.d.ts +4 -5
- package/dist/sheet-engine/react/components/SheetOverlay/LucideIcon.d.ts +4 -4
- package/dist/sheet-engine/react/components/Toolbar/conditionalFormatPortal.d.ts +7 -0
- package/dist/sheet-engine/react/components/Toolbar/dataVerificationPortal.d.ts +6 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +0 -6
- package/dist/sheet-engine/react/components/index.d.ts +0 -1
- package/dist/sheet-engine/react/utils/datepickerStyles.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-C-PHnu49.js → use-xlsx-import-impl-BYpFEhWN.js} +2 -2
- package/dist/{xlsx-export-impl-BAJCFNh6.js → xlsx-export-impl-DWDG-U2Y.js} +2 -2
- package/package.json +2 -3
- package/dist/editor/components/api-key-modal/api-key-input.d.ts +0 -5
- package/dist/editor/components/api-key-modal/api-key-modal.d.ts +0 -7
- package/dist/editor/components/api-key-modal/rate-limit-info.d.ts +0 -4
- package/dist/editor/components/comments/comment-actions-dropdown.d.ts +0 -19
- package/dist/editor/components/comments/comment-cell-popup.d.ts +0 -4
- package/dist/editor/components/comments/comment-input.d.ts +0 -4
- package/dist/editor/components/comments/comment-item.d.ts +0 -4
- package/dist/editor/components/comments/comment-sidebar-empty.d.ts +0 -4
- package/dist/editor/components/comments/comment-sidebar.d.ts +0 -4
- package/dist/editor/components/comments/ens/ens-cache.d.ts +0 -10
- package/dist/editor/components/comments/ens/use-ens-status.d.ts +0 -10
- package/dist/editor/components/comments/use-comment-cell-popup.d.ts +0 -12
- package/dist/editor/components/comments/use-comment-permissions.d.ts +0 -15
- package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +0 -20
- package/dist/editor/components/sidebar/right-sidebar.d.ts +0 -14
- package/dist/editor/components/sidebar/sidebar-context.d.ts +0 -17
- package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +0 -20
- package/dist/editor/components/sidebar/use-right-panels.d.ts +0 -12
- package/dist/editor/components/sidebars/conditional-format.d.ts +0 -2
- package/dist/editor/components/sidebars/data-verification.d.ts +0 -2
- package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +0 -11
- package/dist/editor/components/sidebars/function/function-categories.d.ts +0 -6
- package/dist/editor/components/sidebars/function/function-metadata.d.ts +0 -7
- package/dist/editor/components/sidebars/function/functionList.d.ts +0 -8
- package/dist/editor/components/sidebars/function/types.d.ts +0 -24
- package/dist/editor/components/sidebars/function/use-functions.d.ts +0 -20
- package/dist/editor/components/sidebars/function-content.d.ts +0 -8
- package/dist/editor/components/sidebars/template-ui.d.ts +0 -22
- package/dist/editor/components/sidebars/templates.d.ts +0 -9
- package/dist/editor/types/comments.d.ts +0 -133
- package/dist/editor/utils/api-key-storage.d.ts +0 -6
- package/dist/editor/utils/api-keys-local-storage.d.ts +0 -19
- package/dist/editor/utils/cell-comment-marker.d.ts +0 -29
- package/dist/editor/utils/comment-key-utils.d.ts +0 -7
- package/dist/editor/utils/data-block-error-handler.d.ts +0 -21
- package/dist/editor/utils/datablock-error-utils.d.ts +0 -1
- package/dist/editor/utils/sheet-editor-safe.d.ts +0 -26
- package/dist/index-DSogq3Tz.js +0 -55498
- package/dist/sheet-engine/core/modules/formula-async-eval.d.ts +0 -53
- package/dist/sheet-engine/core/modules/formula-eval.worker.d.ts +0 -1
- package/dist/sheet-engine/core/modules/formula-range-cache.d.ts +0 -20
- package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +0 -40
- package/dist/sheet-engine/core/modules/formula-transitive-deps.d.ts +0 -7
- package/dist/sheet-engine/core/modules/formula-worker-bridge.d.ts +0 -16
- package/dist/sheet-engine/core/modules/formula-worker-types.d.ts +0 -24
- package/dist/sheet-engine/core/theme.d.ts +0 -67
- package/dist/sheet-engine/react/components/SidebarPanelPortals/index.d.ts +0 -17
package/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,7 @@ export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
|
|
|
4
4
|
export { executeStringFunction } from './editor/utils/executeStringFunction';
|
|
5
5
|
export { FLVURL } from '@fileverse-dev/formulajs';
|
|
6
6
|
export { loadLocale } from './sheet-engine/core';
|
|
7
|
-
export type { ErrorMessageHandlerReturnType
|
|
8
|
-
export type { PanelConfig, PanelId, BuiltInPanelType } from './editor/types';
|
|
9
|
-
export type { CommentThread, CommentReply, CommentActionParams, CommentsConfig, } from './editor/types/comments';
|
|
10
|
-
export { CommentAction } from './editor/types/comments';
|
|
11
|
-
export { CommentsContent } from './editor/components/comments/comment-sidebar';
|
|
12
|
-
export { CommentCellUI } from './editor/components/comments/comment-cell-popup';
|
|
13
|
-
export { useEnsStatus } from './editor/components/comments/ens/use-ens-status';
|
|
14
|
-
export type { EnsStatus } from './editor/components/comments/ens/ens-cache';
|
|
7
|
+
export type { ErrorMessageHandlerReturnType } from './editor/types';
|
|
15
8
|
export type { WorkbookInstance } from './sheet-engine/react';
|
|
16
9
|
export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabStatus, CollabError, CollabErrorCode, CollabUser, } from './sync-local/types';
|
|
17
10
|
export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/shared-constants';
|
package/dist/index.es.js
CHANGED
|
@@ -1,57 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { FLVURL as
|
|
4
|
-
import { E as
|
|
1
|
+
import { S as s, a as o, i as t, T as r, b as l, d as n, e as d, f as i, g as S, h as c, j as h, k as m, l as p, n as u, o as C, p as E, q as g, r as F, s as x, t as R, u as f, v as L, w as b, x as w, z as A, A as T, B as v, C as I, D, E as M, F as V, G as k } from "./index-DbuVGe3U.js";
|
|
2
|
+
import { bP as z, bQ as X, bR as _, bV as y, bg as B, e as G, f as O, h as U, a as j, cf as q, aq as H, cm as J } from "./executeStringFunction-BkmJj04p.js";
|
|
3
|
+
import { FLVURL as N } from "@fileverse-dev/formulajs";
|
|
4
|
+
import { E as Y, S as Z } from "./constants-yStXQJiK.js";
|
|
5
5
|
export {
|
|
6
|
-
s as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
y as
|
|
20
|
-
B as
|
|
21
|
-
|
|
22
|
-
G as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
u as
|
|
32
|
-
|
|
33
|
-
E as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
x as
|
|
37
|
-
R as
|
|
38
|
-
f as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
w as
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
M as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
X as toolbarItemClickHandler,
|
|
54
|
-
z as updateFormat,
|
|
55
|
-
P as useEnsStatus,
|
|
56
|
-
U as useXLSXImport
|
|
6
|
+
s as DSheetEditor,
|
|
7
|
+
o as DSheetSkeleton,
|
|
8
|
+
Y as ERROR_MESSAGES_FLAG,
|
|
9
|
+
N as FLVURL,
|
|
10
|
+
t as FortuneCore,
|
|
11
|
+
Z as SERVICES_API_KEY,
|
|
12
|
+
r as TEMPLATES,
|
|
13
|
+
l as api,
|
|
14
|
+
z as clearColumnsCellsFormat,
|
|
15
|
+
n as clearFilter,
|
|
16
|
+
X as clearRowsCellsFormat,
|
|
17
|
+
_ as clearSelectedCellFormat,
|
|
18
|
+
d as createFilter,
|
|
19
|
+
y as deleteRowCol,
|
|
20
|
+
B as deleteSelectedCellText,
|
|
21
|
+
i as describeMatchedShortcut,
|
|
22
|
+
G as executeStringFunction,
|
|
23
|
+
O as formulaResponseUiSync,
|
|
24
|
+
U as getFlowdata,
|
|
25
|
+
S as getRemoveDuplicatesErrorMessage,
|
|
26
|
+
c as getRemoveDuplicatesPreview,
|
|
27
|
+
j as getSheetIndex,
|
|
28
|
+
h as handleCSVUpload,
|
|
29
|
+
m as handleCopy,
|
|
30
|
+
p as handleExportToCSV,
|
|
31
|
+
u as handleExportToJSON,
|
|
32
|
+
C as handleExportToXLSX,
|
|
33
|
+
E as handleFreeze,
|
|
34
|
+
g as handleHorizontalAlign,
|
|
35
|
+
F as handleLink,
|
|
36
|
+
x as handleMerge,
|
|
37
|
+
R as handlePasteByClick,
|
|
38
|
+
f as handleSort,
|
|
39
|
+
L as handleTextSize,
|
|
40
|
+
b as handleVerticalAlign,
|
|
41
|
+
q as insertRowCol,
|
|
42
|
+
w as isBrowserZoomShortcut,
|
|
43
|
+
A as isFormulaListShortcut,
|
|
44
|
+
T as isOpenShortcutsModalShortcut,
|
|
45
|
+
H as jfrefreshgrid,
|
|
46
|
+
J as loadLocale,
|
|
47
|
+
v as removeActiveImage,
|
|
48
|
+
I as removeDuplicates,
|
|
49
|
+
D as showImgChooser,
|
|
50
|
+
M as toolbarItemClickHandler,
|
|
51
|
+
V as updateFormat,
|
|
52
|
+
k as useXLSXImport
|
|
57
53
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
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
|
-
import { FormulaAsyncEvalJob } from './modules/formula-async-eval';
|
|
4
3
|
import { DateBaseLocale, Hooks } from './settings';
|
|
5
4
|
|
|
6
5
|
interface MutableRefObject<T> {
|
|
@@ -240,10 +239,6 @@ export type Context = {
|
|
|
240
239
|
luckysheetPaintSingle: boolean;
|
|
241
240
|
defaultCell: Cell;
|
|
242
241
|
groupValuesRefreshData: any[];
|
|
243
|
-
/** Chunked async formula recalc queue (Step 1 perf). Cleared when job completes. */
|
|
244
|
-
formulaAsyncEval?: FormulaAsyncEvalJob | null;
|
|
245
|
-
/** True while `formulaAsyncEval` is draining on the main thread in chunks. */
|
|
246
|
-
isFormulaCalculating?: boolean;
|
|
247
242
|
/**
|
|
248
243
|
* Incremented when formula `func_selectedrange` moves via keyboard (`rangeOfFormula`)
|
|
249
244
|
* so React re-renders — `FormulaCache` is a class and Immer does not track it.
|
|
@@ -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, 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,
|
|
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, 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, 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';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { Cell,
|
|
1
|
+
import { Cell, Rect, Selection } from '../types';
|
|
2
2
|
import { Context } from '../context';
|
|
3
|
-
import { FormulaAsyncEvalJob } from './formula-async-eval';
|
|
4
|
-
import { RangePassCacheEntry } from './formula-range-cache';
|
|
5
|
-
import { SnapshotEvalOutput } from './formula-snapshot-eval';
|
|
6
3
|
|
|
7
4
|
/** True when the formula is only numeric ops on TODAY()/NOW() (incl. unary +/−); used to display serials as dates. */
|
|
8
5
|
export declare function isTodayNowPureArithmeticDateResult(formula: string, value: number): boolean;
|
|
@@ -40,12 +37,6 @@ export declare class FormulaCache {
|
|
|
40
37
|
depsByCell: Map<string, Set<string>>;
|
|
41
38
|
/** Reverse dependency graph: referenced cell -> dependent formula cells. */
|
|
42
39
|
revDepsByCell: Map<string, Set<string>>;
|
|
43
|
-
/**
|
|
44
|
-
* Formulas that referenced a range too large to fully expand into `revDepsByCell`.
|
|
45
|
-
* These must be included on incremental recalcs because a single-cell edit may
|
|
46
|
-
* affect them even when no precise reverse edge exists.
|
|
47
|
-
*/
|
|
48
|
-
formulasWithWideRangeDeps: Set<string>;
|
|
49
40
|
/**
|
|
50
41
|
* Dependency collection state for the currently-parsed formula, set by `execfunction`.
|
|
51
42
|
* When null, dependency recording is disabled.
|
|
@@ -53,20 +44,8 @@ export declare class FormulaCache {
|
|
|
53
44
|
activeDepCollection: null | {
|
|
54
45
|
originKey: string;
|
|
55
46
|
deps: Set<string>;
|
|
56
|
-
hasWideRangeDep: boolean;
|
|
57
|
-
};
|
|
58
|
-
/** Step 2: per execFunctionGroup pass cache for materialized range reads. */
|
|
59
|
-
rangeValuePassCache?: Map<string, RangePassCacheEntry>;
|
|
60
|
-
rangeValuePassCacheStats?: {
|
|
61
|
-
hits: number;
|
|
62
|
-
misses: number;
|
|
63
47
|
};
|
|
64
48
|
constructor();
|
|
65
|
-
materializeFullRangeFragment(context: Context, sheetId: string, flowdata: CellMatrix | null | undefined, startRow: number, endRow: number, startCol: number, endCol: number): {
|
|
66
|
-
fragment: any[][];
|
|
67
|
-
cryptoDenomination: string;
|
|
68
|
-
cryptoDecimal: number;
|
|
69
|
-
};
|
|
70
49
|
tryGetCellAsNumber(cell: Cell): string | number | boolean | undefined;
|
|
71
50
|
}
|
|
72
51
|
export declare function iscelldata(txt: string): boolean;
|
|
@@ -76,10 +55,6 @@ export declare function delFunctionGroup(ctx: Context, r: number, c: number, id?
|
|
|
76
55
|
export declare function insertUpdateFunctionGroup(ctx: Context, r: number, c: number, id?: string, calcChainSet?: Set<string>): void;
|
|
77
56
|
export declare function execfunction(ctx: Context, txt: string, r: number, c: number, id?: string, calcChainSet?: Set<string>, isrefresh?: boolean, notInsertFunc?: boolean): any[];
|
|
78
57
|
export declare function groupValuesRefresh(ctx: Context): void;
|
|
79
|
-
/** Apply worker chunk output onto the live context (main thread only). */
|
|
80
|
-
export declare function applyWorkerFormulaChunkResults(ctx: Context, output: SnapshotEvalOutput, impactedByCircular: Set<string>, cycleNodes: Set<string>, calcChainKeys?: string[], data?: CellMatrix | null): void;
|
|
81
|
-
/** Run up to `chunkSize` formulas from an async job. Returns true when job is complete. */
|
|
82
|
-
export declare function runFormulaEvalChunk(ctx: Context, job: FormulaAsyncEvalJob, chunkSize?: number): boolean;
|
|
83
58
|
export declare function execFunctionGroup(ctx: Context, origin_r: number, origin_c: number, value: any, id?: string, data?: any, isForce?: boolean): void;
|
|
84
59
|
/**
|
|
85
60
|
* Before the first `moveHighlightCell/Range(..., "rangeOfFormula")` while editing
|
|
@@ -5,8 +5,6 @@ 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
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
|
-
export { FORMULA_ASYNC_CHUNK_SIZE, FORMULA_ASYNC_EVAL_THRESHOLD, FORMULA_WORKER_CHUNK_SIZE, FORMULA_WORKER_THRESHOLD, isFormulaEvalPending, } from './formula-async-eval';
|
|
9
|
-
export type { FormulaAsyncEvalJob } from './formula-async-eval';
|
|
10
8
|
export { initFreeze } from './freeze';
|
|
11
9
|
export { isInlineStringCell, getInlineStringNoStyle, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, } from './inline-string';
|
|
12
10
|
export { rowLocation, rowLocationByIndex, colLocation, colLocationByIndex, } from './location';
|
|
@@ -42,6 +40,6 @@ export { sanitizeDuneUrl, insertDuneChart, onIframeMoveStart, onIframeResizeStar
|
|
|
42
40
|
export { setCellError, clearCellError, overShowError, } from './error-state-helpers';
|
|
43
41
|
export { checkCellIsLocked } from './protection';
|
|
44
42
|
export { detectDateFormat, isdatatypemulti, diff, isdatetime, isRealNull, isRealNum, isNumericCellType, } from './validation';
|
|
45
|
-
export { iscelldata, getcellrange, execfunction, execFunctionGroup,
|
|
43
|
+
export { iscelldata, getcellrange, execfunction, execFunctionGroup, insertUpdateFunctionGroup, functionCopy, } from './formula';
|
|
46
44
|
export { checkCF, getComputeMap } from './ConditionFormat';
|
|
47
45
|
export { getdatabyselection, getQKBorder } from './cell';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { LucideIconProps } from './LucideIcon';
|
|
3
2
|
|
|
4
3
|
export declare const LucideIcons: {
|
|
@@ -12,10 +11,10 @@ export declare const LucideIcons: {
|
|
|
12
11
|
Farcaster: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
Warpcast: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
DSheetTextDisabled: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
AddColLeft: (
|
|
16
|
-
AddColRight: (
|
|
17
|
-
AddRowBelowLocal: (
|
|
18
|
-
AddRowAboveLocal: (
|
|
14
|
+
AddColLeft: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
AddColRight: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
AddRowBelowLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
AddRowAboveLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
DSheetOnlyText: () => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
Orb: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
Lens: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,10 +11,10 @@ export declare const UltimateIcons: {
|
|
|
11
11
|
Farcaster: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
Warpcast: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
DSheetTextDisabled: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
AddColLeft: (
|
|
15
|
-
AddColRight: (
|
|
16
|
-
AddRowBelowLocal: (
|
|
17
|
-
AddRowAboveLocal: (
|
|
14
|
+
AddColLeft: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
AddColRight: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
AddRowBelowLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
AddRowAboveLocal: () => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
DSheetOnlyText: () => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
Orb: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
Lens: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { Settings, Context, CellWithRowAndCol, Sheet as SheetType, Op, CellMatrix, api } from '../../../core';
|
|
2
|
-
import { ThemeKey } from '../../../core/theme';
|
|
3
2
|
import { default as React } from 'react';
|
|
4
3
|
import { getCryptoPrice } from '../../utils/cryptoApi';
|
|
5
4
|
import { SetContextOptions } from '../../context';
|
|
6
5
|
import { generateAPIs } from './api';
|
|
7
|
-
import { SidebarPortalRegistryHandle, SidebarPortalRenderer } from '../SidebarPanelPortals';
|
|
8
6
|
|
|
9
7
|
export type WorkbookInstance = ReturnType<typeof generateAPIs>;
|
|
10
8
|
type AdditionalProps = {
|
|
11
9
|
onOp?: (op: Op[]) => void;
|
|
12
|
-
sidebarActivePanel?: string | null;
|
|
13
|
-
sidebarPortalRegistry?: SidebarPortalRegistryHandle | null;
|
|
14
|
-
sidebarPortalRenderers?: Record<string, SidebarPortalRenderer>;
|
|
15
|
-
theme?: ThemeKey;
|
|
16
10
|
};
|
|
17
11
|
declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
|
|
18
12
|
applyOp: (ops: Op[]) => void;
|
|
@@ -3,6 +3,5 @@ import { default as Workbook } from './Workbook';
|
|
|
3
3
|
export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from '@fileverse-dev/formulajs/crypto-constants';
|
|
4
4
|
export { Workbook };
|
|
5
5
|
export type { WorkbookInstance } from './Workbook';
|
|
6
|
-
export type { SidebarPortalRenderer, SidebarPortalRegistryHandle, SidebarPortalTargets, } from './SidebarPanelPortals';
|
|
7
6
|
export type { Cell, Sheet, LiveQueryData } from '../../core';
|
|
8
7
|
export { markCellChanged as animateChangedCell } from '../../core';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const datepickerStyles = "\n .datepicker-toggle {\n display: inline-block;\n position: relative;\n width: 100%;\n }\n \n .datepicker-toggle-button {\n opacity: 0.3;\n position: absolute;\n right: 12px;\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n height: 16px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4=');\n background-repeat: no-repeat;\n background-position: center;\n pointer-events: none;\n }\n \n .datepicker-input {\n width: 100%;\n padding: 8px 12px;\n border: 1px solid
|
|
1
|
+
export declare const datepickerStyles = "\n .datepicker-toggle {\n display: inline-block;\n position: relative;\n width: 100%;\n }\n \n .datepicker-toggle-button {\n opacity: 0.3;\n position: absolute;\n right: 12px;\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n height: 16px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4=');\n background-repeat: no-repeat;\n background-position: center;\n pointer-events: none;\n }\n \n .datepicker-input {\n width: 100%;\n padding: 8px 12px;\n border: 1px solid #e2e8f0;\n border-radius: 6px;\n font-size: 14px;\n line-height: 1.5;\n color: #1a202c;\n background-color: #fff;\n cursor: pointer;\n }\n \n .datepicker-input::-webkit-calendar-picker-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n cursor: pointer;\n opacity: 0;\n }\n \n .datepicker-input:focus {\n outline: none;\n border-color: #4299e1;\n box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);\n }\n";
|
|
2
2
|
export declare const injectDatepickerStyles: () => void;
|