@fileverse-dev/dsheet 2.1.1 → 2.1.2-dropIn-2

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.
Files changed (49) hide show
  1. package/dist/editor/components/comments/comment-actions-dropdown.d.ts +19 -0
  2. package/dist/editor/components/comments/comment-cell-popup.d.ts +4 -0
  3. package/dist/editor/components/comments/comment-input.d.ts +4 -0
  4. package/dist/editor/components/comments/comment-item.d.ts +4 -0
  5. package/dist/editor/components/comments/comment-sidebar-empty.d.ts +4 -0
  6. package/dist/editor/components/comments/comment-sidebar.d.ts +4 -0
  7. package/dist/editor/components/comments/ens/ens-cache.d.ts +10 -0
  8. package/dist/editor/components/comments/ens/use-ens-status.d.ts +10 -0
  9. package/dist/editor/components/comments/use-comment-cell-popup.d.ts +12 -0
  10. package/dist/editor/components/comments/use-comment-permissions.d.ts +15 -0
  11. package/dist/editor/components/editor-workbook.d.ts +4 -9
  12. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +20 -0
  13. package/dist/editor/components/sidebar/right-sidebar.d.ts +14 -0
  14. package/dist/editor/components/sidebar/sidebar-context.d.ts +17 -0
  15. package/dist/editor/components/sidebar/use-right-panels.d.ts +12 -0
  16. package/dist/editor/components/sidebars/conditional-format.d.ts +2 -0
  17. package/dist/editor/components/sidebars/data-verification.d.ts +2 -0
  18. package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +11 -0
  19. package/dist/editor/components/sidebars/function/function-categories.d.ts +6 -0
  20. package/dist/editor/components/sidebars/function/function-metadata.d.ts +7 -0
  21. package/dist/editor/components/sidebars/function/functionList.d.ts +8 -0
  22. package/dist/editor/components/sidebars/function/types.d.ts +24 -0
  23. package/dist/editor/components/sidebars/function/use-functions.d.ts +20 -0
  24. package/dist/editor/components/sidebars/function-content.d.ts +8 -0
  25. package/dist/editor/components/sidebars/template-ui.d.ts +22 -0
  26. package/dist/editor/components/sidebars/templates.d.ts +9 -0
  27. package/dist/editor/contexts/editor-context.d.ts +2 -2
  28. package/dist/editor/dsheet-editor.d.ts +1 -1
  29. package/dist/editor/types/comments.d.ts +131 -0
  30. package/dist/editor/types.d.ts +19 -5
  31. package/dist/editor/utils/api-keys-local-storage.d.ts +17 -0
  32. package/dist/editor/utils/cell-comment-marker.d.ts +29 -0
  33. package/dist/editor/utils/comment-key-utils.d.ts +7 -0
  34. package/dist/editor/utils/sheet-editor-safe.d.ts +26 -0
  35. package/dist/{executeStringFunction-tdvZ0KTi.js → executeStringFunction-CGbxAbbw.js} +436 -423
  36. package/dist/formula.js +1 -1
  37. package/dist/{index-D_IxoHMJ.js → index-CDtU1CMG.js} +21867 -19311
  38. package/dist/index.d.ts +8 -1
  39. package/dist/index.es.js +55 -48
  40. package/dist/sheet-engine/core/events/keyboard-shortcut-utils.d.ts +2 -0
  41. package/dist/sheet-engine/core/index.d.ts +2 -1
  42. package/dist/sheet-engine/core/locale/en.d.ts +13 -0
  43. package/dist/sheet-engine/core/modules/index.d.ts +2 -0
  44. package/dist/sheet-engine/core/modules/removeDuplicates.d.ts +29 -0
  45. package/dist/sheet-engine/react/components/RemoveDuplicates/index.d.ts +12 -0
  46. package/dist/style.css +1 -1
  47. package/dist/{use-xlsx-import-impl-AI2QDZt1.js → use-xlsx-import-impl-BLkzBn-k.js} +2 -2
  48. package/dist/{xlsx-export-impl-Buly1jC6.js → xlsx-export-impl-DxWsBfuJ.js} +2 -2
  49. package/package.json +3 -2
package/dist/index.d.ts CHANGED
@@ -5,6 +5,13 @@ export { executeStringFunction } from './editor/utils/executeStringFunction';
5
5
  export { FLVURL } from '@fileverse-dev/formulajs';
6
6
  export { loadLocale } from './sheet-engine/core';
7
7
  export type { ErrorMessageHandlerReturnType } from './editor/types';
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';
8
15
  export type { WorkbookInstance } from './sheet-engine/react';
9
16
  export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabStatus, CollabError, CollabErrorCode, CollabUser, } from './sync-local/types';
10
17
  export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/shared-constants';
@@ -15,5 +22,5 @@ export { handleExportToCSV } from './editor/utils/csv-export';
15
22
  export { handleExportToJSON } from './editor/utils/json-export';
16
23
  export { useXLSXImport } from './editor/hooks/use-xlsx-import';
17
24
  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, describeMatchedShortcut, isBrowserZoomShortcut, isFormulaListShortcut, isOpenShortcutsModalShortcut, } from './sheet-engine/core';
25
+ export { createFilter, clearFilter, handleSort, getRemoveDuplicatesPreview, removeDuplicates, getRemoveDuplicatesErrorMessage, 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
26
  export type { PatchOptions } from './sheet-engine/core';
package/dist/index.es.js CHANGED
@@ -1,50 +1,57 @@
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";
1
+ import { C as s, a as t, b as o, S as r, d as l, i as n, T as S, e as d, f as i, g as c, h, j as m, k as C, l as u, n as p, o as E, p as F, q as g, r as x, s as R, t as f, u as A, v as I, w as L, x as w, z as T, A as b, B as v, D, E as M, F as k, G as V, H as z, I as P, J as U, K as X } from "./index-CDtU1CMG.js";
2
+ import { bQ as y, bR as B, bS as G, ar as H, bh as O, e as j, f as q, h as J, a as K, cf as N, aq as Q, cm as Y } from "./executeStringFunction-CGbxAbbw.js";
3
+ import { FLVURL as W } from "@fileverse-dev/formulajs";
4
+ import { E as ee, S as ae } from "./constants-yStXQJiK.js";
5
5
  export {
6
- s as DSheetEditor,
7
- o as DSheetSkeleton,
8
- K as ERROR_MESSAGES_FLAG,
9
- H as FLVURL,
10
- t as FortuneCore,
11
- N as SERVICES_API_KEY,
12
- l as TEMPLATES,
13
- r as api,
14
- z as clearColumnsCellsFormat,
15
- n as clearFilter,
16
- P as clearRowsCellsFormat,
17
- X as clearSelectedCellFormat,
18
- d as createFilter,
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,
28
- i as handleExportToCSV,
29
- m as handleExportToJSON,
30
- C as handleExportToXLSX,
31
- p as handleFreeze,
32
- u as handleHorizontalAlign,
33
- E as handleLink,
34
- F as handleMerge,
35
- x as handlePasteByClick,
36
- g as handleSort,
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
6
+ s as CommentAction,
7
+ t as CommentCellUI,
8
+ o as CommentsContent,
9
+ r as DSheetEditor,
10
+ l as DSheetSkeleton,
11
+ ee as ERROR_MESSAGES_FLAG,
12
+ W as FLVURL,
13
+ n as FortuneCore,
14
+ ae as SERVICES_API_KEY,
15
+ S as TEMPLATES,
16
+ d as api,
17
+ y as clearColumnsCellsFormat,
18
+ i as clearFilter,
19
+ B as clearRowsCellsFormat,
20
+ G as clearSelectedCellFormat,
21
+ c as createFilter,
22
+ H as deleteRowCol,
23
+ O as deleteSelectedCellText,
24
+ h as describeMatchedShortcut,
25
+ j as executeStringFunction,
26
+ q as formulaResponseUiSync,
27
+ J as getFlowdata,
28
+ m as getRemoveDuplicatesErrorMessage,
29
+ C as getRemoveDuplicatesPreview,
30
+ K as getSheetIndex,
31
+ u as handleCSVUpload,
32
+ p as handleCopy,
33
+ E as handleExportToCSV,
34
+ F as handleExportToJSON,
35
+ g as handleExportToXLSX,
36
+ x as handleFreeze,
37
+ R as handleHorizontalAlign,
38
+ f as handleLink,
39
+ A as handleMerge,
40
+ I as handlePasteByClick,
41
+ L as handleSort,
42
+ w as handleTextSize,
43
+ T as handleVerticalAlign,
44
+ N as insertRowCol,
45
+ b as isBrowserZoomShortcut,
46
+ v as isFormulaListShortcut,
47
+ D as isOpenShortcutsModalShortcut,
48
+ Q as jfrefreshgrid,
49
+ Y as loadLocale,
50
+ M as removeActiveImage,
51
+ k as removeDuplicates,
52
+ V as showImgChooser,
53
+ z as toolbarItemClickHandler,
54
+ P as updateFormat,
55
+ U as useEnsStatus,
56
+ X as useXLSXImport
50
57
  };
@@ -40,6 +40,8 @@ export declare function isSelectAllShortcut(e: KeyboardEvent): boolean;
40
40
  */
41
41
  export declare function isNumberFormatModifier(e: KeyboardEvent): boolean;
42
42
  export declare function isDigitFormatKey(e: KeyboardEvent, digit: string): boolean;
43
+ /** Ctrl/Cmd+Shift+1–6 — number format (TEC-2311 §8). */
44
+ export declare function isNumberFormatShortcut(e: KeyboardEvent): boolean;
43
45
  /**
44
46
  * Formula list — Ctrl/Cmd+Shift+) (Google Sheets).
45
47
  * US: Shift+0 → ")"; AZERTY: Shift+5 → ")".
@@ -7,10 +7,11 @@ export { defaultSettings } from './settings';
7
7
  export type { Settings, Hooks, DateBaseLocale } from './settings';
8
8
  export { handleCopy, handleGlobalKeyDown, handlePaste, handlePasteByClick, fixPositionOnFrozenCells, handleCellAreaMouseDown, handleCellAreaDoubleClick, handleContextMenu, mouseRender, handleOverlayMouseMove, handleOverlayMouseUp, handleRowHeaderMouseDown, handleColumnHeaderMouseDown, handleColSizeHandleMouseDown, handleColSizeHandleDoubleClick, handleRowSizeHandleMouseDown, handleColFreezeHandleMouseDown, handleRowFreezeHandleMouseDown, describeMatchedShortcut, isBrowserZoomShortcut, isOpenShortcutsModalShortcut, isFormulaListShortcut, } from './events';
9
9
  export * from './locale';
10
- export { getBorderInfoComputeRange, getBorderInfoCompute, normalizedCellAttr, normalizedAttr, getCellValue, setCellValue, getRealCellValue, mergeBorder, cancelNormalSelected, updateCell, getRangetxt, getRangeByTxt, isValidRangeText, getInlineStringHTML, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, getStyleByCell, clearSelectedCellFormat, clearRowsCellsFormat, clearColumnsCellsFormat, clipboard, moveToEnd, getRangeRectsByCharacterOffset, getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, buildFiatCurrencyFormat, quoteSsfLiteral, FormulaCache, groupValuesRefresh, execFunctionGroup, 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';
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';
14
14
  export type { Op, Cell, CellWithRowAndCol, CellMatrix, HyperlinkEntry, Selection, Presence, Sheet, GlobalCache, SingleRange, Range, SearchResult, LinkCardProps, LiveQueryData, Freezen, } from './types';
15
+ export type { RemoveDuplicatesColumnOption, RemoveDuplicatesError, RemoveDuplicatesOptions, RemoveDuplicatesPreview, RemoveDuplicatesResult, } from './modules';
15
16
  export type { CheckModes, HyperlinkMap, FindSearchScope, ReplaceScope, SearchHiddenConfig, SearchNextResult, ReplaceAllResult, } from './modules/searchReplace';
16
17
  export { cellFadeAnimator, markCellChanged } from './animate';
@@ -910,6 +910,19 @@ declare const _default: {
910
910
  allowOptionText: string;
911
911
  selectCategory: string;
912
912
  };
913
+ removeDuplicates: {
914
+ title: string;
915
+ dataHasHeaderRow: string;
916
+ columnsToAnalyze: string;
917
+ selectAll: string;
918
+ removeDuplicates: string;
919
+ result: string;
920
+ noMulti: string;
921
+ noMerge: string;
922
+ noColumns: string;
923
+ noSelection: string;
924
+ readOnly: string;
925
+ };
913
926
  drag: {
914
927
  noMerge: string;
915
928
  affectPivot: string;
@@ -18,6 +18,8 @@ export { drawArrow, setEditingComment, removeEditingComment, newComment, editCom
18
18
  export { showImgChooser, insertImage, removeActiveImage, cancelActiveImgItem, onImageMoveStart, onImageResizeStart, onImageMove, onImageMoveEnd, onImageResize, onImageResizeEnd, } from './image';
19
19
  export { createDropCellRange, dropCellCache, getTypeItemHide, updateDropCell, } from './dropCell';
20
20
  export { mergeCells, mergeSelectionHasValues } from './merge';
21
+ export { getRemoveDuplicatesPreview, removeDuplicates, getRemoveDuplicatesErrorMessage, } from './removeDuplicates';
22
+ export type { RemoveDuplicatesColumnOption, RemoveDuplicatesError, RemoveDuplicatesOptions, RemoveDuplicatesPreview, RemoveDuplicatesResult, } from './removeDuplicates';
21
23
  export { sortSelection, sortSheetBySelectedColumn, spillSortResult, } from './sort';
22
24
  export { searchAll, searchNext, replace, replaceAll, replaceAllScoped, getSearchIndexArr, getSearchIndexArrAsync, getFindRangeOnCurrentSheet, getQuickSearchIndexArr, getQuickSearchHiddenConfig, expandCellRectForMerge, shouldQuickSearchUseAsync, runQuickSearchIndexArrAsync, QUICK_SEARCH_ASYNC_ROW_THRESHOLD, parseRangeText, } from './searchReplace';
23
25
  export type { CheckModes, HyperlinkMap, FindSearchScope, ReplaceScope, SearchHiddenConfig, SearchNextResult, ReplaceAllResult, } from './searchReplace';
@@ -0,0 +1,29 @@
1
+ import { Context, Selection } from '..';
2
+
3
+ export type RemoveDuplicatesError = 'readOnly' | 'noSelection' | 'noMulti' | 'noMerge' | 'noColumns' | 'cannotDeleteAllRow';
4
+ export type RemoveDuplicatesColumnOption = {
5
+ column: number;
6
+ label: string;
7
+ checked: boolean;
8
+ };
9
+ export type RemoveDuplicatesPreview = {
10
+ range: Selection;
11
+ columns: RemoveDuplicatesColumnOption[];
12
+ };
13
+ export type RemoveDuplicatesOptions = {
14
+ hasHeaderRow: boolean;
15
+ analyzedColumns: number[];
16
+ /** Range captured when the dialog opened; avoids selection drift. */
17
+ range?: Selection;
18
+ };
19
+ export type RemoveDuplicatesResult = {
20
+ removedCount: number;
21
+ remainingCount: number;
22
+ error?: RemoveDuplicatesError;
23
+ };
24
+ export declare function getRemoveDuplicatesPreview(ctx: Context): {
25
+ preview?: RemoveDuplicatesPreview;
26
+ error?: RemoveDuplicatesError;
27
+ };
28
+ export declare function removeDuplicates(ctx: Context, options: RemoveDuplicatesOptions): RemoveDuplicatesResult;
29
+ export declare function getRemoveDuplicatesErrorMessage(ctx: Context, error: RemoveDuplicatesError): string;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { RemoveDuplicatesPreview } from '../../../core';
3
+
4
+ type RemoveDuplicatesDialogProps = {
5
+ initialPreview: RemoveDuplicatesPreview;
6
+ onClose: () => void;
7
+ };
8
+ declare const RemoveDuplicatesDialog: React.FC<RemoveDuplicatesDialogProps>;
9
+ export declare function useRemoveDuplicatesDialog(): {
10
+ openRemoveDuplicatesDialog: () => void;
11
+ };
12
+ export default RemoveDuplicatesDialog;