@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/index.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { UniverDocsPlugin as S } from "@univerjs/docs";
|
|
2
|
+
export * from "@univerjs/docs";
|
|
3
|
+
import { UniverDocsUIPlugin as d } from "@univerjs/docs-ui";
|
|
4
|
+
export * from "@univerjs/docs-ui";
|
|
5
|
+
import { UniverFormulaEnginePlugin as v } from "@univerjs/engine-formula";
|
|
6
|
+
export * from "@univerjs/engine-formula";
|
|
7
|
+
import { UniverRenderEnginePlugin as F } from "@univerjs/engine-render";
|
|
8
|
+
export * from "@univerjs/engine-render";
|
|
9
|
+
import { UniverNetworkPlugin as R } from "@univerjs/network";
|
|
10
|
+
export * from "@univerjs/network";
|
|
11
|
+
import { UniverRPCMainThreadPlugin as b } from "@univerjs/rpc";
|
|
12
|
+
export * from "@univerjs/rpc";
|
|
13
|
+
import { UniverSheetsPlugin as h } from "@univerjs/sheets";
|
|
14
|
+
export * from "@univerjs/sheets";
|
|
15
|
+
import { UniverSheetsFormulaPlugin as k } from "@univerjs/sheets-formula";
|
|
16
|
+
export * from "@univerjs/sheets-formula";
|
|
17
|
+
import { UniverSheetsFormulaUIPlugin as w } from "@univerjs/sheets-formula-ui";
|
|
18
|
+
export * from "@univerjs/sheets-formula-ui";
|
|
19
|
+
import { UniverSheetsNumfmtPlugin as M } from "@univerjs/sheets-numfmt";
|
|
20
|
+
export * from "@univerjs/sheets-numfmt";
|
|
21
|
+
import { UniverSheetsNumfmtUIPlugin as y } from "@univerjs/sheets-numfmt-ui";
|
|
22
|
+
export * from "@univerjs/sheets-numfmt-ui";
|
|
23
|
+
import { UniverSheetsUIPlugin as E } from "@univerjs/sheets-ui";
|
|
24
|
+
export * from "@univerjs/sheets-ui";
|
|
25
|
+
import { UniverUIPlugin as I } from "@univerjs/ui";
|
|
26
|
+
export * from "@univerjs/ui";
|
|
27
|
+
import "@univerjs/network/facade";
|
|
28
|
+
import "@univerjs/sheets/facade";
|
|
29
|
+
import "@univerjs/ui/facade";
|
|
30
|
+
import "@univerjs/docs-ui/facade";
|
|
31
|
+
import "@univerjs/sheets-ui/facade";
|
|
32
|
+
import "@univerjs/engine-formula/facade";
|
|
33
|
+
import "@univerjs/sheets-formula/facade";
|
|
34
|
+
import "@univerjs/sheets-numfmt/facade";
|
|
35
|
+
import "@univerjs/sheets-formula-ui/facade";
|
|
36
|
+
function oo(n = {}) {
|
|
37
|
+
const {
|
|
38
|
+
container: m = "app",
|
|
39
|
+
workerURL: e,
|
|
40
|
+
header: l,
|
|
41
|
+
footer: u,
|
|
42
|
+
toolbar: p,
|
|
43
|
+
formulaBar: a,
|
|
44
|
+
statusBarStatistic: f,
|
|
45
|
+
menu: g,
|
|
46
|
+
contextMenu: c,
|
|
47
|
+
disableAutoFocus: x,
|
|
48
|
+
docs: i,
|
|
49
|
+
sheets: o,
|
|
50
|
+
formula: r,
|
|
51
|
+
customComponents: U,
|
|
52
|
+
disableTextFormatAlert: s,
|
|
53
|
+
disableTextFormatMark: P
|
|
54
|
+
} = n, t = !!e;
|
|
55
|
+
return {
|
|
56
|
+
plugins: [
|
|
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,
|
|
66
|
+
toolbar: p,
|
|
67
|
+
menu: g,
|
|
68
|
+
contextMenu: c,
|
|
69
|
+
disableAutoFocus: x
|
|
70
|
+
}],
|
|
71
|
+
d,
|
|
72
|
+
t ? [b, { workerURL: e }] : null,
|
|
73
|
+
[v, {
|
|
74
|
+
notExecuteFormula: t,
|
|
75
|
+
function: r == null ? void 0 : r.function
|
|
76
|
+
}],
|
|
77
|
+
[h, {
|
|
78
|
+
notExecuteFormula: t,
|
|
79
|
+
onlyRegisterFormulaRelatedMutations: !1,
|
|
80
|
+
isRowStylePrecedeColumnStyle: o == null ? void 0 : o.isRowStylePrecedeColumnStyle,
|
|
81
|
+
autoHeightForMergedCells: o == null ? void 0 : o.autoHeightForMergedCells
|
|
82
|
+
}],
|
|
83
|
+
[E, {
|
|
84
|
+
customComponents: U,
|
|
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
|
|
90
|
+
}],
|
|
91
|
+
[M, {
|
|
92
|
+
disableTextFormatAlert: s,
|
|
93
|
+
disableTextFormatMark: P
|
|
94
|
+
}],
|
|
95
|
+
y,
|
|
96
|
+
[k, {
|
|
97
|
+
notExecuteFormula: t,
|
|
98
|
+
description: r == null ? void 0 : r.description,
|
|
99
|
+
initialFormulaComputing: r == null ? void 0 : r.initialFormulaComputing
|
|
100
|
+
}],
|
|
101
|
+
w
|
|
102
|
+
].filter((C) => !!C)
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
oo as UniverSheetsCorePreset
|
|
107
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/design/locale/en-US";
|
|
3
|
+
import i from "@univerjs/docs-ui/locale/en-US";
|
|
4
|
+
import m from "@univerjs/sheets/locale/en-US";
|
|
5
|
+
import o from "@univerjs/sheets-formula/locale/en-US";
|
|
6
|
+
import s from "@univerjs/sheets-formula-ui/locale/en-US";
|
|
7
|
+
import t from "@univerjs/sheets-numfmt-ui/locale/en-US";
|
|
8
|
+
import u from "@univerjs/sheets-ui/locale/en-US";
|
|
9
|
+
import f from "@univerjs/ui/locale/en-US";
|
|
10
|
+
const g = r(
|
|
11
|
+
{},
|
|
12
|
+
e,
|
|
13
|
+
i,
|
|
14
|
+
m,
|
|
15
|
+
o,
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
u,
|
|
19
|
+
f
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
g as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/design/locale/fa-IR";
|
|
3
|
+
import i from "@univerjs/docs-ui/locale/fa-IR";
|
|
4
|
+
import m from "@univerjs/sheets/locale/fa-IR";
|
|
5
|
+
import o from "@univerjs/sheets-formula/locale/fa-IR";
|
|
6
|
+
import s from "@univerjs/sheets-formula-ui/locale/fa-IR";
|
|
7
|
+
import t from "@univerjs/sheets-numfmt-ui/locale/fa-IR";
|
|
8
|
+
import u from "@univerjs/sheets-ui/locale/fa-IR";
|
|
9
|
+
import f from "@univerjs/ui/locale/fa-IR";
|
|
10
|
+
const g = r(
|
|
11
|
+
{},
|
|
12
|
+
e,
|
|
13
|
+
i,
|
|
14
|
+
m,
|
|
15
|
+
o,
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
u,
|
|
19
|
+
f
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
g as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/design/locale/fr-FR";
|
|
3
|
+
import i from "@univerjs/docs-ui/locale/fr-FR";
|
|
4
|
+
import m from "@univerjs/sheets/locale/fr-FR";
|
|
5
|
+
import o from "@univerjs/sheets-formula/locale/fr-FR";
|
|
6
|
+
import s from "@univerjs/sheets-formula-ui/locale/fr-FR";
|
|
7
|
+
import t from "@univerjs/sheets-numfmt-ui/locale/fr-FR";
|
|
8
|
+
import u from "@univerjs/sheets-ui/locale/fr-FR";
|
|
9
|
+
import f from "@univerjs/ui/locale/fr-FR";
|
|
10
|
+
const g = r(
|
|
11
|
+
{},
|
|
12
|
+
e,
|
|
13
|
+
i,
|
|
14
|
+
m,
|
|
15
|
+
o,
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
u,
|
|
19
|
+
f
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
g as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/design/locale/ru-RU";
|
|
3
|
+
import i from "@univerjs/docs-ui/locale/ru-RU";
|
|
4
|
+
import m from "@univerjs/sheets/locale/ru-RU";
|
|
5
|
+
import o from "@univerjs/sheets-formula/locale/ru-RU";
|
|
6
|
+
import s from "@univerjs/sheets-formula-ui/locale/ru-RU";
|
|
7
|
+
import t from "@univerjs/sheets-numfmt-ui/locale/ru-RU";
|
|
8
|
+
import u from "@univerjs/sheets-ui/locale/ru-RU";
|
|
9
|
+
import f from "@univerjs/ui/locale/ru-RU";
|
|
10
|
+
const g = r(
|
|
11
|
+
{},
|
|
12
|
+
e,
|
|
13
|
+
i,
|
|
14
|
+
m,
|
|
15
|
+
o,
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
u,
|
|
19
|
+
f
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
g as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import i from "@univerjs/design/locale/vi-VN";
|
|
3
|
+
import e from "@univerjs/docs-ui/locale/vi-VN";
|
|
4
|
+
import m from "@univerjs/sheets/locale/vi-VN";
|
|
5
|
+
import o from "@univerjs/sheets-formula/locale/vi-VN";
|
|
6
|
+
import s from "@univerjs/sheets-formula-ui/locale/vi-VN";
|
|
7
|
+
import t from "@univerjs/sheets-numfmt-ui/locale/vi-VN";
|
|
8
|
+
import u from "@univerjs/sheets-ui/locale/vi-VN";
|
|
9
|
+
import f from "@univerjs/ui/locale/vi-VN";
|
|
10
|
+
const g = r(
|
|
11
|
+
{},
|
|
12
|
+
i,
|
|
13
|
+
e,
|
|
14
|
+
m,
|
|
15
|
+
o,
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
u,
|
|
19
|
+
f
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
g as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/design/locale/zh-CN";
|
|
3
|
+
import i from "@univerjs/docs-ui/locale/zh-CN";
|
|
4
|
+
import m from "@univerjs/sheets/locale/zh-CN";
|
|
5
|
+
import o from "@univerjs/sheets-formula/locale/zh-CN";
|
|
6
|
+
import s from "@univerjs/sheets-formula-ui/locale/zh-CN";
|
|
7
|
+
import t from "@univerjs/sheets-numfmt-ui/locale/zh-CN";
|
|
8
|
+
import u from "@univerjs/sheets-ui/locale/zh-CN";
|
|
9
|
+
import f from "@univerjs/ui/locale/zh-CN";
|
|
10
|
+
const g = r(
|
|
11
|
+
{},
|
|
12
|
+
e,
|
|
13
|
+
i,
|
|
14
|
+
m,
|
|
15
|
+
o,
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
u,
|
|
19
|
+
f
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
g as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs/design/locale/zh-TW";
|
|
3
|
+
import i from "@univerjs/docs-ui/locale/zh-TW";
|
|
4
|
+
import m from "@univerjs/sheets/locale/zh-TW";
|
|
5
|
+
import o from "@univerjs/sheets-formula/locale/zh-TW";
|
|
6
|
+
import s from "@univerjs/sheets-formula-ui/locale/zh-TW";
|
|
7
|
+
import t from "@univerjs/sheets-numfmt-ui/locale/zh-TW";
|
|
8
|
+
import u from "@univerjs/sheets-ui/locale/zh-TW";
|
|
9
|
+
import f from "@univerjs/ui/locale/zh-TW";
|
|
10
|
+
const g = r(
|
|
11
|
+
{},
|
|
12
|
+
e,
|
|
13
|
+
i,
|
|
14
|
+
m,
|
|
15
|
+
o,
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
u,
|
|
19
|
+
f
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
g as default
|
|
23
|
+
};
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { IUniverConfig, Plugin, PluginCtor } from '@univerjs/core';
|
|
2
|
+
import { IUniverDocsConfig } from '@univerjs/docs';
|
|
2
3
|
import { IUniverEngineFormulaConfig } from '@univerjs/engine-formula';
|
|
4
|
+
import { IUniverSheetsConfig } from '@univerjs/sheets';
|
|
3
5
|
import { IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';
|
|
6
|
+
import { IUniverSheetsUIConfig } from '@univerjs/sheets-ui';
|
|
4
7
|
/**
|
|
5
8
|
* A collection of plugins and their default configs.
|
|
6
9
|
*/
|
|
@@ -11,7 +14,11 @@ export interface IPreset {
|
|
|
11
14
|
export interface IPresetOptions {
|
|
12
15
|
lazy?: boolean;
|
|
13
16
|
}
|
|
14
|
-
export interface IUniverFormulaConfig extends Pick<IUniverEngineFormulaConfig, 'function'>, Pick<IUniverSheetsFormulaBaseConfig, 'description'> {
|
|
17
|
+
export interface IUniverFormulaConfig extends Pick<IUniverEngineFormulaConfig, 'function'>, Pick<IUniverSheetsFormulaBaseConfig, 'description' | 'initialFormulaComputing'> {
|
|
15
18
|
}
|
|
16
19
|
export interface IUniverFormulaWorkerConfig extends Pick<IUniverEngineFormulaConfig, 'function'> {
|
|
17
20
|
}
|
|
21
|
+
export interface IUniverDocsPresetConfig extends IUniverDocsConfig {
|
|
22
|
+
}
|
|
23
|
+
export interface IUniverSheetsPresetConfig extends Pick<IUniverSheetsConfig, 'isRowStylePrecedeColumnStyle' | 'autoHeightForMergedCells'>, Pick<IUniverSheetsUIConfig, 'maxAutoHeightCount' | 'clipboardConfig' | 'scrollConfig'> {
|
|
24
|
+
}
|
package/lib/types/umd.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IUniverRPCMainThreadConfig } from '@univerjs/rpc';
|
|
|
2
2
|
import { IUniverSheetsNumfmtConfig } from '@univerjs/sheets-numfmt';
|
|
3
3
|
import { IUniverSheetsUIConfig } from '@univerjs/sheets-ui';
|
|
4
4
|
import { IUniverUIConfig } from '@univerjs/ui';
|
|
5
|
-
import { IPreset, IUniverFormulaConfig } from './types';
|
|
5
|
+
import { IPreset, IUniverDocsPresetConfig, IUniverFormulaConfig, IUniverSheetsPresetConfig } from './types';
|
|
6
6
|
import '@univerjs/network/facade';
|
|
7
7
|
import '@univerjs/sheets/facade';
|
|
8
8
|
import '@univerjs/ui/facade';
|
|
@@ -29,7 +29,15 @@ export type * from '@univerjs/sheets/facade';
|
|
|
29
29
|
export type * from '@univerjs/ui/facade';
|
|
30
30
|
export interface IUniverSheetsCorePresetConfig extends Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'menu' | 'contextMenu' | 'disableAutoFocus'>, Pick<IUniverSheetsUIConfig, 'formulaBar' | 'statusBarStatistic' | 'customComponents'>, IUniverSheetsNumfmtConfig {
|
|
31
31
|
/**
|
|
32
|
-
* The
|
|
32
|
+
* The docs related configuration.
|
|
33
|
+
*/
|
|
34
|
+
docs?: IUniverDocsPresetConfig;
|
|
35
|
+
/**
|
|
36
|
+
* The sheets related configuration.
|
|
37
|
+
*/
|
|
38
|
+
sheets?: IUniverSheetsPresetConfig;
|
|
39
|
+
/**
|
|
40
|
+
* The formula related configuration.
|
|
33
41
|
*/
|
|
34
42
|
formula?: IUniverFormulaConfig;
|
|
35
43
|
/**
|