@univerjs-pro/sheets-chart-ui 1.3.1 → 1.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/README.md +9 -7
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +33 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/commands/sheet-chart-menu.command.d.ts +3 -1
- package/lib/types/commands/operations/open-move-chart-dialog.operation.d.ts +4 -0
- package/lib/types/controllers/chart-render.controller.d.ts +4 -1
- package/lib/types/controllers/chart-sheet-ui.controller.d.ts +31 -0
- package/lib/types/controllers/sheets-chart-clipboard.controller.d.ts +11 -3
- package/lib/types/controllers/ui.controller.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +22 -0
- package/lib/types/menu/chart-sheet-menu.d.ts +6 -0
- package/lib/types/menu/chart-sheet-schema.d.ts +3 -0
- package/lib/types/services/chart-image-rect.d.ts +2 -1
- package/lib/types/services/chart-render.service.d.ts +26 -7
- package/lib/types/services/chart-sheet-presentation.d.ts +9 -0
- package/lib/types/services/chart-sheet-render.service.d.ts +39 -0
- package/lib/types/services/sheet-chart-host.d.ts +2 -1
- package/lib/types/services/sheet-image-chart-host.d.ts +4 -9
- package/lib/types/services/sheets-chart-host-provider.service.d.ts +11 -5
- package/lib/types/services/sheets-chart-ui.service.d.ts +13 -3
- package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +8 -8
- package/lib/types/views/move-chart/MoveChartDialog.d.ts +6 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +29 -24
- package/lib/types/controllers/chart-sheet-change.controller.d.ts +0 -13
- package/lib/types/controllers/chart-sheet-copy-plan.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-chart-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Chart UI integration for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -57,40 +57,45 @@
|
|
|
57
57
|
"rxjs": ">=7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@univerjs-pro/chart-ui": "1.
|
|
61
|
-
"@univerjs-pro/engine-chart": "1.
|
|
62
|
-
"@univerjs-pro/license": "1.
|
|
63
|
-
"@univerjs-pro/sheets-chart": "1.
|
|
64
|
-
"@univerjs/core": "1.
|
|
65
|
-
"@univerjs/design": "1.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/drawing
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/engine-
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/sheets
|
|
73
|
-
"@univerjs/sheets-drawing
|
|
74
|
-
"@univerjs/sheets-
|
|
75
|
-
"@univerjs/sheets-ui": "1.
|
|
76
|
-
"@univerjs/ui": "1.
|
|
60
|
+
"@univerjs-pro/chart-ui": "1.5.0",
|
|
61
|
+
"@univerjs-pro/engine-chart": "1.5.0",
|
|
62
|
+
"@univerjs-pro/license": "1.5.0",
|
|
63
|
+
"@univerjs-pro/sheets-chart": "1.5.0",
|
|
64
|
+
"@univerjs/core": "1.5.0",
|
|
65
|
+
"@univerjs/design": "1.5.0",
|
|
66
|
+
"@univerjs/docs-ui": "1.5.0",
|
|
67
|
+
"@univerjs/drawing": "1.5.0",
|
|
68
|
+
"@univerjs/drawing-ui": "1.5.0",
|
|
69
|
+
"@univerjs/engine-formula": "1.5.0",
|
|
70
|
+
"@univerjs/engine-render": "1.5.0",
|
|
71
|
+
"@univerjs/icons": "1.47.0",
|
|
72
|
+
"@univerjs/sheets": "1.5.0",
|
|
73
|
+
"@univerjs/sheets-drawing": "1.5.0",
|
|
74
|
+
"@univerjs/sheets-drawing-ui": "1.5.0",
|
|
75
|
+
"@univerjs/sheets-formula-ui": "1.5.0",
|
|
76
|
+
"@univerjs/sheets-ui": "1.5.0",
|
|
77
|
+
"@univerjs/ui": "1.5.0"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
79
|
-
"@univerjs-infra/shared": "1.
|
|
80
|
-
"
|
|
80
|
+
"@univerjs-infra/shared": "1.5.0",
|
|
81
|
+
"@univerjs-pro/engine-formula": "1.5.0",
|
|
82
|
+
"@univerjs-pro/engine-shape": "1.5.0",
|
|
83
|
+
"@univerjs-pro/sheets-shape": "1.5.0",
|
|
84
|
+
"@univerjs-pro/sheets-shape-ui": "1.5.0",
|
|
85
|
+
"postcss": "^8.5.32",
|
|
81
86
|
"react": "18.3.1",
|
|
82
87
|
"rxjs": "7.8.2",
|
|
83
88
|
"tailwindcss": "3.4.18",
|
|
84
|
-
"
|
|
85
|
-
"vitest": "^5.0
|
|
89
|
+
"tsrs": "0.23.0-ts7.1.0-beta",
|
|
90
|
+
"vitest": "^5.1.0"
|
|
86
91
|
},
|
|
87
92
|
"scripts": {
|
|
88
93
|
"test": "vitest run",
|
|
89
94
|
"test:watch": "vitest",
|
|
90
95
|
"coverage": "vitest run --coverage",
|
|
91
|
-
"typecheck": "
|
|
96
|
+
"typecheck": "tsrs --noEmit",
|
|
92
97
|
"build:bundle": "univer-cli build",
|
|
93
|
-
"build:types": "
|
|
98
|
+
"build:types": "tsrs -p tsconfig.node.json",
|
|
94
99
|
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
95
100
|
},
|
|
96
101
|
"module": "./lib/es/index.js"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChartModelService, SheetsChartService } from '@univerjs-pro/sheets-chart';
|
|
2
|
-
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
|
-
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
4
|
-
import { ISheetDrawingService } from '@univerjs/sheets-drawing';
|
|
5
|
-
export declare class ChartSheetChangeController extends Disposable {
|
|
6
|
-
private _univerInstanceService;
|
|
7
|
-
private readonly _sheetInterceptorService;
|
|
8
|
-
private readonly _sheetDrawingService;
|
|
9
|
-
private readonly _chartModelService;
|
|
10
|
-
private readonly _sheetsChartService;
|
|
11
|
-
constructor(_univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _sheetDrawingService: ISheetDrawingService, _chartModelService: ChartModelService, _sheetsChartService: SheetsChartService);
|
|
12
|
-
private _initSheetChange;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { IChartSnapshot } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '@univerjs-pro/sheets-chart';
|
|
3
|
-
import type { IDrawingParam } from '@univerjs/core';
|
|
4
|
-
export interface IChartModelCopySource extends Pick<IChartSnapshot, 'chartType' | 'context' | 'style' | 'dataAggregation'> {
|
|
5
|
-
rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[];
|
|
6
|
-
}
|
|
7
|
-
export interface IChartModelCopyPlanEntry {
|
|
8
|
-
targetChartId: string;
|
|
9
|
-
source: IChartModelCopySource;
|
|
10
|
-
}
|
|
11
|
-
export interface IChartModelCopyPlanScope {
|
|
12
|
-
unitId: string;
|
|
13
|
-
sourceSubUnitId: string;
|
|
14
|
-
targetSubUnitId: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function createChartModelCopyPlan(copyContext: Map<string, unknown> | undefined, charts: readonly IDrawingParam[], scope: IChartModelCopyPlanScope, getSource: (chart: IDrawingParam) => IChartModelCopySource | undefined): IChartModelCopyPlanEntry[];
|