@fileverse-dev/dsheet 4.1.8 → 4.1.9-cmt-a

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 (34) hide show
  1. package/dist/editor/components/export-menu-section.d.ts +2 -1
  2. package/dist/editor/components/import-button-ui.d.ts +3 -1
  3. package/dist/editor/components/read-only-export-button.d.ts +1 -1
  4. package/dist/editor/hooks/use-homepage-redirect.d.ts +2 -1
  5. package/dist/editor/hooks/use-xlsx-import.d.ts +4 -2
  6. package/dist/editor/utils/custom-toolbar-item.d.ts +5 -2
  7. package/dist/editor/utils/ods-export-sanitize.d.ts +9 -0
  8. package/dist/editor/utils/ods-export-sanitize.test.d.ts +1 -0
  9. package/dist/editor/utils/ods-to-xlsx.d.ts +6 -0
  10. package/dist/editor/utils/spreadsheet-import.d.ts +1 -1
  11. package/dist/editor/utils/xlsx-export-impl.d.ts +1 -0
  12. package/dist/editor/utils/xlsx-export.d.ts +1 -0
  13. package/dist/{es-BonrkVxY.js → es-yR2JIXsz.js} +8 -2
  14. package/dist/{executeStringFunction-V_hu5VRM.js → executeStringFunction-DMMvpc-I.js} +1385 -1374
  15. package/dist/formula.js +1 -1
  16. package/dist/{hi-Ca55EZ4A.js → hi-DRcLnrnZ.js} +8 -2
  17. package/dist/{index-GBqDuF2T.js → index-DGqeYSSf.js} +9068 -8907
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.es.js +44 -43
  20. package/dist/ods-to-xlsx-DeJAYBkD.js +19 -0
  21. package/dist/sheet-engine/core/locale/en.d.ts +1 -0
  22. package/dist/sheet-engine/core/locale/es.d.ts +1 -0
  23. package/dist/sheet-engine/core/locale/hi.d.ts +1 -0
  24. package/dist/sheet-engine/core/locale/zh.d.ts +1 -0
  25. package/dist/sheet-engine/core/locale/zh_tw.d.ts +1 -0
  26. package/dist/style.css +1 -1
  27. package/dist/{use-xlsx-import-impl-CkHRRbtb.js → use-xlsx-import-impl-C_lpZx6B.js} +4 -4
  28. package/dist/{xlsx-defined-names-CBoWA_1s.js → xlsx-defined-names-CIOiUNTy.js} +2 -2
  29. package/dist/xlsx-export-impl-ClUu1jnu.js +880 -0
  30. package/dist/{xlsx-hyperlink-inline-CY7B4A0C.js → xlsx-hyperlink-inline-0hHvueC9.js} +2 -2
  31. package/dist/{zh-BfQYzoDQ.js → zh-B1KUs68q.js} +4 -2
  32. package/dist/{zh_tw-CINWHD2H.js → zh_tw-B9_7WgLO.js} +4 -2
  33. package/package.json +3 -2
  34. 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 c, k as i, l as S, n as m, o as h, p, q as C, t as u, u as F, v as E, w as g, x as R, z as x, A as f, B as A, D as I, E as L, F as w, G as y, H as T, I as v, J as M, K as b, L as k, M as D, N as z, O as V } from "./index-GBqDuF2T.js";
2
- import { cy as K, cz as O, cA as P, cG as U, bs as X, e as _, f as j, l as B, a as H, di as q, dj as J, bb as N, dk as Y, dl as Z, dq as Q, dr as W, dt as $, I as ee, dI as ae, ef as se, b4 as oe } from "./executeStringFunction-V_hu5VRM.js";
3
- import { FLVURL as re } from "@fileverse-dev/formulajs";
4
- import { E as ne, S as de } from "./constants-8Ij49Lxv.js";
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-DGqeYSSf.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
- ne as ERROR_MESSAGES_FLAG,
12
- re as FLVURL,
11
+ de as ERROR_MESSAGES_FLAG,
12
+ le as FLVURL,
13
13
  n as FortuneCore,
14
- de as SERVICES_API_KEY,
14
+ Se as SERVICES_API_KEY,
15
15
  d as SupportedChain,
16
- c as TEMPLATES,
17
- i as api,
18
- K as clearColumnsCellsFormat,
19
- S as clearFilter,
20
- O as clearRowsCellsFormat,
21
- P as clearSelectedCellFormat,
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
- U as deleteRowCol,
25
- X as deleteSelectedCellText,
24
+ X as deleteRowCol,
25
+ _ as deleteSelectedCellText,
26
26
  p as describeMatchedShortcut,
27
27
  C as encryptForRoomKey,
28
- _ as executeStringFunction,
28
+ j as executeStringFunction,
29
29
  u as fetchSessionState,
30
- j as formulaResponseUiSync,
31
- B as getFlowdata,
32
- F as getRemoveDuplicatesErrorMessage,
33
- E as getRemoveDuplicatesPreview,
34
- H as getSheetIndex,
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
- R as handleCopy,
37
- x as handleExportToCSV,
36
+ x as handleCopy,
37
+ R as handleExportToCSV,
38
38
  f as handleExportToJSON,
39
- A as handleExportToXLSX,
40
- q as handleFreeze,
41
- J as handleHorizontalAlign,
42
- N as handleLink,
43
- Y as handleMerge,
44
- I as handlePasteByClick,
45
- Z as handleSort,
46
- Q as handleTextSize,
47
- W as handleVerticalAlign,
48
- L as importSpreadsheetFile,
49
- $ as insertRowCol,
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
- T as isOpenShortcutsModalShortcut,
53
- ee as jfrefreshgrid,
54
- ae as loadLocale,
55
- v as remapCommentAnchors,
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
- D as showImgChooser,
60
- se as toolbarItemClickHandler,
61
- oe as updateFormat,
62
- z as useEnsStatus,
63
- V as useXLSXImport
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
+ };
@@ -185,6 +185,7 @@ declare const _default: {
185
185
  'times new roman': number;
186
186
  tahoma: number;
187
187
  verdana: number;
188
+ calibri: number;
188
189
  };
189
190
  border: {
190
191
  borderTop: string;
@@ -356,6 +356,7 @@ declare const _default: {
356
356
  arial: number;
357
357
  tahoma: number;
358
358
  verdana: number;
359
+ calibri: number;
359
360
  };
360
361
  border: {
361
362
  borderTop: string;
@@ -224,6 +224,7 @@ declare const _default: {
224
224
  arial: number;
225
225
  tahoma: number;
226
226
  verdana: number;
227
+ calibri: number;
227
228
  };
228
229
  border: {
229
230
  borderTop: string;
@@ -241,6 +241,7 @@ declare const _default: {
241
241
  stxingkai: number;
242
242
  华文隶书: number;
243
243
  stliti: number;
244
+ calibri: number;
244
245
  };
245
246
  border: {
246
247
  borderTop: string;
@@ -389,6 +389,7 @@ declare const _default: {
389
389
  stxingkai: number;
390
390
  華文隸書: number;
391
391
  stliti: number;
392
+ calibri: number;
392
393
  };
393
394
  border: {
394
395
  borderTop: string;