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