@univerjs/preset-sheets-advanced 0.6.3 → 0.6.4-nightly.202503111607
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 +5 -9
- package/lib/types/index.d.ts +0 -1
- package/lib/types/umd.d.ts +0 -2
- package/lib/umd/index.js +21 -30
- package/lib/umd/locales/en-US.js +7 -7
- package/lib/umd/locales/fa-IR.js +7 -7
- package/lib/umd/locales/fr-FR.js +7 -7
- package/lib/umd/locales/ru-RU.js +7 -7
- package/lib/umd/locales/vi-VN.js +7 -7
- package/lib/umd/locales/zh-CN.js +7 -7
- package/lib/umd/locales/zh-TW.js +7 -7
- package/package.json +18 -19
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=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"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=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"),s=require("@univerjs-pro/sheets-exchange-client"),n=require("@univerjs-pro/sheets-pivot"),u=require("@univerjs-pro/sheets-pivot-ui"),p=require("@univerjs-pro/sheets-print"),h=require("@univerjs-pro/sheets-sparkline"),f=require("@univerjs-pro/sheets-sparkline-ui");require("@univerjs-pro/exchange-client/facade");require("@univerjs-pro/sheets-pivot/facade");require("@univerjs-pro/engine-formula/facade");require("@univerjs-pro/sheets-print/facade");require("@univerjs-pro/sheets-chart-ui/facade");require("@univerjs-pro/sheets-sparkline/facade");const y=require("@univerjs/sheets-graphics");function g(e={license:"",universerEndpoint:""}){const{license:O,universerEndpoint:i,useWorker:b}=e,r=i!=null?i:`${window.location.protocol}//${window.location.host}`;return{plugins:[[l.UniverLicensePlugin,{license:O}],b?[n.UniverSheetsPivotTablePlugin,{notExecuteFormula:!0}]:[n.UniverSheetsPivotTablePlugin],u.UniverSheetsPivotTableUIPlugin,b?[t.UniverProFormulaEnginePlugin,{notExecuteFormula:!0}]:t.UniverProFormulaEnginePlugin,p.UniverSheetsPrintPlugin,a.UniverSheetsChartPlugin,c.UniverSheetsChartUIPlugin,h.UniverSheetSparklinePlugin,f.UniverSheetSparklineUIPlugin,[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}/`}],s.UniverSheetsExchangeClientPlugin].filter(P=>!!P)}}exports.UniverSheetsAdvancedPreset=g;Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[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(s).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>s[e]})});Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[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(p).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>p[e]})});Object.keys(h).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>h[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]})});
|
package/lib/es/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import { UniverExchangeClientPlugin as l } from "@univerjs-pro/exchange-client";
|
|
|
4
4
|
export * from "@univerjs-pro/exchange-client";
|
|
5
5
|
import { UniverLicensePlugin as u } from "@univerjs-pro/license";
|
|
6
6
|
export * from "@univerjs-pro/license";
|
|
7
|
-
import { UniverSheetsChartPlugin as
|
|
7
|
+
import { UniverSheetsChartPlugin as a } from "@univerjs-pro/sheets-chart";
|
|
8
8
|
export * from "@univerjs-pro/sheets-chart";
|
|
9
|
-
import { UniverSheetsChartUIPlugin as
|
|
9
|
+
import { UniverSheetsChartUIPlugin as f } from "@univerjs-pro/sheets-chart-ui";
|
|
10
10
|
export * from "@univerjs-pro/sheets-chart-ui";
|
|
11
11
|
import { UniverSheetsExchangeClientPlugin as s } from "@univerjs-pro/sheets-exchange-client";
|
|
12
12
|
export * from "@univerjs-pro/sheets-exchange-client";
|
|
@@ -20,9 +20,6 @@ import { UniverSheetSparklinePlugin as U } from "@univerjs-pro/sheets-sparkline"
|
|
|
20
20
|
export * from "@univerjs-pro/sheets-sparkline";
|
|
21
21
|
import { UniverSheetSparklineUIPlugin as g } from "@univerjs-pro/sheets-sparkline-ui";
|
|
22
22
|
export * from "@univerjs-pro/sheets-sparkline-ui";
|
|
23
|
-
import { UniverNetworkPlugin as c } from "@univerjs/network";
|
|
24
|
-
export * from "@univerjs/network";
|
|
25
|
-
import "@univerjs/network/facade";
|
|
26
23
|
import "@univerjs-pro/exchange-client/facade";
|
|
27
24
|
import "@univerjs-pro/sheets-pivot/facade";
|
|
28
25
|
import "@univerjs-pro/engine-formula/facade";
|
|
@@ -30,7 +27,7 @@ import "@univerjs-pro/sheets-print/facade";
|
|
|
30
27
|
import "@univerjs-pro/sheets-chart-ui/facade";
|
|
31
28
|
import "@univerjs-pro/sheets-sparkline/facade";
|
|
32
29
|
export * from "@univerjs/sheets-graphics";
|
|
33
|
-
function
|
|
30
|
+
function L(n = {
|
|
34
31
|
license: "",
|
|
35
32
|
universerEndpoint: ""
|
|
36
33
|
}) {
|
|
@@ -41,15 +38,14 @@ function j(n = {
|
|
|
41
38
|
} = n, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
42
39
|
return {
|
|
43
40
|
plugins: [
|
|
44
|
-
c,
|
|
45
41
|
[u, { license: p }],
|
|
46
42
|
// TODO: @wzhudev: if we use worker, we need to add different configurations to SheetsPivotTable
|
|
47
43
|
o ? [t, { notExecuteFormula: !0 }] : [t],
|
|
48
44
|
v,
|
|
49
45
|
o ? [i, { notExecuteFormula: !0 }] : i,
|
|
50
46
|
x,
|
|
51
|
-
f,
|
|
52
47
|
a,
|
|
48
|
+
f,
|
|
53
49
|
U,
|
|
54
50
|
g,
|
|
55
51
|
[l, {
|
|
@@ -65,5 +61,5 @@ function j(n = {
|
|
|
65
61
|
};
|
|
66
62
|
}
|
|
67
63
|
export {
|
|
68
|
-
|
|
64
|
+
L as UniverSheetsAdvancedPreset
|
|
69
65
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -10,5 +10,4 @@ export * from '@univerjs-pro/sheets-pivot-ui';
|
|
|
10
10
|
export * from '@univerjs-pro/sheets-print';
|
|
11
11
|
export * from '@univerjs-pro/sheets-sparkline';
|
|
12
12
|
export * from '@univerjs-pro/sheets-sparkline-ui';
|
|
13
|
-
export * from '@univerjs/network';
|
|
14
13
|
export * from '@univerjs/sheets-graphics';
|
package/lib/types/umd.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IPreset } from './types';
|
|
2
|
-
import '@univerjs/network/facade';
|
|
3
2
|
import '@univerjs-pro/exchange-client/facade';
|
|
4
3
|
import '@univerjs-pro/sheets-pivot/facade';
|
|
5
4
|
import '@univerjs-pro/engine-formula/facade';
|
|
@@ -17,7 +16,6 @@ export type * from '@univerjs-pro/sheets-chart-ui/facade';
|
|
|
17
16
|
export type * from '@univerjs-pro/sheets-pivot/facade';
|
|
18
17
|
export type * from '@univerjs-pro/sheets-print/facade';
|
|
19
18
|
export type * from '@univerjs-pro/sheets-sparkline/facade';
|
|
20
|
-
export type * from '@univerjs/network/facade';
|
|
21
19
|
export interface IUniverSheetsAdvancedPresetConfig {
|
|
22
20
|
universerEndpoint?: string;
|
|
23
21
|
license?: string;
|