@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.
Files changed (135) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.css +14 -402
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -1
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -1
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -1
  51. package/lib/locale/it-IT.js +1 -1
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -1
  55. package/lib/locale/pt-BR.js +1 -1
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -1
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/commands/commands/focused-chart.command.d.ts +1 -1
  63. package/lib/types/commands/commands/sheet-chart-menu.command.d.ts +4 -1
  64. package/lib/types/commands/operations/open-chart-panel-operation.d.ts +1 -1
  65. package/lib/types/config/config.d.ts +1 -1
  66. package/lib/types/controllers/chart-element-float-menu.controller.d.ts +4 -3
  67. package/lib/types/controllers/chart-render.controller.d.ts +3 -1
  68. package/lib/types/controllers/ui.controller.d.ts +5 -6
  69. package/lib/types/index.d.ts +0 -2
  70. package/lib/types/locale/en-US.d.ts +51 -351
  71. package/lib/types/services/chart-element-selection.d.ts +4 -6
  72. package/lib/types/services/chart-render.service.d.ts +10 -10
  73. package/lib/types/services/sheets-chart-ui.service.d.ts +25 -151
  74. package/lib/types/util.d.ts +7 -4
  75. package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +79 -0
  76. package/lib/types/views/chart-edit-panel/data-tab-panel/DataTabPanel.d.ts +4 -1
  77. package/lib/types/views/chart-edit-panel/style-tab-panel/StyleTabPanel.d.ts +4 -5
  78. package/lib/types/views/chart-menu/chart-menu-factory.d.ts +1 -2
  79. package/lib/umd/index.js +1 -1
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +20 -20
  100. package/lib/types/hooks.d.ts +0 -3
  101. package/lib/types/services/chart-panel-route.d.ts +0 -20
  102. package/lib/types/views/chart-edit-panel/Options.d.ts +0 -163
  103. package/lib/types/views/chart-edit-panel/RadarChartOptionsEdit.d.ts +0 -3
  104. package/lib/types/views/chart-edit-panel/button-switch/ButtonSwitch.d.ts +0 -8
  105. package/lib/types/views/chart-edit-panel/button-switch/index.d.ts +0 -1
  106. package/lib/types/views/chart-edit-panel/data-tab-panel/BubbleDataEdit.d.ts +0 -6
  107. package/lib/types/views/chart-edit-panel/data-tab-panel/CandlestickDataEdit.d.ts +0 -7
  108. package/lib/types/views/chart-edit-panel/data-tab-panel/HistogramDataEdit.d.ts +0 -1
  109. package/lib/types/views/chart-edit-panel/data-tab-panel/TreemapDataEdit.d.ts +0 -12
  110. package/lib/types/views/chart-edit-panel/data-tab-panel/index.d.ts +0 -1
  111. package/lib/types/views/chart-edit-panel/index.d.ts +0 -1
  112. package/lib/types/views/chart-edit-panel/style-tab-panel/AxisOptionsEdit.d.ts +0 -9
  113. package/lib/types/views/chart-edit-panel/style-tab-panel/CandlestickStyleEdit.d.ts +0 -3
  114. package/lib/types/views/chart-edit-panel/style-tab-panel/ChartNumfmtDialog.d.ts +0 -6
  115. package/lib/types/views/chart-edit-panel/style-tab-panel/DataLabelOptions.d.ts +0 -25
  116. package/lib/types/views/chart-edit-panel/style-tab-panel/HistogramStyleEdit.d.ts +0 -1
  117. package/lib/types/views/chart-edit-panel/style-tab-panel/IndicatorLine.d.ts +0 -16
  118. package/lib/types/views/chart-edit-panel/style-tab-panel/ParetoLine.d.ts +0 -5
  119. package/lib/types/views/chart-edit-panel/style-tab-panel/PieChartStyleEdit.d.ts +0 -6
  120. package/lib/types/views/chart-edit-panel/style-tab-panel/RelationEdit.d.ts +0 -1
  121. package/lib/types/views/chart-edit-panel/style-tab-panel/TreemapStyleEdit.d.ts +0 -6
  122. package/lib/types/views/chart-edit-panel/style-tab-panel/TrendLineEdit.d.ts +0 -1
  123. package/lib/types/views/chart-edit-panel/style-tab-panel/WaterfallSeriesEdit.d.ts +0 -1
  124. package/lib/types/views/chart-edit-panel/style-tab-panel/WordCloudShapeSelector.d.ts +0 -1
  125. package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/GridLineAndTickOptions.d.ts +0 -7
  126. package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/index.d.ts +0 -1
  127. package/lib/types/views/chart-edit-panel/style-tab-panel/index.d.ts +0 -1
  128. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/CombinationChartTypeSelect.d.ts +0 -4
  129. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/DataPointsEdit.d.ts +0 -11
  130. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/RadarPoints.d.ts +0 -7
  131. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/SeriesStyleEdit.d.ts +0 -7
  132. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/Widgets.d.ts +0 -33
  133. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/const.d.ts +0 -2
  134. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/index.d.ts +0 -1
  135. package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/use-series-chart-type.d.ts +0 -3
@@ -1,6 +0,0 @@
1
- export interface IBubbleSeriesOption {
2
- label: string;
3
- value: string;
4
- isCategoryList: boolean;
5
- }
6
- export declare const BubbleDataEdit: () => import("react").JSX.Element;
@@ -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,3 +0,0 @@
1
- export declare function toCanonicalCandlestickOpacity(percent: number): number;
2
- export declare function toCanonicalCandleWidth(value: string): number | null;
3
- export declare const CandlestickStyleEdit: () => import("react").JSX.Element;
@@ -1,6 +0,0 @@
1
- interface IChartNumfmtPanelProps {
2
- originPattern?: string;
3
- onPatternApply?: (pattern: string | undefined) => void;
4
- }
5
- export declare const ChartNumfmtDialog: ({ originPattern, onPatternApply }: IChartNumfmtPanelProps) => import("react").JSX.Element;
6
- export {};
@@ -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,5 +0,0 @@
1
- interface ITrendLineStyleEditProps {
2
- isLineSeries: boolean;
3
- }
4
- export declare const ParetoStyleEdit: (props: ITrendLineStyleEditProps) => import("react").JSX.Element;
5
- 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;
@@ -1 +0,0 @@
1
- export * from './GridLineAndTickOptions';
@@ -1 +0,0 @@
1
- export * from './StyleTabPanel';
@@ -1,4 +0,0 @@
1
- export interface ICombinationChartTypeSelectProps {
2
- seriesId: string;
3
- }
4
- export declare const CombinationChartTypeSelect: (props: ICombinationChartTypeSelectProps) => import("react").JSX.Element;
@@ -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 {};
@@ -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,2 +0,0 @@
1
- import { ChartTypeBits } from '@univerjs-pro/engine-chart';
2
- export declare const PercentageChartTypes: Set<ChartTypeBits>;
@@ -1 +0,0 @@
1
- export { SeriesStyleEdit } from './SeriesStyleEdit';
@@ -1,3 +0,0 @@
1
- import type { Nullable } from '@univerjs/core';
2
- import { ChartTypeBits } from '@univerjs-pro/engine-chart';
3
- export declare function useSeriesChartType(chartType: Nullable<ChartTypeBits>, seriesId: string): void | ChartTypeBits | null;