@fileverse-dev/dsheet 4.0.5 → 4.1.0
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/{executeStringFunction-B6fhDKyN.js → executeStringFunction-CxsiamWG.js} +6421 -6339
- package/dist/formula.js +1 -1
- package/dist/{index-BqGOKo9u.js → index-CQUhZB3J.js} +405 -405
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/modules/format.d.ts +5 -1
- package/dist/{use-xlsx-import-impl-Bddlxx23.js → use-xlsx-import-impl-DNTnmzDN.js} +4 -4
- package/dist/{xlsx-defined-names-DsWdNZw-.js → xlsx-defined-names-BHxDk83p.js} +2 -2
- package/dist/{xlsx-export-impl-DJiXCevi.js → xlsx-export-impl-r3bDoVjv.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-CTg4_gg1.js → xlsx-hyperlink-inline-B5IR_SOR.js} +2 -2
- package/package.json +5 -3
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as s, d as t, f as o, S as r, g as l, h as d, j as n, T as i, k as S, l as c, n as h, o as m, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as I, B as f, D as w, E as A, F as L, G as T, H as v, I as D, J as M } from "./index-
|
|
2
|
-
import { cw as k, cx as V, cy as y, cE as z, bq as G, e as P, f as U, l as X, a as _, dg as j, dh as B, b9 as H, di as O, dj as q, dn as J, dp as K, dr as N, I as Y, dG as Z, ed as Q, b2 as W } from "./executeStringFunction-
|
|
1
|
+
import { C as s, d as t, f as o, S as r, g as l, h as d, j as n, T as i, k as S, l as c, n as h, o as m, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as I, B as f, D as w, E as A, F as L, G as T, H as v, I as D, J as M } from "./index-CQUhZB3J.js";
|
|
2
|
+
import { cw as k, cx as V, cy as y, cE as z, bq as G, e as P, f as U, l as X, a as _, dg as j, dh as B, b9 as H, di as O, dj as q, dn as J, dp as K, dr as N, I as Y, dG as Z, ed as Q, b2 as W } from "./executeStringFunction-CxsiamWG.js";
|
|
3
3
|
import { FLVURL as ee } from "@fileverse-dev/formulajs";
|
|
4
4
|
import { E as se, S as te } from "./constants-CRFfbkoQ.js";
|
|
5
5
|
export {
|
|
@@ -62,9 +62,13 @@ export declare function buildFiatCurrencyFormat(symbol: string, decimals?: numbe
|
|
|
62
62
|
export declare function update(fmt: string, v: any): string;
|
|
63
63
|
/** Max decimal places for toolbar +/- on General (Auto) without switching to a numeric `fa`. */
|
|
64
64
|
export declare const MAX_GENERAL_AUTO_DP = 15;
|
|
65
|
+
/** Count decimal places currently shown for a General/Auto numeric cell. */
|
|
66
|
+
export declare function countGeneralDisplayDecimalPlaces(cell: Cell): number;
|
|
67
|
+
/** Effective decimal places for toolbar +/- (explicit `ct.dp` or inferred from display). */
|
|
68
|
+
export declare function getEffectiveGeneralDp(cell: Cell): number;
|
|
65
69
|
/**
|
|
66
70
|
* Recompute `m` for numeric cells with `fa === "General"`.
|
|
67
|
-
* When `ct.dp` is set (
|
|
71
|
+
* When `ct.dp` is set (0..MAX), uses fixed decimals like Sheets Auto + decimal buttons.
|
|
68
72
|
* Otherwise uses the usual `genarate` General display.
|
|
69
73
|
*/
|
|
70
74
|
export declare function refreshGeneralNumericDisplay(cell: Cell): void;
|
|
@@ -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-CQUhZB3J.js";
|
|
3
|
+
import { g as sl } from "./executeStringFunction-CxsiamWG.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-B5IR_SOR.js";
|
|
7
|
+
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-BHxDk83p.js";
|
|
8
8
|
import { toast as fZ } from "@fileverse/ui";
|
|
9
9
|
var Zl = { exports: {} };
|
|
10
10
|
(function(c) {
|
|
@@ -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-CxsiamWG.js";
|
|
2
|
+
import { J as x } from "./xlsx-hyperlink-inline-B5IR_SOR.js";
|
|
3
3
|
function g(o) {
|
|
4
4
|
return o.startsWith("_xlnm.");
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { utils as F, write as it } from "xlsx-js-style";
|
|
2
2
|
import { Workbook as ct } from "exceljs";
|
|
3
3
|
import { toast as nt } from "@fileverse/ui";
|
|
4
|
-
import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-
|
|
5
|
-
import { b as dt } from "./executeStringFunction-
|
|
6
|
-
import { e as ht } from "./index-
|
|
4
|
+
import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-B5IR_SOR.js";
|
|
5
|
+
import { b as dt } from "./executeStringFunction-CxsiamWG.js";
|
|
6
|
+
import { e as ht } from "./index-CQUhZB3J.js";
|
|
7
7
|
const mt = {
|
|
8
8
|
1: "thin",
|
|
9
9
|
2: "hair",
|
|
@@ -806,7 +806,7 @@ const Y = (e) => {
|
|
|
806
806
|
D
|
|
807
807
|
);
|
|
808
808
|
});
|
|
809
|
-
const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-
|
|
809
|
+
const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-BHxDk83p.js");
|
|
810
810
|
ot(
|
|
811
811
|
P,
|
|
812
812
|
(T = (a = (d = e.current).getWorkbookContext) == null ? void 0 : a.call(d)) == null ? void 0 : T.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-CxsiamWG.js";
|
|
2
|
+
import { c as wt } from "./index-CQUhZB3J.js";
|
|
3
3
|
function jt(J, nt) {
|
|
4
4
|
const g = J.getImages();
|
|
5
5
|
if (!g.length) return [];
|
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.0
|
|
5
|
+
"version": "4.1.0",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -79,8 +79,6 @@
|
|
|
79
79
|
"luckyexcel": "^1.0.1",
|
|
80
80
|
"numeral": "^2.0.6",
|
|
81
81
|
"papaparse": "^5.5.2",
|
|
82
|
-
"react": "^18.2.0",
|
|
83
|
-
"react-dom": "^18.2.0",
|
|
84
82
|
"regenerator-runtime": "^0.14.1",
|
|
85
83
|
"socket.io-client": "^4.8.3",
|
|
86
84
|
"tailwindcss-animate": "^1.0.7",
|
|
@@ -94,6 +92,8 @@
|
|
|
94
92
|
"y-protocols": "^1.0.6"
|
|
95
93
|
},
|
|
96
94
|
"peerDependencies": {
|
|
95
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
96
|
+
"react-dom": "^18.2.0 || ^19.0.0",
|
|
97
97
|
"yjs": ">=13.6.30 <14"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
@@ -119,6 +119,8 @@
|
|
|
119
119
|
"postcss": "^8.4.38",
|
|
120
120
|
"postinstall-postinstall": "^2.1.0",
|
|
121
121
|
"prettier": "^3.4.2",
|
|
122
|
+
"react": "^18.2.0",
|
|
123
|
+
"react-dom": "^18.2.0",
|
|
122
124
|
"sass": "^1.77.2",
|
|
123
125
|
"tailwindcss": "^3.4.3",
|
|
124
126
|
"typescript": "^5.2.2",
|