@univerjs-pro/sheets-shape-ui 1.0.3 → 1.1.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 (98) 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.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +22 -22
  82. package/lib/types/commands/command/set-shape-text-align.command.d.ts +0 -5
  83. package/lib/types/commands/command/set-shape-text-style.command.d.ts +0 -7
  84. package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +0 -5
  85. package/lib/types/commands/command/shape-doc-align.command.d.ts +0 -10
  86. package/lib/types/commands/menu/menu-dependencies.d.ts +0 -2
  87. package/lib/types/commands/menu/object-list.menu.d.ts +0 -4
  88. package/lib/types/commands/menu/shape-doc-format.menu.d.ts +0 -19
  89. package/lib/types/commands/menu/shape-font-size.menu.d.ts +0 -6
  90. package/lib/types/commands/menu/shape-text-align.menu.d.ts +0 -10
  91. package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +0 -10
  92. package/lib/types/commands/operations/actvie-drawing-operation.d.ts +0 -2
  93. package/lib/types/view-model/shape-data-model.d.ts +0 -8
  94. package/lib/types/views/ShapeOptions.d.ts +0 -26
  95. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -12
  96. package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
  97. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -2
  98. package/lib/types/views/shapes.d.ts +0 -58
@@ -1,10 +0,0 @@
1
- import type { HorizontalAlign, ICommand } from '@univerjs/core';
2
- export interface IShapeDocAlignCommandParams {
3
- value: HorizontalAlign;
4
- }
5
- /**
6
- * Wrapper command for shape text horizontal alignment.
7
- * This command receives the value from the menu selector and forwards it
8
- * to the Doc's AlignOperationCommand with the correct parameter format.
9
- */
10
- export declare const ShapeDocAlignCommand: ICommand<IShapeDocAlignCommandParams>;
@@ -1,2 +0,0 @@
1
- import type { DependencyIdentifier, IAccessor } from '@univerjs/core';
2
- export declare function getOptionalMenuDependency<T>(accessor: IAccessor, identifier: DependencyIdentifier<T>): T | null;
@@ -1,4 +0,0 @@
1
- import type { IAccessor } from '@univerjs/core';
2
- import type { IMenuButtonItem } from '@univerjs/ui';
3
- import type { LocaleKey } from '../../locale/types';
4
- export declare function SheetShapeObjectListMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
@@ -1,19 +0,0 @@
1
- import type { IAccessor } from '@univerjs/core';
2
- import type { IMenuSelectorItem } from '@univerjs/ui';
3
- import type { LocaleKey } from '../../locale/types';
4
- import { HorizontalAlign } from '@univerjs/core';
5
- import { MenuItemType } from '@univerjs/ui';
6
- import { Observable } from 'rxjs';
7
- export declare const SHAPE_HORIZONTAL_ALIGN_CHILDREN: {
8
- label: string;
9
- icon: string;
10
- value: HorizontalAlign;
11
- }[];
12
- export declare function ShapeHorizontalAlignMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey, HorizontalAlign>;
13
- export declare function ShapeBackgroundColorSelectorMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey, string | undefined>;
14
- export declare function ShapeResetBackgroundColorMenuItemFactory(accessor: IAccessor): {
15
- id: string;
16
- type: MenuItemType;
17
- title: string;
18
- hidden$: Observable<boolean>;
19
- };
@@ -1,6 +0,0 @@
1
- import type { IAccessor } from '@univerjs/core';
2
- import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
3
- import type { LocaleKey } from '../../locale/types';
4
- export declare function ShapeFontSizeSelectorMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey, number>;
5
- export declare function ShapeFontSizeIncreaseMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
6
- export declare function ShapeFontSizeDecreaseMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
@@ -1,10 +0,0 @@
1
- import type { IAccessor } from '@univerjs/core';
2
- import type { IMenuSelectorItem } from '@univerjs/ui';
3
- import type { LocaleKey } from '../../locale/types';
4
- import { HorizontalAlign } from '@univerjs/core';
5
- export declare const SHAPE_HORIZONTAL_ALIGN_CHILDREN: {
6
- label: string;
7
- icon: string;
8
- value: HorizontalAlign;
9
- }[];
10
- export declare function ShapeTextHorizontalAlignMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey, HorizontalAlign>;
@@ -1,10 +0,0 @@
1
- import type { IAccessor } from '@univerjs/core';
2
- import type { IMenuSelectorItem } from '@univerjs/ui';
3
- import type { LocaleKey } from '../../locale/types';
4
- import { VerticalAlign } from '@univerjs/core';
5
- export declare const SHAPE_VERTICAL_ALIGN_CHILDREN: {
6
- label: string;
7
- icon: string;
8
- value: VerticalAlign;
9
- }[];
10
- export declare function ShapeVerticalAlignMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<LocaleKey, VerticalAlign>;
@@ -1,2 +0,0 @@
1
- import type { IDrawingSearch, IOperation } from '@univerjs/core';
2
- export declare const ActiveDrawingSelectedOperation: IOperation<IDrawingSearch[]>;
@@ -1,8 +0,0 @@
1
- import type { IShapeTextDataModel } from '@univerjs-pro/engine-shape';
2
- import type { HorizontalAlign, IDocumentData, VerticalAlign } from '@univerjs/core';
3
- /**
4
- * @deprecated Use `IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>`
5
- * from `@univerjs-pro/engine-shape`. This alias is kept for legacy sheets-shape
6
- * callers while shape text is converging across products.
7
- */
8
- export type IShapeTextModel = IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>;
@@ -1,26 +0,0 @@
1
- import { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- export declare const shapeTypeOptions: (ShapeTypeEnum | {
3
- type: ShapeTypeEnum;
4
- endArrow: boolean;
5
- startArrow?: undefined;
6
- horizontal?: undefined;
7
- vertical?: undefined;
8
- } | {
9
- type: ShapeTypeEnum;
10
- endArrow: boolean;
11
- startArrow: boolean;
12
- horizontal?: undefined;
13
- vertical?: undefined;
14
- } | {
15
- type: ShapeTypeEnum;
16
- horizontal: boolean;
17
- endArrow?: undefined;
18
- startArrow?: undefined;
19
- vertical?: undefined;
20
- } | {
21
- type: ShapeTypeEnum;
22
- vertical: boolean;
23
- endArrow?: undefined;
24
- startArrow?: undefined;
25
- horizontal?: undefined;
26
- })[];
@@ -1,12 +0,0 @@
1
- import type * as ReactTypes from "react";
2
- import type { IShapeData } from '@univerjs-pro/engine-shape';
3
- interface IShapeLineProps {
4
- unitId: string;
5
- subUnitId: string;
6
- shapeId: string;
7
- shapeData: IShapeData;
8
- isLineShape: boolean;
9
- disableShapeOption: boolean;
10
- }
11
- export declare function ShapeLineEditor(props: IShapeLineProps): ReactTypes.JSX.Element;
12
- export {};
@@ -1 +0,0 @@
1
- export { ShapeEditPanel } from './ShapeEditorPanel';
@@ -1,2 +0,0 @@
1
- import type * as ReactTypes from "react";
2
- export declare function ShapeTextFloatToolbar(): ReactTypes.JSX.Element;
@@ -1,58 +0,0 @@
1
- import { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- export declare enum ShapeGroupEnum {
3
- Line = "line",
4
- Rectangle = "rectangle",
5
- BasicShape = "basicShape",
6
- BlockArrow = "blockArrow",
7
- EquationShape = "equationShape",
8
- Flowchart = "flowchart",
9
- StarAndBanner = "starAndBanner",
10
- Callout = "callout",
11
- Other = "other"
12
- }
13
- export declare const shapeTypeOptions: ({
14
- group: ShapeGroupEnum;
15
- type: ShapeTypeEnum;
16
- icon: string;
17
- name: string;
18
- endArrow?: undefined;
19
- startArrow?: undefined;
20
- horizontal?: undefined;
21
- vertical?: undefined;
22
- } | {
23
- group: ShapeGroupEnum;
24
- type: ShapeTypeEnum;
25
- icon: string;
26
- name: string;
27
- endArrow: boolean;
28
- startArrow?: undefined;
29
- horizontal?: undefined;
30
- vertical?: undefined;
31
- } | {
32
- group: ShapeGroupEnum;
33
- type: ShapeTypeEnum;
34
- icon: string;
35
- name: string;
36
- endArrow: boolean;
37
- startArrow: boolean;
38
- horizontal?: undefined;
39
- vertical?: undefined;
40
- } | {
41
- group: ShapeGroupEnum;
42
- type: ShapeTypeEnum;
43
- icon: string;
44
- name: string;
45
- horizontal: boolean;
46
- endArrow?: undefined;
47
- startArrow?: undefined;
48
- vertical?: undefined;
49
- } | {
50
- group: ShapeGroupEnum;
51
- type: ShapeTypeEnum;
52
- icon: string;
53
- name: string;
54
- vertical: boolean;
55
- endArrow?: undefined;
56
- startArrow?: undefined;
57
- horizontal?: undefined;
58
- })[];