@univerjs/preset-sheets-advanced 0.5.0 → 0.5.1-nightly.202412041606
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/es/index.js +15 -15
- package/lib/es/locales/fr-FR.js +19 -0
- package/lib/types/index.d.ts +11 -17
- package/lib/types/locales/fr-FR.d.ts +2 -0
- package/lib/types/umd.d.ts +17 -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/package.json +20 -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 n=require("@univerjs-pro/engine-formula"),u=require("@univerjs-pro/exchange-client"),a=require("@univerjs-pro/license"),c=require("@univerjs-pro/sheets-chart"),v=require("@univerjs-pro/sheets-chart-ui"),g=require("@univerjs-pro/sheets-exchange-client"),t=require("@univerjs-pro/sheets-pivot"),h=require("@univerjs-pro/sheets-pivot-ui"),U=require("@univerjs-pro/sheets-print"),P=require("@univerjs/network");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:[P.UniverNetworkPlugin,[a.UniverLicensePlugin,{license:o}],i?[t.UniverSheetsPivotTablePlugin,{notExecuteFormula:!0}]:[t.UniverSheetsPivotTablePlugin],h.UniverSheetsPivotTableUIPlugin,i?[n.UniverProFormulaEnginePlugin,{notExecuteFormula:!0}]:n.UniverProFormulaEnginePlugin,U.UniverSheetsPrintPlugin,c.UniverSheetsChartPlugin,v.UniverSheetsChartUIPlugin,[u.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(l=>!!l)}}exports.UniverSheetsAdvancedPreset=p;
|
|
@@ -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/es/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { UniverNetworkPlugin as m } from "@univerjs/network";
|
|
2
1
|
import { UniverProFormulaEnginePlugin as n } from "@univerjs-pro/engine-formula";
|
|
3
|
-
import { UniverExchangeClientPlugin as
|
|
4
|
-
import { UniverLicensePlugin as
|
|
5
|
-
import { UniverSheetsChartPlugin as
|
|
6
|
-
import { UniverSheetsChartUIPlugin as
|
|
7
|
-
import { UniverSheetsExchangeClientPlugin as
|
|
2
|
+
import { UniverExchangeClientPlugin as m } from "@univerjs-pro/exchange-client";
|
|
3
|
+
import { UniverLicensePlugin as u } from "@univerjs-pro/license";
|
|
4
|
+
import { UniverSheetsChartPlugin as s } from "@univerjs-pro/sheets-chart";
|
|
5
|
+
import { UniverSheetsChartUIPlugin as a } from "@univerjs-pro/sheets-chart-ui";
|
|
6
|
+
import { UniverSheetsExchangeClientPlugin as v } from "@univerjs-pro/sheets-exchange-client";
|
|
8
7
|
import { UniverSheetsPivotTablePlugin as o } from "@univerjs-pro/sheets-pivot";
|
|
9
|
-
import { UniverSheetsPivotTableUIPlugin as
|
|
10
|
-
import { UniverSheetsPrintPlugin as
|
|
8
|
+
import { UniverSheetsPivotTableUIPlugin as g } from "@univerjs-pro/sheets-pivot-ui";
|
|
9
|
+
import { UniverSheetsPrintPlugin as U } from "@univerjs-pro/sheets-print";
|
|
10
|
+
import { UniverNetworkPlugin as c } from "@univerjs/network";
|
|
11
11
|
import "@univerjs-pro/exchange-client/facade";
|
|
12
12
|
import "@univerjs-pro/sheets-pivot/facade";
|
|
13
13
|
import "@univerjs-pro/engine-formula/facade";
|
|
@@ -22,16 +22,16 @@ function T(t = {
|
|
|
22
22
|
} = t, e = r != null ? r : `${window.location.protocol}//${window.location.host}`;
|
|
23
23
|
return {
|
|
24
24
|
plugins: [
|
|
25
|
-
|
|
26
|
-
[
|
|
25
|
+
c,
|
|
26
|
+
[u, { license: l }],
|
|
27
27
|
// TODO: @wzhudev: if we use worker, we need to add different configurations to SheetsPivotTable
|
|
28
28
|
i ? [o, { notExecuteFormula: !0 }] : [o],
|
|
29
|
-
|
|
29
|
+
g,
|
|
30
30
|
i ? [n, { notExecuteFormula: !0 }] : n,
|
|
31
|
-
|
|
31
|
+
U,
|
|
32
|
+
s,
|
|
32
33
|
a,
|
|
33
|
-
|
|
34
|
-
[u, {
|
|
34
|
+
[m, {
|
|
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`,
|
|
@@ -39,7 +39,7 @@ function T(t = {
|
|
|
39
39
|
exportServerUrl: `${e}/universer-api/exchange/{type}/export`,
|
|
40
40
|
downloadEndpointUrl: `${e}/`
|
|
41
41
|
}],
|
|
42
|
-
|
|
42
|
+
v
|
|
43
43
|
].filter((p) => !!p)
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -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/types/index.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
useWorker?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* This presets helps you to create a Univer sheet with open sourced features.
|
|
16
|
-
*/
|
|
17
|
-
export declare function UniverSheetsAdvancedPreset(config?: Partial<IUniverSheetsAdvancedPresetConfig>): IPreset;
|
|
1
|
+
export * from './umd';
|
|
2
|
+
export * from '@univerjs-pro/engine-formula';
|
|
3
|
+
export * from '@univerjs-pro/exchange-client';
|
|
4
|
+
export * from '@univerjs-pro/license';
|
|
5
|
+
export * from '@univerjs-pro/sheets-chart';
|
|
6
|
+
export * from '@univerjs-pro/sheets-chart-ui';
|
|
7
|
+
export * from '@univerjs-pro/sheets-exchange-client';
|
|
8
|
+
export * from '@univerjs-pro/sheets-pivot';
|
|
9
|
+
export * from '@univerjs-pro/sheets-pivot-ui';
|
|
10
|
+
export * from '@univerjs-pro/sheets-print';
|
|
11
|
+
export * from '@univerjs/network';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IPreset } from './types';
|
|
2
|
+
import '@univerjs-pro/exchange-client/facade';
|
|
3
|
+
import '@univerjs-pro/sheets-pivot/facade';
|
|
4
|
+
import '@univerjs-pro/engine-formula/facade';
|
|
5
|
+
import '@univerjs-pro/exchange-client/lib/index.css';
|
|
6
|
+
import '@univerjs-pro/sheets-pivot-ui/lib/index.css';
|
|
7
|
+
import '@univerjs-pro/sheets-print/lib/index.css';
|
|
8
|
+
import '@univerjs-pro/sheets-chart-ui/lib/index.css';
|
|
9
|
+
export interface IUniverSheetsAdvancedPresetConfig {
|
|
10
|
+
universerEndpoint?: string;
|
|
11
|
+
license?: string;
|
|
12
|
+
useWorker?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* This presets helps you to create a Univer sheet with open sourced features.
|
|
16
|
+
*/
|
|
17
|
+
export declare function UniverSheetsAdvancedPreset(config?: Partial<IUniverSheetsAdvancedPresetConfig>): IPreset;
|