@fileverse-dev/dsheet 4.1.8 → 4.1.9-cmt
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/export-menu-section.d.ts +2 -1
- package/dist/editor/components/import-button-ui.d.ts +3 -1
- package/dist/editor/components/read-only-export-button.d.ts +1 -1
- package/dist/editor/hooks/use-homepage-redirect.d.ts +2 -1
- package/dist/editor/hooks/use-xlsx-import.d.ts +4 -2
- package/dist/editor/utils/custom-toolbar-item.d.ts +5 -2
- package/dist/editor/utils/ods-export-sanitize.d.ts +9 -0
- package/dist/editor/utils/ods-export-sanitize.test.d.ts +1 -0
- package/dist/editor/utils/ods-to-xlsx.d.ts +6 -0
- package/dist/editor/utils/spreadsheet-import.d.ts +1 -1
- package/dist/editor/utils/xlsx-export-impl.d.ts +1 -0
- package/dist/editor/utils/xlsx-export.d.ts +1 -0
- package/dist/{es-BonrkVxY.js → es-yR2JIXsz.js} +8 -2
- package/dist/{executeStringFunction-V_hu5VRM.js → executeStringFunction-DMMvpc-I.js} +1385 -1374
- package/dist/formula.js +1 -1
- package/dist/{hi-Ca55EZ4A.js → hi-DRcLnrnZ.js} +8 -2
- package/dist/{index-GBqDuF2T.js → index-D-LWXwhT.js} +9657 -9505
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +44 -43
- package/dist/ods-to-xlsx-DeJAYBkD.js +19 -0
- package/dist/sheet-engine/core/locale/en.d.ts +1 -0
- package/dist/sheet-engine/core/locale/es.d.ts +1 -0
- package/dist/sheet-engine/core/locale/hi.d.ts +1 -0
- package/dist/sheet-engine/core/locale/zh.d.ts +1 -0
- package/dist/sheet-engine/core/locale/zh_tw.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-CkHRRbtb.js → use-xlsx-import-impl-D5I9O2H5.js} +4 -4
- package/dist/{xlsx-defined-names-CBoWA_1s.js → xlsx-defined-names--Q1w2nN5.js} +2 -2
- package/dist/xlsx-export-impl-s13TyH01.js +880 -0
- package/dist/{xlsx-hyperlink-inline-CY7B4A0C.js → xlsx-hyperlink-inline-lfx1jg1v.js} +2 -2
- package/dist/{zh-BfQYzoDQ.js → zh-B1KUs68q.js} +4 -2
- package/dist/{zh_tw-CINWHD2H.js → zh_tw-B9_7WgLO.js} +4 -2
- package/package.json +3 -2
- package/dist/xlsx-export-impl-YSSLVP-V.js +0 -835
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/share
|
|
|
23
23
|
export { TEMPLATES } from '@fileverse-dev/dsheets-templates/template-metadata-list';
|
|
24
24
|
export { handleCSVUpload } from './editor/utils/csv-import';
|
|
25
25
|
export { importSpreadsheetFile, type ImportSpreadsheetFileOptions, type ImportSpreadsheetFileResult, type SpreadsheetImportFileType, } from './editor/utils/spreadsheet-import';
|
|
26
|
-
export { handleExportToXLSX } from './editor/utils/xlsx-export';
|
|
26
|
+
export { handleExportToXLSX, handleExportToODS } from './editor/utils/xlsx-export';
|
|
27
27
|
export { handleExportToCSV } from './editor/utils/csv-export';
|
|
28
28
|
export { handleExportToJSON } from './editor/utils/json-export';
|
|
29
29
|
export { useXLSXImport } from './editor/hooks/use-xlsx-import';
|
package/dist/index.es.js
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as
|
|
2
|
-
import { cy as
|
|
3
|
-
import { FLVURL as
|
|
4
|
-
import { E as
|
|
1
|
+
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as f, B as A, D as I, E as L, F as T, G as w, H as y, I as v, J as D, K as M, L as b, M as k, N as z, O, P } from "./index-D-LWXwhT.js";
|
|
2
|
+
import { cy as G, cz as K, cA as U, cG as X, bs as _, e as j, f as B, l as H, a as q, di as J, dj as N, bb as Y, dk as Z, dl as Q, dq as W, dr as $, dt as ee, I as ae, dI as se, ef as oe, b4 as te } from "./executeStringFunction-DMMvpc-I.js";
|
|
3
|
+
import { FLVURL as le } from "@fileverse-dev/formulajs";
|
|
4
|
+
import { E as de, S as Se } from "./constants-8Ij49Lxv.js";
|
|
5
5
|
export {
|
|
6
6
|
s as CommentAction,
|
|
7
7
|
o as CommentCellUI,
|
|
8
8
|
t as CommentsContent,
|
|
9
9
|
r as DSheetEditor,
|
|
10
10
|
l as DSheetSkeleton,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
de as ERROR_MESSAGES_FLAG,
|
|
12
|
+
le as FLVURL,
|
|
13
13
|
n as FortuneCore,
|
|
14
|
-
|
|
14
|
+
Se as SERVICES_API_KEY,
|
|
15
15
|
d as SupportedChain,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
S as TEMPLATES,
|
|
17
|
+
c as api,
|
|
18
|
+
G as clearColumnsCellsFormat,
|
|
19
|
+
i as clearFilter,
|
|
20
|
+
K as clearRowsCellsFormat,
|
|
21
|
+
U as clearSelectedCellFormat,
|
|
22
22
|
m as createFilter,
|
|
23
23
|
h as decryptForRoomKey,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
X as deleteRowCol,
|
|
25
|
+
_ as deleteSelectedCellText,
|
|
26
26
|
p as describeMatchedShortcut,
|
|
27
27
|
C as encryptForRoomKey,
|
|
28
|
-
|
|
28
|
+
j as executeStringFunction,
|
|
29
29
|
u as fetchSessionState,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
B as formulaResponseUiSync,
|
|
31
|
+
H as getFlowdata,
|
|
32
|
+
E as getRemoveDuplicatesErrorMessage,
|
|
33
|
+
F as getRemoveDuplicatesPreview,
|
|
34
|
+
q as getSheetIndex,
|
|
35
35
|
g as handleCSVUpload,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
x as handleCopy,
|
|
37
|
+
R as handleExportToCSV,
|
|
38
38
|
f as handleExportToJSON,
|
|
39
|
-
A as
|
|
40
|
-
|
|
41
|
-
J as
|
|
42
|
-
N as
|
|
43
|
-
Y as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Q as
|
|
47
|
-
W as
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
A as handleExportToODS,
|
|
40
|
+
I as handleExportToXLSX,
|
|
41
|
+
J as handleFreeze,
|
|
42
|
+
N as handleHorizontalAlign,
|
|
43
|
+
Y as handleLink,
|
|
44
|
+
Z as handleMerge,
|
|
45
|
+
L as handlePasteByClick,
|
|
46
|
+
Q as handleSort,
|
|
47
|
+
W as handleTextSize,
|
|
48
|
+
$ as handleVerticalAlign,
|
|
49
|
+
T as importSpreadsheetFile,
|
|
50
|
+
ee as insertRowCol,
|
|
50
51
|
w as isBrowserZoomShortcut,
|
|
51
52
|
y as isFormulaListShortcut,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
v as isOpenShortcutsModalShortcut,
|
|
54
|
+
ae as jfrefreshgrid,
|
|
55
|
+
se as loadLocale,
|
|
56
|
+
D as remapCommentAnchors,
|
|
56
57
|
M as removeActiveImage,
|
|
57
58
|
b as removeDuplicates,
|
|
58
59
|
k as seedSession,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
z as showImgChooser,
|
|
61
|
+
oe as toolbarItemClickHandler,
|
|
62
|
+
te as updateFormat,
|
|
63
|
+
O as useEnsStatus,
|
|
64
|
+
P as useXLSXImport
|
|
64
65
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { read as a, write as n } from "xlsx-js-style";
|
|
2
|
+
async function c(e) {
|
|
3
|
+
const r = await e.arrayBuffer(), t = a(r, {
|
|
4
|
+
type: "array",
|
|
5
|
+
cellDates: !0,
|
|
6
|
+
dense: !1
|
|
7
|
+
}), o = n(t, {
|
|
8
|
+
bookType: "xlsx",
|
|
9
|
+
type: "array",
|
|
10
|
+
compression: !0,
|
|
11
|
+
cellDates: !0
|
|
12
|
+
}), s = e.name.replace(/\.ods$/i, "") || "import";
|
|
13
|
+
return new File([o], `${s}.xlsx`, {
|
|
14
|
+
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as convertOdsFileToXlsxFile
|
|
19
|
+
};
|