@univerjs-pro/chart-ui 1.0.1 → 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 +9 -12
  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(_0x32269c,_0x126dbb){var _0x2c9810=_0x5118,_0x59b309=_0x32269c();while(!![]){try{var _0x4911b2=-parseInt(_0x2c9810(0x95))/0x1+-parseInt(_0x2c9810(0x83))/0x2*(parseInt(_0x2c9810(0x97))/0x3)+-parseInt(_0x2c9810(0x93))/0x4*(-parseInt(_0x2c9810(0x87))/0x5)+parseInt(_0x2c9810(0x91))/0x6*(-parseInt(_0x2c9810(0x88))/0x7)+-parseInt(_0x2c9810(0x8b))/0x8*(parseInt(_0x2c9810(0x92))/0x9)+parseInt(_0x2c9810(0x94))/0xa*(-parseInt(_0x2c9810(0x86))/0xb)+-parseInt(_0x2c9810(0x8e))/0xc*(-parseInt(_0x2c9810(0x90))/0xd);if(_0x4911b2===_0x126dbb)break;else _0x59b309['push'](_0x59b309['shift']());}catch(_0x4a44a9){_0x59b309['push'](_0x59b309['shift']());}}}(_0x2b0f,0x898f8),function(_0x24f8fd,_0x1dda3c){var _0x5735ba=_0x5118;typeof exports==_0x5735ba(0x81)&&typeof module<'u'?_0x1dda3c(require('@univerjs-pro/chart-ui'),require('@univerjs-pro/engine-chart/facade')):typeof define==_0x5735ba(0x84)&&define['amd']?define([_0x5735ba(0x80),_0x5735ba(0x8f)],_0x1dda3c):(_0x24f8fd=typeof globalThis<'u'?globalThis:_0x24f8fd||self,_0x1dda3c(_0x24f8fd[_0x5735ba(0x82)],_0x24f8fd[_0x5735ba(0x96)]));}(this,function(_0x1dd6b8,_0x27129b){var _0x41c318=_0x5118,_0x473cad=class extends _0x27129b[_0x41c318(0x8c)]{[_0x41c318(0x89)](_0x508edc){var _0xd3412c=_0x41c318;return this[_0xd3412c(0x8d)][_0xd3412c(0x85)](_0x1dd6b8[_0xd3412c(0x7f)])[_0xd3412c(0x89)](this,_0x508edc);}};_0x27129b[_0x41c318(0x8c)][_0x41c318(0x8a)](_0x473cad);}));function _0x5118(_0x39d2ee,_0x5ef4ed){_0x39d2ee=_0x39d2ee-0x7f;var _0x2b0f0f=_0x2b0f();var _0x511837=_0x2b0f0f[_0x39d2ee];return _0x511837;}function _0x2b0f(){var _0x2a8cd4=['859948eNDoGo','function','get','242FaUmpA','5fFpDPw','1201403nNduVI','exportImage','extend','2264FKUhgO','FChart','_injector','20220CTlZSI','@univerjs-pro/engine-chart/facade','26689EmupRA','6PdHCYN','31689VLVsdv','1558300gagbUw','500610kyziaL','156070rwhkQP','UniverProEngineChartFacade','6NaPagF','ChartImageExportService','@univerjs-pro/chart-ui','object','UniverProChartUi'];_0x2b0f=function(){return _0x2a8cd4;};return _0x2b0f();}
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);}));