@univerjs/preset-sheets-core 0.10.7 → 0.10.8
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 +21 -19
- package/lib/index.js +21 -19
- package/lib/types/types.d.ts +2 -1
- package/lib/umd/index.js +30 -30
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@univerjs/docs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@univerjs/docs"),c=require("@univerjs/docs-ui"),l=require("@univerjs/engine-formula"),u=require("@univerjs/engine-render"),a=require("@univerjs/network"),p=require("@univerjs/rpc"),b=require("@univerjs/sheets"),s=require("@univerjs/sheets-formula"),f=require("@univerjs/sheets-formula-ui"),y=require("@univerjs/sheets-numfmt"),d=require("@univerjs/sheets-numfmt-ui"),g=require("@univerjs/sheets-ui"),O=require("@univerjs/ui");require("@univerjs/network/lib/facade");require("@univerjs/sheets/lib/facade");require("@univerjs/ui/lib/facade");require("@univerjs/docs-ui/lib/facade");require("@univerjs/sheets-ui/lib/facade");require("@univerjs/engine-formula/lib/facade");require("@univerjs/sheets-formula/lib/facade");require("@univerjs/sheets-numfmt/lib/facade");require("@univerjs/sheets-formula-ui/lib/facade");function x(e={}){var j;const{container:m="app",workerURL:P,header:h,footer:U,toolbar:S,ribbonType:q,formulaBar:w,menu:F,contextMenu:E,disableAutoFocus:v,docs:n,sheets:r,formula:t,disableTextFormatAlert:C,disableTextFormatMark:R}=e,o=!!P;return{plugins:[a.UniverNetworkPlugin,[i.UniverDocsPlugin,{hasScroll:n==null?void 0:n.hasScroll}],u.UniverRenderEnginePlugin,[O.UniverUIPlugin,{container:m,header:h,toolbar:S,ribbonType:q,menu:F,contextMenu:E,disableAutoFocus:v}],c.UniverDocsUIPlugin,o?[p.UniverRPCMainThreadPlugin,{workerURL:P}]:null,[l.UniverFormulaEnginePlugin,{notExecuteFormula:o,function:t==null?void 0:t.function}],[b.UniverSheetsPlugin,{notExecuteFormula:o,onlyRegisterFormulaRelatedMutations:!1,isRowStylePrecedeColumnStyle:r==null?void 0:r.isRowStylePrecedeColumnStyle,autoHeightForMergedCells:r==null?void 0:r.autoHeightForMergedCells}],[g.UniverSheetsUIPlugin,{formulaBar:w,footer:U,maxAutoHeightCount:r==null?void 0:r.maxAutoHeightCount,clipboardConfig:r==null?void 0:r.clipboardConfig,scrollConfig:r==null?void 0:r.scrollConfig,protectedRangeShadow:(j=r==null?void 0:r.protectedRangeShadow)!=null?j:!0,protectedRangeUserSelector:r==null?void 0:r.protectedRangeUserSelector,disableForceStringAlert:r==null?void 0:r.disableForceStringAlert,disableForceStringMark:r==null?void 0:r.disableForceStringMark}],[y.UniverSheetsNumfmtPlugin,{disableTextFormatAlert:C,disableTextFormatMark:R}],d.UniverSheetsNumfmtUIPlugin,[s.UniverSheetsFormulaPlugin,{notExecuteFormula:o,description:t==null?void 0:t.description,initialFormulaComputing:t==null?void 0:t.initialFormulaComputing}],[f.UniverSheetsFormulaUIPlugin,{functionScreenTips:t==null?void 0:t.functionScreenTips}]].filter(M=>!!M)}}exports.UniverSheetsCorePreset=x;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(l).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>l[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(p).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>p[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(s).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>s[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(y).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>y[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]})});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
|
@@ -18,11 +18,11 @@ import { UniverSheetsFormulaUIPlugin as y } from "@univerjs/sheets-formula-ui";
|
|
|
18
18
|
export * from "@univerjs/sheets-formula-ui";
|
|
19
19
|
import { UniverSheetsNumfmtPlugin as A } from "@univerjs/sheets-numfmt";
|
|
20
20
|
export * from "@univerjs/sheets-numfmt";
|
|
21
|
-
import { UniverSheetsNumfmtUIPlugin as
|
|
21
|
+
import { UniverSheetsNumfmtUIPlugin as T } 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/lib/facade";
|
|
28
28
|
import "@univerjs/sheets/lib/facade";
|
|
@@ -41,16 +41,16 @@ function rr(m = {}) {
|
|
|
41
41
|
header: p,
|
|
42
42
|
footer: u,
|
|
43
43
|
toolbar: a,
|
|
44
|
-
ribbonType:
|
|
45
|
-
formulaBar:
|
|
46
|
-
menu:
|
|
44
|
+
ribbonType: c,
|
|
45
|
+
formulaBar: g,
|
|
46
|
+
menu: f,
|
|
47
47
|
contextMenu: d,
|
|
48
|
-
disableAutoFocus:
|
|
48
|
+
disableAutoFocus: S,
|
|
49
49
|
docs: i,
|
|
50
50
|
sheets: r,
|
|
51
51
|
formula: o,
|
|
52
|
-
disableTextFormatAlert:
|
|
53
|
-
disableTextFormatMark:
|
|
52
|
+
disableTextFormatAlert: U,
|
|
53
|
+
disableTextFormatMark: x
|
|
54
54
|
} = m, e = !!t;
|
|
55
55
|
return {
|
|
56
56
|
plugins: [
|
|
@@ -59,14 +59,14 @@ function rr(m = {}) {
|
|
|
59
59
|
hasScroll: i == null ? void 0 : i.hasScroll
|
|
60
60
|
}],
|
|
61
61
|
b,
|
|
62
|
-
[
|
|
62
|
+
[I, {
|
|
63
63
|
container: l,
|
|
64
64
|
header: p,
|
|
65
65
|
toolbar: a,
|
|
66
|
-
ribbonType:
|
|
67
|
-
menu:
|
|
66
|
+
ribbonType: c,
|
|
67
|
+
menu: f,
|
|
68
68
|
contextMenu: d,
|
|
69
|
-
disableAutoFocus:
|
|
69
|
+
disableAutoFocus: S
|
|
70
70
|
}],
|
|
71
71
|
v,
|
|
72
72
|
e ? [k, { workerURL: t }] : null,
|
|
@@ -80,8 +80,8 @@ function rr(m = {}) {
|
|
|
80
80
|
isRowStylePrecedeColumnStyle: r == null ? void 0 : r.isRowStylePrecedeColumnStyle,
|
|
81
81
|
autoHeightForMergedCells: r == null ? void 0 : r.autoHeightForMergedCells
|
|
82
82
|
}],
|
|
83
|
-
[
|
|
84
|
-
formulaBar:
|
|
83
|
+
[E, {
|
|
84
|
+
formulaBar: g,
|
|
85
85
|
footer: u,
|
|
86
86
|
maxAutoHeightCount: r == null ? void 0 : r.maxAutoHeightCount,
|
|
87
87
|
clipboardConfig: r == null ? void 0 : r.clipboardConfig,
|
|
@@ -92,16 +92,18 @@ function rr(m = {}) {
|
|
|
92
92
|
disableForceStringMark: r == null ? void 0 : r.disableForceStringMark
|
|
93
93
|
}],
|
|
94
94
|
[A, {
|
|
95
|
-
disableTextFormatAlert:
|
|
96
|
-
disableTextFormatMark:
|
|
95
|
+
disableTextFormatAlert: U,
|
|
96
|
+
disableTextFormatMark: x
|
|
97
97
|
}],
|
|
98
|
-
|
|
98
|
+
T,
|
|
99
99
|
[M, {
|
|
100
100
|
notExecuteFormula: e,
|
|
101
101
|
description: o == null ? void 0 : o.description,
|
|
102
102
|
initialFormulaComputing: o == null ? void 0 : o.initialFormulaComputing
|
|
103
103
|
}],
|
|
104
|
-
y
|
|
104
|
+
[y, {
|
|
105
|
+
functionScreenTips: o == null ? void 0 : o.functionScreenTips
|
|
106
|
+
}]
|
|
105
107
|
].filter((F) => !!F)
|
|
106
108
|
};
|
|
107
109
|
}
|
package/lib/index.js
CHANGED
|
@@ -18,11 +18,11 @@ import { UniverSheetsFormulaUIPlugin as y } from "@univerjs/sheets-formula-ui";
|
|
|
18
18
|
export * from "@univerjs/sheets-formula-ui";
|
|
19
19
|
import { UniverSheetsNumfmtPlugin as A } from "@univerjs/sheets-numfmt";
|
|
20
20
|
export * from "@univerjs/sheets-numfmt";
|
|
21
|
-
import { UniverSheetsNumfmtUIPlugin as
|
|
21
|
+
import { UniverSheetsNumfmtUIPlugin as T } 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/lib/facade";
|
|
28
28
|
import "@univerjs/sheets/lib/facade";
|
|
@@ -41,16 +41,16 @@ function rr(m = {}) {
|
|
|
41
41
|
header: p,
|
|
42
42
|
footer: u,
|
|
43
43
|
toolbar: a,
|
|
44
|
-
ribbonType:
|
|
45
|
-
formulaBar:
|
|
46
|
-
menu:
|
|
44
|
+
ribbonType: c,
|
|
45
|
+
formulaBar: g,
|
|
46
|
+
menu: f,
|
|
47
47
|
contextMenu: d,
|
|
48
|
-
disableAutoFocus:
|
|
48
|
+
disableAutoFocus: S,
|
|
49
49
|
docs: i,
|
|
50
50
|
sheets: r,
|
|
51
51
|
formula: o,
|
|
52
|
-
disableTextFormatAlert:
|
|
53
|
-
disableTextFormatMark:
|
|
52
|
+
disableTextFormatAlert: U,
|
|
53
|
+
disableTextFormatMark: x
|
|
54
54
|
} = m, e = !!t;
|
|
55
55
|
return {
|
|
56
56
|
plugins: [
|
|
@@ -59,14 +59,14 @@ function rr(m = {}) {
|
|
|
59
59
|
hasScroll: i == null ? void 0 : i.hasScroll
|
|
60
60
|
}],
|
|
61
61
|
b,
|
|
62
|
-
[
|
|
62
|
+
[I, {
|
|
63
63
|
container: l,
|
|
64
64
|
header: p,
|
|
65
65
|
toolbar: a,
|
|
66
|
-
ribbonType:
|
|
67
|
-
menu:
|
|
66
|
+
ribbonType: c,
|
|
67
|
+
menu: f,
|
|
68
68
|
contextMenu: d,
|
|
69
|
-
disableAutoFocus:
|
|
69
|
+
disableAutoFocus: S
|
|
70
70
|
}],
|
|
71
71
|
v,
|
|
72
72
|
e ? [k, { workerURL: t }] : null,
|
|
@@ -80,8 +80,8 @@ function rr(m = {}) {
|
|
|
80
80
|
isRowStylePrecedeColumnStyle: r == null ? void 0 : r.isRowStylePrecedeColumnStyle,
|
|
81
81
|
autoHeightForMergedCells: r == null ? void 0 : r.autoHeightForMergedCells
|
|
82
82
|
}],
|
|
83
|
-
[
|
|
84
|
-
formulaBar:
|
|
83
|
+
[E, {
|
|
84
|
+
formulaBar: g,
|
|
85
85
|
footer: u,
|
|
86
86
|
maxAutoHeightCount: r == null ? void 0 : r.maxAutoHeightCount,
|
|
87
87
|
clipboardConfig: r == null ? void 0 : r.clipboardConfig,
|
|
@@ -92,16 +92,18 @@ function rr(m = {}) {
|
|
|
92
92
|
disableForceStringMark: r == null ? void 0 : r.disableForceStringMark
|
|
93
93
|
}],
|
|
94
94
|
[A, {
|
|
95
|
-
disableTextFormatAlert:
|
|
96
|
-
disableTextFormatMark:
|
|
95
|
+
disableTextFormatAlert: U,
|
|
96
|
+
disableTextFormatMark: x
|
|
97
97
|
}],
|
|
98
|
-
|
|
98
|
+
T,
|
|
99
99
|
[M, {
|
|
100
100
|
notExecuteFormula: e,
|
|
101
101
|
description: o == null ? void 0 : o.description,
|
|
102
102
|
initialFormulaComputing: o == null ? void 0 : o.initialFormulaComputing
|
|
103
103
|
}],
|
|
104
|
-
y
|
|
104
|
+
[y, {
|
|
105
|
+
functionScreenTips: o == null ? void 0 : o.functionScreenTips
|
|
106
|
+
}]
|
|
105
107
|
].filter((F) => !!F)
|
|
106
108
|
};
|
|
107
109
|
}
|
package/lib/types/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IUniverDocsConfig } from '@univerjs/docs';
|
|
|
3
3
|
import { IUniverEngineFormulaConfig } from '@univerjs/engine-formula';
|
|
4
4
|
import { IUniverSheetsConfig } from '@univerjs/sheets';
|
|
5
5
|
import { IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';
|
|
6
|
+
import { IUniverSheetsFormulaUIConfig } from '@univerjs/sheets-formula-ui';
|
|
6
7
|
import { IUniverSheetsUIConfig } from '@univerjs/sheets-ui';
|
|
7
8
|
/**
|
|
8
9
|
* A collection of plugins and their default configs.
|
|
@@ -14,7 +15,7 @@ export interface IPreset {
|
|
|
14
15
|
export interface IPresetOptions {
|
|
15
16
|
lazy?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export interface IUniverFormulaConfig extends Pick<IUniverEngineFormulaConfig, 'function'>, Pick<IUniverSheetsFormulaBaseConfig, 'description' | 'initialFormulaComputing'> {
|
|
18
|
+
export interface IUniverFormulaConfig extends Pick<IUniverEngineFormulaConfig, 'function'>, Pick<IUniverSheetsFormulaBaseConfig, 'description' | 'initialFormulaComputing'>, Pick<IUniverSheetsFormulaUIConfig, 'functionScreenTips'> {
|
|
18
19
|
}
|
|
19
20
|
export interface IUniverFormulaWorkerConfig extends Pick<IUniverEngineFormulaConfig, 'function'> {
|
|
20
21
|
}
|