@fileverse-dev/dsheet 4.1.22 → 4.1.23

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 (31) hide show
  1. package/dist/editor/components/editor-workbook.d.ts +6 -0
  2. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +3 -1
  3. package/dist/editor/components/sidebar/sidebar-offsets.d.ts +12 -0
  4. package/dist/editor/components/sidebar/sidebar-offsets.test.d.ts +1 -0
  5. package/dist/editor/types.d.ts +13 -0
  6. package/dist/editor/utils/activate-sheet-for-link.d.ts +3 -0
  7. package/dist/editor/utils/active-sheet-keeper.d.ts +21 -0
  8. package/dist/editor/utils/editor-handle.d.ts +1 -1
  9. package/dist/editor/utils/navigate-to-sheet.d.ts +22 -0
  10. package/dist/{es-S4GKlN-t.js → es-BlDQ6jCL.js} +1 -0
  11. package/dist/{executeStringFunction-CQ922vEp.js → executeStringFunction-ZHYCWIpK.js} +5 -4
  12. package/dist/formula.js +1 -1
  13. package/dist/{hi-DMMTDTxZ.js → hi-CP0ta0Yk.js} +1 -0
  14. package/dist/{index-DhQTrCQd.js → index-8_qnUyMl.js} +14853 -14693
  15. package/dist/index.es.js +2 -2
  16. package/dist/sheet-engine/core/locale/en.d.ts +1 -0
  17. package/dist/sheet-engine/core/locale/es.d.ts +1 -0
  18. package/dist/sheet-engine/core/locale/hi.d.ts +1 -0
  19. package/dist/sheet-engine/core/locale/zh.d.ts +1 -0
  20. package/dist/sheet-engine/core/locale/zh_tw.d.ts +1 -0
  21. package/dist/sheet-engine/core/settings.d.ts +4 -0
  22. package/dist/sheet-engine/react/components/ContextMenu/sheet-tab-menu-items.d.ts +15 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{template-data-list-BYOIK_Nd.js → template-data-list-apgmwRAT.js} +18 -10
  25. package/dist/{use-xlsx-import-impl-xphBNZu3.js → use-xlsx-import-impl-cgDH14_y.js} +4 -4
  26. package/dist/{xlsx-defined-names-3g5n40BA.js → xlsx-defined-names-DCK7aKIO.js} +2 -2
  27. package/dist/{xlsx-export-impl-DXyQpmMi.js → xlsx-export-impl-BHDWz0aW.js} +4 -4
  28. package/dist/{xlsx-hyperlink-inline-Cl9CbP5N.js → xlsx-hyperlink-inline-T4GsXFm7.js} +2 -2
  29. package/dist/{zh-Bv4KIDiJ.js → zh-CmOCFd5t.js} +1 -0
  30. package/dist/{zh_tw-BdpsK45h.js → zh_tw-BqyRw1gX.js} +1 -0
  31. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- const l = [
1
+ const o = [
2
2
  {
3
3
  name: "Gantt Chart",
4
4
  color: "#2E7D32",
@@ -53422,7 +53422,7 @@ const l = [
53422
53422
  }
53423
53423
  ]
53424
53424
  }
53425
- ], e = [
53425
+ ], E = [
53426
53426
  {
53427
53427
  name: "Expense Claim",
53428
53428
  color: "#0E7C7B",
@@ -56827,7 +56827,7 @@ const l = [
56827
56827
  }
56828
56828
  ]
56829
56829
  }
56830
- ], r = [
56830
+ ], t = [
56831
56831
  {
56832
56832
  name: "Event Marketing",
56833
56833
  config: {
@@ -115327,7 +115327,7 @@ const l = [
115327
115327
  }
115328
115328
  ]
115329
115329
  }
115330
- ], c = [
115330
+ ], y = [
115331
115331
  {
115332
115332
  name: "Invoice",
115333
115333
  status: 1,
@@ -117580,12 +117580,20 @@ const l = [
117580
117580
  }
117581
117581
  ]
117582
117582
  }
117583
- ], o = {
117584
- invoice: c,
117585
- "gantt-chart": l,
117586
- "expense-tracker": e,
117587
- "event-marketing": r
117583
+ ], s = {
117584
+ invoice: y,
117585
+ "gantt-chart": o,
117586
+ "expense-tracker": E,
117587
+ "event-marketing": t
117588
+ }, n = (c) => {
117589
+ const l = s[c];
117590
+ if (!l) return;
117591
+ let e = JSON.stringify(l);
117592
+ for (const r of l)
117593
+ !r || !r.id || (e = e.split(JSON.stringify(r.id)).join(JSON.stringify(crypto.randomUUID())));
117594
+ return JSON.parse(e);
117588
117595
  };
117589
117596
  export {
117590
- o as TEMPLATES_DATA
117597
+ s as TEMPLATES_DATA,
117598
+ n as getTemplateData
117591
117599
  };
@@ -1,10 +1,10 @@
1
1
  import * as BZ from "yjs";
2
- import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-DhQTrCQd.js";
3
- import { g as sl } from "./executeStringFunction-CQ922vEp.js";
2
+ import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-8_qnUyMl.js";
3
+ import { g as sl } from "./executeStringFunction-ZHYCWIpK.js";
4
4
  import { Workbook as al } from "exceljs";
5
5
  import Kl from "luckyexcel";
6
- import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-Cl9CbP5N.js";
7
- import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-3g5n40BA.js";
6
+ import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-T4GsXFm7.js";
7
+ import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-DCK7aKIO.js";
8
8
  import { toast as fZ } from "@fileverse/ui";
9
9
  var Zl = { exports: {} };
10
10
  (function(m) {
@@ -1,5 +1,5 @@
1
- import { i as w } from "./executeStringFunction-CQ922vEp.js";
2
- import { J as x } from "./xlsx-hyperlink-inline-Cl9CbP5N.js";
1
+ import { i as w } from "./executeStringFunction-ZHYCWIpK.js";
2
+ import { J as x } from "./xlsx-hyperlink-inline-T4GsXFm7.js";
3
3
  function g(o) {
4
4
  return o.startsWith("_xlnm.");
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { utils as S, write as nt } from "xlsx-js-style";
2
2
  import { Workbook as pt } from "exceljs";
3
3
  import { toast as rt } from "@fileverse/ui";
4
- import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-Cl9CbP5N.js";
5
- import { b as gt } from "./executeStringFunction-CQ922vEp.js";
6
- import { e as bt } from "./index-DhQTrCQd.js";
4
+ import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-T4GsXFm7.js";
5
+ import { b as gt } from "./executeStringFunction-ZHYCWIpK.js";
6
+ import { e as bt } from "./index-8_qnUyMl.js";
7
7
  const xt = {
8
8
  1: "thin",
9
9
  2: "hair",
@@ -854,7 +854,7 @@ const Z = (t) => {
854
854
  O
855
855
  );
856
856
  });
857
- const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-3g5n40BA.js");
857
+ const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-DCK7aKIO.js");
858
858
  ct(
859
859
  B,
860
860
  (k = (C = (s = t.current).getWorkbookContext) == null ? void 0 : C.call(s)) == null ? void 0 : k.definedNames,
@@ -1,5 +1,5 @@
1
- import { g as Rt, c as yt } from "./executeStringFunction-CQ922vEp.js";
2
- import { c as wt } from "./index-DhQTrCQd.js";
1
+ import { g as Rt, c as yt } from "./executeStringFunction-ZHYCWIpK.js";
2
+ import { c as wt } from "./index-8_qnUyMl.js";
3
3
  function jt(J, nt) {
4
4
  const g = J.getImages();
5
5
  if (!g.length) return [];
@@ -12261,6 +12261,7 @@ field 可以是与 database 第一行中某个列标题对应的文本标签,
12261
12261
  cancelText: "取消",
12262
12262
  chooseText: "确定颜色",
12263
12263
  focus: "聚焦",
12264
+ copyLink: "复制工作表链接",
12264
12265
  tipNameRepeat: "标签页的名称不能重复!请重新修改",
12265
12266
  noMoreSheet: "工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。",
12266
12267
  confirmDelete: "是否删除",
@@ -12240,6 +12240,7 @@ field可以是與database第一行中某個列標題對應的文字標籤,也可
12240
12240
  cancelText: "取消",
12241
12241
  chooseText: "確定顏色",
12242
12242
  focus: "聚焦",
12243
+ copyLink: "複製工作表連結",
12243
12244
  tipNameRepeat: "籤頁的名稱不能重複!請重新修改",
12244
12245
  noMoreSheet: "工作薄內至少含有一張可視工作表。若需删除選定的工作表,請先插入一張新工作表或顯示一張隱藏的工作表。。",
12245
12246
  confirmDelete: "是否删除",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "4.1.22",
5
+ "version": "4.1.23",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/fileverse/fileverse-dsheets.git"
@@ -62,7 +62,7 @@
62
62
  ]
63
63
  },
64
64
  "dependencies": {
65
- "@fileverse-dev/dsheets-templates": "0.0.34",
65
+ "@fileverse-dev/dsheets-templates": "0.0.35",
66
66
  "@fileverse-dev/formulajs": "4.4.55",
67
67
  "@fileverse/crypto": "^0.0.22",
68
68
  "@fileverse/ens": "^0.0.4",