@univerjs-pro/sheets-chart-ui 0.25.1 → 1.0.0-alpha.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 +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 +0 -4
- 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/controllers/chart-render.controller.d.ts +8 -2
- package/lib/types/controllers/components.controller.d.ts +9 -0
- package/lib/types/controllers/{sheets-chart-ui.controller.d.ts → ui.controller.d.ts} +3 -3
- package/lib/types/index.d.ts +2 -2
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/services/chart-render.service.d.ts +13 -3
- package/lib/types/services/sheets-chart-ui.service.d.ts +1 -0
- package/lib/types/util.d.ts +2 -1
- package/lib/types/views/chart-edit-panel/ChartEditPanel.d.ts +3 -4
- package/lib/types/views/chart-edit-panel/Options.d.ts +7 -6
- package/lib/types/views/chart-edit-panel/RadarChartOptionsEdit.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/button-switch/ButtonSwitch.d.ts +1 -1
- package/lib/types/views/chart-edit-panel/color-picker-control/index.d.ts +1 -1
- package/lib/types/views/chart-edit-panel/data-tab-panel/BubbleDataEdit.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/data-tab-panel/DataTabPanel.d.ts +2 -2
- package/lib/types/views/chart-edit-panel/dropdown-menu/index.d.ts +1 -1
- package/lib/types/views/chart-edit-panel/font-format-bar/FontFormatBar.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/AxisOptionsEdit.d.ts +2 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/ChartNumfmtDialog.d.ts +1 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/DataLabelOptions.d.ts +2 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/IndicatorLine.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/ParetoLine.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/PieChartStyleEdit.d.ts +2 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/RelationEdit.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/StyleTabPanel.d.ts +5 -2
- package/lib/types/views/chart-edit-panel/style-tab-panel/TrendLineEdit.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/WaterfallSeriesEdit.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/WordCloudShapeSelector.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/GridLineAndTickOptions.d.ts +2 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/CombinationChartTypeSelect.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/DataPointsEdit.d.ts +2 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/RadarPoints.d.ts +1 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/SeriesStyleEdit.d.ts +2 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/Widgets.d.ts +5 -6
- package/lib/types/views/chart-menu/chart-menu-factory.d.ts +2 -1
- package/lib/types/views/print-chart/index.d.ts +2 -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 +19 -19
- package/lib/types/wordcloud/index.d.ts +0 -2
- package/lib/types/wordcloud/layout.d.ts +0 -13
- /package/lib/types/{controllers/menu.schema.d.ts → menu/schema.d.ts} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { LocaleKey } from '../../locale/types';
|
|
2
3
|
import type { IChartOptionType } from '../../services/sheets-chart-ui.service';
|
|
3
4
|
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, ChartTrendlineType, InvalidValueType, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, SelectModeEnum, SeriesLabelPosition, TextAlign, TextVerticalAlign, TitlePositionEnum, WaterfallStackTypeEnum } from '@univerjs-pro/engine-chart';
|
|
4
5
|
export type OptionType = IChartOptionType;
|
|
@@ -8,7 +9,7 @@ export declare const defaultOption: {
|
|
|
8
9
|
};
|
|
9
10
|
export declare const chartTypeToIcon: Record<string, ReactNode>;
|
|
10
11
|
export declare const seriesChartTypeOptions: {
|
|
11
|
-
label: string;
|
|
12
|
+
label: "sheets-chart-ui.categoryDefaultName" | "sheets-chart-ui.seriesDefaultName" | "sheets-chart-ui.theIndexItem" | "sheets-chart-ui.none" | "sheets-chart-ui.line" | "sheets-chart-ui.stack" | "sheets-chart-ui.fill" | "sheets-chart-ui.value" | "sheets-chart-ui.default" | "sheets-chart-ui.category" | "sheets-chart-ui.series" | "sheets-chart-ui.color" | "sheets-chart-ui.min" | "sheets-chart-ui.max" | "sheets-chart-ui.border" | "sheets-chart-ui.point" | "sheets-chart-ui.chartType" | "sheets-chart-ui.legend" | "sheets-chart-ui.gradientFill" | "sheets-chart-ui.backgroundColor" | "sheets-chart-ui.position" | "sheets-chart-ui.reset" | "sheets-chart-ui.aggregate" | "sheets-chart-ui.doughnutHole" | "sheets-chart-ui.indicatorLineType" | "sheets-chart-ui.indicatorLineColor" | "sheets-chart-ui.blank" | "sheets-chart-ui.chartStyle" | "sheets-chart-ui.cloud.word" | "sheets-chart-ui.cloud.frequency" | "sheets-chart-ui.waterfall.positive" | "sheets-chart-ui.waterfall.negative" | "sheets-chart-ui.waterfall.subtotal" | "sheets-chart-ui.boxplot.min" | "sheets-chart-ui.boxplot.max" | "sheets-chart-ui.boxplot.q1" | "sheets-chart-ui.boxplot.median" | "sheets-chart-ui.boxplot.q3" | "sheets-chart-ui.bubble.emptyTips" | "sheets-chart-ui.relation.emptyTips" | "sheets-chart-ui.pareto.lineName" | "sheets-chart-ui.msg.emptyTips" | "sheets-chart-ui.msg.sankeyCircularTips" | "sheets-chart-ui.align.left" | "sheets-chart-ui.align.right" | "sheets-chart-ui.align.center" | "sheets-chart-ui.dataRange" | "sheets-chart-ui.insertChart" | "sheets-chart-ui.editChart" | "sheets-chart-ui.openChartPanel" | "sheets-chart-ui.deleteChart" | "sheets-chart-ui.hideChartPanel" | "sheets-chart-ui.setupChart" | "sheets-chart-ui.customChart" | "sheets-chart-ui.themes" | "sheets-chart-ui.allSeries" | "sheets-chart-ui.addSeries" | "sheets-chart-ui.moreSettings" | "sheets-chart-ui.chartBorderColor" | "sheets-chart-ui.chartAndAxisTitles" | "sheets-chart-ui.legendSelectMode" | "sheets-chart-ui.dataLabels" | "sheets-chart-ui.gridlinesAndTicks" | "sheets-chart-ui.indicatorLine" | "sheets-chart-ui.indicatorLabel" | "sheets-chart-ui.indicatorValue" | "sheets-chart-ui.withOpacity" | "sheets-chart-ui.withColor" | "sheets-chart-ui.withThickness" | "sheets-chart-ui.withType" | "sheets-chart-ui.withSize" | "sheets-chart-ui.withShape" | "sheets-chart-ui.withFormat" | "sheets-chart-ui.dataPoint" | "sheets-chart-ui.dataNodeShape" | "sheets-chart-ui.addDataPoint" | "sheets-chart-ui.percentage" | "sheets-chart-ui.lineDashType" | "sheets-chart-ui.visualMapScope" | "sheets-chart-ui.cloud.title" | "sheets-chart-ui.shape.polygon" | "sheets-chart-ui.shape.circle" | "sheets-chart-ui.shape.square" | "sheets-chart-ui.shape.triangle" | "sheets-chart-ui.shape.diamond" | "sheets-chart-ui.shape.rect" | "sheets-chart-ui.shape.roundRect" | "sheets-chart-ui.shape.pin" | "sheets-chart-ui.shape.arrow" | "sheets-chart-ui.shape.none" | "sheets-chart-ui.shape.emptyCircle" | "sheets-chart-ui.shape.emptySquare" | "sheets-chart-ui.shape.emptyTriangle" | "sheets-chart-ui.shape.emptyDiamond" | "sheets-chart-ui.shape.emptyRect" | "sheets-chart-ui.shape.emptyRoundRect" | "sheets-chart-ui.shape.emptyPin" | "sheets-chart-ui.shape.emptyArrow" | "sheets-chart-ui.waterfall.arrangement" | "sheets-chart-ui.waterfall.stacked" | "sheets-chart-ui.waterfall.stackType" | "sheets-chart-ui.waterfall.showSubtotal" | "sheets-chart-ui.waterfall.positiveStyle" | "sheets-chart-ui.waterfall.negativeStyle" | "sheets-chart-ui.waterfall.subtotalStyle" | "sheets-chart-ui.waterfall.positiveLegendText" | "sheets-chart-ui.waterfall.negativeLegendText" | "sheets-chart-ui.waterfall.subtotalLegendText" | "sheets-chart-ui.radar.fill" | "sheets-chart-ui.bubble.size" | "sheets-chart-ui.bubble.label" | "sheets-chart-ui.bubble.xAxis" | "sheets-chart-ui.bubble.yAxis" | "sheets-chart-ui.dialog.setFormat" | "sheets-chart-ui.dialog.numfmt.date" | "sheets-chart-ui.dialog.numfmt.currency" | "sheets-chart-ui.dialog.numfmt.cancel" | "sheets-chart-ui.dialog.numfmt.general" | "sheets-chart-ui.dialog.numfmt.confirm" | "sheets-chart-ui.dialog.numfmt.accounting" | "sheets-chart-ui.dialog.numfmt.thousandthPercentile" | "sheets-chart-ui.dialog.numfmt.fieldSetting" | "sheets-chart-ui.dialog.numfmt.formatTypes" | "sheets-chart-ui.dialog.numfmt.generalDesc" | "sheets-chart-ui.dialog.numfmt.accountingDesc" | "sheets-chart-ui.dialog.numfmt.currencyDesc" | "sheets-chart-ui.dialog.numfmt.dateDesc" | "sheets-chart-ui.dialog.numfmt.thousandthPercentileDesc" | "sheets-chart-ui.dialog.numfmt.decimalPlaces" | "sheets-chart-ui.dialog.numfmt.currencyTypes" | "sheets-chart-ui.dialog.numfmt.negativeNumberTypes" | "sheets-chart-ui.dialog.numfmt.dateTypes" | "sheets-chart-ui.titles.title" | "sheets-chart-ui.titles.xAxisTitle" | "sheets-chart-ui.titles.yAxisTitle" | "sheets-chart-ui.titles.rightYAxisTitle" | "sheets-chart-ui.titles.titlePosition" | "sheets-chart-ui.titles.subTitle" | "sheets-chart-ui.titles.mainTitle" | "sheets-chart-ui.titles.titleFormat" | "sheets-chart-ui.titles.titleText" | "sheets-chart-ui.titles.titleAlign" | "sheets-chart-ui.relation.auto" | "sheets-chart-ui.relation.circular" | "sheets-chart-ui.relation.force" | "sheets-chart-ui.relation.title" | "sheets-chart-ui.relation.emphasis" | "sheets-chart-ui.relation.layoutType" | "sheets-chart-ui.relation.useValueAsSymbolSize" | "sheets-chart-ui.relation.repulsion" | "sheets-chart-ui.relation.edgeLength" | "sheets-chart-ui.relation.gravity" | "sheets-chart-ui.relation.rotateLabel" | "sheets-chart-ui.relation.forceOptions" | "sheets-chart-ui.pareto.lineSeries" | "sheets-chart-ui.pareto.barSeries" | "sheets-chart-ui.lineType.line" | "sheets-chart-ui.lineType.smooth" | "sheets-chart-ui.lineType.step" | "sheets-chart-ui.dashType.solid" | "sheets-chart-ui.dashType.dot" | "sheets-chart-ui.dashType.dash" | "sheets-chart-ui.axes.axis" | "sheets-chart-ui.axes.axisOptions" | "sheets-chart-ui.axes.horizontalAxis" | "sheets-chart-ui.axes.verticalAxis" | "sheets-chart-ui.axes.rightVerticalAxis" | "sheets-chart-ui.axes.leftAxis" | "sheets-chart-ui.axes.rightAxis" | "sheets-chart-ui.axes.useRightAxis" | "sheets-chart-ui.stackType.stack" | "sheets-chart-ui.stackType.percent" | "sheets-chart-ui.permission.editErr" | "sheets-chart-ui.msg.invalidSource" | "sheets-chart-ui.invalidType.zero" | "sheets-chart-ui.invalidType.gaps" | "sheets-chart-ui.invalidType.connectDataPointsWithStraightLines" | "sheets-chart-ui.seriesBlock.format" | "sheets-chart-ui.seriesBlock.dataPointStyle" | "sheets-chart-ui.axisPositionType.center" | "sheets-chart-ui.axisPositionType.start" | "sheets-chart-ui.axisPositionType.end" | "sheets-chart-ui.settingsLabels.switchToRowOrColumn" | "sheets-chart-ui.settingsLabels.useAsCategoryLabels" | "sheets-chart-ui.settingsLabels.showEmptyCellsAs" | "sheets-chart-ui.positionType.left" | "sheets-chart-ui.positionType.right" | "sheets-chart-ui.positionType.bottom" | "sheets-chart-ui.positionType.top" | "sheets-chart-ui.positionType.hide" | "sheets-chart-ui.positionType.auto" | "sheets-chart-ui.positionType.inside" | "sheets-chart-ui.positionType.outside" | "sheets-chart-ui.alignY.bottom" | "sheets-chart-ui.alignY.top" | "sheets-chart-ui.alignY.middle" | "sheets-chart-ui.legendSelectModeType.single" | "sheets-chart-ui.legendSelectModeType.multiple" | "sheets-chart-ui.legendSelectModeType.close" | "sheets-chart-ui.legendVisualMapType.continuous" | "sheets-chart-ui.legendVisualMapType.piecewise" | "sheets-chart-ui.gridlines.text" | "sheets-chart-ui.gridlines.majorGridlines" | "sheets-chart-ui.ticks.majorTick" | "sheets-chart-ui.ticks.tickPosition" | "sheets-chart-ui.ticks.tickLength" | "sheets-chart-ui.styleEditPanel.padAngle" | "sheets-chart-ui.styleEditPanel.useDateAxis" | "sheets-chart-ui.styleEditPanel.rosePie" | "sheets-chart-ui.styleEditPanel.showLabelLine" | "sheets-chart-ui.styleEditPanel.gap" | "sheets-chart-ui.styleEditPanel.useAbsValue" | "sheets-chart-ui.styleEditPanel.wordCloudShape" | "sheets-chart-ui.styleEditPanel.showLabels" | "sheets-chart-ui.styleEditPanel.showDataLabels" | "sheets-chart-ui.styleEditPanel.halfPie" | "sheets-chart-ui.styleEditPanel.pieValScale" | "sheets-chart-ui.styleEditPanel.pieValSuffix" | "sheets-chart-ui.styleEditPanel.pieDigitalFixed" | "sheets-chart-ui.styleEditPanel.reverseAxisOrder" | "sheets-chart-ui.styleEditPanel.showAxisLine" | "sheets-chart-ui.styleEditPanel.labelPosition" | "sheets-chart-ui.styleEditPanel.labelText" | "sheets-chart-ui.styleEditPanel.repeatWordCould" | "sheets-chart-ui.styleEditPanel.labelRotate" | "sheets-chart-ui.styleEditPanel.dateAxisTips" | "sheets-chart-ui.trendline.exp" | "sheets-chart-ui.trendline.linear" | "sheets-chart-ui.trendline.log" | "sheets-chart-ui.trendline.movingAvg" | "sheets-chart-ui.trendline.poly" | "sheets-chart-ui.trendline.pow" | "sheets-chart-ui.trendline.name" | "sheets-chart-ui.trendline.formula" | "sheets-chart-ui.trendline.displayName" | "sheets-chart-ui.trendline.order" | "sheets-chart-ui.trendline.period" | "sheets-chart-ui.trendline.showFormula" | "sheets-chart-ui.trendline.showR2" | "sheets-chart-ui.trendline.addTrendLine" | "sheets-chart-ui.trendline.trendlineType" | "sheets-chart-ui.trendline.trendlineName" | "sheets-chart-ui.trendline.trendlineColor" | "sheets-chart-ui.trendline.trendlineThickness" | "sheets-chart-ui.trendline.trendlineDashType" | "sheets-chart-ui.trendline.r2" | "sheets-chart-ui.chartTypes.line" | "sheets-chart-ui.chartTypes.column" | "sheets-chart-ui.chartTypes.wordCloud" | "sheets-chart-ui.chartTypes.waterfall" | "sheets-chart-ui.chartTypes.bar" | "sheets-chart-ui.chartTypes.scatter" | "sheets-chart-ui.chartTypes.pie" | "sheets-chart-ui.chartTypes.radar" | "sheets-chart-ui.chartTypes.funnel" | "sheets-chart-ui.chartTypes.sankey" | "sheets-chart-ui.chartTypes.boxplot" | "sheets-chart-ui.chartTypes.heatmap" | "sheets-chart-ui.chartTypes.bubble" | "sheets-chart-ui.chartTypes.combination" | "sheets-chart-ui.chartTypes.area" | "sheets-chart-ui.chartTypes.relation" | "sheets-chart-ui.chartTypes.pareto" | "sheets-chart-ui.chartTypes.areaStacked" | "sheets-chart-ui.chartTypes.areaPercentStacked" | "sheets-chart-ui.chartTypes.barStacked" | "sheets-chart-ui.chartTypes.barPercentStacked" | "sheets-chart-ui.chartTypes.donut" | "sheets-chart-ui.chartTypes.stock";
|
|
12
13
|
value: string;
|
|
13
14
|
}[];
|
|
14
15
|
export declare const titleOptions: readonly [{
|
|
@@ -96,10 +97,10 @@ export declare const axisLabelRotateOptions: {
|
|
|
96
97
|
label: string;
|
|
97
98
|
value: string;
|
|
98
99
|
}[];
|
|
99
|
-
export declare const trendlineTypeOptions: {
|
|
100
|
-
label:
|
|
100
|
+
export declare const trendlineTypeOptions: Array<{
|
|
101
|
+
label: LocaleKey;
|
|
101
102
|
value: ChartTrendlineType;
|
|
102
|
-
}
|
|
103
|
+
}>;
|
|
103
104
|
export declare const trendlineToIcon: Record<string, ReactNode>;
|
|
104
105
|
export declare const trendlineOrderOptions: {
|
|
105
106
|
label: string;
|
|
@@ -175,11 +176,11 @@ export declare const invalidValueOptions: {
|
|
|
175
176
|
export declare const labelContentTypeList: LabelContentType[];
|
|
176
177
|
export declare const labelContentOptions: {
|
|
177
178
|
value: string;
|
|
178
|
-
label:
|
|
179
|
+
label: LocaleKey;
|
|
179
180
|
}[];
|
|
180
181
|
export declare const pieLabelContentOptions: {
|
|
181
182
|
value: string;
|
|
182
|
-
label:
|
|
183
|
+
label: LocaleKey;
|
|
183
184
|
}[];
|
|
184
185
|
export declare const tickLengthOptions: {
|
|
185
186
|
label: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../services/sheets-chart-ui.service';
|
|
3
2
|
export declare const RadarChartOptionsEdit: (props: {
|
|
4
3
|
service: SheetsChartUIService;
|
|
5
|
-
localeService: LocaleService;
|
|
6
4
|
className?: string;
|
|
7
|
-
}) => import("react
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface IButtonSwitchProps {
|
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (value: string) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const ButtonSwitch: (props: IButtonSwitchProps) => import("react
|
|
8
|
+
export declare const ButtonSwitch: (props: IButtonSwitchProps) => import("react").JSX.Element;
|
|
@@ -3,4 +3,4 @@ export interface IColorPickerControlProps {
|
|
|
3
3
|
color: Nullable<string>;
|
|
4
4
|
onChange?: (color: Nullable<string>) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const ColorPickerControl: (props: IColorPickerControlProps) => import("react
|
|
6
|
+
export declare const ColorPickerControl: (props: IColorPickerControlProps) => import("react").JSX.Element;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
3
2
|
interface IBubbleDataEditProps {
|
|
4
3
|
service: SheetsChartUIService;
|
|
5
|
-
localeService: LocaleService;
|
|
6
4
|
}
|
|
7
5
|
export interface IBubbleSeriesOption {
|
|
8
6
|
label: string;
|
|
9
7
|
value: string;
|
|
10
8
|
isCategoryList: boolean;
|
|
11
9
|
}
|
|
12
|
-
export declare const BubbleDataEdit: (props: IBubbleDataEditProps) => import("react
|
|
10
|
+
export declare const BubbleDataEdit: (props: IBubbleDataEditProps) => import("react").JSX.Element;
|
|
13
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const ChartEditBlockTitle: ({ title }: {
|
|
2
2
|
title: string;
|
|
3
|
-
}) => import("react
|
|
4
|
-
export declare const DataTabPanel: () => import("react
|
|
3
|
+
}) => import("react").JSX.Element;
|
|
4
|
+
export declare const DataTabPanel: () => import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface IDropdownMenuProps {
|
|
|
6
6
|
children: ReactElement | ((visible: boolean) => ReactElement);
|
|
7
7
|
onSelect?: (index: number | string) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const DropdownSelector: (props: IDropdownMenuProps) => import("react
|
|
9
|
+
export declare const DropdownSelector: (props: IDropdownMenuProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
export interface IFontFormatStyle {
|
|
3
2
|
fontSize: number;
|
|
4
3
|
color: string;
|
|
@@ -11,8 +10,7 @@ export interface IFontFormatStyle {
|
|
|
11
10
|
}
|
|
12
11
|
export type PropertyChangeFunction<T, K extends keyof T = keyof T> = (name: K, value: T[K]) => void;
|
|
13
12
|
export interface IFontFormatBarProps extends Partial<IFontFormatStyle> {
|
|
14
|
-
localeService: LocaleService;
|
|
15
13
|
className?: string;
|
|
16
14
|
onChange?: PropertyChangeFunction<Omit<IFontFormatStyle, 'controls'>>;
|
|
17
15
|
}
|
|
18
|
-
export declare const FontFormatBar: (props: IFontFormatBarProps) => import("react
|
|
16
|
+
export declare const FontFormatBar: (props: IFontFormatBarProps) => import("react").JSX.Element;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { DeepPartial, IAxisOptions } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
3
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
4
4
|
export interface IAxisOptionsEditProps {
|
|
5
|
-
localeService: LocaleService;
|
|
6
5
|
valueAxis: boolean;
|
|
7
6
|
canUseDateAxis: boolean;
|
|
8
7
|
axisOptions: Nullable<DeepPartial<IAxisOptions>>;
|
|
9
8
|
onChange?: (axisOptions: DeepPartial<IAxisOptions>) => void;
|
|
10
9
|
sheetsChartUIService: SheetsChartUIService;
|
|
11
10
|
}
|
|
12
|
-
export declare const AxisOptionsEdit: (props: IAxisOptionsEditProps) => import("react
|
|
11
|
+
export declare const AxisOptionsEdit: (props: IAxisOptionsEditProps) => import("react").JSX.Element;
|
|
@@ -2,5 +2,5 @@ interface IChartNumfmtPanelProps {
|
|
|
2
2
|
originPattern?: string;
|
|
3
3
|
onPatternApply?: (pattern: string | undefined) => void;
|
|
4
4
|
}
|
|
5
|
-
export declare const ChartNumfmtDialog: ({ originPattern, onPatternApply }: IChartNumfmtPanelProps) => import("react
|
|
5
|
+
export declare const ChartNumfmtDialog: ({ originPattern, onPatternApply }: IChartNumfmtPanelProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { ChartTypeBits, IPieLabelStyle, ISeriesLabelStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
3
|
import type { PropertyChangeFunction } from '../font-format-bar';
|
|
4
4
|
import type { OptionType } from '../Options';
|
|
5
5
|
type UnionLabelStyle = ISeriesLabelStyle | IPieLabelStyle;
|
|
6
6
|
export interface IDataLabelOptionsProps {
|
|
7
|
-
localeService: LocaleService;
|
|
8
7
|
chartType: Nullable<ChartTypeBits>;
|
|
9
8
|
fallbackLabelStyle?: Partial<UnionLabelStyle>;
|
|
10
9
|
labelStyle: Partial<UnionLabelStyle>;
|
|
@@ -22,5 +21,5 @@ export interface IDataLabelOptionsProps {
|
|
|
22
21
|
onShowLabelLineChange?: (showLabelLine: boolean) => void;
|
|
23
22
|
showLabelLine?: Nullable<boolean>;
|
|
24
23
|
}
|
|
25
|
-
export declare const DataLabelOptions: (props: IDataLabelOptionsProps) => import("react
|
|
24
|
+
export declare const DataLabelOptions: (props: IDataLabelOptionsProps) => import("react").JSX.Element;
|
|
26
25
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ChartBorderDashType } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { LocaleService } from '@univerjs/core';
|
|
3
2
|
interface IIndicatorChangeInfo {
|
|
4
3
|
indicatorLabelColor?: string;
|
|
5
4
|
indicatorLineType?: ChartBorderDashType;
|
|
@@ -7,12 +6,11 @@ interface IIndicatorChangeInfo {
|
|
|
7
6
|
indicatorLabelTextColor?: string;
|
|
8
7
|
}
|
|
9
8
|
export interface IIndicatorLineProps {
|
|
10
|
-
localeService: LocaleService;
|
|
11
9
|
indicatorLabelColor: string;
|
|
12
10
|
indicatorLineType: ChartBorderDashType;
|
|
13
11
|
indicatorLineColor: string;
|
|
14
12
|
indicatorLabelTextColor: string;
|
|
15
13
|
onChange?: (v: IIndicatorChangeInfo) => void;
|
|
16
14
|
}
|
|
17
|
-
export declare const IndicatorLine: (props: IIndicatorLineProps) => import("react
|
|
15
|
+
export declare const IndicatorLine: (props: IIndicatorLineProps) => import("react").JSX.Element;
|
|
18
16
|
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
3
2
|
interface ITrendLineStyleEditProps {
|
|
4
3
|
service: SheetsChartUIService;
|
|
5
|
-
localeService: LocaleService;
|
|
6
4
|
isLineSeries: boolean;
|
|
7
5
|
}
|
|
8
|
-
export declare const ParetoStyleEdit: (props: ITrendLineStyleEditProps) => import("react
|
|
6
|
+
export declare const ParetoStyleEdit: (props: ITrendLineStyleEditProps) => import("react").JSX.Element;
|
|
9
7
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Nullable } from '@univerjs/core';
|
|
2
2
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
3
3
|
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
4
4
|
export declare const PieChartStyleEdit: (props: {
|
|
5
5
|
chartType: Nullable<ChartTypeBits>;
|
|
6
6
|
service: SheetsChartUIService;
|
|
7
|
-
localeService: LocaleService;
|
|
8
7
|
onChartTypeChange?: (chartType: ChartTypeBits) => void;
|
|
9
|
-
}) => import("react
|
|
8
|
+
}) => import("react").JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
3
2
|
interface IRelationEditProps {
|
|
4
3
|
service: SheetsChartUIService;
|
|
5
|
-
localeService: LocaleService;
|
|
6
4
|
}
|
|
7
|
-
export declare function RelationEdit(props: IRelationEditProps): import("react
|
|
5
|
+
export declare function RelationEdit(props: IRelationEditProps): import("react").JSX.Element;
|
|
8
6
|
export {};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { IRuntimeAxis } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
|
+
export declare function getPrimaryVerticalAxis(runtimeAxes: Nullable<IRuntimeAxis[]> | undefined): IRuntimeAxis | undefined;
|
|
4
|
+
/** The vertical axis panel edits the persisted primary vertical axis bucket (`style.yAxis`). */
|
|
5
|
+
export declare const StyleTabPanel: () => import("react").JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
3
2
|
interface ITrendLineStyleEditProps {
|
|
4
3
|
uiService: SheetsChartUIService;
|
|
5
|
-
localeService: LocaleService;
|
|
6
4
|
}
|
|
7
|
-
export declare const TrendLineStyleEdit: (props: ITrendLineStyleEditProps) => import("react
|
|
5
|
+
export declare const TrendLineStyleEdit: (props: ITrendLineStyleEditProps) => import("react").JSX.Element | null;
|
|
8
6
|
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
3
2
|
interface IWaterfallSeriesEditProps {
|
|
4
3
|
service: SheetsChartUIService;
|
|
5
|
-
localeService: LocaleService;
|
|
6
4
|
}
|
|
7
|
-
export declare const WaterfallSeriesEdit: (props: IWaterfallSeriesEditProps) => import("react
|
|
5
|
+
export declare const WaterfallSeriesEdit: (props: IWaterfallSeriesEditProps) => import("react").JSX.Element;
|
|
8
6
|
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../../services/sheets-chart-ui.service';
|
|
3
2
|
interface IWordCloudShapeSelectorProps {
|
|
4
3
|
service: SheetsChartUIService;
|
|
5
|
-
localeService: LocaleService;
|
|
6
4
|
}
|
|
7
|
-
export declare function WordCloudShapeSelector(props: IWordCloudShapeSelectorProps): import("react
|
|
5
|
+
export declare function WordCloudShapeSelector(props: IWordCloudShapeSelectorProps): import("react").JSX.Element;
|
|
8
6
|
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { IRuntimeAxis } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
3
|
import type { SheetsChartUIService } from '../../../../services/sheets-chart-ui.service';
|
|
4
4
|
export interface IGridLineAndTickOptionsProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
service: SheetsChartUIService;
|
|
7
|
-
localeService: LocaleService;
|
|
8
7
|
runtimeAxes: Nullable<IRuntimeAxis[]>;
|
|
9
8
|
}
|
|
10
|
-
export declare const GridLineAndTickOptions: (props: IGridLineAndTickOptionsProps) => import("react
|
|
9
|
+
export declare const GridLineAndTickOptions: (props: IGridLineAndTickOptionsProps) => import("react").JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { LocaleService } from '@univerjs/core';
|
|
2
1
|
import type { SheetsChartUIService } from '../../../../services/sheets-chart-ui.service';
|
|
3
2
|
export interface ICombinationChartTypeSelectProps {
|
|
4
|
-
localeService: LocaleService;
|
|
5
3
|
service: SheetsChartUIService;
|
|
6
4
|
seriesId: string;
|
|
7
5
|
}
|
|
8
|
-
export declare const CombinationChartTypeSelect: (props: ICombinationChartTypeSelectProps) => import("react
|
|
6
|
+
export declare const CombinationChartTypeSelect: (props: ICombinationChartTypeSelectProps) => import("react").JSX.Element;
|
package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/DataPointsEdit.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { DeepPartial, ISeriesStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
3
|
import type { IChartOptionType } from '../../../../services/sheets-chart-ui.service';
|
|
4
4
|
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
5
5
|
export interface IDataPointsEditProps {
|
|
6
6
|
chartType: Nullable<ChartTypeBits>;
|
|
7
7
|
data: DeepPartial<ISeriesStyle['dataPoints']>;
|
|
8
8
|
options: IChartOptionType[];
|
|
9
|
-
localeService: LocaleService;
|
|
10
9
|
onChange?: (style: DeepPartial<ISeriesStyle['dataPoints']>) => void;
|
|
11
10
|
}
|
|
12
|
-
export declare const DataPointsEdit: (props: IDataPointsEditProps) => import("react
|
|
11
|
+
export declare const DataPointsEdit: (props: IDataPointsEditProps) => import("react").JSX.Element;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial, IPointStyle, ISeriesStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { LocaleService } from '@univerjs/core';
|
|
3
2
|
interface IRadarSeriesPointProps {
|
|
4
|
-
localeService: LocaleService;
|
|
5
3
|
setSeriesStyle: (style: DeepPartial<ISeriesStyle>) => void;
|
|
6
4
|
pointStyle?: IPointStyle;
|
|
7
5
|
}
|
|
8
|
-
export declare const RadarSeriesPoint: (props: IRadarSeriesPointProps) => import("react
|
|
6
|
+
export declare const RadarSeriesPoint: (props: IRadarSeriesPointProps) => import("react").JSX.Element;
|
|
9
7
|
export {};
|
package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/SeriesStyleEdit.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Nullable } from '@univerjs/core';
|
|
2
2
|
import type { SheetsChartUIService } from '../../../../services/sheets-chart-ui.service';
|
|
3
3
|
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
4
4
|
export interface ISeriesStyleEditProps {
|
|
5
5
|
chartType: Nullable<ChartTypeBits>;
|
|
6
6
|
service: SheetsChartUIService;
|
|
7
|
-
localeService: LocaleService;
|
|
8
7
|
}
|
|
9
|
-
export declare const SeriesStyleEdit: (props: ISeriesStyleEditProps) => import("react
|
|
8
|
+
export declare const SeriesStyleEdit: (props: ISeriesStyleEditProps) => import("react").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial, IPointStyle, ISeriesStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
3
|
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
4
4
|
export interface IWidgetProps {
|
|
5
|
-
localeService: LocaleService;
|
|
6
5
|
onSeriesStyleChange?: (style: DeepPartial<ISeriesStyle>) => void;
|
|
7
6
|
}
|
|
8
7
|
export interface IFillOptions extends IWidgetProps {
|
|
@@ -11,7 +10,7 @@ export interface IFillOptions extends IWidgetProps {
|
|
|
11
10
|
controlName: string;
|
|
12
11
|
chartType: Nullable<ChartTypeBits>;
|
|
13
12
|
}
|
|
14
|
-
export declare const FillOptions: (props: IFillOptions) => import("react
|
|
13
|
+
export declare const FillOptions: (props: IFillOptions) => import("react").JSX.Element;
|
|
15
14
|
export interface IBorderOptionsProps extends IWidgetProps {
|
|
16
15
|
borderStyle: ISeriesStyle['border'];
|
|
17
16
|
controlName: string;
|
|
@@ -19,16 +18,16 @@ export interface IBorderOptionsProps extends IWidgetProps {
|
|
|
19
18
|
allSeriesBorderStyle: Nullable<DeepPartial<ISeriesStyle>['border']>;
|
|
20
19
|
isLineOrAreaChart: boolean;
|
|
21
20
|
}
|
|
22
|
-
export declare const BorderOptions: (props: IBorderOptionsProps) => import("react
|
|
21
|
+
export declare const BorderOptions: (props: IBorderOptionsProps) => import("react").JSX.Element;
|
|
23
22
|
type PointStyleKeys = keyof IPointStyle;
|
|
24
23
|
export interface ILinePointOptionsProps extends Omit<IWidgetProps, 'onSeriesStyleChange'> {
|
|
25
24
|
pointStyle: ISeriesStyle['point'] | IPointStyle;
|
|
26
25
|
controls: Array<PointStyleKeys>;
|
|
27
26
|
onChange?: <K extends PointStyleKeys = PointStyleKeys>(key: K, value: IPointStyle[K]) => void;
|
|
28
27
|
}
|
|
29
|
-
export declare const LinePointOptions: (props: ILinePointOptionsProps) => import("react
|
|
28
|
+
export declare const LinePointOptions: (props: ILinePointOptionsProps) => import("react").JSX.Element;
|
|
30
29
|
export interface IAxisControlProps extends IWidgetProps {
|
|
31
30
|
rightYAxis: boolean;
|
|
32
31
|
}
|
|
33
|
-
export declare const AxisControl: (props: IAxisControlProps) => import("react
|
|
32
|
+
export declare const AxisControl: (props: IAxisControlProps) => import("react").JSX.Element;
|
|
34
33
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { IAccessor } from '@univerjs/core';
|
|
2
2
|
import type { IMenuSelectorItem } from '@univerjs/ui';
|
|
3
|
-
|
|
3
|
+
import type { LocaleKey } from '../../locale/types';
|
|
4
|
+
export declare function ChartMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
1
2
|
export interface IPrintChartProps {
|
|
2
3
|
unitId: string;
|
|
3
4
|
floatDomId: string;
|
|
4
5
|
context: {
|
|
5
6
|
docDisabled: boolean;
|
|
6
|
-
root:
|
|
7
|
+
root: RefObject<HTMLDivElement>;
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
10
|
export declare const PrintChart: (props: IPrintChartProps) => null;
|