@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 CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@univerjs/network"),u=require("@univerjs-pro/engine-formula"),a=require("@univerjs-pro/exchange-client"),c=require("@univerjs-pro/license"),v=require("@univerjs-pro/sheets-chart"),h=require("@univerjs-pro/sheets-chart-ui"),g=require("@univerjs-pro/sheets-exchange-client"),i=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(n={license:"",universerEndpoint:""}){const{license:t,universerEndpoint:r,useWorker:s}=n,e=r!=null?r:`${window.location.protocol}//${window.location.host}`;return{plugins:[l.UniverNetworkPlugin,[c.UniverLicensePlugin,{license:t}],s?[i.UniverSheetsPivotTablePlugin,{notExecuteFormula:!0}]:[i.UniverSheetsPivotTablePlugin],U.UniverSheetsPivotTableUIPlugin,u.UniverProFormulaEnginePlugin,P.UniverSheetsPrintPlugin,v.UniverSheetsChartPlugin,h.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}/`}],g.UniverSheetsExchangeClientPlugin].filter(o=>!!o)}}exports.UniverSheetsAdvancedPreset=p;
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 e=require("@univerjs-pro/sheets-pivot");function t(){return{plugins:[[e.UniverSheetsPivotTablePlugin,{notExecuteFormula:!1}]]}}exports.UniverSheetsAdvancedWorkerPreset=t;
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 p } from "@univerjs/network";
2
- import { UniverProFormulaEnginePlugin as m } from "@univerjs-pro/engine-formula";
3
- import { UniverExchangeClientPlugin as s } from "@univerjs-pro/exchange-client";
4
- import { UniverLicensePlugin as a } from "@univerjs-pro/license";
5
- import { UniverSheetsChartPlugin as u } from "@univerjs-pro/sheets-chart";
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 i } from "@univerjs-pro/sheets-pivot";
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(n = {
14
+ function T(t = {
15
15
  license: "",
16
16
  universerEndpoint: ""
17
17
  }) {
18
18
  const {
19
- license: o,
19
+ license: l,
20
20
  universerEndpoint: r,
21
- useWorker: t
22
- } = n, e = r != null ? r : `${window.location.protocol}//${window.location.host}`;
21
+ useWorker: i
22
+ } = t, e = r != null ? r : `${window.location.protocol}//${window.location.host}`;
23
23
  return {
24
24
  plugins: [
25
- p,
26
- [a, { license: o }],
25
+ m,
26
+ [s, { license: l }],
27
27
  // TODO: @wzhudev: if we use worker, we need to add different configurations to SheetsPivotTable
28
- t ? [i, { notExecuteFormula: !0 }] : [i],
28
+ i ? [o, { notExecuteFormula: !0 }] : [o],
29
29
  U,
30
- m,
30
+ i ? [n, { notExecuteFormula: !0 }] : n,
31
31
  c,
32
- u,
32
+ a,
33
33
  v,
34
- [s, {
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((l) => !!l)
43
+ ].filter((p) => !!p)
44
44
  };
45
45
  }
46
46
  export {
package/lib/es/worker.js CHANGED
@@ -1,11 +1,20 @@
1
- import { UniverSheetsPivotTablePlugin as e } from "@univerjs-pro/sheets-pivot";
2
- function t() {
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
- [e, { notExecuteFormula: !1 }]
12
+ [i, { license: n }],
13
+ r,
14
+ [o, { notExecuteFormula: !1 }]
6
15
  ]
7
16
  };
8
17
  }
9
18
  export {
10
- t as UniverSheetsAdvancedWorkerPreset
19
+ u as UniverSheetsAdvancedWorkerPreset
11
20
  };
@@ -1,2 +1,5 @@
1
1
  import { IPreset } from './types';
2
- export declare function UniverSheetsAdvancedWorkerPreset(): IPreset;
2
+ export interface IUniverSheetsAdvancedWorkerPresetConfig {
3
+ license?: string;
4
+ }
5
+ export declare function UniverSheetsAdvancedWorkerPreset(config?: Partial<IUniverSheetsAdvancedWorkerPresetConfig>): IPreset;