@fileverse-dev/dsheet 2.0.0-text → 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.
Files changed (33) hide show
  1. package/dist/editor/components/import-button-ui.d.ts +1 -1
  2. package/dist/editor/open-find-and-replace.d.ts +11 -0
  3. package/dist/editor/utils/csv-import.d.ts +1 -1
  4. package/dist/editor/utils/custom-toolbar-item.d.ts +1 -1
  5. package/dist/editor/utils/export-filename.d.ts +1 -0
  6. package/dist/{es-DqFXH9BK.js → es-BJ3y6kL2.js} +29 -4
  7. package/dist/{hi-cBN4FoX2.js → hi-BLJfbm0w.js} +29 -4
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.es.js +22196 -20665
  10. package/dist/sheet-engine/core/api/cell.d.ts +1 -1
  11. package/dist/sheet-engine/core/context.d.ts +36 -0
  12. package/dist/sheet-engine/core/events/mouse.d.ts +1 -1
  13. package/dist/sheet-engine/core/index.d.ts +2 -1
  14. package/dist/sheet-engine/core/locale/en.d.ts +25 -0
  15. package/dist/sheet-engine/core/locale/es.d.ts +25 -0
  16. package/dist/sheet-engine/core/locale/hi.d.ts +25 -0
  17. package/dist/sheet-engine/core/locale/zh.d.ts +25 -0
  18. package/dist/sheet-engine/core/locale/zh_tw.d.ts +25 -0
  19. package/dist/sheet-engine/core/modules/formula.d.ts +13 -4
  20. package/dist/sheet-engine/core/modules/index.d.ts +4 -3
  21. package/dist/sheet-engine/core/modules/inline-string.d.ts +6 -6
  22. package/dist/sheet-engine/core/modules/rowcol.d.ts +3 -3
  23. package/dist/sheet-engine/core/modules/searchReplace.d.ts +118 -26
  24. package/dist/sheet-engine/core/modules/selection.d.ts +12 -6
  25. package/dist/sheet-engine/core/types.d.ts +4 -2
  26. package/dist/sheet-engine/react/components/QuickSearch/index.d.ts +4 -0
  27. package/dist/sheet-engine/react/components/Workbook/api.d.ts +6 -0
  28. package/dist/sheet-engine/react/components/Workbook/index.d.ts +4 -0
  29. package/dist/sheet-engine/react/hooks/useFormulaEditorHistory.d.ts +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/{zh-UJov73Dl.js → zh-DNw41bZD.js} +29 -4
  32. package/dist/{zh_tw-DTGOcDTq.js → zh_tw-MZjDyZzy.js} +29 -4
  33. package/package.json +2 -2
@@ -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;
@@ -11121,9 +11121,23 @@ If the value is FALSE, return the accrued interest from the first interest accru
11121
11121
  lessTwoColumnTip: "Selecciona al menos dos columnas",
11122
11122
  findTextbox: "Encontrar Contenido",
11123
11123
  replaceTextbox: "Reemplazar Contenido",
11124
- regexTextbox: "Expresión Regular",
11125
- wholeTextbox: "Palabra entera",
11126
- distinguishTextbox: "Distingue mayúsculas y minúsculas",
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.",
11127
11141
  allReplaceBtn: "Reemplazar Todo",
11128
11142
  replaceBtn: "Reemplazar",
11129
11143
  allFindBtn: "Encontrar Todo",
@@ -11150,7 +11164,18 @@ If the value is FALSE, return the accrued interest from the first interest accru
11150
11164
  locationColumnSpan: "Intervalo columna",
11151
11165
  locationTiplessTwoRow: "Selecciona al menos dos filas",
11152
11166
  locationTiplessTwoColumn: "Selecciona al menos dos columnas",
11153
- 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"
11154
11179
  },
11155
11180
  sheetconfig: {
11156
11181
  delete: "Eliminar",
@@ -11171,9 +11171,23 @@ If the value is FALSE, return the accrued interest from the first interest accru
11171
11171
  lessTwoColumnTip: "कृपया कम से कम दो स्तंभ चुनें",
11172
11172
  findTextbox: "खोज सामग्री",
11173
11173
  replaceTextbox: "सामग्री बदलें",
11174
- regexTextbox: "नियमित अभिव्यक्ति",
11175
- wholeTextbox: "पूरा शब्द",
11176
- 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} मिलान सूत्र वाले सेल में होने के कारण छोड़ दिए गए",
11177
11191
  allReplaceBtn: "सभी बदलें",
11178
11192
  replaceBtn: "बदलें",
11179
11193
  allFindBtn: "सभी खोजें",
@@ -11200,7 +11214,18 @@ If the value is FALSE, return the accrued interest from the first interest accru
11200
11214
  locationColumnSpan: "स्तंभ विस्तार",
11201
11215
  locationTiplessTwoRow: "कृपया कम से कम दो पंक्तियाँ चुनें",
11202
11216
  locationTiplessTwoColumn: "कृपया कम से कम दो स्तंभ चुनें",
11203
- 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} मिलान"
11204
11229
  },
11205
11230
  sheetconfig: {
11206
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';