@fileverse-dev/dsheet 2.1.0 → 2.1.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/index.d.ts CHANGED
@@ -15,5 +15,5 @@ export { handleExportToCSV } from './editor/utils/csv-export';
15
15
  export { handleExportToJSON } from './editor/utils/json-export';
16
16
  export { useXLSXImport } from './editor/hooks/use-xlsx-import';
17
17
  export * as FortuneCore from './sheet-engine/core';
18
- export { createFilter, clearFilter, handleSort, handleCopy, handlePasteByClick, removeActiveImage, jfrefreshgrid, deleteSelectedCellText, deleteRowCol, getFlowdata, updateFormat, handleTextSize, handleHorizontalAlign, handleVerticalAlign, toolbarItemClickHandler, getSheetIndex, handleMerge, clearSelectedCellFormat, clearColumnsCellsFormat, clearRowsCellsFormat, handleFreeze, insertRowCol, showImgChooser, handleLink, api, } from './sheet-engine/core';
18
+ export { createFilter, clearFilter, handleSort, handleCopy, handlePasteByClick, removeActiveImage, jfrefreshgrid, deleteSelectedCellText, deleteRowCol, getFlowdata, updateFormat, handleTextSize, handleHorizontalAlign, handleVerticalAlign, toolbarItemClickHandler, getSheetIndex, handleMerge, clearSelectedCellFormat, clearColumnsCellsFormat, clearRowsCellsFormat, handleFreeze, insertRowCol, showImgChooser, handleLink, api, describeMatchedShortcut, isBrowserZoomShortcut, isFormulaListShortcut, isOpenShortcutsModalShortcut, } from './sheet-engine/core';
19
19
  export type { PatchOptions } from './sheet-engine/core';
package/dist/index.es.js CHANGED
@@ -1,46 +1,50 @@
1
- import { S as s, a as l, i as o, T as t, b as r, d as n, e as d, h as S, f as h, g as i, j as c, k as m, l as C, n as p, o as E, p as x, q as F, r as g, s as R, t as f, u as L, v as b, w as u, x as T, z as A } from "./index-BPpCmYwh.js";
2
- import { bL as w, bM as k, bN as V, bR as z, bb as M, e as X, f as _, h as j, a as v, cc as y, aq as P, cj as U } from "./executeStringFunction-F9mb-SpN.js";
3
- import { FLVURL as D } from "@fileverse-dev/formulajs";
4
- import { E as H, S as N } from "./constants-yStXQJiK.js";
1
+ import { S as s, a as o, i as t, T as l, b as r, d as n, e as d, f as S, h, g as c, j as i, k as m, l as C, n as p, o as u, p as E, q as F, r as x, s as g, t as f, u as R, v as L, w as b, x as A, z as T, A as w, B as I, C as V, D as k } from "./index-D_IxoHMJ.js";
2
+ import { bP as z, bQ as P, bR as X, bV as _, bg as v, e as y, f as B, h as D, a as O, cf as U, aq as j, cm as q } from "./executeStringFunction-tdvZ0KTi.js";
3
+ import { FLVURL as H } from "@fileverse-dev/formulajs";
4
+ import { E as K, S as N } from "./constants-yStXQJiK.js";
5
5
  export {
6
6
  s as DSheetEditor,
7
- l as DSheetSkeleton,
8
- H as ERROR_MESSAGES_FLAG,
9
- D as FLVURL,
10
- o as FortuneCore,
7
+ o as DSheetSkeleton,
8
+ K as ERROR_MESSAGES_FLAG,
9
+ H as FLVURL,
10
+ t as FortuneCore,
11
11
  N as SERVICES_API_KEY,
12
- t as TEMPLATES,
12
+ l as TEMPLATES,
13
13
  r as api,
14
- w as clearColumnsCellsFormat,
14
+ z as clearColumnsCellsFormat,
15
15
  n as clearFilter,
16
- k as clearRowsCellsFormat,
17
- V as clearSelectedCellFormat,
16
+ P as clearRowsCellsFormat,
17
+ X as clearSelectedCellFormat,
18
18
  d as createFilter,
19
- z as deleteRowCol,
20
- M as deleteSelectedCellText,
21
- X as executeStringFunction,
22
- _ as formulaResponseUiSync,
23
- j as getFlowdata,
24
- v as getSheetIndex,
25
- S as handleCSVUpload,
26
- h as handleCopy,
19
+ _ as deleteRowCol,
20
+ v as deleteSelectedCellText,
21
+ S as describeMatchedShortcut,
22
+ y as executeStringFunction,
23
+ B as formulaResponseUiSync,
24
+ D as getFlowdata,
25
+ O as getSheetIndex,
26
+ h as handleCSVUpload,
27
+ c as handleCopy,
27
28
  i as handleExportToCSV,
28
- c as handleExportToJSON,
29
- m as handleExportToXLSX,
30
- C as handleFreeze,
31
- p as handleHorizontalAlign,
29
+ m as handleExportToJSON,
30
+ C as handleExportToXLSX,
31
+ p as handleFreeze,
32
+ u as handleHorizontalAlign,
32
33
  E as handleLink,
33
- x as handleMerge,
34
- F as handlePasteByClick,
34
+ F as handleMerge,
35
+ x as handlePasteByClick,
35
36
  g as handleSort,
36
- R as handleTextSize,
37
- f as handleVerticalAlign,
38
- y as insertRowCol,
39
- P as jfrefreshgrid,
40
- U as loadLocale,
41
- L as removeActiveImage,
42
- b as showImgChooser,
43
- u as toolbarItemClickHandler,
44
- T as updateFormat,
45
- A as useXLSXImport
37
+ f as handleTextSize,
38
+ R as handleVerticalAlign,
39
+ U as insertRowCol,
40
+ L as isBrowserZoomShortcut,
41
+ b as isFormulaListShortcut,
42
+ A as isOpenShortcutsModalShortcut,
43
+ j as jfrefreshgrid,
44
+ q as loadLocale,
45
+ T as removeActiveImage,
46
+ w as showImgChooser,
47
+ I as toolbarItemClickHandler,
48
+ V as updateFormat,
49
+ k as useXLSXImport
46
50
  };
@@ -1,4 +1,5 @@
1
1
  export { handleCopy } from './copy';
2
2
  export { handleGlobalKeyDown } from './keyboard';
3
+ export { describeMatchedShortcut, isBrowserZoomShortcut, isOpenShortcutsModalShortcut, isFormulaListShortcut, } from './keyboard-shortcut-utils';
3
4
  export { fixPositionOnFrozenCells, handleCellAreaMouseDown, handleCellAreaDoubleClick, handleContextMenu, mouseRender, handleOverlayMouseMove, handleOverlayMouseUp, handleRowHeaderMouseDown, handleColumnHeaderMouseDown, handleColSizeHandleMouseDown, handleColSizeHandleDoubleClick, handleRowSizeHandleMouseDown, handleColFreezeHandleMouseDown, handleRowFreezeHandleMouseDown, } from './mouse';
4
5
  export { handlePaste, handlePasteByClick } from './paste';
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Google Sheets–style keyboard matchers.
3
+ * - Letters / digits / F-keys: physical `code`
4
+ * - Punctuation (docs show characters): `code` + `key` + modifiers
5
+ */
6
+ export declare function hasMod(e: KeyboardEvent): boolean;
7
+ /**
8
+ * Insert date — Cmd/Ctrl+; (Google Sheets).
9
+ * Match on typed `;` character (AZERTY often uses Shift+, → code Comma).
10
+ * US QWERTY: physical Semicolon key without shift.
11
+ */
12
+ export declare function isInsertDateShortcut(e: KeyboardEvent): boolean;
13
+ /**
14
+ * Insert time — Cmd/Ctrl+Shift+; (Google Sheets).
15
+ * US QWERTY: Shift+; → key ":" code Semicolon.
16
+ * AZERTY (runtime): Cmd+Shift+; → code Comma with key "." or ","; Cmd+Shift+. → code Period with key "/" or ".".
17
+ */
18
+ export declare function isInsertTimeShortcut(e: KeyboardEvent): boolean;
19
+ /** Google Mac: ⌘+Option+Shift+; — insert date and time (AZERTY-safe). */
20
+ export declare function isInsertDateTimeShortcut(e: KeyboardEvent): boolean;
21
+ /**
22
+ * US / EU: Cmd/Ctrl+Shift+" — insert date and time.
23
+ * Mac AZERTY: `"` is Shift+3, but ⌘+Shift+3 is macOS screenshot (never reaches the page).
24
+ * Use ⌘+Option+Shift+3/; or Ctrl+Shift+3 instead (Google Mac alternates).
25
+ */
26
+ export declare function isUsInsertDateTimeQuoteShortcut(e: KeyboardEvent): boolean;
27
+ export declare function isPlainTextFormatShortcut(e: KeyboardEvent): boolean;
28
+ /**
29
+ * Strikethrough — Google Sheets:
30
+ * Mac: Cmd+Shift+X, Ctrl+Option+Shift+5
31
+ * Win: Alt+Shift+5, Ctrl+Shift+X
32
+ */
33
+ export declare function isStrikethroughShortcut(e: KeyboardEvent): boolean;
34
+ /** Google / dSheets: Cmd+Option+M (Mac), Ctrl+Alt+M (Win). AZERTY M-key slot. */
35
+ export declare function isInsertCommentShortcut(e: KeyboardEvent): boolean;
36
+ /** Google Sheets: Cmd/Ctrl+A — select all. AZERTY types "a" on physical KeyQ. */
37
+ export declare function isSelectAllShortcut(e: KeyboardEvent): boolean;
38
+ /**
39
+ * Number formats — Google Mac: Ctrl+Shift+1–6; also Cmd/Ctrl+Shift+1–6.
40
+ */
41
+ export declare function isNumberFormatModifier(e: KeyboardEvent): boolean;
42
+ export declare function isDigitFormatKey(e: KeyboardEvent, digit: string): boolean;
43
+ /**
44
+ * Formula list — Ctrl/Cmd+Shift+) (Google Sheets).
45
+ * US: Shift+0 → ")"; AZERTY: Shift+5 → ")".
46
+ */
47
+ export declare function isFormulaListShortcut(e: KeyboardEvent): boolean;
48
+ export declare function isFindShortcut(e: KeyboardEvent): boolean;
49
+ export declare function isFindReplaceShortcut(e: KeyboardEvent): boolean;
50
+ /**
51
+ * Browser page zoom (Cmd/Ctrl + +/−). Never intercept — sheet has no keyboard zoom.
52
+ * Match by physical `code` and by AZERTY-remapped `key` values.
53
+ */
54
+ export declare function isBrowserZoomShortcut(e: KeyboardEvent): boolean;
55
+ /**
56
+ * Open shortcuts modal.
57
+ * Win: Ctrl+/. Mac/AZERTY: Option+/ or Option+: (WY). US fallback: Cmd+/.
58
+ */
59
+ export declare function isOpenShortcutsModalShortcut(e: KeyboardEvent): boolean;
60
+ /** Label which engine shortcut would match (best-effort; for host debug tooling). */
61
+ export declare function describeMatchedShortcut(e: KeyboardEvent): string | null;
@@ -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;
@@ -5,9 +5,9 @@ export { defaultContext, getFlowdata, ensureSheetIndex, initSheetIndex, updateCo
5
5
  export type { Context } from './context';
6
6
  export { defaultSettings } from './settings';
7
7
  export type { Settings, Hooks, DateBaseLocale } from './settings';
8
- export { handleCopy, handleGlobalKeyDown, handlePaste, handlePasteByClick, fixPositionOnFrozenCells, handleCellAreaMouseDown, handleCellAreaDoubleClick, handleContextMenu, mouseRender, handleOverlayMouseMove, handleOverlayMouseUp, handleRowHeaderMouseDown, handleColumnHeaderMouseDown, handleColSizeHandleMouseDown, handleColSizeHandleDoubleClick, handleRowSizeHandleMouseDown, handleColFreezeHandleMouseDown, handleRowFreezeHandleMouseDown, } from './events';
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, 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, 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, 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';
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, 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';
@@ -32,7 +32,7 @@ export { applyLocation, getOptionValue, getSelectRange, } from './locationCondit
32
32
  export { getDropdownList, setDropdownValue, confirmMessage, cellFocus, validateCellData, } from './dataVerification';
33
33
  export { setConditionRules, CF_DATE_DEFAULT_FORMAT, parseCfDateConditionForUi, formatCfDatePresetSnapshot, parseDdMmYyyyToSerial, } from './ConditionFormat';
34
34
  export { handleOverlayTouchStart, handleOverlayTouchEnd } from './mobile';
35
- export { MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, handleKeydownForZoom } from './zoom';
35
+ export { MAX_ZOOM_RATIO, MIN_ZOOM_RATIO } from './zoom';
36
36
  export { jfrefreshgrid } from './refresh';
37
37
  export { sanitizeDuneUrl, insertDuneChart, onIframeMoveStart, onIframeResizeStart, onIframeMove, onIframeMoveEnd, onIframeResize, onIframeResizeEnd, } from './iframe';
38
38
  export { setCellError, clearCellError, overShowError, } from './error-state-helpers';
@@ -70,6 +70,7 @@ export declare function fillDownData(ctx: Context): string;
70
70
  export declare function textFormat(ctx: Context, type: 'left' | 'center' | 'right'): string;
71
71
  export declare function fillDate(ctx: Context): string;
72
72
  export declare function fillTime(ctx: Context): string;
73
+ export declare function fillDateTime(ctx: Context): string;
73
74
  export declare function selectIsOverlap(ctx: Context, range?: any): boolean;
74
75
  export declare function selectAll(ctx: Context): void;
75
76
  export declare function fixRowStyleOverflowInFreeze(ctx: Context, r1: number, r2: number, freeze: Freezen | undefined): {
@@ -90,4 +91,11 @@ export declare function calcSelectionInfo(ctx: Context): {
90
91
  min: number;
91
92
  average: string;
92
93
  };
94
+ /** Move the active selection focus to an absolute row/column (Home/End navigation). */
95
+ export declare function jumpHighlightCell(ctx: Context, targetRow: number, targetCol: number): void;
96
+ /**
97
+ * Fill every cell in the current selection with the active/focus cell value
98
+ * (Ctrl/Cmd+Enter — same value across the whole selection).
99
+ */
100
+ export declare function fillSelectionWithActiveValue(ctx: Context, cellInput: HTMLDivElement, canvas?: CanvasRenderingContext2D): boolean;
93
101
  export {};
@@ -1,3 +1,2 @@
1
1
  export declare const MAX_ZOOM_RATIO = 4;
2
2
  export declare const MIN_ZOOM_RATIO = 0.1;
3
- export declare function handleKeydownForZoom(ev: KeyboardEvent, currentZoom: number): number;
@@ -1,6 +1,6 @@
1
- import { g as Ue } from "./executeStringFunction-F9mb-SpN.js";
1
+ import { g as Ue } from "./executeStringFunction-tdvZ0KTi.js";
2
2
  import * as qe from "yjs";
3
- import { m as Xe, y as Ze } from "./index-BPpCmYwh.js";
3
+ import { m as Xe, y as Ze } from "./index-D_IxoHMJ.js";
4
4
  import { n as Je } from "./xlsx-hyperlink-inline-DzewAypN.js";
5
5
  import { toast as Be } from "@fileverse/ui";
6
6
  var We = { exports: {} };
@@ -2,8 +2,8 @@ import { utils as dt, write as Nt } from "xlsx-js-style";
2
2
  import { Workbook as Pt } from "exceljs";
3
3
  import { toast as Ut } from "@fileverse/ui";
4
4
  import { addFortuneImagesToWorksheet as Lt } from "./xlsx-image-utils-Cvg0qxRA.js";
5
- import { g as jt, c as xt } from "./executeStringFunction-F9mb-SpN.js";
6
- import { c as Ct } from "./index-BPpCmYwh.js";
5
+ import { g as jt, c as xt } from "./executeStringFunction-tdvZ0KTi.js";
6
+ import { c as Ct } from "./index-D_IxoHMJ.js";
7
7
  import { c as zt, g as Wt } from "./xlsx-hyperlink-inline-DzewAypN.js";
8
8
  const Mt = {
9
9
  1: "thin",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "2.1.0",
5
+ "version": "2.1.1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -34,7 +34,8 @@
34
34
  "scripts": {
35
35
  "dev": "vite",
36
36
  "build": "tsc && vite build",
37
- "dev:link": "npm run build && cp -r dist/* ../dsheets.new/node_modules/@fileverse-dev/dsheet/dist/ && echo '✓ Copied to dsheets.new'",
37
+ "build:dist": "vite build",
38
+ "dev:link": "npm run build:dist && cp -r dist/* ../dsheets.new/node_modules/@fileverse-dev/dsheet/dist/ && echo '✓ Copied to dsheets.new'",
38
39
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
39
40
  "preview": "vite preview"
40
41
  },
@@ -109,4 +110,4 @@
109
110
  "typescript": "^5.2.2",
110
111
  "vite": "^5.0.0"
111
112
  }
112
- }
113
+ }