@univerjs-pro/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 (176) 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 +232 -7
  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/components/ChartEditPanel.d.ts +49 -0
  63. package/lib/types/components/ChartInlineTableEditor.d.ts +1 -1
  64. package/lib/types/components/ChartSemanticDataFields.d.ts +3 -3
  65. package/lib/types/components/ChartTypeOptions.d.ts +148 -2
  66. package/lib/types/components/FontFormatBar.d.ts +19 -1
  67. package/lib/types/components/chart-inline-starter-data.d.ts +16 -6
  68. package/lib/types/components/use-chart-panel-input-focus.d.ts +4 -0
  69. package/lib/types/controllers/components.controller.d.ts +4 -2
  70. package/lib/types/editor/ChartEditorProvider.d.ts +11 -0
  71. package/lib/types/editor/atoms/common/ChartFontAtom.d.ts +28 -0
  72. package/lib/types/editor/atoms/common/ChartNumberFormatAtom.d.ts +9 -0
  73. package/lib/types/editor/atoms/common/chart-number-format.d.ts +28 -0
  74. package/lib/types/editor/components/ChartCheckboxField.d.ts +11 -0
  75. package/lib/types/editor/components/ChartColorField.d.ts +13 -0
  76. package/lib/types/editor/components/ChartField.d.ts +15 -0
  77. package/lib/types/editor/components/ChartFieldGroup.d.ts +9 -0
  78. package/lib/types/editor/components/ChartFieldGroupTitle.d.ts +6 -0
  79. package/lib/types/editor/components/ChartFieldRow.d.ts +5 -0
  80. package/lib/types/editor/components/ChartFontField.d.ts +28 -0
  81. package/lib/types/editor/components/ChartImageSelectField.d.ts +13 -0
  82. package/lib/types/editor/components/ChartListField.d.ts +18 -0
  83. package/lib/types/editor/components/ChartMultiSelectField.d.ts +25 -0
  84. package/lib/types/editor/components/ChartNumberField.d.ts +16 -0
  85. package/lib/types/editor/components/ChartSelectField.d.ts +25 -0
  86. package/lib/types/editor/components/ChartTextField.d.ts +14 -0
  87. package/lib/types/editor/hooks/use-chart-config-state.d.ts +3 -0
  88. package/lib/types/editor/hooks/use-chart-data-mapping-fields.d.ts +5 -0
  89. package/lib/types/editor/hooks/use-chart-editor-model.d.ts +3 -0
  90. package/lib/types/editor/hooks/use-chart-runtime-context.d.ts +13 -0
  91. package/lib/types/editor/routing/chart-edit-panel-route.d.ts +21 -0
  92. package/lib/types/editor/sections/ChartAxisSections.d.ts +63 -0
  93. package/lib/types/editor/sections/ChartIndicatorLineSection.d.ts +20 -0
  94. package/lib/types/editor/sections/ChartLegendSection.d.ts +27 -0
  95. package/lib/types/editor/sections/ChartLineAndAreaSection.d.ts +11 -0
  96. package/lib/types/editor/sections/ChartParetoSeriesSection.d.ts +26 -0
  97. package/lib/types/editor/sections/ChartSeriesSection.d.ts +60 -0
  98. package/lib/types/editor/sections/ChartSetupSections.d.ts +21 -0
  99. package/lib/types/editor/sections/ChartStyleSection.d.ts +15 -0
  100. package/lib/types/editor/sections/ChartTitleSections.d.ts +50 -0
  101. package/lib/types/editor/sections/ChartTrendlineSection.d.ts +18 -0
  102. package/lib/types/editor/sections/chart-capabilities.d.ts +10 -0
  103. package/lib/types/editor/sections/chart-style-options.d.ts +86 -0
  104. package/lib/types/editor/sections/specific-section/ChartCandlestickStyleSection.d.ts +1 -0
  105. package/lib/types/editor/sections/specific-section/ChartFunnelStyleSection.d.ts +10 -0
  106. package/lib/types/editor/sections/specific-section/ChartHeatmapStyleSection.d.ts +10 -0
  107. package/lib/types/editor/sections/specific-section/ChartHistogramStyleSection.d.ts +1 -0
  108. package/lib/types/editor/sections/specific-section/ChartPieStyleSection.d.ts +21 -0
  109. package/lib/types/editor/sections/specific-section/ChartRadarStyleSection.d.ts +9 -0
  110. package/lib/types/editor/sections/specific-section/ChartRelationStyleSection.d.ts +17 -0
  111. package/lib/types/editor/sections/specific-section/ChartTreemapStyleSection.d.ts +1 -0
  112. package/lib/types/editor/sections/specific-section/ChartTypeSpecificSections.d.ts +9 -0
  113. package/lib/types/editor/sections/specific-section/ChartWaterfallStyleSection.d.ts +26 -0
  114. package/lib/types/editor/sections/specific-section/ChartWordCloudStyleSection.d.ts +21 -0
  115. package/lib/types/editor/sections/specific-section/ChordDataMappingAtom.d.ts +1 -0
  116. package/lib/types/editor/sections/specific-section/ChordLabelAtom.d.ts +1 -0
  117. package/lib/types/editor/sections/specific-section/ChordLayoutAtom.d.ts +1 -0
  118. package/lib/types/editor/sections/specific-section/ChordRibbonAtom.d.ts +1 -0
  119. package/lib/types/editor/sections/specific-section/GaugeDataMappingAtom.d.ts +1 -0
  120. package/lib/types/editor/sections/specific-section/GaugeModeAtom.d.ts +1 -0
  121. package/lib/types/editor/sections/specific-section/GaugePointerAtom.d.ts +1 -0
  122. package/lib/types/editor/sections/specific-section/GaugeProgressAtom.d.ts +1 -0
  123. package/lib/types/editor/sections/specific-section/GaugeRangesAtom.d.ts +1 -0
  124. package/lib/types/editor/sections/specific-section/GaugeScaleAtom.d.ts +1 -0
  125. package/lib/types/editor/sections/specific-section/SunburstCenterLabelAtom.d.ts +1 -0
  126. package/lib/types/editor/sections/specific-section/SunburstDataMappingAtom.d.ts +1 -0
  127. package/lib/types/editor/sections/specific-section/SunburstLabelAtom.d.ts +1 -0
  128. package/lib/types/editor/sections/specific-section/chord-field-options.d.ts +2 -0
  129. package/lib/types/editor/sections/specific-section/chord-style.d.ts +16 -0
  130. package/lib/types/editor/sections/specific-section/gauge-style.d.ts +10 -0
  131. package/lib/types/editor/sections/specific-section/sunburst-label.d.ts +8 -0
  132. package/lib/types/editor/utils/chart-runtime-axis.d.ts +3 -0
  133. package/lib/types/float-menu/ChartElementFloatMenu.d.ts +2 -2
  134. package/lib/types/float-menu/chart-element-selection.d.ts +7 -0
  135. package/lib/types/float-menu/constants.d.ts +72 -77
  136. package/lib/types/float-menu/create-chart-element-float-menu-adapter.d.ts +10 -0
  137. package/lib/types/float-menu/pie-mark-patch.d.ts +8 -0
  138. package/lib/types/float-menu/types.d.ts +28 -9
  139. package/lib/types/index.d.ts +68 -3
  140. package/lib/types/locale/en-US.d.ts +481 -58
  141. package/lib/types/services/chart-host-adapter.d.ts +12 -0
  142. package/lib/types/services/chart-snapshot-queue.d.ts +58 -0
  143. package/lib/types/services/chart-ui.service.d.ts +19 -0
  144. package/lib/types/services/chart-view-state-projector.d.ts +15 -0
  145. package/lib/types/services/chart-view-state-registry.d.ts +11 -0
  146. package/lib/types/services/chart-view-state.d.ts +118 -0
  147. package/lib/types/services/inline-chart-creation.d.ts +42 -0
  148. package/lib/types/services/register-chart-config-states.d.ts +3 -0
  149. package/lib/types/services/register-chart-view-states/chart-specific.d.ts +4 -0
  150. package/lib/types/services/register-chart-view-states/semantic.d.ts +4 -0
  151. package/lib/umd/index.js +1 -1
  152. package/lib/umd/locale/ar-SA.js +1 -1
  153. package/lib/umd/locale/ca-ES.js +1 -1
  154. package/lib/umd/locale/de-DE.js +1 -1
  155. package/lib/umd/locale/en-US.js +1 -1
  156. package/lib/umd/locale/es-ES.js +1 -1
  157. package/lib/umd/locale/fa-IR.js +1 -1
  158. package/lib/umd/locale/fr-FR.js +1 -1
  159. package/lib/umd/locale/id-ID.js +1 -1
  160. package/lib/umd/locale/it-IT.js +1 -1
  161. package/lib/umd/locale/ja-JP.js +1 -1
  162. package/lib/umd/locale/ko-KR.js +1 -1
  163. package/lib/umd/locale/pl-PL.js +1 -1
  164. package/lib/umd/locale/pt-BR.js +1 -1
  165. package/lib/umd/locale/ru-RU.js +1 -1
  166. package/lib/umd/locale/sk-SK.js +1 -1
  167. package/lib/umd/locale/vi-VN.js +1 -1
  168. package/lib/umd/locale/zh-CN.js +1 -1
  169. package/lib/umd/locale/zh-HK.js +1 -1
  170. package/lib/umd/locale/zh-TW.js +1 -1
  171. package/package.json +11 -9
  172. package/lib/types/components/ChartEditPanelScaffold.d.ts +0 -32
  173. package/lib/types/components/ChartEditorFields.d.ts +0 -68
  174. package/lib/types/components/ChartPresentationFields.d.ts +0 -9
  175. package/lib/types/components/index.d.ts +0 -19
  176. package/lib/types/float-menu/index.d.ts +0 -5
@@ -1 +1 @@
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};
1
+ const _0x2a1500=_0x18a7;(function(_0x5a4bf3,_0x367967){const _0x49f29f=_0x18a7,_0x141046=_0x5a4bf3();while(!![]){try{const _0x46bf7b=parseInt(_0x49f29f(0x283))/0x1*(parseInt(_0x49f29f(0x29a))/0x2)+parseInt(_0x49f29f(0x223))/0x3*(-parseInt(_0x49f29f(0x255))/0x4)+parseInt(_0x49f29f(0x21c))/0x5*(parseInt(_0x49f29f(0x2a3))/0x6)+parseInt(_0x49f29f(0x1f5))/0x7+parseInt(_0x49f29f(0x242))/0x8+parseInt(_0x49f29f(0x1f2))/0x9*(-parseInt(_0x49f29f(0x2ab))/0xa)+parseInt(_0x49f29f(0x241))/0xb*(-parseInt(_0x49f29f(0x291))/0xc);if(_0x46bf7b===_0x367967)break;else _0x141046['push'](_0x141046['shift']());}catch(_0x47687a){_0x141046['push'](_0x141046['shift']());}}}(_0x1c0a,0xd0f1e));const e={'chart-ui':{'editor':{'defaultColor':_0x2a1500(0x2a0),'fontSize':'字體大小'},'setup':{'stack':'堆疊','percentStacked':_0x2a1500(0x1f6)},'chartTypes':{'line':_0x2a1500(0x27a),'column':'柱狀圖','columnStacked':_0x2a1500(0x25b),'columnPercentStacked':_0x2a1500(0x250),'bar':_0x2a1500(0x1ee),'barStacked':_0x2a1500(0x263),'barPercentStacked':_0x2a1500(0x25a),'pie':'餅圖','donut':_0x2a1500(0x279),'pieOfPie':_0x2a1500(0x293),'barOfPie':_0x2a1500(0x226),'area':_0x2a1500(0x22d),'areaStacked':_0x2a1500(0x205),'areaPercentStacked':_0x2a1500(0x265),'radar':'雷達圖','scatter':_0x2a1500(0x2b1),'combination':_0x2a1500(0x225),'wordCloud':'詞雲圖','funnel':_0x2a1500(0x1fc),'bubble':_0x2a1500(0x24b),'relation':'關係圖','waterfall':'瀑布圖','pareto':_0x2a1500(0x2bc),'sankey':_0x2a1500(0x210),'heatmap':_0x2a1500(0x2b0),'boxplot':'箱型圖','candlestick':'K\x20線圖','histogram':_0x2a1500(0x2b3),'treemap':'矩形樹圖','sunburst':'旭日圖','gauge':_0x2a1500(0x256),'chord':_0x2a1500(0x233)},'section':{'waterfall':'瀑布圖','paretoBar':_0x2a1500(0x2b9),'paretoLine':_0x2a1500(0x25d),'pie':'餅圖','wordCloud':'詞雲','radar':_0x2a1500(0x289),'funnel':_0x2a1500(0x1fc),'relation':'關係圖','lineAndArea':_0x2a1500(0x28e),'gridlinesAndTicks':_0x2a1500(0x280),'indicatorLine':_0x2a1500(0x1f4),'candlestick':_0x2a1500(0x1ef),'histogram':_0x2a1500(0x2b3),'treemap':_0x2a1500(0x1f8),'sunburst':'旭日圖','gauge':_0x2a1500(0x21f),'chord':'和弦圖'},'presentation':{'backgroundColor':'背景顏色','theme':'主題','gradientFill':'漸變填充','bodyFontSize':_0x2a1500(0x227),'bodyFontColor':_0x2a1500(0x211),'titleType':_0x2a1500(0x2ae),'horizontalAxisTitle':_0x2a1500(0x2bb),'verticalAxisTitle':_0x2a1500(0x2be),'rightVerticalAxisTitle':_0x2a1500(0x27f),'wrap':_0x2a1500(0x276),'selectMode':_0x2a1500(0x2af),'visualMapType':'視覺圖','align':'對準'},'numberFormat':{'source':_0x2a1500(0x29d),'number':'數量','scientific':'科學的','custom':'自訂格式','preview':'預覽','generalType':'常規','accountingType':'會計','thousandsType':_0x2a1500(0x216),'formatTypes':_0x2a1500(0x267),'generalDesc':_0x2a1500(0x245),'accountingDesc':'會計數字格式可對一列數值進行貨幣符號和小數點對齊。','currencyDesc':_0x2a1500(0x28d),'dateDesc':_0x2a1500(0x278),'thousandsDesc':_0x2a1500(0x22a),'decimalPlaces':_0x2a1500(0x271),'currencyTypes':_0x2a1500(0x231),'negativeNumberTypes':'負數類型','dateTypes':_0x2a1500(0x238),'setFormat':_0x2a1500(0x25e)},'series':{'rightAxis':'右軸','allSeries':_0x2a1500(0x20a),'aggregate':'彙總','borderOpacity':_0x2a1500(0x229),'solid':'固體','pointShape':'點狀','pointSize':_0x2a1500(0x27e),'pointColor':_0x2a1500(0x251),'removeDataPoint':_0x2a1500(0x228),'square':'廣場','rect':'矩形','roundRect':_0x2a1500(0x262),'pin':'針形','emptyCircle':'空心圓形','emptySquare':_0x2a1500(0x234),'emptyTriangle':_0x2a1500(0x22c),'emptyDiamond':_0x2a1500(0x1ff),'emptyRect':_0x2a1500(0x290),'emptyRoundRect':_0x2a1500(0x209),'emptyPin':_0x2a1500(0x26e),'emptyArrow':_0x2a1500(0x24d)},'lineAndArea':{'lineStyle':_0x2a1500(0x20c),'line':'線','smooth':'光滑','step':'步驟','invalidValues':_0x2a1500(0x236),'breakLine':'斷線','connect':_0x2a1500(0x20b),'zero':_0x2a1500(0x239)},'axis':{'useDateAxis':_0x2a1500(0x297),'target':'軸','lineColor':'線條顏色','lineWidth':'線寬','labelRotation':_0x2a1500(0x2a1),'reverse':_0x2a1500(0x203),'gridlineVisible':_0x2a1500(0x2b6),'gridlineColor':_0x2a1500(0x2ad),'gridlineWidth':_0x2a1500(0x29c),'tickVisible':'蜱蟲','tickLength':_0x2a1500(0x24f),'tickWidth':_0x2a1500(0x1eb),'tickColor':'刻度線顏色','tickPosition':_0x2a1500(0x26a)},'indicator':{'lineColor':_0x2a1500(0x29e),'lineType':'指示線類型','labelBackground':_0x2a1500(0x220),'labelText':'標籤文字顏色'},'trendline':{'add':'添加趨勢線','type':'類型','linear':'線性','exponential':'指數','logarithmic':'對數','polynomial':_0x2a1500(0x28f),'power':'電源','movingAverage':_0x2a1500(0x1f7),'showFormula':_0x2a1500(0x247),'showR2':_0x2a1500(0x2a4),'order':'訂單','period':'時期','formulaColor':_0x2a1500(0x26b),'r2Color':'R²顏色'},'pareto':{'includeZeroValues':_0x2a1500(0x2b2)},'plotArea':{'label':_0x2a1500(0x27b),'manual':'手動','left':'左側(%)','top':_0x2a1500(0x2a7),'width':'寬度(%)','height':'高度(%)'},'bar':{'layout':'柱形間距','gapWidth':'分類間距(%)','overlap':'系列重疊(%)'},'pie':{'mode':_0x2a1500(0x2a2),'modeNormal':'一般','modePieOfPie':_0x2a1500(0x293),'modeBarOfPie':_0x2a1500(0x226),'splitType':_0x2a1500(0x212),'splitAuto':'自動','splitPosition':'位置','splitCustom':'自訂','customSelectedCount':_0x2a1500(0x23d),'customSelectedCountValue':_0x2a1500(0x222),'positionCount':_0x2a1500(0x21b),'valueLessThan':_0x2a1500(0x296),'percentageLessThan':_0x2a1500(0x20f),'secondarySize':_0x2a1500(0x28a),'advancedLayout':'進階版面配置','connector':'連接線','slices':'扇區','gapWidth':_0x2a1500(0x213),'connectorColor':_0x2a1500(0x246),'connectorWidth':'連接線寬度','connectorType':_0x2a1500(0x249),'aggregateOther':'其他','aggregateMembers':'成員','valueScale':_0x2a1500(0x2a5),'doughnutHole':'甜甜圈洞','startAngle':_0x2a1500(0x1f9),'explosion':_0x2a1500(0x23a),'paddingAngle':_0x2a1500(0x208),'halfPie':'半個餡餅','rosePie':_0x2a1500(0x2c1),'labelLine':_0x2a1500(0x26f)},'radar':{'shape':'雷達形狀','polygon':_0x2a1500(0x282),'fill':_0x2a1500(0x292)},'funnel':{'gap':_0x2a1500(0x281),'absoluteValues':'使用絕對值'},'heatmap':{'unit':'價值單位','labels':_0x2a1500(0x287)},'relation':{'nodes':'節點','interaction':'互動','edgeLength':'邊長','circular':'圓形','force':'力','nodeShape':'節點形狀','valueSize':_0x2a1500(0x23b),'rotateLabels':_0x2a1500(0x23e),'gravity':'重力','repulsion':'斥力'},'wordCloud':{'maskImage':_0x2a1500(0x277),'repeat':_0x2a1500(0x20d),'cloud':'雲','rect':_0x2a1500(0x266),'cardioid':'心形','heart':'心','triangle-forward':_0x2a1500(0x244),'pentagon':'五角大廈','star':'明星'},'waterfall':{'styleTarget':_0x2a1500(0x285),'positive':'正值','negative':'負值','stackType':'安排','arrangement':'瀑布','subtotal':'小計','includeSubtotal':_0x2a1500(0x259),'connector':_0x2a1500(0x23c)},'candlestick':{'candle':'蠟燭','body':'燭身','wick':'影線','state':_0x2a1500(0x224),'open':_0x2a1500(0x2b7),'high':_0x2a1500(0x232),'low':'最低價','close':_0x2a1500(0x2ba),'rising':'上漲','falling':'下跌','doji':_0x2a1500(0x219),'bodyColor':'燭身顏色','fillOpacity':'填滿不透明度','wickColor':'影線顏色','wickWidth':'影線寬度','wickOpacity':'影線不透明度','candleWidth':_0x2a1500(0x272),'hollow':_0x2a1500(0x2ac),'columnsError':_0x2a1500(0x1fd),'series':'OHLC\x20數列'},'histogram':{'binGap':'組距','binningMode':_0x2a1500(0x26d),'count':'計數','width':'寬度','binCount':'組數','binWidth':'組距寬度','underflow':_0x2a1500(0x274),'overflow':'溢出閾值','frequency':'頻數'},'treemap':{'parentLabelLayout':_0x2a1500(0x2bf),'banner':'橫幅','overlapping':'重疊','leafLabel':_0x2a1500(0x253),'hierarchy':_0x2a1500(0x29b),'diagnostic':_0x2a1500(0x288)},'sunburst':{'hierarchy':'階層','addHierarchy':'新增階層','moveUp':_0x2a1500(0x1fe),'moveDown':'向下移動階層欄位','removeHierarchy':'刪除階層欄位','centerLabel':_0x2a1500(0x284),'labelFormat':_0x2a1500(0x22e),'diagnostic':_0x2a1500(0x260)},'gauge':{'scale':_0x2a1500(0x1ed),'majorDivisions':'主刻度數','minorDivisions':'每個主刻度的次刻度數','angles':'角度','endAngle':'結束角度','ranges':'範圍','rangeFrom':'起始值','rangeTo':_0x2a1500(0x1f1),'addRange':_0x2a1500(0x257),'removeRange':_0x2a1500(0x248),'axisTick':_0x2a1500(0x218),'splitLine':_0x2a1500(0x1ec),'pointer':'指針','anchor':'錨點','progress':'進度','detail':'詳情','pointerNeedle':_0x2a1500(0x22f),'pointerSlim':_0x2a1500(0x2bd),'template':'範本','modern':'現代','classic':'經典','minimal':'極簡','advanced':_0x2a1500(0x2a8),'customized':'自訂','axisLabelNumberFormat':_0x2a1500(0x298),'detailNumberFormat':_0x2a1500(0x235),'emptyDiagnostic':_0x2a1500(0x20e),'mappingDiagnostic':_0x2a1500(0x214),'configDiagnostic':_0x2a1500(0x26c)},'chord':{'source':'來源','target':'目標','count':_0x2a1500(0x217),'node':'節點','ribbon':_0x2a1500(0x27c),'clockwise':'順時針','padAngle':_0x2a1500(0x201),'minAngle':_0x2a1500(0x275),'innerRadius':_0x2a1500(0x24a),'outerRadius':_0x2a1500(0x24e),'invalidRadii':_0x2a1500(0x1f3),'rotation':'旋轉','distance':'距離','width':'寬度','focus':'焦點','solid':'純色','gradient':'漸變','adjacency':_0x2a1500(0x25f),'self':_0x2a1500(0x27d),'emptyDiagnostic':_0x2a1500(0x204),'mappingDiagnostic':_0x2a1500(0x21a),'configDiagnostic':_0x2a1500(0x258),'associatedValue':_0x2a1500(0x2b5)},'common':{'category':'類別','seriesName':_0x2a1500(0x1fa),'value':'數值','percentage':'百分比','borderColor':_0x2a1500(0x261),'labelContent':'標籤內容','labelPosition':_0x2a1500(0x254),'dataLabels':_0x2a1500(0x2b8),'chartType':'圖表類型','bold':'粗體','italic':'斜體','shape':'形狀','chartStyle':_0x2a1500(0x273),'chartAndAxisTitles':_0x2a1500(0x252),'legend':'圖例','chartTitle':_0x2a1500(0x21d),'subtitle':_0x2a1500(0x1f0),'series':'系列','dataPoint':_0x2a1500(0x207),'trendline':_0x2a1500(0x295),'horizontalAxis':'橫軸','verticalAxis':'縱軸','rightVerticalAxis':'右縱軸','layout':_0x2a1500(0x24c),'arrow':'箭頭','axisLabels':_0x2a1500(0x270),'currency':'貨幣','date':'日期','displayName':_0x2a1500(0x22b),'emphasis':'強調','heatmap':'熱力圖','lineColor':_0x2a1500(0x264),'lineWidth':'線寬','min':'最小值','max':'最大值','mode':'模式','stacked':'堆疊','title':'標題','auto':'自動','position':{'label':'位置','inside':'內側','outside':'外側','top':'頂部','right':'右側','bottom':'底部','left':'左側','hide':'隱藏'},'axisAlign':{'start':'開始','center':'置中','end':'結束'},'textAlign':{'left':_0x2a1500(0x215),'center':'置中','right':_0x2a1500(0x23f)},'legendSelectMode':{'single':'單選','multiple':'多選','disabled':'停用'},'visualMapType':{'continuous':'連續','piecewise':'分段'},'default':'預設','reset':'重置','color':'顏色','opacity':'透明度','font':'字體','none':'無','numberFormat':_0x2a1500(0x28b),'borderWidth':_0x2a1500(0x240),'borderType':_0x2a1500(0x200),'lineType':'線型','dashed':'虛線','dotted':'點狀','circle':'圓','triangle':_0x2a1500(0x2a6),'diamond':'鑽石','axisLine':'軸線','minimum':'最低','maximum':'最大','startAngle':_0x2a1500(0x1f9),'valueField':_0x2a1500(0x206),'categoryName':_0x2a1500(0x243),'ownValue':_0x2a1500(0x294),'children':'子項','label':'標籤','editChart':_0x2a1500(0x1fb),'deleteChart':_0x2a1500(0x202),'insertChart':_0x2a1500(0x269),'insertChartFailed':_0x2a1500(0x2a9),'openChartPanel':_0x2a1500(0x25c),'hideChartPanel':_0x2a1500(0x221),'exportImage':'匯出圖片','copy':'複製','setup':'設定圖表','customize':_0x2a1500(0x237),'data':'資料','tableDataEmpty':_0x2a1500(0x2aa),'dataRange':_0x2a1500(0x2c0),'editData':_0x2a1500(0x299),'inlineData':'內嵌資料','switchRowColumn':_0x2a1500(0x286),'useAsCategoryLabels':_0x2a1500(0x21e),'cancel':'取消','insert':'插入','apply':'套用','duplicate':'複製'},'inlineTable':{'pasteHint':_0x2a1500(0x2b4),'addRow':_0x2a1500(0x29f),'addColumn':_0x2a1500(0x230)},'floatMenu':{'menuTitle':{'chart':'圖表','axisTitle':_0x2a1500(0x28c),'gridline':'網格線','tick':'刻度線','mark':'標記','dataLabel':_0x2a1500(0x2b8)},'field':{'position':'位置','size':'字號','align':'對齊','map':'映射','rotate':'旋轉','labelText':'標籤文字','titleText':_0x2a1500(0x268)},'action':{'more':'更多'},'control':{'labels':'標籤','line':'軸線','reverse':'反向'}}}};export{e as default};function _0x18a7(_0x323ac2,_0x5c8c61){_0x323ac2=_0x323ac2-0x1eb;const _0x1c0a66=_0x1c0a();let _0x18a77e=_0x1c0a66[_0x323ac2];return _0x18a77e;}function _0x1c0a(){const _0x122dab=['右縱軸標題','網格線和刻度線','專案差距','多邊形','2433vPSwOM','中心總計','樣式目標','切換列或欄','細胞標籤','矩形樹圖至少需要一個階層欄位和一個數值欄位。','雷達圖','次要圖表大小','數字格式','軸標題','貨幣格式用於表示一般貨幣數值,會計格式可以對一列數值進行小數點對齊。','折線圖\x20/\x20面積圖','多項式','空心矩形','12CsJoUc','區域填充','子母餅圖','自身值','趨勢線','數值小於','將標籤視為日期','軸標籤數字格式','編輯資料','186beLIgP','階層欄位','網格線寬度','來源格式','指示線顏色','新增行','預設顏色','標籤旋轉','圖表形態','654lcYaeU','顯示\x20R²','數值縮放','三角形','頂部(%)','進階設定','插入圖表失敗','表格資料為空','68350cyyvEu','空心\x20K\x20線','網格線顏色','標題類型','選擇方式','熱力圖','散點圖','包括零值','直方圖','貼上表格、Excel\x20或網頁中的表格以取代內嵌資料。','關聯值','網格線','開盤價','資料標籤','長條圖系列','收盤價','橫軸標題','排列圖','纖細指針','縱軸標題','父標籤佈局','資料範圍','玫瑰派','刻度寬度','分隔線','刻度範圍','條形圖','燭台圖','副標題','結束值','756SFVOqk','內半徑必須小於外半徑。','指示線','10089023skwGBY','百分比堆疊','移動平均線','樹狀圖','起始角度','系列名稱','編輯圖表','漏斗圖','K\x20線圖資料需要「類別、開盤價、最高價、最低價及收盤價」欄位。','向上移動階層欄位','空心菱形','邊框類型','間隔角度','刪除圖表','反轉軸','弦圖至少需要兩個不同節點之間的一條正權重關係。','堆疊面積圖','數值欄位','資料點','切片間距','空心圓角矩形','全系列','連接數據點','線條樣式','重複單字','儀表圖至少需要一個有限數值。','百分比小於','桑基圖','正文字體顏色','分割依據','主要與次要圖表間距','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','左對齊','千分位符','關係數','刻度線','十字線','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','次要圖表資料點數','64035QMUCxc','圖表標題','使用\x20{0}\x20作為類別','儀表圖','標籤背景','隱藏圖表面板','已選取\x20{0}\x20個資料點','3065469rEKGIF','K\x20線狀態','組合圖','複合餅圖','正文字體大小','刪除資料點','邊框透明度','千分位符格式用於一般數字的表示,貨幣和會計格式則提供貨幣值計算的專用格式。','顯示名稱','空心三角形','面積圖','標籤樣式','經典指針','新增欄目','貨幣類型','最高價','和弦圖','空心正方形','中心數值格式','無效值','自訂圖表','日期類型','視為零','扇區分離(%)','按值調整節點大小','連接線','自訂分割','旋轉標籤','右對齊','邊框寬度','8125249jznSLO','1015512snPxdh','類別名稱','前三角','常規格式不包含任何特定的數字格式。','連接線顏色','顯示公式','刪除範圍','連接線類型','內半徑','氣泡圖','版面配置','空心箭頭','外半徑','刻度長度','百分比堆疊\x20·\x20柱狀圖','資料點顏色','圖表與座標軸標題','葉子標籤','標籤位置','4SrbvPL','儀表板','添加範圍','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','使用小計','百分比堆疊條形圖','堆疊\x20·\x20柱狀圖','開啟圖表面板','累積占比系列','設定標籤格式','相鄰節點','旭日圖至少需要一個階層欄位和一個數值欄位。','邊框顏色','圓角矩形','堆疊條形圖','線條顏色','百分比堆疊面積圖','長方形','格式類型','標題文字','插入圖表','刻度位置','配方顏色','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','分檔模式','空心針形','標籤線','軸標籤','小數位數','燭身寬度','圖表樣式','下溢閾值','最小角度','包裹圖例','掩模圖像ID','日期格式將日期和時間系列數值顯示為日期值。','環形圖','折線圖','繪圖區','連接帶','目前節點','點大小'];_0x1c0a=function(){return _0x122dab;};return _0x1c0a();}
@@ -0,0 +1,49 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartEditPanelTabItem<T extends string | number> {
3
+ label: ReactNode;
4
+ panelId: string;
5
+ value: T;
6
+ }
7
+ export interface IChartEditPanelTabsProps<T extends string | number> {
8
+ ariaLabel: string;
9
+ className?: string;
10
+ items: ReadonlyArray<IChartEditPanelTabItem<T>>;
11
+ onChange: (value: T) => void;
12
+ value: T;
13
+ variant?: 'segmented' | 'underline';
14
+ }
15
+ export declare function ChartEditPanelTabs<T extends string | number>(props: IChartEditPanelTabsProps<T>): import("react").JSX.Element;
16
+ export interface IChartEditPanelProps {
17
+ children: ReactNode;
18
+ className?: string;
19
+ id: string;
20
+ label: ReactNode;
21
+ }
22
+ export declare function ChartEditPanel(props: IChartEditPanelProps): import("react").JSX.Element;
23
+ export interface IChartEditBlockTitleProps {
24
+ title: string;
25
+ }
26
+ export declare function ChartEditBlockTitle(props: IChartEditBlockTitleProps): import("react").JSX.Element;
27
+ export interface IChartSectionAccordionProps {
28
+ children: ReactNode;
29
+ className?: string;
30
+ onChange: (value: string | null) => void;
31
+ value: string | null;
32
+ }
33
+ export declare function ChartSectionAccordion(props: IChartSectionAccordionProps): import("react").JSX.Element;
34
+ export interface IChartSectionAccordionItemProps {
35
+ children: ReactNode;
36
+ className?: string;
37
+ id: string;
38
+ }
39
+ export declare function ChartSectionAccordionItem(props: IChartSectionAccordionItemProps): import("react").JSX.Element;
40
+ export interface IChartSectionAccordionTriggerProps {
41
+ children: ReactNode;
42
+ className?: string;
43
+ }
44
+ export declare function ChartSectionAccordionTrigger(props: IChartSectionAccordionTriggerProps): import("react").JSX.Element;
45
+ export interface IChartSectionAccordionContentProps {
46
+ children: ReactNode;
47
+ className?: string;
48
+ }
49
+ export declare function ChartSectionAccordionContent(props: IChartSectionAccordionContentProps): import("react").JSX.Element;
@@ -12,7 +12,7 @@ export declare function appendInlineTableRow<T extends ChartInlineCellValue>(val
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
14
  /**
15
- * Replaces a Docs/Slides/Boards inline table with the complete pasted matrix.
15
+ * Replaces an inline-table adapter's data with the complete pasted matrix.
16
16
  * The matrix follows the starter-data contract: downstream host adapters interpret
17
17
  * row 0 as field names (`dimensions`) and all remaining rows as observations.
18
18
  */
@@ -1,4 +1,4 @@
1
- import type { IChartContext } from '@univerjs-pro/engine-chart';
1
+ import type { ChartPendingConfig, IChartMappingSpec } from '@univerjs-pro/engine-chart';
2
2
  import { ChartTypeBits } from '@univerjs-pro/engine-chart';
3
3
  export interface IChartSemanticFieldOption {
4
4
  label: string;
@@ -18,10 +18,10 @@ export interface IChartSemanticDataFieldLabels {
18
18
  }
19
19
  export interface IChartSemanticDataFieldsProps {
20
20
  chartType: ChartTypeBits | undefined;
21
- context: IChartContext;
21
+ mapping: NonNullable<ChartPendingConfig['mapping']>;
22
22
  fields: IChartSemanticFieldOption[];
23
23
  labels: IChartSemanticDataFieldLabels;
24
- onChange: (patch: Partial<IChartContext>) => void;
24
+ onChange: (patch: Partial<IChartMappingSpec>) => void;
25
25
  }
26
26
  export type ChartSemanticDataFieldKind = 'candlestick' | 'histogram' | 'treemap' | 'category-series';
27
27
  export declare function getChartSemanticDataFieldKind(chartType: ChartTypeBits | undefined): ChartSemanticDataFieldKind;
@@ -1,18 +1,164 @@
1
+ import type { PieSecondaryPlotType as PieSecondaryPlotTypeValue } from '@univerjs-pro/engine-chart';
1
2
  import type { ReactNode } from 'react';
2
3
  import { ChartTypeBits } from '@univerjs-pro/engine-chart';
3
4
  export interface IChartTypeOption<TLabel = ReactNode> {
4
5
  icon?: ReactNode;
6
+ id?: string;
5
7
  label: TLabel;
8
+ pieSecondaryPlotType?: PieSecondaryPlotTypeValue;
6
9
  value: ChartTypeBits;
7
10
  }
8
11
  export interface IChartSelectOption {
12
+ chartType?: ChartTypeBits;
9
13
  label: ReactNode;
14
+ pieSecondaryPlotType?: PieSecondaryPlotTypeValue;
10
15
  value: string;
11
16
  }
17
+ export declare const CompositePieChartTypeOptionId: {
18
+ readonly PieOfPie: "pieOfPie";
19
+ readonly BarOfPie: "barOfPie";
20
+ };
21
+ export declare const CHART_TYPE_CATALOG: readonly [{
22
+ readonly labelId: "line";
23
+ readonly value: ChartTypeBits.Line;
24
+ readonly iconName: "LineChartIcon";
25
+ }, {
26
+ readonly labelId: "column";
27
+ readonly value: ChartTypeBits.Column;
28
+ readonly iconName: "ColumnChartIcon";
29
+ }, {
30
+ readonly labelId: "columnStacked";
31
+ readonly value: ChartTypeBits.ColumnStacked;
32
+ readonly iconName: "ColumnChartIcon";
33
+ }, {
34
+ readonly labelId: "columnPercentStacked";
35
+ readonly value: ChartTypeBits.ColumnPercentStacked;
36
+ readonly iconName: "ColumnChartIcon";
37
+ }, {
38
+ readonly labelId: "bar";
39
+ readonly value: ChartTypeBits.Bar;
40
+ readonly iconName: "BarChartIcon";
41
+ }, {
42
+ readonly labelId: "barStacked";
43
+ readonly value: ChartTypeBits.BarStacked;
44
+ readonly iconName: "BarChartIcon";
45
+ }, {
46
+ readonly labelId: "barPercentStacked";
47
+ readonly value: ChartTypeBits.BarPercentStacked;
48
+ readonly iconName: "BarChartIcon";
49
+ }, {
50
+ readonly labelId: "pie";
51
+ readonly value: ChartTypeBits.Pie;
52
+ readonly iconName: "PieChartIcon";
53
+ }, {
54
+ readonly labelId: "donut";
55
+ readonly value: ChartTypeBits.Doughnut;
56
+ readonly iconName: "PieChartIcon";
57
+ }, {
58
+ readonly id: "pieOfPie";
59
+ readonly labelId: "pieOfPie";
60
+ readonly value: ChartTypeBits.Pie;
61
+ readonly pieSecondaryPlotType: "pie";
62
+ readonly iconName: "PieChartIcon";
63
+ }, {
64
+ readonly id: "barOfPie";
65
+ readonly labelId: "barOfPie";
66
+ readonly value: ChartTypeBits.Pie;
67
+ readonly pieSecondaryPlotType: "bar";
68
+ readonly iconName: "PieChartIcon";
69
+ }, {
70
+ readonly labelId: "area";
71
+ readonly value: ChartTypeBits.Area;
72
+ readonly iconName: "AreaChartIcon";
73
+ }, {
74
+ readonly labelId: "areaStacked";
75
+ readonly value: ChartTypeBits.AreaStacked;
76
+ readonly iconName: "AreaChartIcon";
77
+ }, {
78
+ readonly labelId: "areaPercentStacked";
79
+ readonly value: ChartTypeBits.AreaPercentStacked;
80
+ readonly iconName: "AreaChartIcon";
81
+ }, {
82
+ readonly labelId: "radar";
83
+ readonly value: ChartTypeBits.Radar;
84
+ readonly iconName: "RadarChartIcon";
85
+ }, {
86
+ readonly labelId: "scatter";
87
+ readonly value: ChartTypeBits.Scatter;
88
+ readonly iconName: "ScatterChartIcon";
89
+ }, {
90
+ readonly labelId: "combination";
91
+ readonly value: ChartTypeBits.Combination;
92
+ readonly iconName: "ComboChartIcon";
93
+ }, {
94
+ readonly labelId: "wordCloud";
95
+ readonly value: ChartTypeBits.WordCloud;
96
+ readonly iconName: "CloudOutlineIcon";
97
+ }, {
98
+ readonly labelId: "funnel";
99
+ readonly value: ChartTypeBits.Funnel;
100
+ readonly iconName: "FunnelIcon";
101
+ }, {
102
+ readonly labelId: "bubble";
103
+ readonly value: ChartTypeBits.Bubble;
104
+ readonly iconName: "BubbleIcon";
105
+ }, {
106
+ readonly labelId: "relation";
107
+ readonly value: ChartTypeBits.Relation;
108
+ readonly iconName: "RelationshipIcon";
109
+ }, {
110
+ readonly labelId: "waterfall";
111
+ readonly value: ChartTypeBits.Waterfall;
112
+ readonly iconName: "WaterfallChartIcon";
113
+ }, {
114
+ readonly labelId: "pareto";
115
+ readonly value: ChartTypeBits.Pareto;
116
+ readonly iconName: "ComboChartIcon";
117
+ }, {
118
+ readonly labelId: "sankey";
119
+ readonly value: ChartTypeBits.Sankey;
120
+ readonly iconName: "SankeyIcon";
121
+ }, {
122
+ readonly labelId: "heatmap";
123
+ readonly value: ChartTypeBits.Heatmap;
124
+ readonly iconName: "HeatmapIcon";
125
+ }, {
126
+ readonly labelId: "boxplot";
127
+ readonly value: ChartTypeBits.Boxplot;
128
+ readonly iconName: "BoxplotIcon";
129
+ }, {
130
+ readonly labelId: "candlestick";
131
+ readonly value: ChartTypeBits.Candlestick;
132
+ readonly iconName: "CandlestickChartIcon";
133
+ }, {
134
+ readonly labelId: "histogram";
135
+ readonly value: ChartTypeBits.Histogram;
136
+ readonly iconName: "HistogramChartIcon";
137
+ }, {
138
+ readonly labelId: "treemap";
139
+ readonly value: ChartTypeBits.Treemap;
140
+ readonly iconName: "TreemapChartIcon";
141
+ }, {
142
+ readonly labelId: "sunburst";
143
+ readonly value: ChartTypeBits.Sunburst;
144
+ readonly iconName: "SunburstChartIcon";
145
+ }, {
146
+ readonly labelId: "gauge";
147
+ readonly value: ChartTypeBits.Gauge;
148
+ readonly iconName: "GaugeChartIcon";
149
+ }, {
150
+ readonly labelId: "chord";
151
+ readonly value: ChartTypeBits.Chord;
152
+ readonly iconName: "ChordChartIcon";
153
+ }];
154
+ export type IStaticChartTypeCatalogEntry = Exclude<typeof CHART_TYPE_CATALOG[number], {
155
+ labelId: 'columnStacked' | 'columnPercentStacked' | 'donut';
156
+ }>;
157
+ export declare const STATIC_CHART_TYPE_CATALOG: IStaticChartTypeCatalogEntry[];
158
+ export type ChartTypeLabelId = typeof CHART_TYPE_CATALOG[number]['labelId'];
159
+ export type IChartTypeCatalogEntry = typeof CHART_TYPE_CATALOG[number];
12
160
  export declare const chartTypeToIcon: Partial<Record<ChartTypeBits, ReactNode>>;
13
- export declare function renderChartTypeSelectLabel(label: ReactNode, icon: ReactNode): import("react").JSX.Element;
14
161
  export declare function buildChartTypeSelectOptions<TLabel>(options: readonly IChartTypeOption<TLabel>[], resolveLabel?: (label: TLabel) => ReactNode): IChartSelectOption[];
15
- export declare function renderChartThemeColorStrip(colors: readonly string[]): import("react").JSX.Element;
16
162
  export declare function buildChartThemeSelectOptions(themes: readonly string[], getColors: (theme: string) => string[]): IChartSelectOption[];
17
163
  export interface IChartPrimitiveOption<T extends string = string> {
18
164
  label: string;
@@ -1,4 +1,4 @@
1
- import type { ReactElement } from 'react';
1
+ import type { ReactElement, ReactNode } from 'react';
2
2
  export interface IFontFormatStyle {
3
3
  fontSize: number;
4
4
  color: string;
@@ -11,17 +11,31 @@ export interface IFontFormatStyle {
11
11
  }
12
12
  export type PropertyChangeFunction<T, K extends keyof T = keyof T> = (name: K, value: T[K]) => void;
13
13
  export interface IFontFormatBarProps extends Partial<IFontFormatStyle> {
14
+ alignOptions?: ReadonlyArray<{
15
+ label: ReactNode;
16
+ value: string;
17
+ }>;
14
18
  className?: string;
19
+ colorResetLabel?: ReactNode;
20
+ fontSizeEmptyLabel?: ReactNode;
21
+ fontSizeIsDefault?: boolean;
15
22
  onChange?: PropertyChangeFunction<Omit<IFontFormatStyle, 'controls'>>;
23
+ onColorReset?: () => void;
24
+ onFontSizeReset?: () => void;
16
25
  }
17
26
  export interface IFontSizeSelectorProps {
27
+ emptyLabel?: ReactNode;
28
+ isDefault?: boolean;
18
29
  value?: number;
19
30
  onChange?: (fontSize: number) => void;
31
+ onReset?: () => void;
20
32
  }
21
33
  export declare function FontSizeSelector(props: IFontSizeSelectorProps): ReactElement;
22
34
  export interface IFontColorSelectorProps {
23
35
  color?: string;
36
+ resetLabel?: ReactNode;
24
37
  onChange?: (color: string) => void;
38
+ onReset?: () => void;
25
39
  }
26
40
  export declare function FontColorSelector(props: IFontColorSelectorProps): ReactElement;
27
41
  export interface IFontFormatToggleProps {
@@ -31,6 +45,10 @@ export interface IFontFormatToggleProps {
31
45
  }
32
46
  export declare function FontFormatToggle(props: IFontFormatToggleProps): ReactElement;
33
47
  export interface IFontAlignSelectorProps {
48
+ options?: ReadonlyArray<{
49
+ label: ReactNode;
50
+ value: string;
51
+ }>;
34
52
  value?: string;
35
53
  onChange?: (align: string) => void;
36
54
  }
@@ -1,13 +1,23 @@
1
1
  import type { ChartInlineCellValue } from './ChartInlineTableEditor';
2
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;
3
+ /** Resolved labels required by shared inline-host chart starter tables. */
4
+ export interface IChartInlineStarterDataLabels {
5
+ candlestickClose: string;
6
+ candlestickHigh: string;
7
+ candlestickLow: string;
8
+ candlestickOpen: string;
9
+ category: string;
10
+ chordSource: string;
11
+ chordTarget: string;
12
+ label: string;
13
+ sunburstHierarchy: string;
14
+ value: string;
15
+ valueField: string;
16
+ }
7
17
  /** Returns the editable column floor for inline data owned by a chart type. */
8
18
  export declare function getChartInlineTableMinColumns(chartType: ChartTypeBits): number;
9
19
  /**
10
- * Creates localized starter data shared by the Docs/Slides/Boards inline tables.
20
+ * Creates localized starter data shared by inline-table adapters.
11
21
  * Row 0 contains field names (`dimensions`); later rows are observations.
12
22
  */
13
- export declare function createChartInlineStarterData(chartType: ChartTypeBits, resolveLabel: ChartInlineStarterDataLabelResolver): ChartInlineCellValue[][] | undefined;
23
+ export declare function createChartInlineStarterData(chartType: ChartTypeBits, labels: IChartInlineStarterDataLabels): ChartInlineCellValue[][] | undefined;
@@ -0,0 +1,4 @@
1
+ export declare function useChartPanelInputFocus(): {
2
+ onFocus: () => void;
3
+ onBlur: () => void;
4
+ };
@@ -1,7 +1,9 @@
1
1
  import { Disposable } from '@univerjs/core';
2
- import { ComponentManager } from '@univerjs/ui';
2
+ import { ComponentManager, IconManager } from '@univerjs/ui';
3
3
  export declare class ComponentsController extends Disposable {
4
4
  private readonly _componentManager;
5
- constructor(_componentManager: ComponentManager);
5
+ private readonly _iconManager;
6
+ constructor(_componentManager: ComponentManager, _iconManager: IconManager);
7
+ private _registerIcons;
6
8
  private _registerComponents;
7
9
  }
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { IChartHostAdapter } from '../services/chart-host-adapter';
3
+ import type { IChartUIService } from '../services/chart-ui.service';
4
+ export interface IChartEditorProviderProps {
5
+ children: ReactNode;
6
+ hostAdapter: IChartHostAdapter;
7
+ chartUIService?: IChartUIService;
8
+ }
9
+ export declare function ChartEditorProvider(props: IChartEditorProviderProps): import("react").JSX.Element;
10
+ export declare function useChartHostAdapter(): IChartHostAdapter;
11
+ export declare function useProvidedChartUIService(): IChartUIService | null;
@@ -0,0 +1,28 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { IChartFontValue } from '../../components/ChartFontField';
3
+ import type { IChartSelectFieldOption } from '../../components/ChartSelectField';
4
+ interface IChartFontSource<TAlign extends string> {
5
+ align?: TAlign | null;
6
+ bold?: boolean | null;
7
+ color?: string | null;
8
+ fontSize?: number | null;
9
+ italic?: boolean | null;
10
+ }
11
+ export declare const DEFAULT_CHART_FONT_VALUE: IChartFontValue;
12
+ export declare function normalizeChartFontValue<TAlign extends string = string>(value: IChartFontSource<TAlign> | null | undefined, defaults: IChartFontValue<TAlign>): IChartFontValue<TAlign>;
13
+ export declare function toChartFontStyle(value: Partial<IChartFontValue>): {
14
+ bold?: boolean | undefined;
15
+ color?: string | null | undefined;
16
+ fontSize?: number | null | undefined;
17
+ italic?: boolean | undefined;
18
+ };
19
+ export interface IChartFontAtomProps<TAlign extends string = string> {
20
+ alignLabel?: ReactNode;
21
+ alignOptions?: ReadonlyArray<IChartSelectFieldOption<TAlign>>;
22
+ colorPickerFallbackValue: string;
23
+ label: ReactNode;
24
+ value: IChartFontValue<TAlign>;
25
+ onChange: (patch: Partial<IChartFontValue<TAlign>>) => void;
26
+ }
27
+ export declare function ChartFontAtom<TAlign extends string = string>(props: IChartFontAtomProps<TAlign>): import("react").JSX.Element;
28
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { ComponentType, ReactNode } from 'react';
2
+ export interface IChartNumberFormatAtomProps {
3
+ label: ReactNode;
4
+ value: string | null | undefined;
5
+ onChange: (value: string | null | undefined) => void;
6
+ }
7
+ export type ChartNumberFormatFieldComponent = ComponentType<IChartNumberFormatAtomProps>;
8
+ export declare function ChartNumberFormatTextField(props: IChartNumberFormatAtomProps): import("react").JSX.Element;
9
+ export declare function ChartNumberFormatAtom(props: IChartNumberFormatAtomProps): import("react").JSX.Element;
@@ -0,0 +1,28 @@
1
+ export declare enum ChartNumberFormatKind {
2
+ General = "general",
3
+ Accounting = "accounting",
4
+ Currency = "currency",
5
+ Date = "date",
6
+ Thousands = "thousands"
7
+ }
8
+ export declare const CHART_NUMBER_FORMAT_MAX_DECIMAL_PLACES = 20;
9
+ export declare const CHART_NUMBER_FORMAT_MIN_DECIMAL_PLACES = 0;
10
+ export declare const CHART_DATE_FORMAT_OPTIONS: {
11
+ label: string;
12
+ value: "yyyy-MM-dd" | "yyyy/MM/dd" | "yyyy\"年\"MM\"月\"dd\"日\"" | "MM-dd" | "M\"月\"d\"日\"" | "h:mm:ss" | "h:mm" | "A/P hh:mm" | "A/P h:mm" | "A/P h:mm:ss" | "MM-dd A/P hh:mm";
13
+ }[];
14
+ export declare const CHART_THOUSANDS_FORMAT_OPTIONS: {
15
+ color: string | undefined;
16
+ label: string;
17
+ value: "#,##0_);(#,##0)" | "#,##0_);[Red](#,##0)" | "#,##0.00_);#,##0.00" | "#,##0.00_);[Red]#,##0.00" | "#,##0.00_);-#,##0.00" | "#,##0.00_);[Red]-#,##0.00";
18
+ }[];
19
+ export declare function getChartCurrencyFormatOptions(symbol: string): {
20
+ color: string | undefined;
21
+ label: string;
22
+ value: string;
23
+ }[];
24
+ export declare function getChartNumberFormatCurrency(pattern: string): string;
25
+ export declare function getChartNumberFormatDecimalPlaces(pattern: string, fallback?: number): number;
26
+ export declare function setChartNumberFormatDecimalPlaces(patterns: string, decimalPlaces: number): string;
27
+ export declare function buildChartAccountingFormat(symbol: string, decimalPlaces: number): string;
28
+ export declare function resolveChartNumberFormatKind(pattern: string | null | undefined): ChartNumberFormatKind;
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartCheckboxFieldProps {
3
+ checked: boolean;
4
+ disabled?: boolean;
5
+ error?: ReactNode;
6
+ help?: ReactNode;
7
+ inlineLabel?: boolean;
8
+ label: ReactNode;
9
+ onChange: (checked: boolean) => void;
10
+ }
11
+ export declare function ChartCheckboxField(props: IChartCheckboxFieldProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartColorFieldProps {
3
+ disabled?: boolean;
4
+ emptyLabel: ReactNode;
5
+ error?: ReactNode;
6
+ help?: ReactNode;
7
+ label: ReactNode;
8
+ onChange: (value: string | null) => void;
9
+ pickerFallbackValue: string;
10
+ resetLabel?: ReactNode;
11
+ value: string | null;
12
+ }
13
+ export declare function ChartColorField(props: IChartColorFieldProps): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartFieldControlProps {
3
+ 'aria-describedby'?: string;
4
+ 'aria-invalid'?: boolean;
5
+ 'aria-labelledby'?: string;
6
+ id: string;
7
+ }
8
+ export interface IChartFieldProps {
9
+ children: ReactNode | ((controlProps: IChartFieldControlProps) => ReactNode);
10
+ disabled?: boolean;
11
+ error?: ReactNode;
12
+ help?: ReactNode;
13
+ label: ReactNode;
14
+ }
15
+ export declare function ChartField(props: IChartFieldProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartFieldGroupProps {
3
+ children: ReactNode;
4
+ disabled?: boolean;
5
+ error?: ReactNode;
6
+ help?: ReactNode;
7
+ label: ReactNode;
8
+ }
9
+ export declare function ChartFieldGroup(props: IChartFieldGroupProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartFieldGroupTitleProps {
3
+ children: ReactNode;
4
+ endSlot?: ReactNode;
5
+ }
6
+ export declare function ChartFieldGroupTitle(props: IChartFieldGroupTitleProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartFieldRowProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare function ChartFieldRow(props: IChartFieldRowProps): import("react").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { IChartSelectFieldOption } from './ChartSelectField';
3
+ export interface IChartFontValue<T extends string = string> {
4
+ align?: T;
5
+ bold: boolean;
6
+ color: string | null;
7
+ fontSize: number | null;
8
+ italic: boolean;
9
+ }
10
+ export interface IChartFontFieldProps<T extends string = string> {
11
+ alignLabel?: ReactNode;
12
+ alignOptions?: ReadonlyArray<IChartSelectFieldOption<T>>;
13
+ boldLabel: ReactNode;
14
+ colorEmptyLabel: ReactNode;
15
+ colorLabel: ReactNode;
16
+ colorPickerFallbackValue: string;
17
+ colorResetLabel: ReactNode;
18
+ disabled?: boolean;
19
+ error?: ReactNode;
20
+ fontSizeEmptyLabel: ReactNode;
21
+ fontSizeLabel: ReactNode;
22
+ help?: ReactNode;
23
+ italicLabel: ReactNode;
24
+ label: ReactNode;
25
+ onChange: <K extends keyof IChartFontValue<T>>(key: K, value: IChartFontValue<T>[K]) => void;
26
+ value: IChartFontValue<T>;
27
+ }
28
+ export declare function ChartFontField<T extends string = string>(props: IChartFontFieldProps<T>): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface IChartImageSelectOption {
3
+ imageSrc: string;
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export interface IChartImageSelectFieldProps {
8
+ label: ReactNode;
9
+ options: IChartImageSelectOption[];
10
+ value?: string;
11
+ onChange: (value: string) => void;
12
+ }
13
+ export declare function ChartImageSelectField(props: IChartImageSelectFieldProps): import("react").JSX.Element | null;
@@ -0,0 +1,18 @@
1
+ import type { Key, ReactNode } from 'react';
2
+ export interface IChartListFieldProps<T> {
3
+ addLabel?: ReactNode;
4
+ disabled?: boolean;
5
+ error?: ReactNode;
6
+ getItemKey: (item: T, index: number) => Key;
7
+ items: readonly T[];
8
+ label: ReactNode;
9
+ help?: ReactNode;
10
+ moveDownLabel?: (index: number, item: T) => string;
11
+ moveUpLabel?: (index: number, item: T) => string;
12
+ onAdd?: () => void;
13
+ onMove?: (fromIndex: number, toIndex: number) => void;
14
+ onRemove: (index: number) => void;
15
+ removeLabel: (index: number, item: T) => string;
16
+ renderItem: (item: T, index: number) => ReactNode;
17
+ }
18
+ export declare function ChartListField<T>(props: IChartListFieldProps<T>): import("react").JSX.Element;