@univerjs/preset-sheets-node-core 0.6.9 → 0.6.10-nightly.202504101607
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +19 -12
- package/lib/index.js +62 -0
- package/lib/locales/en-US.js +13 -0
- package/lib/locales/fa-IR.js +13 -0
- package/lib/locales/fr-FR.js +13 -0
- package/lib/locales/ru-RU.js +13 -0
- package/lib/locales/vi-VN.js +13 -0
- package/lib/locales/zh-CN.js +13 -0
- package/lib/locales/zh-TW.js +13 -0
- package/lib/types/types.d.ts +1 -1
- package/lib/umd/index.js +5 -5
- package/lib/worker.js +24 -0
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@univerjs/docs"),o=require("@univerjs/engine-formula"),i=require("@univerjs/rpc-node"),c=require("@univerjs/sheets"),u=require("@univerjs/sheets-data-validation"),a=require("@univerjs/sheets-drawing"),l=require("@univerjs/sheets-filter"),s=require("@univerjs/sheets-formula"),p=require("@univerjs/sheets-hyper-link"),y=require("@univerjs/sheets-sort"),b=require("@univerjs/sheets-thread-comment"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@univerjs/docs"),o=require("@univerjs/engine-formula"),i=require("@univerjs/rpc-node"),c=require("@univerjs/sheets"),u=require("@univerjs/sheets-data-validation"),a=require("@univerjs/sheets-drawing"),l=require("@univerjs/sheets-filter"),s=require("@univerjs/sheets-formula"),p=require("@univerjs/sheets-hyper-link"),y=require("@univerjs/sheets-sort"),b=require("@univerjs/sheets-thread-comment"),O=require("@univerjs/thread-comment");require("@univerjs/sheets/facade");require("@univerjs/sheets-formula/facade");require("@univerjs/sheets-data-validation/facade");require("@univerjs/engine-formula/facade");require("@univerjs/sheets-filter/facade");require("@univerjs/sheets-hyper-link/facade");require("@univerjs/sheets-numfmt/facade");require("@univerjs/sheets-sort/facade");require("@univerjs/sheets-thread-comment/facade");function P(e){const{workerSrc:f,formula:t}=e,r=!!f;return{plugins:[r?[i.UniverRPCNodeMainPlugin,{workerSrc:f}]:null,[o.UniverFormulaEnginePlugin,{notExecuteFormula:r,function:t==null?void 0:t.function}],O.UniverThreadCommentPlugin,n.UniverDocsPlugin,c.UniverSheetsPlugin,[s.UniverSheetsFormulaPlugin,{notExecuteFormula:r,description:t==null?void 0:t.description,initialFormulaComputing:t==null?void 0:t.initialFormulaComputing}],u.UniverSheetsDataValidationPlugin,l.UniverSheetsFilterPlugin,p.UniverSheetsHyperLinkPlugin,a.UniverSheetsDrawingPlugin,y.UniverSheetsSortPlugin,b.UniverSheetsThreadCommentPlugin].filter(h=>!!h)}}exports.UniverSheetsNodeCorePreset=P;Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[e]})});Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});Object.keys(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[e]})});Object.keys(c).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>c[e]})});Object.keys(u).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>u[e]})});Object.keys(a).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>a[e]})});Object.keys(l).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>l[e]})});Object.keys(s).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>s[e]})});Object.keys(p).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>p[e]})});Object.keys(y).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>y[e]})});Object.keys(b).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>b[e]})});Object.keys(O).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>O[e]})});
|
package/lib/es/index.js
CHANGED
|
@@ -4,15 +4,15 @@ import { UniverFormulaEnginePlugin as n } from "@univerjs/engine-formula";
|
|
|
4
4
|
export * from "@univerjs/engine-formula";
|
|
5
5
|
import { UniverRPCNodeMainPlugin as p } from "@univerjs/rpc-node";
|
|
6
6
|
export * from "@univerjs/rpc-node";
|
|
7
|
-
import { UniverSheetsPlugin as
|
|
7
|
+
import { UniverSheetsPlugin as u } from "@univerjs/sheets";
|
|
8
8
|
export * from "@univerjs/sheets";
|
|
9
|
-
import { UniverSheetsDataValidationPlugin as
|
|
9
|
+
import { UniverSheetsDataValidationPlugin as f } from "@univerjs/sheets-data-validation";
|
|
10
10
|
export * from "@univerjs/sheets-data-validation";
|
|
11
11
|
import { UniverSheetsDrawingPlugin as l } from "@univerjs/sheets-drawing";
|
|
12
12
|
export * from "@univerjs/sheets-drawing";
|
|
13
|
-
import { UniverSheetsFilterPlugin as
|
|
13
|
+
import { UniverSheetsFilterPlugin as g } from "@univerjs/sheets-filter";
|
|
14
14
|
export * from "@univerjs/sheets-filter";
|
|
15
|
-
import { UniverSheetsFormulaPlugin as
|
|
15
|
+
import { UniverSheetsFormulaPlugin as s } from "@univerjs/sheets-formula";
|
|
16
16
|
export * from "@univerjs/sheets-formula";
|
|
17
17
|
import { UniverSheetsHyperLinkPlugin as x } from "@univerjs/sheets-hyper-link";
|
|
18
18
|
export * from "@univerjs/sheets-hyper-link";
|
|
@@ -31,23 +31,30 @@ import "@univerjs/sheets-hyper-link/facade";
|
|
|
31
31
|
import "@univerjs/sheets-numfmt/facade";
|
|
32
32
|
import "@univerjs/sheets-sort/facade";
|
|
33
33
|
import "@univerjs/sheets-thread-comment/facade";
|
|
34
|
-
function j(
|
|
35
|
-
const { workerSrc:
|
|
34
|
+
function j(e) {
|
|
35
|
+
const { workerSrc: i, formula: r } = e, o = !!i;
|
|
36
36
|
return {
|
|
37
37
|
plugins: [
|
|
38
|
-
o ? [p, { workerSrc:
|
|
39
|
-
[n, {
|
|
38
|
+
o ? [p, { workerSrc: i }] : null,
|
|
39
|
+
[n, {
|
|
40
|
+
notExecuteFormula: o,
|
|
41
|
+
function: r == null ? void 0 : r.function
|
|
42
|
+
}],
|
|
40
43
|
U,
|
|
41
44
|
m,
|
|
42
|
-
f,
|
|
43
|
-
[g, { notExecuteFormula: o, description: r == null ? void 0 : r.description }],
|
|
44
45
|
u,
|
|
45
|
-
s,
|
|
46
|
+
[s, {
|
|
47
|
+
notExecuteFormula: o,
|
|
48
|
+
description: r == null ? void 0 : r.description,
|
|
49
|
+
initialFormulaComputing: r == null ? void 0 : r.initialFormulaComputing
|
|
50
|
+
}],
|
|
51
|
+
f,
|
|
52
|
+
g,
|
|
46
53
|
x,
|
|
47
54
|
l,
|
|
48
55
|
P,
|
|
49
56
|
v
|
|
50
|
-
].filter((
|
|
57
|
+
].filter((t) => !!t)
|
|
51
58
|
};
|
|
52
59
|
}
|
|
53
60
|
export {
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { UniverDocsPlugin as m } from "@univerjs/docs";
|
|
2
|
+
export * from "@univerjs/docs";
|
|
3
|
+
import { UniverFormulaEnginePlugin as n } from "@univerjs/engine-formula";
|
|
4
|
+
export * from "@univerjs/engine-formula";
|
|
5
|
+
import { UniverRPCNodeMainPlugin as p } from "@univerjs/rpc-node";
|
|
6
|
+
export * from "@univerjs/rpc-node";
|
|
7
|
+
import { UniverSheetsPlugin as u } from "@univerjs/sheets";
|
|
8
|
+
export * from "@univerjs/sheets";
|
|
9
|
+
import { UniverSheetsDataValidationPlugin as f } from "@univerjs/sheets-data-validation";
|
|
10
|
+
export * from "@univerjs/sheets-data-validation";
|
|
11
|
+
import { UniverSheetsDrawingPlugin as l } from "@univerjs/sheets-drawing";
|
|
12
|
+
export * from "@univerjs/sheets-drawing";
|
|
13
|
+
import { UniverSheetsFilterPlugin as g } from "@univerjs/sheets-filter";
|
|
14
|
+
export * from "@univerjs/sheets-filter";
|
|
15
|
+
import { UniverSheetsFormulaPlugin as s } from "@univerjs/sheets-formula";
|
|
16
|
+
export * from "@univerjs/sheets-formula";
|
|
17
|
+
import { UniverSheetsHyperLinkPlugin as x } from "@univerjs/sheets-hyper-link";
|
|
18
|
+
export * from "@univerjs/sheets-hyper-link";
|
|
19
|
+
import { UniverSheetsSortPlugin as P } from "@univerjs/sheets-sort";
|
|
20
|
+
export * from "@univerjs/sheets-sort";
|
|
21
|
+
import { UniverSheetsThreadCommentPlugin as v } from "@univerjs/sheets-thread-comment";
|
|
22
|
+
export * from "@univerjs/sheets-thread-comment";
|
|
23
|
+
import { UniverThreadCommentPlugin as U } from "@univerjs/thread-comment";
|
|
24
|
+
export * from "@univerjs/thread-comment";
|
|
25
|
+
import "@univerjs/sheets/facade";
|
|
26
|
+
import "@univerjs/sheets-formula/facade";
|
|
27
|
+
import "@univerjs/sheets-data-validation/facade";
|
|
28
|
+
import "@univerjs/engine-formula/facade";
|
|
29
|
+
import "@univerjs/sheets-filter/facade";
|
|
30
|
+
import "@univerjs/sheets-hyper-link/facade";
|
|
31
|
+
import "@univerjs/sheets-numfmt/facade";
|
|
32
|
+
import "@univerjs/sheets-sort/facade";
|
|
33
|
+
import "@univerjs/sheets-thread-comment/facade";
|
|
34
|
+
function j(e) {
|
|
35
|
+
const { workerSrc: i, formula: r } = e, o = !!i;
|
|
36
|
+
return {
|
|
37
|
+
plugins: [
|
|
38
|
+
o ? [p, { workerSrc: i }] : null,
|
|
39
|
+
[n, {
|
|
40
|
+
notExecuteFormula: o,
|
|
41
|
+
function: r == null ? void 0 : r.function
|
|
42
|
+
}],
|
|
43
|
+
U,
|
|
44
|
+
m,
|
|
45
|
+
u,
|
|
46
|
+
[s, {
|
|
47
|
+
notExecuteFormula: o,
|
|
48
|
+
description: r == null ? void 0 : r.description,
|
|
49
|
+
initialFormulaComputing: r == null ? void 0 : r.initialFormulaComputing
|
|
50
|
+
}],
|
|
51
|
+
f,
|
|
52
|
+
g,
|
|
53
|
+
x,
|
|
54
|
+
l,
|
|
55
|
+
P,
|
|
56
|
+
v
|
|
57
|
+
].filter((t) => !!t)
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
j as UniverSheetsNodeCorePreset
|
|
62
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/sheets/locale/en-US";
|
|
3
|
+
import o from "@univerjs/sheets-formula/locale/en-US";
|
|
4
|
+
import s from "@univerjs/sheets-sort/locale/en-US";
|
|
5
|
+
const n = r(
|
|
6
|
+
{},
|
|
7
|
+
e,
|
|
8
|
+
o,
|
|
9
|
+
s
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
n as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/sheets/locale/fa-IR";
|
|
3
|
+
import o from "@univerjs/sheets-formula/locale/fa-IR";
|
|
4
|
+
import s from "@univerjs/sheets-sort/locale/fa-IR";
|
|
5
|
+
const p = r(
|
|
6
|
+
{},
|
|
7
|
+
e,
|
|
8
|
+
o,
|
|
9
|
+
s
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/sheets/locale/fr-FR";
|
|
3
|
+
import o from "@univerjs/sheets-formula/locale/fr-FR";
|
|
4
|
+
import s from "@univerjs/sheets-sort/locale/fr-FR";
|
|
5
|
+
const p = r(
|
|
6
|
+
{},
|
|
7
|
+
e,
|
|
8
|
+
o,
|
|
9
|
+
s
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/sheets/locale/ru-RU";
|
|
3
|
+
import o from "@univerjs/sheets-formula/locale/ru-RU";
|
|
4
|
+
import s from "@univerjs/sheets-sort/locale/ru-RU";
|
|
5
|
+
const u = r(
|
|
6
|
+
{},
|
|
7
|
+
e,
|
|
8
|
+
o,
|
|
9
|
+
s
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
u as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/sheets/locale/vi-VN";
|
|
3
|
+
import o from "@univerjs/sheets-formula/locale/vi-VN";
|
|
4
|
+
import s from "@univerjs/sheets-sort/locale/vi-VN";
|
|
5
|
+
const p = r(
|
|
6
|
+
{},
|
|
7
|
+
e,
|
|
8
|
+
o,
|
|
9
|
+
s
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/sheets/locale/zh-CN";
|
|
3
|
+
import o from "@univerjs/sheets-formula/locale/zh-CN";
|
|
4
|
+
import s from "@univerjs/sheets-sort/locale/zh-CN";
|
|
5
|
+
const p = r(
|
|
6
|
+
{},
|
|
7
|
+
e,
|
|
8
|
+
o,
|
|
9
|
+
s
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/sheets/locale/zh-TW";
|
|
3
|
+
import o from "@univerjs/sheets-formula/locale/zh-TW";
|
|
4
|
+
import s from "@univerjs/sheets-sort/locale/zh-TW";
|
|
5
|
+
const p = r(
|
|
6
|
+
{},
|
|
7
|
+
e,
|
|
8
|
+
o,
|
|
9
|
+
s
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
package/lib/types/types.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface IPreset {
|
|
|
11
11
|
export interface IPresetOptions {
|
|
12
12
|
lazy?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export interface IUniverFormulaConfig extends Pick<IUniverEngineFormulaConfig, 'function'>, Pick<IUniverSheetsFormulaBaseConfig, 'description'> {
|
|
14
|
+
export interface IUniverFormulaConfig extends Pick<IUniverEngineFormulaConfig, 'function'>, Pick<IUniverSheetsFormulaBaseConfig, 'description' | 'initialFormulaComputing'> {
|
|
15
15
|
}
|
|
16
16
|
export interface IUniverFormulaWorkerConfig extends Pick<IUniverEngineFormulaConfig, 'function'> {
|
|
17
17
|
}
|