@univerjs/preset-sheets-core 0.6.9 → 0.6.10-alpha.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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +64 -54
- package/lib/index.css +1 -1
- package/lib/index.js +107 -0
- package/lib/locales/en-US.js +23 -0
- package/lib/locales/fa-IR.js +23 -0
- package/lib/locales/fr-FR.js +23 -0
- package/lib/locales/ru-RU.js +23 -0
- package/lib/locales/vi-VN.js +23 -0
- package/lib/locales/zh-CN.js +23 -0
- package/lib/locales/zh-TW.js +23 -0
- package/lib/types/types.d.ts +8 -1
- package/lib/types/umd.d.ts +10 -2
- package/lib/umd/index.js +123 -117
- 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/worker.js +20 -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
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@univerjs/docs"),u=require("@univerjs/docs-ui"),l=require("@univerjs/engine-formula"),c=require("@univerjs/engine-render"),a=require("@univerjs/network"),s=require("@univerjs/rpc"),p=require("@univerjs/sheets"),f=require("@univerjs/sheets-formula"),b=require("@univerjs/sheets-formula-ui"),y=require("@univerjs/sheets-numfmt"),O=require("@univerjs/sheets-numfmt-ui"),d=require("@univerjs/sheets-ui"),g=require("@univerjs/ui");require("@univerjs/network/facade");require("@univerjs/sheets/facade");require("@univerjs/ui/facade");require("@univerjs/docs-ui/facade");require("@univerjs/sheets-ui/facade");require("@univerjs/engine-formula/facade");require("@univerjs/sheets-formula/facade");require("@univerjs/sheets-numfmt/facade");require("@univerjs/sheets-formula-ui/facade");function M(e={}){const{container:m="app",workerURL:P,header:h,footer:j,toolbar:U,formulaBar:q,statusBarStatistic:w,menu:E,contextMenu:S,disableAutoFocus:F,docs:n,sheets:r,formula:t,customComponents:v,disableTextFormatAlert:C,disableTextFormatMark:R}=e,o=!!P;return{plugins:[a.UniverNetworkPlugin,[i.UniverDocsPlugin,{hasScroll:n==null?void 0:n.hasScroll}],c.UniverRenderEnginePlugin,[g.UniverUIPlugin,{container:m,header:h,footer:j,toolbar:U,menu:E,contextMenu:S,disableAutoFocus:F}],u.UniverDocsUIPlugin,o?[s.UniverRPCMainThreadPlugin,{workerURL:P}]:null,[l.UniverFormulaEnginePlugin,{notExecuteFormula:o,function:t==null?void 0:t.function}],[p.UniverSheetsPlugin,{notExecuteFormula:o,onlyRegisterFormulaRelatedMutations:!1,isRowStylePrecedeColumnStyle:r==null?void 0:r.isRowStylePrecedeColumnStyle,autoHeightForMergedCells:r==null?void 0:r.autoHeightForMergedCells}],[d.UniverSheetsUIPlugin,{customComponents:v,formulaBar:q,statusBarStatistic:w,maxAutoHeightCount:r==null?void 0:r.maxAutoHeightCount,clipboardConfig:r==null?void 0:r.clipboardConfig,scrollConfig:r==null?void 0:r.scrollConfig}],[y.UniverSheetsNumfmtPlugin,{disableTextFormatAlert:C,disableTextFormatMark:R}],O.UniverSheetsNumfmtUIPlugin,[f.UniverSheetsFormulaPlugin,{notExecuteFormula:o,description:t==null?void 0:t.description,initialFormulaComputing:t==null?void 0:t.initialFormulaComputing}],b.UniverSheetsFormulaUIPlugin].filter(x=>!!x)}}exports.UniverSheetsCorePreset=M;Object.keys(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[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(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(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(f).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>f[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(y).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>y[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(d).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>d[e]})});Object.keys(g).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>g[e]})});
|
package/lib/es/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { UniverDocsPlugin as
|
|
1
|
+
import { UniverDocsPlugin as S } from "@univerjs/docs";
|
|
2
2
|
export * from "@univerjs/docs";
|
|
3
|
-
import { UniverDocsUIPlugin as
|
|
3
|
+
import { UniverDocsUIPlugin as d } from "@univerjs/docs-ui";
|
|
4
4
|
export * from "@univerjs/docs-ui";
|
|
5
|
-
import { UniverFormulaEnginePlugin as
|
|
5
|
+
import { UniverFormulaEnginePlugin as v } from "@univerjs/engine-formula";
|
|
6
6
|
export * from "@univerjs/engine-formula";
|
|
7
|
-
import { UniverRenderEnginePlugin as
|
|
7
|
+
import { UniverRenderEnginePlugin as F } from "@univerjs/engine-render";
|
|
8
8
|
export * from "@univerjs/engine-render";
|
|
9
|
-
import { UniverNetworkPlugin as
|
|
9
|
+
import { UniverNetworkPlugin as R } from "@univerjs/network";
|
|
10
10
|
export * from "@univerjs/network";
|
|
11
|
-
import { UniverRPCMainThreadPlugin as
|
|
11
|
+
import { UniverRPCMainThreadPlugin as b } from "@univerjs/rpc";
|
|
12
12
|
export * from "@univerjs/rpc";
|
|
13
|
-
import { UniverSheetsPlugin as
|
|
13
|
+
import { UniverSheetsPlugin as h } from "@univerjs/sheets";
|
|
14
14
|
export * from "@univerjs/sheets";
|
|
15
|
-
import { UniverSheetsFormulaPlugin as
|
|
15
|
+
import { UniverSheetsFormulaPlugin as k } from "@univerjs/sheets-formula";
|
|
16
16
|
export * from "@univerjs/sheets-formula";
|
|
17
|
-
import { UniverSheetsFormulaUIPlugin as
|
|
17
|
+
import { UniverSheetsFormulaUIPlugin as w } from "@univerjs/sheets-formula-ui";
|
|
18
18
|
export * from "@univerjs/sheets-formula-ui";
|
|
19
|
-
import { UniverSheetsNumfmtPlugin as
|
|
19
|
+
import { UniverSheetsNumfmtPlugin as M } from "@univerjs/sheets-numfmt";
|
|
20
20
|
export * from "@univerjs/sheets-numfmt";
|
|
21
|
-
import { UniverSheetsNumfmtUIPlugin as
|
|
21
|
+
import { UniverSheetsNumfmtUIPlugin as y } from "@univerjs/sheets-numfmt-ui";
|
|
22
22
|
export * from "@univerjs/sheets-numfmt-ui";
|
|
23
|
-
import { UniverSheetsUIPlugin as
|
|
23
|
+
import { UniverSheetsUIPlugin as E } from "@univerjs/sheets-ui";
|
|
24
24
|
export * from "@univerjs/sheets-ui";
|
|
25
|
-
import { UniverUIPlugin as
|
|
25
|
+
import { UniverUIPlugin as I } from "@univerjs/ui";
|
|
26
26
|
export * from "@univerjs/ui";
|
|
27
27
|
import "@univerjs/network/facade";
|
|
28
28
|
import "@univerjs/sheets/facade";
|
|
@@ -33,65 +33,75 @@ import "@univerjs/engine-formula/facade";
|
|
|
33
33
|
import "@univerjs/sheets-formula/facade";
|
|
34
34
|
import "@univerjs/sheets-numfmt/facade";
|
|
35
35
|
import "@univerjs/sheets-formula-ui/facade";
|
|
36
|
-
function
|
|
36
|
+
function oo(n = {}) {
|
|
37
37
|
const {
|
|
38
|
-
container:
|
|
38
|
+
container: m = "app",
|
|
39
39
|
workerURL: e,
|
|
40
|
-
header:
|
|
41
|
-
footer:
|
|
40
|
+
header: l,
|
|
41
|
+
footer: u,
|
|
42
42
|
toolbar: p,
|
|
43
|
-
formulaBar:
|
|
43
|
+
formulaBar: a,
|
|
44
44
|
statusBarStatistic: f,
|
|
45
|
-
menu:
|
|
46
|
-
contextMenu:
|
|
47
|
-
disableAutoFocus:
|
|
45
|
+
menu: g,
|
|
46
|
+
contextMenu: c,
|
|
47
|
+
disableAutoFocus: x,
|
|
48
|
+
docs: i,
|
|
49
|
+
sheets: o,
|
|
48
50
|
formula: r,
|
|
49
51
|
customComponents: U,
|
|
50
|
-
disableTextFormatAlert:
|
|
51
|
-
disableTextFormatMark:
|
|
52
|
-
} =
|
|
52
|
+
disableTextFormatAlert: s,
|
|
53
|
+
disableTextFormatMark: P
|
|
54
|
+
} = n, t = !!e;
|
|
53
55
|
return {
|
|
54
56
|
plugins: [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
R,
|
|
58
|
+
[S, {
|
|
59
|
+
hasScroll: i == null ? void 0 : i.hasScroll
|
|
60
|
+
}],
|
|
61
|
+
F,
|
|
62
|
+
[I, {
|
|
63
|
+
container: m,
|
|
64
|
+
header: l,
|
|
65
|
+
footer: u,
|
|
62
66
|
toolbar: p,
|
|
63
|
-
menu:
|
|
64
|
-
contextMenu:
|
|
65
|
-
disableAutoFocus:
|
|
67
|
+
menu: g,
|
|
68
|
+
contextMenu: c,
|
|
69
|
+
disableAutoFocus: x
|
|
66
70
|
}],
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
[
|
|
70
|
-
notExecuteFormula:
|
|
71
|
+
d,
|
|
72
|
+
t ? [b, { workerURL: e }] : null,
|
|
73
|
+
[v, {
|
|
74
|
+
notExecuteFormula: t,
|
|
71
75
|
function: r == null ? void 0 : r.function
|
|
72
76
|
}],
|
|
73
|
-
[
|
|
74
|
-
notExecuteFormula:
|
|
75
|
-
onlyRegisterFormulaRelatedMutations: !1
|
|
77
|
+
[h, {
|
|
78
|
+
notExecuteFormula: t,
|
|
79
|
+
onlyRegisterFormulaRelatedMutations: !1,
|
|
80
|
+
isRowStylePrecedeColumnStyle: o == null ? void 0 : o.isRowStylePrecedeColumnStyle,
|
|
81
|
+
autoHeightForMergedCells: o == null ? void 0 : o.autoHeightForMergedCells
|
|
76
82
|
}],
|
|
77
|
-
[
|
|
83
|
+
[E, {
|
|
78
84
|
customComponents: U,
|
|
79
|
-
formulaBar:
|
|
80
|
-
statusBarStatistic: f
|
|
85
|
+
formulaBar: a,
|
|
86
|
+
statusBarStatistic: f,
|
|
87
|
+
maxAutoHeightCount: o == null ? void 0 : o.maxAutoHeightCount,
|
|
88
|
+
clipboardConfig: o == null ? void 0 : o.clipboardConfig,
|
|
89
|
+
scrollConfig: o == null ? void 0 : o.scrollConfig
|
|
81
90
|
}],
|
|
82
|
-
[
|
|
83
|
-
disableTextFormatAlert:
|
|
84
|
-
disableTextFormatMark:
|
|
91
|
+
[M, {
|
|
92
|
+
disableTextFormatAlert: s,
|
|
93
|
+
disableTextFormatMark: P
|
|
85
94
|
}],
|
|
86
|
-
|
|
87
|
-
[
|
|
88
|
-
notExecuteFormula:
|
|
89
|
-
description: r == null ? void 0 : r.description
|
|
95
|
+
y,
|
|
96
|
+
[k, {
|
|
97
|
+
notExecuteFormula: t,
|
|
98
|
+
description: r == null ? void 0 : r.description,
|
|
99
|
+
initialFormulaComputing: r == null ? void 0 : r.initialFormulaComputing
|
|
90
100
|
}],
|
|
91
|
-
|
|
92
|
-
].filter((
|
|
101
|
+
w
|
|
102
|
+
].filter((C) => !!C)
|
|
93
103
|
};
|
|
94
104
|
}
|
|
95
105
|
export {
|
|
96
|
-
|
|
106
|
+
oo as UniverSheetsCorePreset
|
|
97
107
|
};
|