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