@univerjs-pro/boards-chart-ui 1.0.0-alpha.7 → 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 +4 -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 +2 -3
- package/lib/types/components/BoardChartEditPanel.d.ts +4 -0
- package/lib/types/index.d.ts +0 -8
- package/lib/types/locale/en-US.d.ts +23 -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-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 +13 -13
|
@@ -216,10 +216,26 @@ declare const locale: {
|
|
|
216
216
|
unavailable: string;
|
|
217
217
|
tableEmpty: string;
|
|
218
218
|
updateFailed: string;
|
|
219
|
+
candlestickColumnsError: string;
|
|
219
220
|
cancel: string;
|
|
220
221
|
duplicate: string;
|
|
221
222
|
apply: string;
|
|
222
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
|
+
};
|
|
223
239
|
chartTypes: {
|
|
224
240
|
line: string;
|
|
225
241
|
column: string;
|
|
@@ -245,6 +261,13 @@ declare const locale: {
|
|
|
245
261
|
sankey: string;
|
|
246
262
|
heatmap: string;
|
|
247
263
|
boxplot: string;
|
|
264
|
+
candlestick: string;
|
|
265
|
+
histogram: string;
|
|
266
|
+
treemap: string;
|
|
267
|
+
};
|
|
268
|
+
treemapTooltip: {
|
|
269
|
+
ownValue: string;
|
|
270
|
+
children: string;
|
|
248
271
|
};
|
|
249
272
|
};
|
|
250
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,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
|
}
|