@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 CHANGED
@@ -1 +1 @@
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;
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 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;
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
- import { UniverProFormulaEnginePlugin as n } from "@univerjs-pro/engine-formula";
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
- 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 o } 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";
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
- function T(t = {
23
+ export * from "@univerjs-pro//engine-formula";
24
+ function T(n = {
15
25
  license: "",
16
26
  universerEndpoint: ""
17
27
  }) {
18
28
  const {
19
- license: l,
20
- universerEndpoint: r,
21
- useWorker: i
22
- } = t, 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
35
  m,
26
- [s, { license: l }],
36
+ [s, { license: p }],
27
37
  // TODO: @wzhudev: if we use worker, we need to add different configurations to SheetsPivotTable
28
- i ? [o, { notExecuteFormula: !0 }] : [o],
29
- U,
30
- i ? [n, { notExecuteFormula: !0 }] : n,
31
- c,
38
+ o ? [t, { notExecuteFormula: !0 }] : [t],
39
+ g,
40
+ o ? [i, { notExecuteFormula: !0 }] : i,
41
+ x,
32
42
  a,
33
- v,
43
+ f,
34
44
  [u, {
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}/`
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
43
- ].filter((p) => !!p)
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 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 = {
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: n
11
+ license: r
9
12
  } = e;
10
13
  return {
11
14
  plugins: [
12
- [i, { license: n }],
13
- r,
14
- [o, { notExecuteFormula: !1 }]
15
+ [n, { license: r }],
16
+ o,
17
+ [i, { notExecuteFormula: !1 }]
15
18
  ]
16
19
  };
17
20
  }
18
21
  export {
19
- u as UniverSheetsAdvancedWorkerPreset
22
+ s as UniverSheetsAdvancedWorkerPreset
20
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,4 +1,7 @@
1
1
  import { IPreset } from './types';
2
+ export * from '@univerjs-pro/engine-formula';
3
+ export * from '@univerjs-pro/license';
4
+ export * from '@univerjs-pro/sheets-pivot';
2
5
  export interface IUniverSheetsAdvancedWorkerPresetConfig {
3
6
  license?: string;
4
7
  }