@univerjs-pro/sheets-chart-ui 1.0.0-alpha.8 → 1.0.0-beta.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/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 +14 -402
- 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/focused-chart.command.d.ts +1 -1
- package/lib/types/commands/commands/sheet-chart-menu.command.d.ts +4 -1
- package/lib/types/commands/operations/open-chart-panel-operation.d.ts +1 -1
- package/lib/types/config/config.d.ts +1 -1
- package/lib/types/controllers/chart-element-float-menu.controller.d.ts +4 -3
- package/lib/types/controllers/chart-render.controller.d.ts +3 -1
- package/lib/types/controllers/ui.controller.d.ts +5 -6
- package/lib/types/index.d.ts +0 -2
- package/lib/types/locale/en-US.d.ts +51 -351
- package/lib/types/services/chart-element-selection.d.ts +4 -6
- package/lib/types/services/chart-render.service.d.ts +10 -10
- package/lib/types/services/sheets-chart-ui.service.d.ts +25 -151
- package/lib/types/util.d.ts +7 -4
- package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +79 -0
- package/lib/types/views/chart-edit-panel/data-tab-panel/DataTabPanel.d.ts +4 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/StyleTabPanel.d.ts +4 -5
- package/lib/types/views/chart-menu/chart-menu-factory.d.ts +1 -2
- 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 +20 -20
- package/lib/types/hooks.d.ts +0 -3
- package/lib/types/services/chart-panel-route.d.ts +0 -20
- package/lib/types/views/chart-edit-panel/Options.d.ts +0 -163
- package/lib/types/views/chart-edit-panel/RadarChartOptionsEdit.d.ts +0 -3
- package/lib/types/views/chart-edit-panel/button-switch/ButtonSwitch.d.ts +0 -8
- package/lib/types/views/chart-edit-panel/button-switch/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/data-tab-panel/BubbleDataEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/data-tab-panel/CandlestickDataEdit.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/data-tab-panel/HistogramDataEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/data-tab-panel/TreemapDataEdit.d.ts +0 -12
- package/lib/types/views/chart-edit-panel/data-tab-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/AxisOptionsEdit.d.ts +0 -9
- package/lib/types/views/chart-edit-panel/style-tab-panel/CandlestickStyleEdit.d.ts +0 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/ChartNumfmtDialog.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/DataLabelOptions.d.ts +0 -25
- package/lib/types/views/chart-edit-panel/style-tab-panel/HistogramStyleEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/IndicatorLine.d.ts +0 -16
- package/lib/types/views/chart-edit-panel/style-tab-panel/ParetoLine.d.ts +0 -5
- package/lib/types/views/chart-edit-panel/style-tab-panel/PieChartStyleEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/RelationEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/TreemapStyleEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/TrendLineEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/WaterfallSeriesEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/WordCloudShapeSelector.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/GridLineAndTickOptions.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/CombinationChartTypeSelect.d.ts +0 -4
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/DataPointsEdit.d.ts +0 -11
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/RadarPoints.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/SeriesStyleEdit.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/Widgets.d.ts +0 -33
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/const.d.ts +0 -2
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/use-series-chart-type.d.ts +0 -3
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { IChartCandlestickMappingSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
-
type CandlestickDraft = Partial<IChartCandlestickMappingSpec> & {
|
|
3
|
-
categoryIndex?: number;
|
|
4
|
-
};
|
|
5
|
-
export declare function isCompleteCandlestickDraft(draft: CandlestickDraft): draft is Required<CandlestickDraft>;
|
|
6
|
-
export declare const CandlestickDataEdit: () => import("react").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HistogramDataEdit: () => import("react").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface ITreemapFieldOption {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function getTreemapFieldChoices(fields: ITreemapFieldOption[], hierarchy: number[], valueIndex: number | undefined): {
|
|
6
|
-
hierarchyChoices: ITreemapFieldOption[];
|
|
7
|
-
valueChoices: ITreemapFieldOption[];
|
|
8
|
-
};
|
|
9
|
-
export declare function reorderTreemapHierarchy(hierarchy: number[], index: number, offset: number): number[];
|
|
10
|
-
export declare function removeTreemapHierarchy(hierarchy: number[], index: number): number[];
|
|
11
|
-
export declare const TreemapDataEdit: () => import("react").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './DataTabPanel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ChartEditPanel';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DeepPartial, IAxisOptions } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { Nullable } from '@univerjs/core';
|
|
3
|
-
export interface IAxisOptionsEditProps {
|
|
4
|
-
valueAxis: boolean;
|
|
5
|
-
canUseDateAxis: boolean;
|
|
6
|
-
axisOptions: Nullable<DeepPartial<IAxisOptions>>;
|
|
7
|
-
onChange?: (axisOptions: DeepPartial<IAxisOptions>) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const AxisOptionsEdit: (props: IAxisOptionsEditProps) => import("react").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { PropertyChangeFunction } from '@univerjs-pro/chart-ui';
|
|
2
|
-
import type { ChartTypeBits, IPieLabelStyle, ISeriesLabelStyle } from '@univerjs-pro/engine-chart';
|
|
3
|
-
import type { Nullable } from '@univerjs/core';
|
|
4
|
-
import type { IChartOptionType } from '../../../services/sheets-chart-ui.service';
|
|
5
|
-
type UnionLabelStyle = ISeriesLabelStyle | IPieLabelStyle;
|
|
6
|
-
export interface IDataLabelOptionsProps {
|
|
7
|
-
chartType: Nullable<ChartTypeBits>;
|
|
8
|
-
fallbackLabelStyle?: Partial<UnionLabelStyle>;
|
|
9
|
-
labelStyle: Partial<UnionLabelStyle>;
|
|
10
|
-
contentTypeOptions?: IChartOptionType[];
|
|
11
|
-
positionOptions?: IChartOptionType[];
|
|
12
|
-
onVisibleChange?: (visible: boolean) => void;
|
|
13
|
-
onPadAngleChange?: (padAngle: boolean) => void;
|
|
14
|
-
onLabelStyleChange?: PropertyChangeFunction<UnionLabelStyle>;
|
|
15
|
-
isPieLike: boolean;
|
|
16
|
-
padAngleStyle?: Nullable<boolean>;
|
|
17
|
-
onHalfPieChange?: (isHalfPie: boolean) => void;
|
|
18
|
-
isHalfPie?: Nullable<boolean>;
|
|
19
|
-
isRosePie?: Nullable<boolean>;
|
|
20
|
-
onRosePieChange?: (isRosePie: boolean) => void;
|
|
21
|
-
onShowLabelLineChange?: (showLabelLine: boolean) => void;
|
|
22
|
-
showLabelLine?: Nullable<boolean>;
|
|
23
|
-
}
|
|
24
|
-
export declare const DataLabelOptions: (props: IDataLabelOptionsProps) => import("react").JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HistogramStyleEdit: () => import("react").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ChartBorderDashType } from '@univerjs-pro/engine-chart';
|
|
2
|
-
interface IIndicatorChangeInfo {
|
|
3
|
-
indicatorLabelColor?: string;
|
|
4
|
-
indicatorLineType?: ChartBorderDashType;
|
|
5
|
-
indicatorLineColor?: string;
|
|
6
|
-
indicatorLabelTextColor?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IIndicatorLineProps {
|
|
9
|
-
indicatorLabelColor: string;
|
|
10
|
-
indicatorLineType: ChartBorderDashType;
|
|
11
|
-
indicatorLineColor: string;
|
|
12
|
-
indicatorLabelTextColor: string;
|
|
13
|
-
onChange?: (v: IIndicatorChangeInfo) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const IndicatorLine: (props: IIndicatorLineProps) => import("react").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from '@univerjs/core';
|
|
2
|
-
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
3
|
-
export declare const PieChartStyleEdit: (props: {
|
|
4
|
-
chartType: Nullable<ChartTypeBits>;
|
|
5
|
-
onChartTypeChange?: (chartType: ChartTypeBits) => void;
|
|
6
|
-
}) => import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function RelationEdit(): import("react").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IChartTreemapSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import { LabelContentType } from '@univerjs-pro/engine-chart';
|
|
3
|
-
export declare function resolveEffectiveTreemapStyle(style: IChartTreemapSpec | undefined): Required<Pick<IChartTreemapSpec, 'parentLabelLayout' | 'label'>>;
|
|
4
|
-
export declare function getTreemapLabelContentValues(contentType: LabelContentType | undefined): string[];
|
|
5
|
-
export declare function mergeTreemapLabelContentTypes(values: string[]): LabelContentType | undefined;
|
|
6
|
-
export declare const TreemapStyleEdit: () => import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TrendLineStyleEdit: () => import("react").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WaterfallSeriesEdit: () => import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function WordCloudShapeSelector(): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { IRuntimeAxis } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { Nullable } from '@univerjs/core';
|
|
3
|
-
export interface IGridLineAndTickOptionsProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
runtimeAxes: Nullable<IRuntimeAxis[]>;
|
|
6
|
-
}
|
|
7
|
-
export declare const GridLineAndTickOptions: (props: IGridLineAndTickOptionsProps) => import("react").JSX.Element;
|
package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GridLineAndTickOptions';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './StyleTabPanel';
|
package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/DataPointsEdit.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DeepPartial, ISeriesStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { Nullable } from '@univerjs/core';
|
|
3
|
-
import type { IChartOptionType } from '../../../../services/sheets-chart-ui.service';
|
|
4
|
-
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
5
|
-
export interface IDataPointsEditProps {
|
|
6
|
-
chartType: Nullable<ChartTypeBits>;
|
|
7
|
-
data: DeepPartial<ISeriesStyle['dataPoints']>;
|
|
8
|
-
options: IChartOptionType[];
|
|
9
|
-
onChange?: (style: DeepPartial<ISeriesStyle['dataPoints']>) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const DataPointsEdit: (props: IDataPointsEditProps) => import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DeepPartial, IPointStyle, ISeriesStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
interface IRadarSeriesPointProps {
|
|
3
|
-
setSeriesStyle: (style: DeepPartial<ISeriesStyle>) => void;
|
|
4
|
-
pointStyle?: IPointStyle;
|
|
5
|
-
}
|
|
6
|
-
export declare const RadarSeriesPoint: (props: IRadarSeriesPointProps) => import("react").JSX.Element;
|
|
7
|
-
export {};
|
package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/SeriesStyleEdit.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from '@univerjs/core';
|
|
2
|
-
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
3
|
-
export interface ISeriesStyleEditProps {
|
|
4
|
-
chartType: Nullable<ChartTypeBits>;
|
|
5
|
-
selectedSeriesId?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const SeriesStyleEdit: (props: ISeriesStyleEditProps) => import("react").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { DeepPartial, IPointStyle, ISeriesStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { Nullable } from '@univerjs/core';
|
|
3
|
-
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
4
|
-
export interface IWidgetProps {
|
|
5
|
-
onSeriesStyleChange?: (style: DeepPartial<ISeriesStyle>) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface IFillOptions extends IWidgetProps {
|
|
8
|
-
seriesStyle: Nullable<DeepPartial<ISeriesStyle>>;
|
|
9
|
-
allSeriesStyle: Nullable<DeepPartial<ISeriesStyle>>;
|
|
10
|
-
controlName: string;
|
|
11
|
-
chartType: Nullable<ChartTypeBits>;
|
|
12
|
-
}
|
|
13
|
-
export declare const FillOptions: (props: IFillOptions) => import("react").JSX.Element;
|
|
14
|
-
export interface IBorderOptionsProps extends IWidgetProps {
|
|
15
|
-
borderStyle: ISeriesStyle['border'];
|
|
16
|
-
controlName: string;
|
|
17
|
-
hideBorder: boolean;
|
|
18
|
-
allSeriesBorderStyle: Nullable<DeepPartial<ISeriesStyle>['border']>;
|
|
19
|
-
isLineOrAreaChart: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const BorderOptions: (props: IBorderOptionsProps) => import("react").JSX.Element;
|
|
22
|
-
type PointStyleKeys = keyof IPointStyle;
|
|
23
|
-
export interface ILinePointOptionsProps extends Omit<IWidgetProps, 'onSeriesStyleChange'> {
|
|
24
|
-
pointStyle: ISeriesStyle['point'] | IPointStyle;
|
|
25
|
-
controls: Array<PointStyleKeys>;
|
|
26
|
-
onChange?: <K extends PointStyleKeys = PointStyleKeys>(key: K, value: IPointStyle[K]) => void;
|
|
27
|
-
}
|
|
28
|
-
export declare const LinePointOptions: (props: ILinePointOptionsProps) => import("react").JSX.Element;
|
|
29
|
-
export interface IAxisControlProps extends IWidgetProps {
|
|
30
|
-
rightYAxis: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare const AxisControl: (props: IAxisControlProps) => import("react").JSX.Element;
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SeriesStyleEdit } from './SeriesStyleEdit';
|