@univerjs-pro/chart-ui 1.0.2 → 1.0.3

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 (94) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/components/ChartDataSourceStatusView.d.ts +12 -0
  65. package/lib/types/components/ChartEditorTabs.d.ts +18 -0
  66. package/lib/types/components/ChartSetupPanel.d.ts +14 -0
  67. package/lib/types/editor/ChartEditorProvider.d.ts +0 -2
  68. package/lib/types/editor/sections/ChartSetupSections.d.ts +2 -2
  69. package/lib/types/index.d.ts +6 -2
  70. package/lib/types/locale/en-US.d.ts +4 -4
  71. package/lib/umd/facade.js +1 -1
  72. package/lib/umd/index.js +1 -1
  73. package/lib/umd/locale/ar-SA.js +1 -1
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -1
  81. package/lib/umd/locale/it-IT.js +1 -1
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -1
  85. package/lib/umd/locale/pt-BR.js +1 -1
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -1
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +8 -11
  93. package/lib/types/components/ChartReferencedDataSourceEditor.d.ts +0 -11
  94. package/lib/types/services/chart-referenced-data-source-binding.service.d.ts +0 -13
@@ -1,7 +1,6 @@
1
1
  import type { ComponentProps, ComponentType, ReactNode } from 'react';
2
2
  import type { IChartHostAdapter } from '../services/chart-host-adapter';
3
3
  import type { IChartUIService } from '../services/chart-ui.service';
4
- import { ReferencedUnitViewer } from '@univerjs-pro/embed-unit-ui';
5
4
  import { Button, ColorPicker, Dialog, Dropdown, DropdownMenu, Input, InputNumber, Select } from '@univerjs/design';
6
5
  export interface IChartEditorComponents {
7
6
  ButtonComponent: ComponentType<ComponentProps<typeof Button>>;
@@ -10,7 +9,6 @@ export interface IChartEditorComponents {
10
9
  SelectTriggerComponent: ComponentType<ComponentProps<'button'>>;
11
10
  TableCellComponent: ComponentType<ComponentProps<'input'>>;
12
11
  TableViewportComponent: ComponentType<ComponentProps<'div'>>;
13
- ReferencedFrameComponent: ComponentType<ComponentProps<typeof ReferencedUnitViewer.Frame>>;
14
12
  ColorPickerComponent: typeof ColorPicker;
15
13
  DialogComponent: typeof Dialog;
16
14
  DropdownComponent: typeof Dropdown;
@@ -16,6 +16,6 @@ export interface IChartWaterfallSetupDefaultValues {
16
16
  }
17
17
  export declare const DEFAULT_CHART_WATERFALL_SETUP_VALUES: IChartWaterfallSetupDefaultValues;
18
18
  export interface IChartWaterfallSetupFieldsProps {
19
- defaultValues: IChartWaterfallSetupDefaultValues;
19
+ defaultValues?: IChartWaterfallSetupDefaultValues;
20
20
  }
21
- export declare function ChartWaterfallSetupFields(props: IChartWaterfallSetupFieldsProps): import("react").JSX.Element | null;
21
+ export declare function ChartWaterfallSetupFields({ defaultValues, }: IChartWaterfallSetupFieldsProps): import("react").JSX.Element | null;
@@ -5,12 +5,16 @@ export { CHART_DOM_HOST_Z_INDEX, CHART_HOST_BORDER_RADIUS, MIN_CHART_HOST_DIMENS
5
5
  export { ChartPointMappingStateKey } from './chart-state/constants';
6
6
  export { createChartInlineStarterData, getChartInlineTableMinColumns } from './components/chart-inline-starter-data';
7
7
  export type { IChartInlineStarterDataLabels } from './components/chart-inline-starter-data';
8
+ export { ChartDataSourceStatusView } from './components/ChartDataSourceStatusView';
9
+ export type { IChartDataSourceStatusMessages, IChartDataSourceStatusViewProps } from './components/ChartDataSourceStatusView';
10
+ export { ChartEditorTabs } from './components/ChartEditorTabs';
11
+ export type { IChartEditorTab, IChartEditorTabsProps } from './components/ChartEditorTabs';
8
12
  export { ChartEditBlockTitle, ChartEditPanel, ChartEditPanelTabs, ChartSectionAccordion, ChartSectionAccordionContent, ChartSectionAccordionItem, ChartSectionAccordionTrigger, } from './components/ChartEditPanel';
9
13
  export type { IChartEditBlockTitleProps, IChartEditPanelProps, IChartEditPanelTabItem, IChartEditPanelTabsProps, IChartSectionAccordionContentProps, IChartSectionAccordionItemProps, IChartSectionAccordionProps, IChartSectionAccordionTriggerProps, } from './components/ChartEditPanel';
10
14
  export { appendInlineTableColumn, appendInlineTableRow, applyInlineTablePaste, ChartInlineTableEditor, coerceInlineTableCell, compactInlineTableValues, normalizeInlineTableValues, } from './components/ChartInlineTableEditor';
11
15
  export type { ChartInlineCellValue, IChartInlineTableEditorProps, } from './components/ChartInlineTableEditor';
12
- export { ChartReferencedDataSourceEditor } from './components/ChartReferencedDataSourceEditor';
13
- export type { ChartDataSourceEditorMode, IChartReferencedDataSourceEditorProps, } from './components/ChartReferencedDataSourceEditor';
16
+ export { ChartSetupPanel } from './components/ChartSetupPanel';
17
+ export type { IChartSetupPanelProps } from './components/ChartSetupPanel';
14
18
  export { buildChartThemeSelectOptions, buildChartTypeSelectOptions, CHART_TYPE_CATALOG, chartBorderWidthValues, chartLinePointSizeValues, chartOpacityValues, chartTickLengthValues, chartTickWidthValues, chartTypeToIcon, createPercentOptions, createPxOptions, } from './components/ChartTypeOptions';
15
19
  export type { ChartTypeLabelId, IChartPrimitiveOption, IChartSelectOption, IChartTypeCatalogEntry, IChartTypeOption, } from './components/ChartTypeOptions';
16
20
  export { ColorPickerControl } from './components/ColorPickerControl';
@@ -1,9 +1,9 @@
1
1
  declare const locale: {
2
2
  'chart-ui': {
3
- dataSource: {
4
- inlineMode: string;
5
- referencedMode: string;
6
- sourceType: string;
3
+ dataSourceStatus: {
4
+ loading: string;
5
+ unavailable: string;
6
+ refreshError: string;
7
7
  };
8
8
  editor: {
9
9
  defaultColor: string;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5c4e(_0x25a816,_0x4d4f4e){_0x25a816=_0x25a816-0x1ee;var _0x1ffbb4=_0x1ffb();var _0x5c4e47=_0x1ffbb4[_0x25a816];return _0x5c4e47;}function _0x1ffb(){var _0x27c9ee=['11665kAhZaU','606680ugSAIR','2187981wtqcOh','14928UdJbZE','@univerjs-pro/engine-chart/facade','function','object','get','175ZPcWca','839850ZHEdzo','exportImage','3304756negxEI','ChartImageExportService','UniverProChartUi','amd','330eArjvM','_injector','3fENnsv','538467SXIeYv','FChart'];_0x1ffb=function(){return _0x27c9ee;};return _0x1ffb();}(function(_0x49491e,_0x3915b6){var _0x362996=_0x5c4e,_0x394ffe=_0x49491e();while(!![]){try{var _0x860f40=-parseInt(_0x362996(0x1f1))/0x1+parseInt(_0x362996(0x1fc))/0x2+-parseInt(_0x362996(0x1f0))/0x3*(-parseInt(_0x362996(0x1fe))/0x4)+-parseInt(_0x362996(0x1f3))/0x5*(-parseInt(_0x362996(0x1ee))/0x6)+parseInt(_0x362996(0x1fb))/0x7*(-parseInt(_0x362996(0x1f6))/0x8)+-parseInt(_0x362996(0x1f5))/0x9+-parseInt(_0x362996(0x1f4))/0xa;if(_0x860f40===_0x3915b6)break;else _0x394ffe['push'](_0x394ffe['shift']());}catch(_0xea6326){_0x394ffe['push'](_0x394ffe['shift']());}}}(_0x1ffb,0x7689f),function(_0x7a0cea,_0x43e7f0){var _0x2b7490=_0x5c4e;typeof exports==_0x2b7490(0x1f9)&&typeof module<'u'?_0x43e7f0(require('@univerjs-pro/chart-ui'),require('@univerjs-pro/engine-chart/facade')):typeof define==_0x2b7490(0x1f8)&&define[_0x2b7490(0x201)]?define(['@univerjs-pro/chart-ui',_0x2b7490(0x1f7)],_0x43e7f0):(_0x7a0cea=typeof globalThis<'u'?globalThis:_0x7a0cea||self,_0x43e7f0(_0x7a0cea[_0x2b7490(0x200)],_0x7a0cea['UniverProEngineChartFacade']));}(this,function(_0x4ea1af,_0x1bb015){var _0x1c02d8=_0x5c4e,_0x33fd0b=class extends _0x1bb015[_0x1c02d8(0x1f2)]{[_0x1c02d8(0x1fd)](_0x4eb1bc){var _0x68c456=_0x1c02d8;return this[_0x68c456(0x1ef)][_0x68c456(0x1fa)](_0x4ea1af[_0x68c456(0x1ff)])['exportImage'](this,_0x4eb1bc);}};_0x1bb015[_0x1c02d8(0x1f2)]['extend'](_0x33fd0b);}));
1
+ function _0x14bb(_0x396711,_0x4259b6){_0x396711=_0x396711-0x9e;var _0xcb17f0=_0xcb17();var _0x14bbb5=_0xcb17f0[_0x396711];return _0x14bbb5;}function _0xcb17(){var _0x36a505=['338495hmBVaa','9gTMZeb','function','extend','2043Jqytsa','2LZjdKc','_injector','FChart','exportImage','object','5256670PZhJTB','UniverProEngineChartFacade','18XvPxzm','64103FraAaa','amd','1161884vDsZkx','22cWfLBE','UniverProChartUi','@univerjs-pro/chart-ui','30032gmBJoh','897792VVLrqZ','841965JtmUAh','156oTERWn','get'];_0xcb17=function(){return _0x36a505;};return _0xcb17();}(function(_0x42f75a,_0x528bc0){var _0x241858=_0x14bb,_0x229f6e=_0x42f75a();while(!![]){try{var _0x5fc7d=-parseInt(_0x241858(0xb1))/0x1*(parseInt(_0x241858(0x9e))/0x2)+-parseInt(_0x241858(0xb2))/0x3*(-parseInt(_0x241858(0xa8))/0x4)+-parseInt(_0x241858(0xae))/0x5*(-parseInt(_0x241858(0xa5))/0x6)+-parseInt(_0x241858(0xad))/0x7+parseInt(_0x241858(0xac))/0x8*(parseInt(_0x241858(0xb5))/0x9)+-parseInt(_0x241858(0xa3))/0xa*(parseInt(_0x241858(0xa9))/0xb)+-parseInt(_0x241858(0xaf))/0xc*(parseInt(_0x241858(0xa6))/0xd);if(_0x5fc7d===_0x528bc0)break;else _0x229f6e['push'](_0x229f6e['shift']());}catch(_0x588896){_0x229f6e['push'](_0x229f6e['shift']());}}}(_0xcb17,0x9dda2),function(_0x5abc14,_0xc5435){var _0x2aef6=_0x14bb;typeof exports==_0x2aef6(0xa2)&&typeof module<'u'?_0xc5435(require('@univerjs-pro/chart-ui'),require('@univerjs-pro/engine-chart/facade')):typeof define==_0x2aef6(0xb3)&&define[_0x2aef6(0xa7)]?define([_0x2aef6(0xab),'@univerjs-pro/engine-chart/facade'],_0xc5435):(_0x5abc14=typeof globalThis<'u'?globalThis:_0x5abc14||self,_0xc5435(_0x5abc14[_0x2aef6(0xaa)],_0x5abc14[_0x2aef6(0xa4)]));}(this,function(_0x554837,_0x1fb3a2){var _0x52975b=_0x14bb,_0x7aaf38=class extends _0x1fb3a2[_0x52975b(0xa0)]{[_0x52975b(0xa1)](_0x3c7923){var _0x2f0fbd=_0x52975b;return this[_0x2f0fbd(0x9f)][_0x2f0fbd(0xb0)](_0x554837['ChartImageExportService'])['exportImage'](this,_0x3c7923);}};_0x1fb3a2['FChart'][_0x52975b(0xb4)](_0x7aaf38);}));