@fileverse-dev/dsheet 2.1.1 → 2.1.2-dropIn-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/comments/comment-actions-dropdown.d.ts +19 -0
- package/dist/editor/components/comments/comment-cell-popup.d.ts +4 -0
- package/dist/editor/components/comments/comment-input.d.ts +4 -0
- package/dist/editor/components/comments/comment-item.d.ts +4 -0
- package/dist/editor/components/comments/comment-sidebar-empty.d.ts +4 -0
- package/dist/editor/components/comments/comment-sidebar.d.ts +4 -0
- package/dist/editor/components/comments/ens/ens-cache.d.ts +10 -0
- package/dist/editor/components/comments/ens/use-ens-status.d.ts +10 -0
- package/dist/editor/components/comments/use-comment-cell-popup.d.ts +12 -0
- package/dist/editor/components/comments/use-comment-permissions.d.ts +15 -0
- package/dist/editor/components/editor-workbook.d.ts +4 -9
- package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +20 -0
- package/dist/editor/components/sidebar/right-sidebar.d.ts +14 -0
- package/dist/editor/components/sidebar/sidebar-context.d.ts +17 -0
- package/dist/editor/components/sidebar/use-right-panels.d.ts +12 -0
- package/dist/editor/components/sidebars/conditional-format.d.ts +2 -0
- package/dist/editor/components/sidebars/data-verification.d.ts +2 -0
- package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +11 -0
- package/dist/editor/components/sidebars/function/function-categories.d.ts +6 -0
- package/dist/editor/components/sidebars/function/function-metadata.d.ts +7 -0
- package/dist/editor/components/sidebars/function/functionList.d.ts +8 -0
- package/dist/editor/components/sidebars/function/types.d.ts +24 -0
- package/dist/editor/components/sidebars/function/use-functions.d.ts +20 -0
- package/dist/editor/components/sidebars/function-content.d.ts +8 -0
- package/dist/editor/components/sidebars/template-ui.d.ts +22 -0
- package/dist/editor/components/sidebars/templates.d.ts +9 -0
- package/dist/editor/contexts/editor-context.d.ts +2 -2
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/types/comments.d.ts +128 -0
- package/dist/editor/types.d.ts +19 -5
- package/dist/editor/utils/api-keys-local-storage.d.ts +17 -0
- package/dist/editor/utils/cell-comment-marker.d.ts +29 -0
- package/dist/editor/utils/comment-key-utils.d.ts +7 -0
- package/dist/editor/utils/sheet-editor-safe.d.ts +26 -0
- package/dist/{executeStringFunction-tdvZ0KTi.js → executeStringFunction-CGbxAbbw.js} +436 -423
- package/dist/formula.js +1 -1
- package/dist/{index-D_IxoHMJ.js → index-5D_WjAlq.js} +22073 -19526
- package/dist/index.d.ts +8 -1
- package/dist/index.es.js +55 -48
- package/dist/sheet-engine/core/events/keyboard-shortcut-utils.d.ts +2 -0
- package/dist/sheet-engine/core/index.d.ts +2 -1
- package/dist/sheet-engine/core/locale/en.d.ts +13 -0
- package/dist/sheet-engine/core/modules/index.d.ts +2 -0
- package/dist/sheet-engine/core/modules/removeDuplicates.d.ts +29 -0
- package/dist/sheet-engine/react/components/RemoveDuplicates/index.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-AI2QDZt1.js → use-xlsx-import-impl-Dr0Yvje-.js} +2 -2
- package/dist/{xlsx-export-impl-Buly1jC6.js → xlsx-export-impl-D5W76OCB.js} +2 -2
- 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 {
|
|
2
|
-
import {
|
|
3
|
-
import { FLVURL as
|
|
4
|
-
import { E as
|
|
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-5D_WjAlq.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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
E as
|
|
34
|
-
F as
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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;
|