@fileverse-dev/dsheet 2.0.0 → 2.0.1-search-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/import-button-ui.d.ts +1 -1
- package/dist/editor/open-find-and-replace.d.ts +11 -0
- package/dist/editor/utils/csv-import.d.ts +1 -1
- package/dist/editor/utils/custom-toolbar-item.d.ts +1 -1
- package/dist/editor/utils/export-filename.d.ts +1 -0
- package/dist/{es-DHiiPgkU.js → es-BJ3y6kL2.js} +38 -5
- package/dist/{hi-DgkuC9mD.js → hi-BLJfbm0w.js} +38 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +20289 -18395
- package/dist/sheet-engine/core/api/cell.d.ts +1 -1
- package/dist/sheet-engine/core/context.d.ts +36 -0
- package/dist/sheet-engine/core/events/mouse.d.ts +1 -1
- package/dist/sheet-engine/core/index.d.ts +2 -1
- package/dist/sheet-engine/core/locale/en.d.ts +33 -0
- package/dist/sheet-engine/core/locale/es.d.ts +33 -0
- package/dist/sheet-engine/core/locale/hi.d.ts +33 -0
- package/dist/sheet-engine/core/locale/zh.d.ts +33 -0
- package/dist/sheet-engine/core/locale/zh_tw.d.ts +33 -0
- package/dist/sheet-engine/core/modules/cell.d.ts +5 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +13 -4
- package/dist/sheet-engine/core/modules/index.d.ts +5 -4
- package/dist/sheet-engine/core/modules/inline-string.d.ts +6 -6
- package/dist/sheet-engine/core/modules/rowcol.d.ts +7 -3
- package/dist/sheet-engine/core/modules/searchReplace.d.ts +118 -26
- package/dist/sheet-engine/core/modules/selection.d.ts +12 -6
- package/dist/sheet-engine/core/modules/validation.d.ts +11 -0
- package/dist/sheet-engine/core/types.d.ts +4 -2
- package/dist/sheet-engine/core/utils/patch.d.ts +2 -0
- package/dist/sheet-engine/react/components/QuickSearch/index.d.ts +4 -0
- package/dist/sheet-engine/react/components/ResetRowHeight/index.d.ts +3 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +6 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +4 -0
- package/dist/sheet-engine/react/hooks/useFormulaEditorHistory.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{zh-ForBOJJx.js → zh-DNw41bZD.js} +38 -5
- package/dist/{zh_tw-CjJceJE_.js → zh_tw-MZjDyZzy.js} +38 -5
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { ChangeEventHandler } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export declare const CustomButton: ({ setExportDropdownOpen, handleCSVUpload, handleXLSXUpload, handleExportToXLSX, handleExportToCSV, handleExportToJSON, }: {
|
|
4
4
|
setExportDropdownOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
-
handleCSVUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, file: any, importType: string) => void | Promise<void>;
|
|
5
|
+
handleCSVUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, file: any, importType: string, separatorType: string) => void | Promise<void>;
|
|
6
6
|
handleXLSXUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, file: any, importType: string) => void | Promise<void>;
|
|
7
7
|
handleExportToXLSX: () => void;
|
|
8
8
|
handleExportToCSV: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WorkbookInstance } from '../sheet-engine/react';
|
|
2
|
+
|
|
3
|
+
export type OpenFindAndReplaceOptions = {
|
|
4
|
+
/** Initial value for the Find field (optional). */
|
|
5
|
+
prefill?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Opens the Find and Replace dialog for a mounted workbook.
|
|
9
|
+
* Pass the imperative handle from `Workbook` / `DSheetEditor` (e.g. `sheetEditorRef.current`).
|
|
10
|
+
*/
|
|
11
|
+
export declare function openFindAndReplace(workbook: WorkbookInstance | null | undefined, options?: OpenFindAndReplaceOptions): void;
|
|
@@ -2,4 +2,4 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { WorkbookInstance } from '../../sheet-engine/react';
|
|
3
3
|
|
|
4
4
|
import * as Y from 'yjs';
|
|
5
|
-
export declare const handleCSVUpload: (event: React.ChangeEventHandler<HTMLInputElement> | undefined, ydoc: Y.Doc | null, setForceSheetRender: React.Dispatch<React.SetStateAction<number>>, dsheetId: string, currentDataRef: React.MutableRefObject<object | null>, sheetEditorRef: React.RefObject<WorkbookInstance | null>, updateDocumentTitle?: (title: string) => void, fileArg?: File, importType?: string, handleContentPortal?: any) => Promise<void>;
|
|
5
|
+
export declare const handleCSVUpload: (event: React.ChangeEventHandler<HTMLInputElement> | undefined, ydoc: Y.Doc | null, setForceSheetRender: React.Dispatch<React.SetStateAction<number>>, dsheetId: string, currentDataRef: React.MutableRefObject<object | null>, sheetEditorRef: React.RefObject<WorkbookInstance | null>, updateDocumentTitle?: (title: string) => void, fileArg?: File, importType?: string, handleContentPortal?: any, separatorType?: string) => Promise<void>;
|
|
@@ -8,7 +8,7 @@ export declare const getCustomToolbarItems: ({ handleContentPortal, setShowSmart
|
|
|
8
8
|
getDocumentTitle?: () => string;
|
|
9
9
|
updateDocumentTitle?: (title: string) => void;
|
|
10
10
|
setExportDropdownOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
|
-
handleCSVUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, ydocRef: Y.Doc | null, setForceSheetRender: React.Dispatch<React.SetStateAction<number>>, dsheetId: string, currentDataRef: React.MutableRefObject<object | null>, sheetEditorRef: React.RefObject<WorkbookInstance | null>, updateDocumentTitle?: (title: string) => void, file?: File, importType?: string, handleContentPortal?: any) => void | Promise<void>;
|
|
11
|
+
handleCSVUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, ydocRef: Y.Doc | null, setForceSheetRender: React.Dispatch<React.SetStateAction<number>>, dsheetId: string, currentDataRef: React.MutableRefObject<object | null>, sheetEditorRef: React.RefObject<WorkbookInstance | null>, updateDocumentTitle?: (title: string) => void, file?: File, importType?: string, handleContentPortal?: any, separatorType?: string) => void | Promise<void>;
|
|
12
12
|
handleXLSXUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, file?: File, importType?: string) => void | Promise<void>;
|
|
13
13
|
handleExportToXLSX: (sheetEditorRef: React.RefObject<WorkbookInstance | null>, ydocRef: React.RefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: () => string) => void;
|
|
14
14
|
handleExportToCSV: (sheetEditorRef: React.RefObject<WorkbookInstance | null>, ydocRef: React.RefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: () => string) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const removeFileExtension: (filename: string) => string;
|
|
1
2
|
export declare const sanitizeFilenameBase: (value: string) => string;
|
|
2
3
|
export declare const getExportFilenameBase: ({ getDocumentTitle, documentTitleFallback, sheetNameFallback, defaultBase, }: {
|
|
3
4
|
getDocumentTitle?: () => string;
|
|
@@ -10778,7 +10778,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
10778
10778
|
{ text: "", value: "split", example: "" },
|
|
10779
10779
|
{
|
|
10780
10780
|
text: "Contabilidad",
|
|
10781
|
-
value:
|
|
10781
|
+
value: `_("${e}"* #,##0.00_);_("${e}"* \\(#,##0.00\\);_("${e}"* "-"??_);_(@_)`,
|
|
10782
10782
|
example: `${e}(1200.09)`
|
|
10783
10783
|
},
|
|
10784
10784
|
{ text: "Moneda", value: `${e}0.00`, example: `${e}1200.09` },
|
|
@@ -11037,6 +11037,14 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11037
11037
|
cannotDeleteColumnReadOnly: "No se puede eliminar la columna de solo lectura",
|
|
11038
11038
|
cannotInsertOnRowReadOnly: "No se puede insertar en una fila de solo lectura",
|
|
11039
11039
|
cannotInsertOnColumnReadOnly: "No se puede insertar en la columna de solo lectura",
|
|
11040
|
+
insertRowAboveOne: "Insertar fila arriba",
|
|
11041
|
+
insertRowsAboveN: "Insertar {n} filas arriba",
|
|
11042
|
+
insertRowBelowOne: "Insertar fila abajo",
|
|
11043
|
+
insertRowsBelowN: "Insertar {n} filas abajo",
|
|
11044
|
+
insertColumnLeftOne: "Insertar columna a la izquierda",
|
|
11045
|
+
insertColumnsLeftN: "Insertar {n} columnas a la izquierda",
|
|
11046
|
+
insertColumnRightOne: "Insertar columna a la derecha",
|
|
11047
|
+
insertColumnsRightN: "Insertar {n} columnas a la derecha",
|
|
11040
11048
|
rowOverLimit: "Límite de 10000 filas excedido",
|
|
11041
11049
|
columnOverLimit: "Límite de 1000 columnas excedido"
|
|
11042
11050
|
},
|
|
@@ -11113,9 +11121,23 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11113
11121
|
lessTwoColumnTip: "Selecciona al menos dos columnas",
|
|
11114
11122
|
findTextbox: "Encontrar Contenido",
|
|
11115
11123
|
replaceTextbox: "Reemplazar Contenido",
|
|
11116
|
-
regexTextbox: "
|
|
11117
|
-
wholeTextbox: "
|
|
11118
|
-
distinguishTextbox: "
|
|
11124
|
+
regexTextbox: "Buscar con expresión regular",
|
|
11125
|
+
wholeTextbox: "Coincidir con todo el contenido de la celda",
|
|
11126
|
+
distinguishTextbox: "Coincidir mayúsculas y minúsculas",
|
|
11127
|
+
formulaTextbox: "Buscar dentro de fórmulas",
|
|
11128
|
+
linkTextbox: "Buscar dentro de enlaces",
|
|
11129
|
+
allSheetsTextbox: "Todas las hojas",
|
|
11130
|
+
searchScopeLabel: "Buscar en",
|
|
11131
|
+
searchScopeAllSheets: "Todas las hojas",
|
|
11132
|
+
searchScopeThisSheet: "Esta hoja",
|
|
11133
|
+
searchScopeSpecificRange: "Rango específico",
|
|
11134
|
+
rangeInputPlaceholder: "p. ej. A1:D10",
|
|
11135
|
+
rangeInputInvalidError: "Rango no válido. Use un formato como A1:D10",
|
|
11136
|
+
rangeSelectOnSheetTitle: "Seleccionar rango en la hoja",
|
|
11137
|
+
selectDataRangeTitle: "Seleccionar un rango de datos",
|
|
11138
|
+
replaceAllWithSkippedTip: "Se reemplazaron ${n} coincidencias. Se omitieron ${skipped} en celdas con fórmulas.",
|
|
11139
|
+
replaceAllSuccessInfotext: "Se reemplazaron ${n} coincidencias de '${find}' por '${replace}'.",
|
|
11140
|
+
replaceAllSuccessWithSkippedInfotext: "Se reemplazaron ${n} coincidencias de '${find}' por '${replace}'. Se omitieron ${skipped} coincidencias en celdas con fórmulas.",
|
|
11119
11141
|
allReplaceBtn: "Reemplazar Todo",
|
|
11120
11142
|
replaceBtn: "Reemplazar",
|
|
11121
11143
|
allFindBtn: "Encontrar Todo",
|
|
@@ -11142,7 +11164,18 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11142
11164
|
locationColumnSpan: "Intervalo columna",
|
|
11143
11165
|
locationTiplessTwoRow: "Selecciona al menos dos filas",
|
|
11144
11166
|
locationTiplessTwoColumn: "Selecciona al menos dos columnas",
|
|
11145
|
-
locationTipNotFindCell: "Celda no encontrada"
|
|
11167
|
+
locationTipNotFindCell: "Celda no encontrada",
|
|
11168
|
+
quickSearchPlaceholder: "Buscar en la hoja",
|
|
11169
|
+
quickSearchDialogAria: "Buscar en la hoja",
|
|
11170
|
+
quickSearchMoreOptionsTitle: "Más opciones",
|
|
11171
|
+
quickSearchOpenFindReplaceAria: "Abrir Buscar y reemplazar",
|
|
11172
|
+
quickSearchNextAria: "Siguiente coincidencia",
|
|
11173
|
+
quickSearchPrevAria: "Coincidencia anterior",
|
|
11174
|
+
quickSearchCloseAria: "Cerrar búsqueda",
|
|
11175
|
+
quickSearchNoResults: "Sin resultados",
|
|
11176
|
+
quickSearchSearching: "Buscando…",
|
|
11177
|
+
quickSearchCounterTemplate: "{current} de {total}",
|
|
11178
|
+
quickSearchMatchCountAria: "{current} de {total} coincidencias"
|
|
11146
11179
|
},
|
|
11147
11180
|
sheetconfig: {
|
|
11148
11181
|
delete: "Eliminar",
|
|
@@ -10814,7 +10814,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
10814
10814
|
{ text: "", value: "split", example: "" },
|
|
10815
10815
|
{
|
|
10816
10816
|
text: "लेखांकन",
|
|
10817
|
-
value:
|
|
10817
|
+
value: `_("${e}"* #,##0.00_);_("${e}"* \\(#,##0.00\\);_("${e}"* "-"??_);_(@_)`,
|
|
10818
10818
|
example: `${e}(1200.09)`
|
|
10819
10819
|
},
|
|
10820
10820
|
{ text: "मुद्रा", value: `${e}0.00`, example: `${e}1200.09` },
|
|
@@ -11080,6 +11080,14 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11080
11080
|
cannotDeleteColumnReadOnly: "स्तंभ केवल-पढ़ने के लिए हटाई नहीं जा सकती",
|
|
11081
11081
|
cannotInsertOnRowReadOnly: "केवल-पढ़ने की पंक्ति पर सम्मिलित नहीं कर सकते",
|
|
11082
11082
|
cannotInsertOnColumnReadOnly: "केवल-पढ़ने के स्तंभ पर सम्मिलित नहीं कर सकते",
|
|
11083
|
+
insertRowAboveOne: "Insert row above",
|
|
11084
|
+
insertRowsAboveN: "Insert {n} rows above",
|
|
11085
|
+
insertRowBelowOne: "Insert row below",
|
|
11086
|
+
insertRowsBelowN: "Insert {n} rows below",
|
|
11087
|
+
insertColumnLeftOne: "Insert column to the left",
|
|
11088
|
+
insertColumnsLeftN: "Insert {n} columns to the left",
|
|
11089
|
+
insertColumnRightOne: "Insert column to the right",
|
|
11090
|
+
insertColumnsRightN: "Insert {n} columns to the right",
|
|
11083
11091
|
rowOverLimit: "10000 पंक्ति सीमा पार हो गई",
|
|
11084
11092
|
columnOverLimit: "1000 स्तंभ सीमा पार हो गई"
|
|
11085
11093
|
},
|
|
@@ -11163,9 +11171,23 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11163
11171
|
lessTwoColumnTip: "कृपया कम से कम दो स्तंभ चुनें",
|
|
11164
11172
|
findTextbox: "खोज सामग्री",
|
|
11165
11173
|
replaceTextbox: "सामग्री बदलें",
|
|
11166
|
-
regexTextbox: "नियमित अभिव्यक्ति",
|
|
11167
|
-
wholeTextbox: "
|
|
11168
|
-
distinguishTextbox: "केस
|
|
11174
|
+
regexTextbox: "नियमित अभिव्यक्ति से खोजें",
|
|
11175
|
+
wholeTextbox: "पूरी सेल सामग्री से मिलाएँ",
|
|
11176
|
+
distinguishTextbox: "केस मिलाएँ",
|
|
11177
|
+
formulaTextbox: "सूत्रों में खोजें",
|
|
11178
|
+
linkTextbox: "लिंक में खोजें",
|
|
11179
|
+
allSheetsTextbox: "सभी शीट",
|
|
11180
|
+
searchScopeLabel: "खोज सीमा",
|
|
11181
|
+
searchScopeAllSheets: "सभी शीट",
|
|
11182
|
+
searchScopeThisSheet: "यह शीट",
|
|
11183
|
+
searchScopeSpecificRange: "विशिष्ट रेंज",
|
|
11184
|
+
rangeInputPlaceholder: "उदा. A1:D10",
|
|
11185
|
+
rangeInputInvalidError: "अमान्य रेंज। A1:D10 जैसा प्रारूप उपयोग करें",
|
|
11186
|
+
rangeSelectOnSheetTitle: "शीट पर रेंज चुनें",
|
|
11187
|
+
selectDataRangeTitle: "डेटा रेंज चुनें",
|
|
11188
|
+
replaceAllWithSkippedTip: "${n} मिलान बदल दिए गए। ${skipped} मिलान सूत्र वाले सेल में होने के कारण छोड़ दिए गए।",
|
|
11189
|
+
replaceAllSuccessInfotext: "'${find}' के ${n} मिलान '${replace}' से बदल दिए गए",
|
|
11190
|
+
replaceAllSuccessWithSkippedInfotext: "'${find}' के ${n} मिलान '${replace}' से बदल दिए गए। ${skipped} मिलान सूत्र वाले सेल में होने के कारण छोड़ दिए गए",
|
|
11169
11191
|
allReplaceBtn: "सभी बदलें",
|
|
11170
11192
|
replaceBtn: "बदलें",
|
|
11171
11193
|
allFindBtn: "सभी खोजें",
|
|
@@ -11192,7 +11214,18 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11192
11214
|
locationColumnSpan: "स्तंभ विस्तार",
|
|
11193
11215
|
locationTiplessTwoRow: "कृपया कम से कम दो पंक्तियाँ चुनें",
|
|
11194
11216
|
locationTiplessTwoColumn: "कृपया कम से कम दो स्तंभ चुनें",
|
|
11195
|
-
locationTipNotFindCell: "सेल नहीं मिला"
|
|
11217
|
+
locationTipNotFindCell: "सेल नहीं मिला",
|
|
11218
|
+
quickSearchPlaceholder: "शीट में खोजें",
|
|
11219
|
+
quickSearchDialogAria: "शीट में खोजें",
|
|
11220
|
+
quickSearchMoreOptionsTitle: "अधिक विकल्प",
|
|
11221
|
+
quickSearchOpenFindReplaceAria: "खोजें और बदलें खोलें",
|
|
11222
|
+
quickSearchNextAria: "अगला मिलान",
|
|
11223
|
+
quickSearchPrevAria: "पिछला मिलान",
|
|
11224
|
+
quickSearchCloseAria: "खोज बंद करें",
|
|
11225
|
+
quickSearchNoResults: "कोई परिणाम नहीं",
|
|
11226
|
+
quickSearchSearching: "खोज रहा है…",
|
|
11227
|
+
quickSearchCounterTemplate: "{total} में से {current}",
|
|
11228
|
+
quickSearchMatchCountAria: "{total} में से {current} मिलान"
|
|
11196
11229
|
},
|
|
11197
11230
|
sheetconfig: {
|
|
11198
11231
|
delete: "हटाएं",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as DSheetEditor } from './editor/dsheet-editor';
|
|
2
|
+
export { openFindAndReplace, type OpenFindAndReplaceOptions, } from './editor/open-find-and-replace';
|
|
2
3
|
export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
|
|
3
4
|
export { executeStringFunction } from './editor/utils/executeStringFunction';
|
|
4
5
|
export { FLVURL } from '@fileverse-dev/formulajs';
|