@fileverse-dev/dsheet 2.0.0 → 2.0.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/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-DqFXH9BK.js} +9 -1
- package/dist/{hi-DgkuC9mD.js → hi-cBN4FoX2.js} +9 -1
- package/dist/index.es.js +17505 -16766
- package/dist/sheet-engine/core/context.d.ts +5 -0
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/locale/en.d.ts +8 -0
- package/dist/sheet-engine/core/locale/es.d.ts +8 -0
- package/dist/sheet-engine/core/locale/hi.d.ts +8 -0
- package/dist/sheet-engine/core/locale/zh.d.ts +8 -0
- package/dist/sheet-engine/core/locale/zh_tw.d.ts +8 -0
- package/dist/sheet-engine/core/modules/cell.d.ts +5 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +9 -0
- package/dist/sheet-engine/core/modules/index.d.ts +3 -3
- package/dist/sheet-engine/core/modules/rowcol.d.ts +4 -0
- package/dist/sheet-engine/core/modules/selection.d.ts +6 -0
- package/dist/sheet-engine/core/modules/validation.d.ts +11 -0
- package/dist/sheet-engine/core/utils/patch.d.ts +2 -0
- package/dist/sheet-engine/react/components/ResetRowHeight/index.d.ts +3 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +2 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{zh-ForBOJJx.js → zh-UJov73Dl.js} +9 -1
- package/dist/{zh_tw-CjJceJE_.js → zh_tw-DTGOcDTq.js} +9 -1
- 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;
|
|
@@ -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
|
},
|
|
@@ -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
|
},
|