@fileverse-dev/dsheet 4.1.20-subsheetLink-2 → 4.1.21
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/editor-workbook.d.ts +0 -4
- package/dist/editor/types.d.ts +0 -6
- package/dist/editor/utils/editor-handle.d.ts +1 -1
- package/dist/{es-BlDQ6jCL.js → es-S4GKlN-t.js} +0 -1
- package/dist/{executeStringFunction-BVMdxpT1.js → executeStringFunction-CQ922vEp.js} +1657 -1645
- package/dist/formula.js +1 -1
- package/dist/{hi-CP0ta0Yk.js → hi-DMMTDTxZ.js} +0 -1
- package/dist/{index-BEzTziZU.js → index-BZbTaVjU.js} +13994 -14094
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/locale/en.d.ts +0 -1
- package/dist/sheet-engine/core/locale/es.d.ts +0 -1
- package/dist/sheet-engine/core/locale/hi.d.ts +0 -1
- package/dist/sheet-engine/core/locale/zh.d.ts +0 -1
- package/dist/sheet-engine/core/locale/zh_tw.d.ts +0 -1
- package/dist/sheet-engine/core/modules/color.d.ts +1 -0
- package/dist/sheet-engine/core/modules/dataVerification.d.ts +8 -1
- package/dist/sheet-engine/core/settings.d.ts +0 -4
- package/dist/{template-data-list-apgmwRAT.js → template-data-list-BYOIK_Nd.js} +10 -18
- package/dist/{use-xlsx-import-impl-BSHH5KeA.js → use-xlsx-import-impl-Bzyh3J-h.js} +4 -4
- package/dist/{xlsx-defined-names-CDmtDVRT.js → xlsx-defined-names-CGkkDs3a.js} +2 -2
- package/dist/{xlsx-export-impl-SsgHuceI.js → xlsx-export-impl-8QvOUcjc.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-JS0aA6w0.js → xlsx-hyperlink-inline-CEmgXple.js} +2 -2
- package/dist/{zh-CmOCFd5t.js → zh-Bv4KIDiJ.js} +0 -1
- package/dist/{zh_tw-BqyRw1gX.js → zh_tw-BdpsK45h.js} +0 -1
- package/package.json +2 -2
- package/dist/editor/utils/activate-sheet-for-link.d.ts +0 -3
- package/dist/editor/utils/active-sheet-keeper.d.ts +0 -21
- package/dist/editor/utils/navigate-to-sheet.d.ts +0 -22
- package/dist/sheet-engine/react/components/ContextMenu/sheet-tab-menu-items.d.ts +0 -15
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, B as f, 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-
|
|
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 J, dj as N, dk as q, bb as Y, dl as Z, dm as Q, dr as W, ds as $, du as ee, I as ae, dJ as se, eg as oe, b4 as te } from "./executeStringFunction-
|
|
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, B as f, 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-BZbTaVjU.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 J, dj as N, dk as q, bb as Y, dl as Z, dm as Q, dr as W, ds as $, du as ee, I as ae, dJ as se, eg as oe, b4 as te } from "./executeStringFunction-CQ922vEp.js";
|
|
3
3
|
import { FLVURL as le } from "@fileverse-dev/formulajs";
|
|
4
4
|
import { E as de, S as Se } from "./constants-8Ij49Lxv.js";
|
|
5
5
|
export {
|
|
@@ -8,5 +8,12 @@ export declare function checkboxChange(ctx: Context, r: number, c: number): void
|
|
|
8
8
|
export declare function getFailureText(ctx: Context, item: any): string;
|
|
9
9
|
export declare function getHintText(ctx: Context, item: any): any;
|
|
10
10
|
export declare function cellFocus(ctx: Context, r: number, c: number, clickMode: boolean): void;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* `target` is the cell the dropdown was opened for. Without it, the current
|
|
13
|
+
* selection focus is used, which may have moved since the list opened.
|
|
14
|
+
*/
|
|
15
|
+
export declare function setDropdownValue(ctx: Context, value: string, arr: any, target?: {
|
|
16
|
+
row: number;
|
|
17
|
+
column: number;
|
|
18
|
+
}): void;
|
|
12
19
|
export declare function confirmMessage(ctx: Context, generalDialog: any, dataVerification: any): boolean;
|
|
@@ -83,10 +83,6 @@ export type Hooks = {
|
|
|
83
83
|
afterDeleteSheet?: (id: string) => void;
|
|
84
84
|
beforeUpdateSheetName?: (id: string, oldName: string, newName: string) => boolean;
|
|
85
85
|
afterUpdateSheetName?: (id: string, oldName: string, newName: string) => void;
|
|
86
|
-
onCopySheetLink?: (args: {
|
|
87
|
-
sheetId: string;
|
|
88
|
-
sheetName: string;
|
|
89
|
-
}) => void;
|
|
90
86
|
afterImagesChange?: () => void;
|
|
91
87
|
afterIframesChange?: () => void;
|
|
92
88
|
afterFrozenChange?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const l = [
|
|
2
2
|
{
|
|
3
3
|
name: "Gantt Chart",
|
|
4
4
|
color: "#2E7D32",
|
|
@@ -53422,7 +53422,7 @@ const o = [
|
|
|
53422
53422
|
}
|
|
53423
53423
|
]
|
|
53424
53424
|
}
|
|
53425
|
-
],
|
|
53425
|
+
], e = [
|
|
53426
53426
|
{
|
|
53427
53427
|
name: "Expense Claim",
|
|
53428
53428
|
color: "#0E7C7B",
|
|
@@ -56827,7 +56827,7 @@ const o = [
|
|
|
56827
56827
|
}
|
|
56828
56828
|
]
|
|
56829
56829
|
}
|
|
56830
|
-
],
|
|
56830
|
+
], r = [
|
|
56831
56831
|
{
|
|
56832
56832
|
name: "Event Marketing",
|
|
56833
56833
|
config: {
|
|
@@ -115327,7 +115327,7 @@ const o = [
|
|
|
115327
115327
|
}
|
|
115328
115328
|
]
|
|
115329
115329
|
}
|
|
115330
|
-
],
|
|
115330
|
+
], c = [
|
|
115331
115331
|
{
|
|
115332
115332
|
name: "Invoice",
|
|
115333
115333
|
status: 1,
|
|
@@ -117580,20 +117580,12 @@ const o = [
|
|
|
117580
117580
|
}
|
|
117581
117581
|
]
|
|
117582
117582
|
}
|
|
117583
|
-
],
|
|
117584
|
-
invoice:
|
|
117585
|
-
"gantt-chart":
|
|
117586
|
-
"expense-tracker":
|
|
117587
|
-
"event-marketing":
|
|
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);
|
|
117583
|
+
], o = {
|
|
117584
|
+
invoice: c,
|
|
117585
|
+
"gantt-chart": l,
|
|
117586
|
+
"expense-tracker": e,
|
|
117587
|
+
"event-marketing": r
|
|
117595
117588
|
};
|
|
117596
117589
|
export {
|
|
117597
|
-
|
|
117598
|
-
n as getTemplateData
|
|
117590
|
+
o as TEMPLATES_DATA
|
|
117599
117591
|
};
|
|
@@ -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-
|
|
3
|
-
import { g as sl } from "./executeStringFunction-
|
|
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-BZbTaVjU.js";
|
|
3
|
+
import { g as sl } from "./executeStringFunction-CQ922vEp.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-
|
|
7
|
-
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-
|
|
6
|
+
import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-CEmgXple.js";
|
|
7
|
+
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-CGkkDs3a.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-
|
|
2
|
-
import { J as x } from "./xlsx-hyperlink-inline-
|
|
1
|
+
import { i as w } from "./executeStringFunction-CQ922vEp.js";
|
|
2
|
+
import { J as x } from "./xlsx-hyperlink-inline-CEmgXple.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-
|
|
5
|
-
import { b as gt } from "./executeStringFunction-
|
|
6
|
-
import { e as bt } from "./index-
|
|
4
|
+
import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-CEmgXple.js";
|
|
5
|
+
import { b as gt } from "./executeStringFunction-CQ922vEp.js";
|
|
6
|
+
import { e as bt } from "./index-BZbTaVjU.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-
|
|
857
|
+
const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-CGkkDs3a.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-
|
|
2
|
-
import { c as wt } from "./index-
|
|
1
|
+
import { g as Rt, c as yt } from "./executeStringFunction-CQ922vEp.js";
|
|
2
|
+
import { c as wt } from "./index-BZbTaVjU.js";
|
|
3
3
|
function jt(J, nt) {
|
|
4
4
|
const g = J.getImages();
|
|
5
5
|
if (!g.length) return [];
|
|
@@ -12261,7 +12261,6 @@ field 可以是与 database 第一行中某个列标题对应的文本标签,
|
|
|
12261
12261
|
cancelText: "取消",
|
|
12262
12262
|
chooseText: "确定颜色",
|
|
12263
12263
|
focus: "聚焦",
|
|
12264
|
-
copyLink: "复制工作表链接",
|
|
12265
12264
|
tipNameRepeat: "标签页的名称不能重复!请重新修改",
|
|
12266
12265
|
noMoreSheet: "工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。",
|
|
12267
12266
|
confirmDelete: "是否删除",
|
|
@@ -12240,7 +12240,6 @@ field可以是與database第一行中某個列標題對應的文字標籤,也可
|
|
|
12240
12240
|
cancelText: "取消",
|
|
12241
12241
|
chooseText: "確定顏色",
|
|
12242
12242
|
focus: "聚焦",
|
|
12243
|
-
copyLink: "複製工作表連結",
|
|
12244
12243
|
tipNameRepeat: "籤頁的名稱不能重複!請重新修改",
|
|
12245
12244
|
noMoreSheet: "工作薄內至少含有一張可視工作表。若需删除選定的工作表,請先插入一張新工作表或顯示一張隱藏的工作表。。",
|
|
12246
12245
|
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.
|
|
5
|
+
"version": "4.1.21",
|
|
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.
|
|
65
|
+
"@fileverse-dev/dsheets-templates": "0.0.34",
|
|
66
66
|
"@fileverse-dev/formulajs": "4.4.55",
|
|
67
67
|
"@fileverse/crypto": "^0.0.22",
|
|
68
68
|
"@fileverse/ens": "^0.0.4",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '../../sheet-engine/react';
|
|
2
|
-
|
|
3
|
-
export type ActiveSheetKeeper = {
|
|
4
|
-
/**
|
|
5
|
-
* Call on every Workbook ref attach. `mountKey` must change whenever the
|
|
6
|
-
* Workbook is remounted (i.e. mirror the Workbook's React `key`).
|
|
7
|
-
*/
|
|
8
|
-
onAttach: (workbook: WorkbookInstance | null, mountKey: unknown) => void;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Fortune remounts the Workbook whenever the editor bumps its render key
|
|
12
|
-
* (collab rehydration, template apply, imports), and a fresh mount resets the
|
|
13
|
-
* active sheet to the first visible one. Remember the active sheet across
|
|
14
|
-
* attaches and restore it once per mount, as soon as the new mount has sheets.
|
|
15
|
-
*
|
|
16
|
-
* The restore runs synchronously inside the ref callback (React commit phase).
|
|
17
|
-
* That only enqueues a Workbook state update (same as setState in
|
|
18
|
-
* useLayoutEffect), and it goes through the same setContext path as clicking a
|
|
19
|
-
* sheet tab.
|
|
20
|
-
*/
|
|
21
|
-
export declare function createActiveSheetKeeper(): ActiveSheetKeeper;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type NavigableContext = {
|
|
2
|
-
currentSheetId?: string;
|
|
3
|
-
luckysheetfile?: Array<{
|
|
4
|
-
id?: string;
|
|
5
|
-
hide?: number;
|
|
6
|
-
} | null | undefined>;
|
|
7
|
-
};
|
|
8
|
-
export type NavigableEditor = {
|
|
9
|
-
getWorkbookContext?: () => NavigableContext | null | undefined;
|
|
10
|
-
getWorkbookSetContext?: () => ((recipe: (draft: unknown) => void) => void) | null | undefined;
|
|
11
|
-
};
|
|
12
|
-
export type NavigateToSheetOptions = {
|
|
13
|
-
/** How long to wait for the workbook and sheet to load. Default 10s. */
|
|
14
|
-
timeoutMs?: number;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Wait until the workbook has loaded a sheet with `sheetId`, then switch to it.
|
|
18
|
-
* Resolves `false` (never throws) when the sheet is missing after the timeout,
|
|
19
|
-
* hidden, or the switch fails. `getEditor` must return the latest instance on
|
|
20
|
-
* every call because Fortune regenerates its handle on each context change.
|
|
21
|
-
*/
|
|
22
|
-
export declare function navigateToSheet<TDraft>(getEditor: () => NavigableEditor | null | undefined, sheetId: string, activate: (draft: TDraft, sheetId: string) => void, { timeoutMs }?: NavigateToSheetOptions): Promise<boolean>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const COPY_SHEET_LINK_ITEM = "copy-link";
|
|
2
|
-
type ReadOnlyFlags = {
|
|
3
|
-
isFlvReadOnly?: boolean;
|
|
4
|
-
allowEdit?: boolean;
|
|
5
|
-
};
|
|
6
|
-
type CopyLinkHooks = {
|
|
7
|
-
onCopySheetLink?: unknown;
|
|
8
|
-
};
|
|
9
|
-
export declare function isSheetTabReadOnly(ctx: ReadOnlyFlags): boolean;
|
|
10
|
-
export declare function canOpenSheetTabMenu(ctx: ReadOnlyFlags, hooks: CopyLinkHooks): boolean;
|
|
11
|
-
export declare function getVisibleSheetTabMenuItems(items: string[], opts: {
|
|
12
|
-
readOnly: boolean;
|
|
13
|
-
hasCopyLink: boolean;
|
|
14
|
-
}): string[];
|
|
15
|
-
export {};
|