@univerjs/preset-sheets-advanced 0.5.0 → 0.5.1
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/fr-FR.js +1 -0
- package/lib/cjs/worker.js +1 -1
- package/lib/es/index.js +35 -25
- package/lib/es/locales/fr-FR.js +19 -0
- package/lib/es/worker.js +12 -9
- package/lib/types/index.d.ts +10 -0
- package/lib/types/locales/fr-FR.d.ts +2 -0
- package/lib/types/worker.d.ts +3 -0
- 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/fr-FR.js +20 -0
- 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 +18 -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/network"),f=require("@univerjs-pro/engine-formula"),o=require("@univerjs-pro/exchange-client"),l=require("@univerjs-pro/license"),a=require("@univerjs-pro/sheets-chart"),c=require("@univerjs-pro/sheets-chart-ui"),u=require("@univerjs-pro/sheets-exchange-client"),t=require("@univerjs-pro/sheets-pivot"),s=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");const b=require("@univerjs-pro//engine-formula");function O(e={license:"",universerEndpoint:""}){const{license:y,universerEndpoint:n,useWorker:h}=e,r=n!=null?n:`${window.location.protocol}//${window.location.host}`;return{plugins:[i.UniverNetworkPlugin,[l.UniverLicensePlugin,{license:y}],h?[t.UniverSheetsPivotTablePlugin,{notExecuteFormula:!0}]:[t.UniverSheetsPivotTablePlugin],s.UniverSheetsPivotTableUIPlugin,h?[f.UniverProFormulaEnginePlugin,{notExecuteFormula:!0}]:f.UniverProFormulaEnginePlugin,p.UniverSheetsPrintPlugin,a.UniverSheetsChartPlugin,c.UniverSheetsChartUIPlugin,[o.UniverExchangeClientPlugin,{uploadFileServerUrl:`${r}/universer-api/stream/file/upload`,getTaskServerUrl:`${r}/universer-api/exchange/task/{taskID}`,signUrlServerUrl:`${r}/universer-api/file/{fileID}/sign-url`,importServerUrl:`${r}/universer-api/exchange/{type}/import`,exportServerUrl:`${r}/universer-api/exchange/{type}/export`,downloadEndpointUrl:`${r}/`}],u.UniverSheetsExchangeClientPlugin].filter(P=>!!P)}}exports.UniverSheetsAdvancedPreset=O;Object.keys(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[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(l).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>l[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(c).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>c[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(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[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(b).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>b[e]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/exchange-client/locale/fr-FR"),s=require("@univerjs-pro/sheets-chart/locale/fr-FR"),t=require("@univerjs-pro/sheets-chart-ui/locale/fr-FR"),i=require("@univerjs-pro/sheets-pivot/locale/fr-FR"),n=require("@univerjs-pro/sheets-pivot-ui/locale/fr-FR"),u=require("@univerjs-pro/sheets-print/locale/fr-FR"),c=e.Tools.deepMerge({},r,s,t,i,n,u);module.exports=c;
|
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-pro/engine-formula"),r=require("@univerjs-pro/license"),n=require("@univerjs-pro/sheets-pivot");function i(e={license:""}){const{license:o}=e;return{plugins:[[r.UniverLicensePlugin,{license:o}],t.UniverProFormulaEnginePlugin,[n.UniverSheetsPivotTablePlugin,{notExecuteFormula:!1}]]}}exports.UniverSheetsAdvancedWorkerPreset=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(r).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>r[e]})});Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[e]})});
|
package/lib/es/index.js
CHANGED
|
@@ -1,46 +1,56 @@
|
|
|
1
1
|
import { UniverNetworkPlugin as m } from "@univerjs/network";
|
|
2
|
-
|
|
2
|
+
export * from "@univerjs/network";
|
|
3
|
+
import { UniverProFormulaEnginePlugin as i } from "@univerjs-pro/engine-formula";
|
|
3
4
|
import { UniverExchangeClientPlugin as u } from "@univerjs-pro/exchange-client";
|
|
5
|
+
export * from "@univerjs-pro/exchange-client";
|
|
4
6
|
import { UniverLicensePlugin as s } from "@univerjs-pro/license";
|
|
7
|
+
export * from "@univerjs-pro/license";
|
|
5
8
|
import { UniverSheetsChartPlugin as a } from "@univerjs-pro/sheets-chart";
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
export * from "@univerjs-pro/sheets-chart";
|
|
10
|
+
import { UniverSheetsChartUIPlugin as f } from "@univerjs-pro/sheets-chart-ui";
|
|
11
|
+
export * from "@univerjs-pro/sheets-chart-ui";
|
|
12
|
+
import { UniverSheetsExchangeClientPlugin as v } from "@univerjs-pro/sheets-exchange-client";
|
|
13
|
+
export * from "@univerjs-pro/sheets-exchange-client";
|
|
14
|
+
import { UniverSheetsPivotTablePlugin as t } from "@univerjs-pro/sheets-pivot";
|
|
15
|
+
export * from "@univerjs-pro/sheets-pivot";
|
|
16
|
+
import { UniverSheetsPivotTableUIPlugin as g } from "@univerjs-pro/sheets-pivot-ui";
|
|
17
|
+
export * from "@univerjs-pro/sheets-pivot-ui";
|
|
18
|
+
import { UniverSheetsPrintPlugin as x } from "@univerjs-pro/sheets-print";
|
|
19
|
+
export * from "@univerjs-pro/sheets-print";
|
|
11
20
|
import "@univerjs-pro/exchange-client/facade";
|
|
12
21
|
import "@univerjs-pro/sheets-pivot/facade";
|
|
13
22
|
import "@univerjs-pro/engine-formula/facade";
|
|
14
|
-
|
|
23
|
+
export * from "@univerjs-pro//engine-formula";
|
|
24
|
+
function T(n = {
|
|
15
25
|
license: "",
|
|
16
26
|
universerEndpoint: ""
|
|
17
27
|
}) {
|
|
18
28
|
const {
|
|
19
|
-
license:
|
|
20
|
-
universerEndpoint:
|
|
21
|
-
useWorker:
|
|
22
|
-
} =
|
|
29
|
+
license: p,
|
|
30
|
+
universerEndpoint: e,
|
|
31
|
+
useWorker: o
|
|
32
|
+
} = n, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
23
33
|
return {
|
|
24
34
|
plugins: [
|
|
25
35
|
m,
|
|
26
|
-
[s, { license:
|
|
36
|
+
[s, { license: p }],
|
|
27
37
|
// TODO: @wzhudev: if we use worker, we need to add different configurations to SheetsPivotTable
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
o ? [t, { notExecuteFormula: !0 }] : [t],
|
|
39
|
+
g,
|
|
40
|
+
o ? [i, { notExecuteFormula: !0 }] : i,
|
|
41
|
+
x,
|
|
32
42
|
a,
|
|
33
|
-
|
|
43
|
+
f,
|
|
34
44
|
[u, {
|
|
35
|
-
uploadFileServerUrl: `${
|
|
36
|
-
getTaskServerUrl: `${
|
|
37
|
-
signUrlServerUrl: `${
|
|
38
|
-
importServerUrl: `${
|
|
39
|
-
exportServerUrl: `${
|
|
40
|
-
downloadEndpointUrl: `${
|
|
45
|
+
uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
|
|
46
|
+
getTaskServerUrl: `${r}/universer-api/exchange/task/{taskID}`,
|
|
47
|
+
signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
|
|
48
|
+
importServerUrl: `${r}/universer-api/exchange/{type}/import`,
|
|
49
|
+
exportServerUrl: `${r}/universer-api/exchange/{type}/export`,
|
|
50
|
+
downloadEndpointUrl: `${r}/`
|
|
41
51
|
}],
|
|
42
|
-
|
|
43
|
-
].filter((
|
|
52
|
+
v
|
|
53
|
+
].filter((l) => !!l)
|
|
44
54
|
};
|
|
45
55
|
}
|
|
46
56
|
export {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Tools as r } from "@univerjs/core";
|
|
2
|
+
import e from "@univerjs-pro/exchange-client/locale/fr-FR";
|
|
3
|
+
import t from "@univerjs-pro/sheets-chart/locale/fr-FR";
|
|
4
|
+
import o from "@univerjs-pro/sheets-chart-ui/locale/fr-FR";
|
|
5
|
+
import i from "@univerjs-pro/sheets-pivot/locale/fr-FR";
|
|
6
|
+
import s from "@univerjs-pro/sheets-pivot-ui/locale/fr-FR";
|
|
7
|
+
import m from "@univerjs-pro/sheets-print/locale/fr-FR";
|
|
8
|
+
const a = r.deepMerge(
|
|
9
|
+
{},
|
|
10
|
+
e,
|
|
11
|
+
t,
|
|
12
|
+
o,
|
|
13
|
+
i,
|
|
14
|
+
s,
|
|
15
|
+
m
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
a as default
|
|
19
|
+
};
|
package/lib/es/worker.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { UniverProFormulaEnginePlugin as
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { UniverProFormulaEnginePlugin as o } from "@univerjs-pro/engine-formula";
|
|
2
|
+
export * from "@univerjs-pro/engine-formula";
|
|
3
|
+
import { UniverLicensePlugin as n } from "@univerjs-pro/license";
|
|
4
|
+
export * from "@univerjs-pro/license";
|
|
5
|
+
import { UniverSheetsPivotTablePlugin as i } from "@univerjs-pro/sheets-pivot";
|
|
6
|
+
export * from "@univerjs-pro/sheets-pivot";
|
|
7
|
+
function s(e = {
|
|
5
8
|
license: ""
|
|
6
9
|
}) {
|
|
7
10
|
const {
|
|
8
|
-
license:
|
|
11
|
+
license: r
|
|
9
12
|
} = e;
|
|
10
13
|
return {
|
|
11
14
|
plugins: [
|
|
12
|
-
[
|
|
13
|
-
|
|
14
|
-
[
|
|
15
|
+
[n, { license: r }],
|
|
16
|
+
o,
|
|
17
|
+
[i, { notExecuteFormula: !1 }]
|
|
15
18
|
]
|
|
16
19
|
};
|
|
17
20
|
}
|
|
18
21
|
export {
|
|
19
|
-
|
|
22
|
+
s as UniverSheetsAdvancedWorkerPreset
|
|
20
23
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,6 +6,16 @@ import '@univerjs-pro/exchange-client/lib/index.css';
|
|
|
6
6
|
import '@univerjs-pro/sheets-pivot-ui/lib/index.css';
|
|
7
7
|
import '@univerjs-pro/sheets-print/lib/index.css';
|
|
8
8
|
import '@univerjs-pro/sheets-chart-ui/lib/index.css';
|
|
9
|
+
export * from '@univerjs/network';
|
|
10
|
+
export * from '@univerjs-pro//engine-formula';
|
|
11
|
+
export * from '@univerjs-pro/exchange-client';
|
|
12
|
+
export * from '@univerjs-pro/license';
|
|
13
|
+
export * from '@univerjs-pro/sheets-chart';
|
|
14
|
+
export * from '@univerjs-pro/sheets-chart-ui';
|
|
15
|
+
export * from '@univerjs-pro/sheets-exchange-client';
|
|
16
|
+
export * from '@univerjs-pro/sheets-pivot';
|
|
17
|
+
export * from '@univerjs-pro/sheets-pivot-ui';
|
|
18
|
+
export * from '@univerjs-pro/sheets-print';
|
|
9
19
|
export interface IUniverSheetsAdvancedPresetConfig {
|
|
10
20
|
universerEndpoint?: string;
|
|
11
21
|
license?: string;
|
package/lib/types/worker.d.ts
CHANGED