@univerjs/preset-sheets-advanced 0.5.0-nightly.202411230627 → 0.5.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/cjs/worker.js +1 -1
- package/lib/es/index.js +17 -17
- package/lib/es/worker.js +13 -4
- package/lib/types/worker.d.ts +4 -1
- package/lib/umd/index.js +17 -17
- package/lib/umd/locales/en-US.js +6 -6
- package/lib/umd/locales/fa-IR.js +6 -6
- package/lib/umd/locales/ru-RU.js +6 -6
- package/lib/umd/locales/vi-VN.js +6 -6
- package/lib/umd/locales/zh-CN.js +6 -6
- package/lib/umd/locales/zh-TW.js +6 -6
- package/lib/umd/worker.js +1 -1
- package/package.json +15 -15
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 u=require("@univerjs/network"),n=require("@univerjs-pro/engine-formula"),a=require("@univerjs-pro/exchange-client"),c=require("@univerjs-pro/license"),v=require("@univerjs-pro/sheets-chart"),g=require("@univerjs-pro/sheets-chart-ui"),h=require("@univerjs-pro/sheets-exchange-client"),t=require("@univerjs-pro/sheets-pivot"),U=require("@univerjs-pro/sheets-pivot-ui"),P=require("@univerjs-pro/sheets-print");require("@univerjs-pro/exchange-client/facade");require("@univerjs-pro/sheets-pivot/facade");require("@univerjs-pro/engine-formula/facade");function p(s={license:"",universerEndpoint:""}){const{license:o,universerEndpoint:r,useWorker:i}=s,e=r!=null?r:`${window.location.protocol}//${window.location.host}`;return{plugins:[u.UniverNetworkPlugin,[c.UniverLicensePlugin,{license:o}],i?[t.UniverSheetsPivotTablePlugin,{notExecuteFormula:!0}]:[t.UniverSheetsPivotTablePlugin],U.UniverSheetsPivotTableUIPlugin,i?[n.UniverProFormulaEnginePlugin,{notExecuteFormula:!0}]:n.UniverProFormulaEnginePlugin,P.UniverSheetsPrintPlugin,v.UniverSheetsChartPlugin,g.UniverSheetsChartUIPlugin,[a.UniverExchangeClientPlugin,{uploadFileServerUrl:`${e}/universer-api/stream/file/upload`,getTaskServerUrl:`${e}/universer-api/exchange/task/{taskID}`,signUrlServerUrl:`${e}/universer-api/file/{fileID}/sign-url`,importServerUrl:`${e}/universer-api/exchange/{type}/import`,exportServerUrl:`${e}/universer-api/exchange/{type}/export`,downloadEndpointUrl:`${e}/`}],h.UniverSheetsExchangeClientPlugin].filter(l=>!!l)}}exports.UniverSheetsAdvancedPreset=p;
|
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 r=require("@univerjs-pro/engine-formula"),i=require("@univerjs-pro/license"),t=require("@univerjs-pro/sheets-pivot");function s(e={license:""}){const{license:n}=e;return{plugins:[[i.UniverLicensePlugin,{license:n}],r.UniverProFormulaEnginePlugin,[t.UniverSheetsPivotTablePlugin,{notExecuteFormula:!1}]]}}exports.UniverSheetsAdvancedWorkerPreset=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { UniverNetworkPlugin as
|
|
2
|
-
import { UniverProFormulaEnginePlugin as
|
|
3
|
-
import { UniverExchangeClientPlugin as
|
|
4
|
-
import { UniverLicensePlugin as
|
|
5
|
-
import { UniverSheetsChartPlugin as
|
|
1
|
+
import { UniverNetworkPlugin as m } from "@univerjs/network";
|
|
2
|
+
import { UniverProFormulaEnginePlugin as n } from "@univerjs-pro/engine-formula";
|
|
3
|
+
import { UniverExchangeClientPlugin as u } from "@univerjs-pro/exchange-client";
|
|
4
|
+
import { UniverLicensePlugin as s } from "@univerjs-pro/license";
|
|
5
|
+
import { UniverSheetsChartPlugin as a } from "@univerjs-pro/sheets-chart";
|
|
6
6
|
import { UniverSheetsChartUIPlugin as v } from "@univerjs-pro/sheets-chart-ui";
|
|
7
7
|
import { UniverSheetsExchangeClientPlugin as g } from "@univerjs-pro/sheets-exchange-client";
|
|
8
|
-
import { UniverSheetsPivotTablePlugin as
|
|
8
|
+
import { UniverSheetsPivotTablePlugin as o } from "@univerjs-pro/sheets-pivot";
|
|
9
9
|
import { UniverSheetsPivotTableUIPlugin as U } from "@univerjs-pro/sheets-pivot-ui";
|
|
10
10
|
import { UniverSheetsPrintPlugin as c } from "@univerjs-pro/sheets-print";
|
|
11
11
|
import "@univerjs-pro/exchange-client/facade";
|
|
12
12
|
import "@univerjs-pro/sheets-pivot/facade";
|
|
13
13
|
import "@univerjs-pro/engine-formula/facade";
|
|
14
|
-
function T(
|
|
14
|
+
function T(t = {
|
|
15
15
|
license: "",
|
|
16
16
|
universerEndpoint: ""
|
|
17
17
|
}) {
|
|
18
18
|
const {
|
|
19
|
-
license:
|
|
19
|
+
license: l,
|
|
20
20
|
universerEndpoint: r,
|
|
21
|
-
useWorker:
|
|
22
|
-
} =
|
|
21
|
+
useWorker: i
|
|
22
|
+
} = t, e = r != null ? r : `${window.location.protocol}//${window.location.host}`;
|
|
23
23
|
return {
|
|
24
24
|
plugins: [
|
|
25
|
-
|
|
26
|
-
[
|
|
25
|
+
m,
|
|
26
|
+
[s, { license: l }],
|
|
27
27
|
// TODO: @wzhudev: if we use worker, we need to add different configurations to SheetsPivotTable
|
|
28
|
-
|
|
28
|
+
i ? [o, { notExecuteFormula: !0 }] : [o],
|
|
29
29
|
U,
|
|
30
|
-
|
|
30
|
+
i ? [n, { notExecuteFormula: !0 }] : n,
|
|
31
31
|
c,
|
|
32
|
-
|
|
32
|
+
a,
|
|
33
33
|
v,
|
|
34
|
-
[
|
|
34
|
+
[u, {
|
|
35
35
|
uploadFileServerUrl: `${e}/universer-api/stream/file/upload`,
|
|
36
36
|
getTaskServerUrl: `${e}/universer-api/exchange/task/{taskID}`,
|
|
37
37
|
signUrlServerUrl: `${e}/universer-api/file/{fileID}/sign-url`,
|
|
@@ -40,7 +40,7 @@ function T(n = {
|
|
|
40
40
|
downloadEndpointUrl: `${e}/`
|
|
41
41
|
}],
|
|
42
42
|
g
|
|
43
|
-
].filter((
|
|
43
|
+
].filter((p) => !!p)
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
export {
|
package/lib/es/worker.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { UniverProFormulaEnginePlugin as r } from "@univerjs-pro/engine-formula";
|
|
2
|
+
import { UniverLicensePlugin as i } from "@univerjs-pro/license";
|
|
3
|
+
import { UniverSheetsPivotTablePlugin as o } from "@univerjs-pro/sheets-pivot";
|
|
4
|
+
function u(e = {
|
|
5
|
+
license: ""
|
|
6
|
+
}) {
|
|
7
|
+
const {
|
|
8
|
+
license: n
|
|
9
|
+
} = e;
|
|
3
10
|
return {
|
|
4
11
|
plugins: [
|
|
5
|
-
[
|
|
12
|
+
[i, { license: n }],
|
|
13
|
+
r,
|
|
14
|
+
[o, { notExecuteFormula: !1 }]
|
|
6
15
|
]
|
|
7
16
|
};
|
|
8
17
|
}
|
|
9
18
|
export {
|
|
10
|
-
|
|
19
|
+
u as UniverSheetsAdvancedWorkerPreset
|
|
11
20
|
};
|
package/lib/types/worker.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { IPreset } from './types';
|
|
2
|
-
export
|
|
2
|
+
export interface IUniverSheetsAdvancedWorkerPresetConfig {
|
|
3
|
+
license?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function UniverSheetsAdvancedWorkerPreset(config?: Partial<IUniverSheetsAdvancedWorkerPresetConfig>): IPreset;
|