@univerjs-pro/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 +96 -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/components/ChartEditPanelScaffold.d.ts +16 -0
- package/lib/types/components/ChartEditorFields.d.ts +4 -1
- package/lib/types/components/ChartInlineTableEditor.d.ts +5 -0
- package/lib/types/components/ChartPresentationFields.d.ts +2 -1
- package/lib/types/components/ChartSemanticDataFields.d.ts +28 -0
- package/lib/types/components/chart-inline-starter-data.d.ts +13 -0
- package/lib/types/components/index.d.ts +6 -3
- package/lib/types/index.d.ts +2 -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 +7 -6
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x178f49=_0x3485;function _0x32c5(){const _0x29bafe=['348kPYJRR','图例换行','百分比','6449552OMXBoB','标签文本','图表标题','2529090QGwaHX','1oBkPCT','右对齐','8IIXLqP','1175154BVqXYd','230484FNfeqI','标签位置','可从\x20Sheets、Excel\x20或网页表格直接粘贴,替换当前数据。','最大值','数据标签','标题文本','新增行','左对齐','副标题','1679746qUCxYm','透明度','3619429EzJjqK','7cdyeVZ','705484eSbksC','10XpgewU','轴标题','35afHUwu','边框颜色','新增列'];_0x32c5=function(){return _0x29bafe;};return _0x32c5();}(function(_0x2ede56,_0x4fade6){const _0x3abcaa=_0x3485,_0x5d7acb=_0x2ede56();while(!![]){try{const _0x2faa9a=parseInt(_0x3abcaa(0x11d))/0x1*(parseInt(_0x3abcaa(0x12a))/0x2)+parseInt(_0x3abcaa(0x120))/0x3*(parseInt(_0x3abcaa(0x11f))/0x4)+parseInt(_0x3abcaa(0x113))/0x5*(-parseInt(_0x3abcaa(0x121))/0x6)+-parseInt(_0x3abcaa(0x12d))/0x7*(-parseInt(_0x3abcaa(0x119))/0x8)+parseInt(_0x3abcaa(0x11c))/0x9+-parseInt(_0x3abcaa(0x111))/0xa*(parseInt(_0x3abcaa(0x12c))/0xb)+-parseInt(_0x3abcaa(0x116))/0xc*(parseInt(_0x3abcaa(0x110))/0xd);if(_0x2faa9a===_0x4fade6)break;else _0x5d7acb['push'](_0x5d7acb['shift']());}catch(_0x549afd){_0x5d7acb['push'](_0x5d7acb['shift']());}}}(_0x32c5,0x838b4));function _0x3485(_0x2f1458,_0x1f1350){_0x2f1458=_0x2f1458-0x110;const _0x32c5a3=_0x32c5();let _0x3485e1=_0x32c5a3[_0x2f1458];return _0x3485e1;}const e={'chart-ui':{'common':{'default':'默认','reset':'重置'},'presentation':{'wrapLegend':_0x178f49(0x117)},'inlineTable':{'pasteHint':_0x178f49(0x123),'addRow':_0x178f49(0x127),'addColumn':_0x178f49(0x115)},'floatMenu':{'menuTitle':{'chart':'图表','chartTitle':_0x178f49(0x11b),'subtitle':_0x178f49(0x129),'axisTitle':_0x178f49(0x112),'legend':'图例','horizontalAxis':'横轴','verticalAxis':'纵轴','rightVerticalAxis':'右纵轴','gridline':'网格线','tick':'刻度线','mark':'标记','series':'系列','dataPoint':'数据点','dataLabel':_0x178f49(0x125)},'field':{'title':'标题','subtitle':_0x178f49(0x129),'position':'位置','size':'字号','align':'对齐','mode':'模式','map':'映射','rotate':'旋转','min':'最小值','max':_0x178f49(0x124),'color':'颜色','borderColor':_0x178f49(0x114),'opacity':_0x178f49(0x12b),'labelPosition':_0x178f49(0x122),'labelText':_0x178f49(0x11a),'titleText':_0x178f49(0x126)},'action':{'more':'更多','bold':'加粗','italic':'斜体'},'control':{'labels':'标签','line':'轴线','reverse':'反向','date':'日期'},'option':{'textAlign':{'left':_0x178f49(0x128),'center':'居中','right':_0x178f49(0x11e)},'position':{'top':'顶部','bottom':'底部','left':'左侧','right':'右侧','hide':'隐藏','inside':'内部','outside':'外部'},'labelText':{'category':'类别','value':'值','percentage':_0x178f49(0x118)},'axisAlign':{'start':'开始','center':'中间','end':'结束'},'legendSelectMode':{'single':'单选','multiple':'多选','close':'关闭'},'visualMapType':{'continuous':'连续','piecewise':'分段'}}}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3bf889=_0x40ae;(function(_0x4daa30,_0x1610f4){const _0x137b92=_0x40ae,_0x348c3e=_0x4daa30();while(!![]){try{const _0x2f0dd1=parseInt(_0x137b92(0x69))/0x1+parseInt(_0x137b92(0x6e))/0x2+parseInt(_0x137b92(0x67))/0x3+parseInt(_0x137b92(0x68))/0x4+-parseInt(_0x137b92(0x6d))/0x5+-parseInt(_0x137b92(0x73))/0x6+parseInt(_0x137b92(0x78))/0x7*(-parseInt(_0x137b92(0x74))/0x8);if(_0x2f0dd1===_0x1610f4)break;else _0x348c3e['push'](_0x348c3e['shift']());}catch(_0x11a21f){_0x348c3e['push'](_0x348c3e['shift']());}}}(_0x4ccd,0x3521c));const e={'chart-ui':{'common':{'default':'預設','reset':'重置'},'presentation':{'wrapLegend':'圖例換行'},'inlineTable':{'pasteHint':_0x3bf889(0x6a),'addRow':_0x3bf889(0x79),'addColumn':_0x3bf889(0x65)},'floatMenu':{'menuTitle':{'chart':'圖表','chartTitle':_0x3bf889(0x6c),'subtitle':_0x3bf889(0x7d),'axisTitle':_0x3bf889(0x70),'legend':'圖例','horizontalAxis':'橫軸','verticalAxis':'縱軸','rightVerticalAxis':_0x3bf889(0x66),'gridline':_0x3bf889(0x7e),'tick':_0x3bf889(0x71),'mark':'標記','series':'系列','dataPoint':_0x3bf889(0x72),'dataLabel':_0x3bf889(0x6b)},'field':{'title':'標題','subtitle':_0x3bf889(0x7d),'position':'位置','size':'字號','align':'對齊','mode':'模式','map':'映射','rotate':'旋轉','min':_0x3bf889(0x77),'max':_0x3bf889(0x80),'color':'顏色','borderColor':_0x3bf889(0x7f),'opacity':_0x3bf889(0x7c),'labelPosition':_0x3bf889(0x81),'labelText':_0x3bf889(0x76),'titleText':_0x3bf889(0x75)},'action':{'more':'更多','bold':'加粗','italic':'斜體'},'control':{'labels':'標籤','line':'軸線','reverse':'反向','date':'日期'},'option':{'textAlign':{'left':_0x3bf889(0x6f),'center':'置中','right':_0x3bf889(0x7a)},'position':{'top':'頂部','bottom':'底部','left':'左側','right':'右側','hide':'隱藏','inside':'內部','outside':'外部'},'labelText':{'category':'類別','value':'值','percentage':_0x3bf889(0x7b)},'axisAlign':{'start':'開始','center':'中間','end':'結束'},'legendSelectMode':{'single':'單選','multiple':'多選','close':'關閉'},'visualMapType':{'continuous':'連續','piecewise':'分段'}}}}};function _0x40ae(_0xeeef6d,_0xa875a){_0xeeef6d=_0xeeef6d-0x65;const _0x4ccd40=_0x4ccd();let _0x40ae53=_0x4ccd40[_0xeeef6d];return _0x40ae53;}export{e as default};function _0x4ccd(){const _0x135295=['資料點','2447490SPdycK','808lYVXst','標題文字','標籤文字','最小值','8743JRDuIX','新增列','右對齊','百分比','透明度','副標題','網格線','邊框顏色','最大值','標籤位置','新增欄','右縱軸','871899Zhkpmv','138848iuKhPO','373595iOmPyL','在此複製並貼上資料','資料標籤','圖表標題','1442950VqjaQF','682684qqjjog','左對齊','軸標題','刻度線'];_0x4ccd=function(){return _0x135295;};return _0x4ccd();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xb948(_0x5df4d0,_0x43b546){_0x5df4d0=_0x5df4d0-0x1b6;const _0x1b4ab6=_0x1b4a();let _0xb94853=_0x1b4ab6[_0x5df4d0];return _0xb94853;}const _0x29eea9=_0xb948;(function(_0x4c2f20,_0x187e53){const _0x3ff437=_0xb948,_0x226ff2=_0x4c2f20();while(!![]){try{const _0x2b2b7f=-parseInt(_0x3ff437(0x1c0))/0x1*(-parseInt(_0x3ff437(0x1c6))/0x2)+parseInt(_0x3ff437(0x1c2))/0x3+parseInt(_0x3ff437(0x1bf))/0x4+-parseInt(_0x3ff437(0x1cf))/0x5*(parseInt(_0x3ff437(0x1c1))/0x6)+-parseInt(_0x3ff437(0x1c3))/0x7+parseInt(_0x3ff437(0x1bd))/0x8+parseInt(_0x3ff437(0x1ca))/0x9;if(_0x2b2b7f===_0x187e53)break;else _0x226ff2['push'](_0x226ff2['shift']());}catch(_0xe012de){_0x226ff2['push'](_0x226ff2['shift']());}}}(_0x1b4a,0x97cd9));function _0x1b4a(){const _0x1ca02c=['1647060heWmde','8356453uGUBkr','資料點','副標題','317478zMJAif','標籤位置','百分比','標題文字','10135638fWhsoZ','資料標籤','最大值','軸標題','右縱軸','5ySAzRj','圖例換行','最小值','新增欄','標籤文字','左對齊','在此複製並貼上資料','透明度','網格線','276240ixOkoQ','右對齊','2161892FdyOxy','4IauYjs','6417582iMreBF'];_0x1b4a=function(){return _0x1ca02c;};return _0x1b4a();}const e={'chart-ui':{'common':{'default':'預設','reset':'重置'},'presentation':{'wrapLegend':_0x29eea9(0x1d0)},'inlineTable':{'pasteHint':_0x29eea9(0x1ba),'addRow':'新增列','addColumn':_0x29eea9(0x1b7)},'floatMenu':{'menuTitle':{'chart':'圖表','chartTitle':'圖表標題','subtitle':_0x29eea9(0x1c5),'axisTitle':_0x29eea9(0x1cd),'legend':'圖例','horizontalAxis':'橫軸','verticalAxis':'縱軸','rightVerticalAxis':_0x29eea9(0x1ce),'gridline':_0x29eea9(0x1bc),'tick':'刻度線','mark':'標記','series':'系列','dataPoint':_0x29eea9(0x1c4),'dataLabel':_0x29eea9(0x1cb)},'field':{'title':'標題','subtitle':_0x29eea9(0x1c5),'position':'位置','size':'字號','align':'對齊','mode':'模式','map':'映射','rotate':'旋轉','min':_0x29eea9(0x1b6),'max':_0x29eea9(0x1cc),'color':'顏色','borderColor':'邊框顏色','opacity':_0x29eea9(0x1bb),'labelPosition':_0x29eea9(0x1c7),'labelText':_0x29eea9(0x1b8),'titleText':_0x29eea9(0x1c9)},'action':{'more':'更多','bold':'加粗','italic':'斜體'},'control':{'labels':'標籤','line':'軸線','reverse':'反向','date':'日期'},'option':{'textAlign':{'left':_0x29eea9(0x1b9),'center':'置中','right':_0x29eea9(0x1be)},'position':{'top':'頂部','bottom':'底部','left':'左側','right':'右側','hide':'隱藏','inside':'內部','outside':'外部'},'labelText':{'category':'類別','value':'值','percentage':_0x29eea9(0x1c8)},'axisAlign':{'start':'開始','center':'中間','end':'結束'},'legendSelectMode':{'single':'單選','multiple':'多選','close':'關閉'},'visualMapType':{'continuous':'連續','piecewise':'分段'}}}}};export{e as default};
|
|
@@ -7,9 +7,25 @@ export interface IChartEditPanelTabsProps<T extends string | number = string | n
|
|
|
7
7
|
className?: string;
|
|
8
8
|
items: Array<IChartEditPanelTabItem<T>>;
|
|
9
9
|
value: T;
|
|
10
|
+
variant?: 'underline' | 'segmented';
|
|
10
11
|
onChange: (value: T) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare function ChartEditPanelTabs<T extends string | number = string | number>(props: IChartEditPanelTabsProps<T>): import("react").JSX.Element;
|
|
14
|
+
export interface IChartEditPanelScaffoldProps<T extends string | number = string | number> {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
contentClassName?: string;
|
|
18
|
+
footer?: ReactNode;
|
|
19
|
+
items: Array<IChartEditPanelTabItem<T>>;
|
|
20
|
+
onTabChange: (value: T) => void;
|
|
21
|
+
tab: T;
|
|
22
|
+
tabsClassName?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Owns the shared sizing and scrolling contract for chart edit panels.
|
|
26
|
+
* Host packages should keep only their data and command integration outside this shell.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ChartEditPanelScaffold<T extends string | number = string | number>(props: IChartEditPanelScaffoldProps<T>): import("react").JSX.Element;
|
|
13
29
|
export interface IChartEditBlockTitleProps {
|
|
14
30
|
title: string;
|
|
15
31
|
}
|
|
@@ -35,12 +35,15 @@ export interface IChartToggleFieldProps {
|
|
|
35
35
|
}
|
|
36
36
|
export declare function ChartToggleField(props: IChartToggleFieldProps): import("react").JSX.Element;
|
|
37
37
|
export interface IChartNumberFieldProps {
|
|
38
|
+
allowClear?: boolean;
|
|
39
|
+
allowEmpty?: boolean;
|
|
38
40
|
label: string;
|
|
39
41
|
max?: number;
|
|
40
42
|
min?: number;
|
|
41
43
|
onChange: (value: number | undefined) => void;
|
|
44
|
+
precision?: number;
|
|
42
45
|
step?: number;
|
|
43
|
-
value?: number
|
|
46
|
+
value?: number;
|
|
44
47
|
}
|
|
45
48
|
export declare function ChartNumberField(props: IChartNumberFieldProps): import("react").JSX.Element;
|
|
46
49
|
export interface IChartTextFieldProps {
|
|
@@ -11,5 +11,10 @@ export declare function normalizeInlineTableValues<T extends ChartInlineCellValu
|
|
|
11
11
|
export declare function appendInlineTableRow<T extends ChartInlineCellValue>(values: T[][]): T[][];
|
|
12
12
|
export declare function appendInlineTableColumn<T extends ChartInlineCellValue>(values: T[][]): T[][];
|
|
13
13
|
export declare function compactInlineTableValues<T extends ChartInlineCellValue>(values: T[][]): T[][];
|
|
14
|
+
/**
|
|
15
|
+
* Replaces a Docs/Slides/Boards inline table with the complete pasted matrix.
|
|
16
|
+
* The matrix follows the starter-data contract: downstream host adapters interpret
|
|
17
|
+
* row 0 as field names (`dimensions`) and all remaining rows as observations.
|
|
18
|
+
*/
|
|
14
19
|
export declare function applyInlineTablePaste<T extends ChartInlineCellValue>(pastedText: string, parsePastedText: (text: string) => T[][], minRows?: number, minColumns?: number): T[][] | null;
|
|
15
20
|
export declare function ChartInlineTableEditor<T extends ChartInlineCellValue>(props: IChartInlineTableEditorProps<T>): import("react").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ChartTypeBits, LegendPositionEnum } from '@univerjs-pro/engine-chart';
|
|
2
|
-
|
|
2
|
+
interface IChartLegendWrapFieldProps {
|
|
3
3
|
chartType?: ChartTypeBits;
|
|
4
4
|
onChange: (wrap: boolean) => void;
|
|
5
5
|
position?: LegendPositionEnum;
|
|
6
6
|
wrap?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare function ChartLegendWrapField(props: IChartLegendWrapFieldProps): import("react").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IChartContext } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IChartSemanticFieldOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IChartSemanticDataFieldLabels {
|
|
8
|
+
candlestick: {
|
|
9
|
+
category: string;
|
|
10
|
+
close: string;
|
|
11
|
+
high: string;
|
|
12
|
+
low: string;
|
|
13
|
+
open: string;
|
|
14
|
+
};
|
|
15
|
+
histogramValue: string;
|
|
16
|
+
treemapHierarchy: string;
|
|
17
|
+
treemapValue: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IChartSemanticDataFieldsProps {
|
|
20
|
+
chartType: ChartTypeBits | undefined;
|
|
21
|
+
context: IChartContext;
|
|
22
|
+
fields: IChartSemanticFieldOption[];
|
|
23
|
+
labels: IChartSemanticDataFieldLabels;
|
|
24
|
+
onChange: (patch: Partial<IChartContext>) => void;
|
|
25
|
+
}
|
|
26
|
+
export type ChartSemanticDataFieldKind = 'candlestick' | 'histogram' | 'treemap' | 'category-series';
|
|
27
|
+
export declare function getChartSemanticDataFieldKind(chartType: ChartTypeBits | undefined): ChartSemanticDataFieldKind;
|
|
28
|
+
export declare function ChartSemanticDataFields(props: IChartSemanticDataFieldsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChartInlineCellValue } from './ChartInlineTableEditor';
|
|
2
|
+
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
3
|
+
/** Locale keys required to label the shared inline-host chart starter tables. */
|
|
4
|
+
export type ChartInlineStarterDataLabelKey = 'candlestick.category' | 'candlestick.open' | 'candlestick.high' | 'candlestick.low' | 'candlestick.close' | 'histogram.value';
|
|
5
|
+
/** Resolves a shared starter-table label in the owning host locale. */
|
|
6
|
+
export type ChartInlineStarterDataLabelResolver = (key: ChartInlineStarterDataLabelKey) => string;
|
|
7
|
+
/** Returns the editable column floor for inline data owned by a chart type. */
|
|
8
|
+
export declare function getChartInlineTableMinColumns(chartType: ChartTypeBits): number;
|
|
9
|
+
/**
|
|
10
|
+
* Creates localized starter data shared by the Docs/Slides/Boards inline tables.
|
|
11
|
+
* Row 0 contains field names (`dimensions`); later rows are observations.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createChartInlineStarterData(chartType: ChartTypeBits, resolveLabel: ChartInlineStarterDataLabelResolver): ChartInlineCellValue[][] | undefined;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
export { createChartInlineStarterData, getChartInlineTableMinColumns } from './chart-inline-starter-data';
|
|
2
|
+
export type { ChartInlineStarterDataLabelKey, ChartInlineStarterDataLabelResolver } from './chart-inline-starter-data';
|
|
1
3
|
export { ChartCheckboxField, ChartColorField, ChartFontField, ChartNumberField, ChartPropertyField, ChartPropertyRow, ChartSelectField, ChartTextField, ChartToggleField, } from './ChartEditorFields';
|
|
2
4
|
export type { IChartCheckboxFieldProps, IChartColorFieldProps, IChartEditorOption, IChartFontFieldProps, IChartNumberFieldProps, IChartPropertyFieldProps, IChartPropertyRowProps, IChartSelectFieldProps, IChartTextFieldProps, IChartToggleFieldProps, } from './ChartEditorFields';
|
|
3
|
-
export { ChartEditBlockTitle, ChartEditPanelTabs } from './ChartEditPanelScaffold';
|
|
4
|
-
export type { IChartEditBlockTitleProps, IChartEditPanelTabItem, IChartEditPanelTabsProps } from './ChartEditPanelScaffold';
|
|
5
|
+
export { ChartEditBlockTitle, ChartEditPanelScaffold, ChartEditPanelTabs } from './ChartEditPanelScaffold';
|
|
6
|
+
export type { IChartEditBlockTitleProps, IChartEditPanelScaffoldProps, IChartEditPanelTabItem, IChartEditPanelTabsProps, } from './ChartEditPanelScaffold';
|
|
5
7
|
export { appendInlineTableColumn, appendInlineTableRow, applyInlineTablePaste, ChartInlineTableEditor, coerceInlineTableCell, compactInlineTableValues, normalizeInlineTableValues, } from './ChartInlineTableEditor';
|
|
6
8
|
export type { ChartInlineCellValue, IChartInlineTableEditorProps, } from './ChartInlineTableEditor';
|
|
7
9
|
export { ChartLegendWrapField } from './ChartPresentationFields';
|
|
8
|
-
export
|
|
10
|
+
export { ChartSemanticDataFields, getChartSemanticDataFieldKind } from './ChartSemanticDataFields';
|
|
11
|
+
export type { ChartSemanticDataFieldKind, IChartSemanticDataFieldLabels, IChartSemanticDataFieldsProps, IChartSemanticFieldOption, } from './ChartSemanticDataFields';
|
|
9
12
|
export { buildChartThemeSelectOptions, buildChartTypeSelectOptions, chartBorderWidthValues, chartLinePointSizeValues, chartOpacityValues, chartTickLengthValues, chartTickWidthValues, chartTypeToIcon, createPercentOptions, createPxOptions, renderChartThemeColorStrip, renderChartTypeSelectLabel, } from './ChartTypeOptions';
|
|
10
13
|
export type { IChartPrimitiveOption, IChartSelectOption, IChartTypeOption } from './ChartTypeOptions';
|
|
11
14
|
export { ColorPickerControl } from './ColorPickerControl';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export { ChartDomFrame } from './chart-host/chart-dom-frame';
|
|
|
3
3
|
export { ChartFrameContentMode, ChartFrameLayout } from './chart-host/chart-frame-layout';
|
|
4
4
|
export { CHART_DOM_HOST_Z_INDEX, CHART_HOST_BORDER_RADIUS, MIN_CHART_HOST_DIMENSION } from './chart-host/constants';
|
|
5
5
|
export { ChartPointMappingStateKey } from './chart-state/constants';
|
|
6
|
-
export { appendInlineTableColumn, appendInlineTableRow, applyInlineTablePaste, buildChartThemeSelectOptions, buildChartTypeSelectOptions, chartBorderWidthValues, ChartCheckboxField, ChartColorField, ChartEditBlockTitle, ChartEditPanelTabs, ChartFontField, ChartInlineTableEditor, ChartLegendWrapField, chartLinePointSizeValues, ChartNumberField, chartOpacityValues, ChartPropertyField, ChartPropertyRow, ChartSelectField, ChartTextField, chartTickLengthValues, chartTickWidthValues, ChartToggleField, chartTypeToIcon, coerceInlineTableCell, compactInlineTableValues, createPercentOptions, createPxOptions, FontAlignSelector, FontColorSelector, FontFormatBar, FontFormatToggle, FontSizeSelector, normalizeInlineTableValues, renderChartThemeColorStrip, renderChartTypeSelectLabel, } from './components';
|
|
7
|
-
export type {
|
|
6
|
+
export { appendInlineTableColumn, appendInlineTableRow, applyInlineTablePaste, buildChartThemeSelectOptions, buildChartTypeSelectOptions, chartBorderWidthValues, ChartCheckboxField, ChartColorField, ChartEditBlockTitle, ChartEditPanelScaffold, ChartEditPanelTabs, ChartFontField, ChartInlineTableEditor, ChartLegendWrapField, chartLinePointSizeValues, ChartNumberField, chartOpacityValues, ChartPropertyField, ChartPropertyRow, ChartSelectField, ChartSemanticDataFields, ChartTextField, chartTickLengthValues, chartTickWidthValues, ChartToggleField, chartTypeToIcon, coerceInlineTableCell, compactInlineTableValues, createChartInlineStarterData, createPercentOptions, createPxOptions, FontAlignSelector, FontColorSelector, FontFormatBar, FontFormatToggle, FontSizeSelector, getChartInlineTableMinColumns, getChartSemanticDataFieldKind, normalizeInlineTableValues, renderChartThemeColorStrip, renderChartTypeSelectLabel, } from './components';
|
|
7
|
+
export type { ChartInlineStarterDataLabelKey, ChartInlineStarterDataLabelResolver, ChartSemanticDataFieldKind, IChartEditPanelScaffoldProps, IChartPrimitiveOption, IChartSelectOption, IChartSemanticDataFieldLabels, IChartSemanticDataFieldsProps, IChartSemanticFieldOption, IChartTypeOption, } from './components';
|
|
8
8
|
export { ColorPickerControl } from './components/ColorPickerControl';
|
|
9
9
|
export type { IColorPickerControlProps } from './components/ColorPickerControl';
|
|
10
10
|
export { DropdownSelector } from './components/DropdownSelector';
|