@univerjs-pro/boards-chart-ui 1.0.0-alpha.6 → 1.0.0-alpha.8
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/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 +8 -25
- 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/operations/board-chart-data-dialog.operation.d.ts +5 -0
- package/lib/types/components/BoardChartEditPanel.d.ts +4 -0
- package/lib/types/components/BoardChartInsertPanel.d.ts +13 -0
- package/lib/types/controllers/board-chart-floating-toolbar.render-controller.d.ts +3 -2
- package/lib/types/index.d.ts +1 -5
- package/lib/types/locale/en-US.d.ts +26 -0
- package/lib/types/render-adapters/board-chart-render-adapter.d.ts +1 -0
- package/lib/types/services/board-chart-data-edit.service.d.ts +2 -0
- package/lib/types/services/board-chart-snapshot-render.service.d.ts +3 -0
- package/lib/types/services/board-chart-ui.service.d.ts +5 -1
- 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 +14 -14
package/lib/types/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import './global.css';
|
|
2
|
-
export { BOARD_CHART_DATA_EDITOR_DIALOG_COMPONENT, BOARD_CHART_DATA_EDITOR_DIALOG_ID, BoardChartDataEditorDialog, } from './components/BoardChartDataEditorDialog';
|
|
3
|
-
export type { IBoardChartDataEditorDialogProps } from './components/BoardChartDataEditorDialog';
|
|
4
|
-
export { BOARD_CHART_EDIT_PANEL_COMPONENT, BoardChartEditPanel } from './components/BoardChartEditPanel';
|
|
5
|
-
export type { IBoardChartEditPanelProps } from './components/BoardChartEditPanel';
|
|
6
2
|
export { BOARDS_CHART_UI_PLUGIN_CONFIG_KEY } from './config/config';
|
|
7
3
|
export type { IUniverBoardsChartUIConfig } from './config/config';
|
|
8
4
|
export { BoardChartFloatingToolbarRenderController } from './controllers/board-chart-floating-toolbar.render-controller';
|
|
@@ -21,7 +17,7 @@ export type { BoardChartEditSessionCloseReason, BoardChartEditSessionSource, IBo
|
|
|
21
17
|
export { BoardDomChartHost, BoardImageChartHost } from './services/board-chart-host';
|
|
22
18
|
export { BoardChartRenderService, IBoardChartRenderModelService } from './services/board-chart-render.service';
|
|
23
19
|
export type { IBoardChartRenderInput, IBoardChartRenderSpecResult, } from './services/board-chart-render.service';
|
|
24
|
-
export { BoardChartSnapshotRenderService, IBoardChartSnapshotRendererService, } from './services/board-chart-snapshot-render.service';
|
|
20
|
+
export { BOARD_CHART_SNAPSHOT_BORDER_WIDTH, BoardChartSnapshotRenderService, IBoardChartSnapshotRendererService, resolveBoardChartSnapshotStyle, } from './services/board-chart-snapshot-render.service';
|
|
25
21
|
export type { IBoardChartInvalidation, IBoardChartInvalidationOptions, IBoardChartSnapshotEntry, IBoardChartSnapshotRenderer, IBoardChartSnapshotRequest, } from './services/board-chart-snapshot-render.service';
|
|
26
22
|
export { BoardChartUIService, IBoardChartUIService } from './services/board-chart-ui.service';
|
|
27
23
|
export type { BoardChartConfigStateKey, BoardChartConfigStateValue, IBoardChartConfigState, IBoardChartConfigStateMap, IBoardChartOption, InferBoardChartConfigStateValue, } from './services/board-chart-ui.service';
|
|
@@ -5,6 +5,9 @@ declare const locale: {
|
|
|
5
5
|
setupChart: string;
|
|
6
6
|
customizeChart: string;
|
|
7
7
|
data: string;
|
|
8
|
+
editData: string;
|
|
9
|
+
insertChartFailed: string;
|
|
10
|
+
insert: string;
|
|
8
11
|
chartType: string;
|
|
9
12
|
themes: string;
|
|
10
13
|
gradientFill: string;
|
|
@@ -213,10 +216,26 @@ declare const locale: {
|
|
|
213
216
|
unavailable: string;
|
|
214
217
|
tableEmpty: string;
|
|
215
218
|
updateFailed: string;
|
|
219
|
+
candlestickColumnsError: string;
|
|
216
220
|
cancel: string;
|
|
217
221
|
duplicate: string;
|
|
218
222
|
apply: string;
|
|
219
223
|
};
|
|
224
|
+
candlestick: {
|
|
225
|
+
category: string;
|
|
226
|
+
open: string;
|
|
227
|
+
high: string;
|
|
228
|
+
low: string;
|
|
229
|
+
close: string;
|
|
230
|
+
};
|
|
231
|
+
histogram: {
|
|
232
|
+
value: string;
|
|
233
|
+
frequency: string;
|
|
234
|
+
};
|
|
235
|
+
treemap: {
|
|
236
|
+
hierarchy: string;
|
|
237
|
+
value: string;
|
|
238
|
+
};
|
|
220
239
|
chartTypes: {
|
|
221
240
|
line: string;
|
|
222
241
|
column: string;
|
|
@@ -242,6 +261,13 @@ declare const locale: {
|
|
|
242
261
|
sankey: string;
|
|
243
262
|
heatmap: string;
|
|
244
263
|
boxplot: string;
|
|
264
|
+
candlestick: string;
|
|
265
|
+
histogram: string;
|
|
266
|
+
treemap: string;
|
|
267
|
+
};
|
|
268
|
+
treemapTooltip: {
|
|
269
|
+
ownValue: string;
|
|
270
|
+
children: string;
|
|
245
271
|
};
|
|
246
272
|
};
|
|
247
273
|
};
|
|
@@ -11,6 +11,7 @@ export declare class BoardChartRenderAdapter implements IBoardElementRenderAdapt
|
|
|
11
11
|
private readonly _resourceService;
|
|
12
12
|
private readonly _renderService;
|
|
13
13
|
readonly name = "chart";
|
|
14
|
+
private readonly _snapshotRefreshers;
|
|
14
15
|
constructor(_themeService: ThemeService, _snapshotService: BoardChartSnapshotRenderService, _resourceService: BoardChartResourceService, _renderService: BoardChartRenderService);
|
|
15
16
|
createObject(context: IBoardElementRenderAdapterContext): BoardChartImageRect | null;
|
|
16
17
|
syncObject(object: BaseObject, context: IBoardElementRenderAdapterContext & {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { BoardChartCellValue, IBoardChartInlineDataSource } from '@univerjs-pro/boards-chart';
|
|
2
|
+
import type { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
2
3
|
import { BoardChartModelService, BoardChartResourceService } from '@univerjs-pro/boards-chart';
|
|
3
4
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
4
5
|
export interface IBoardChartDataEditState {
|
|
5
6
|
chartId: string;
|
|
7
|
+
chartType: ChartTypeBits;
|
|
6
8
|
dataSource: IBoardChartInlineDataSource;
|
|
7
9
|
sharingCount: number;
|
|
8
10
|
unitId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IBoardChartRuntimeModel } from '@univerjs-pro/boards-chart';
|
|
2
|
+
import type { ChartStyle } from '@univerjs-pro/engine-chart';
|
|
2
3
|
import { BoardChartModelService } from '@univerjs-pro/boards-chart';
|
|
3
4
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
4
5
|
import { Subject } from 'rxjs';
|
|
@@ -28,6 +29,8 @@ export interface IBoardChartSnapshotRenderer {
|
|
|
28
29
|
render(request: IBoardChartSnapshotRequest, runtime: IBoardChartRuntimeModel): Promise<string>;
|
|
29
30
|
}
|
|
30
31
|
export declare const IBoardChartSnapshotRendererService: import("@wendellhu/redi").IdentifierDecorator<IBoardChartSnapshotRenderer>;
|
|
32
|
+
export declare const BOARD_CHART_SNAPSHOT_BORDER_WIDTH = 0;
|
|
33
|
+
export declare function resolveBoardChartSnapshotStyle(chartStyle: ChartStyle): ChartStyle;
|
|
31
34
|
export declare class BoardChartSnapshotRenderService extends Disposable {
|
|
32
35
|
private readonly _localeService;
|
|
33
36
|
private readonly _modelService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IBoardChartRuntimeModel, IUpdateBoardChartConfigCommandParams } from '@univerjs-pro/boards-chart';
|
|
2
|
-
import type { AreaLineStyle, ChartStyle, DeepPartial, IAllSeriesStyle, IChartContext, IChartDataAggregation, InvalidValueType, IPieLabelStyle, IRelationForceOptions, IRuntimeAxis, ITrendLine, LinePointShape, RadarShape, RelationChartLayoutEnum, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { AreaLineStyle, ChartStyle, DeepPartial, IAllSeriesStyle, IChartCandlestickMappingSpec, IChartContext, IChartDataAggregation, InvalidValueType, IPieLabelStyle, IRelationForceOptions, IRuntimeAxis, ITrendLine, LinePointShape, RadarShape, RelationChartLayoutEnum, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import type { Nullable } from '@univerjs/core';
|
|
4
4
|
import type { Observable } from 'rxjs';
|
|
5
5
|
import { BoardChartModelService, BoardChartResourceService } from '@univerjs-pro/boards-chart';
|
|
@@ -21,6 +21,7 @@ export interface IBoardChartConfigStateMap {
|
|
|
21
21
|
scatterXIndex: IBoardChartConfigState<number | undefined, number | undefined>;
|
|
22
22
|
scatterYIndex: IBoardChartConfigState<number | undefined, number | undefined>;
|
|
23
23
|
categoryIndex: IBoardChartConfigState<number | undefined, number>;
|
|
24
|
+
candlestickMapping: IBoardChartConfigState<IChartCandlestickMappingSpec | undefined, IChartCandlestickMappingSpec>;
|
|
24
25
|
categoryList: IBoardChartConfigState<IBoardChartOption[]>;
|
|
25
26
|
chartThemeColorType: IBoardChartConfigState<string | undefined, string | undefined>;
|
|
26
27
|
chartType: IBoardChartConfigState<ChartTypeBits>;
|
|
@@ -35,6 +36,7 @@ export interface IBoardChartConfigStateMap {
|
|
|
35
36
|
gradientFill: IBoardChartConfigState<boolean | undefined, boolean | undefined>;
|
|
36
37
|
heatmapMax: IBoardChartConfigState<number | undefined, number | undefined>;
|
|
37
38
|
heatmapMin: IBoardChartConfigState<number | undefined, number | undefined>;
|
|
39
|
+
hierarchyIndexes: IBoardChartConfigState<number[]>;
|
|
38
40
|
indicator: IBoardChartConfigState<ChartStyle['tooltip'] | undefined, ChartStyle['tooltip']>;
|
|
39
41
|
invalidValueType: IBoardChartConfigState<InvalidValueType | undefined, InvalidValueType | undefined>;
|
|
40
42
|
isHalfPie: IBoardChartConfigState<boolean | undefined, boolean>;
|
|
@@ -98,6 +100,7 @@ export interface IBoardChartUIService {
|
|
|
98
100
|
context?: Partial<IChartContext>;
|
|
99
101
|
dataAggregation?: Partial<IChartDataAggregation>;
|
|
100
102
|
}): void;
|
|
103
|
+
switchChartType(runtime: IBoardChartRuntimeModel, type: ChartTypeBits, style: ChartStyle): Promise<void>;
|
|
101
104
|
getDataRangeLabel(runtime: IBoardChartRuntimeModel): string;
|
|
102
105
|
}
|
|
103
106
|
export declare const IBoardChartUIService: import("@wendellhu/redi").IdentifierDecorator<IBoardChartUIService>;
|
|
@@ -119,6 +122,7 @@ export declare class BoardChartUIService extends Disposable implements IBoardCha
|
|
|
119
122
|
context?: Partial<IChartContext>;
|
|
120
123
|
dataAggregation?: Partial<IChartDataAggregation>;
|
|
121
124
|
}): void;
|
|
125
|
+
switchChartType(runtime: IBoardChartRuntimeModel, type: ChartTypeBits, style: ChartStyle): Promise<void>;
|
|
122
126
|
getDataRangeLabel(runtime: IBoardChartRuntimeModel): string;
|
|
123
127
|
dispose(): void;
|
|
124
128
|
}
|