@univerjs/sheets-ui 1.3.0 → 1.4.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 (97) hide show
  1. package/lib/cjs/facade.js +9 -12
  2. package/lib/cjs/index.js +794 -948
  3. package/lib/cjs/locale/ar-SA.js +1 -2
  4. package/lib/cjs/locale/ca-ES.js +1 -2
  5. package/lib/cjs/locale/de-DE.js +1 -2
  6. package/lib/cjs/locale/en-US.js +1 -2
  7. package/lib/cjs/locale/es-ES.js +1 -2
  8. package/lib/cjs/locale/fa-IR.js +1 -2
  9. package/lib/cjs/locale/fr-FR.js +1 -2
  10. package/lib/cjs/locale/id-ID.js +1 -2
  11. package/lib/cjs/locale/it-IT.js +1 -2
  12. package/lib/cjs/locale/ja-JP.js +1 -2
  13. package/lib/cjs/locale/ko-KR.js +1 -2
  14. package/lib/cjs/locale/pl-PL.js +1 -2
  15. package/lib/cjs/locale/pt-BR.js +1 -2
  16. package/lib/cjs/locale/ru-RU.js +1 -2
  17. package/lib/cjs/locale/sk-SK.js +1 -2
  18. package/lib/cjs/locale/vi-VN.js +1 -2
  19. package/lib/cjs/locale/zh-CN.js +1 -2
  20. package/lib/cjs/locale/zh-HK.js +1 -2
  21. package/lib/cjs/locale/zh-TW.js +1 -2
  22. package/lib/es/facade.js +9 -12
  23. package/lib/es/index.js +795 -949
  24. package/lib/es/locale/ar-SA.js +1 -2
  25. package/lib/es/locale/ca-ES.js +1 -2
  26. package/lib/es/locale/de-DE.js +1 -2
  27. package/lib/es/locale/en-US.js +1 -2
  28. package/lib/es/locale/es-ES.js +1 -2
  29. package/lib/es/locale/fa-IR.js +1 -2
  30. package/lib/es/locale/fr-FR.js +1 -2
  31. package/lib/es/locale/id-ID.js +1 -2
  32. package/lib/es/locale/it-IT.js +1 -2
  33. package/lib/es/locale/ja-JP.js +1 -2
  34. package/lib/es/locale/ko-KR.js +1 -2
  35. package/lib/es/locale/pl-PL.js +1 -2
  36. package/lib/es/locale/pt-BR.js +1 -2
  37. package/lib/es/locale/ru-RU.js +1 -2
  38. package/lib/es/locale/sk-SK.js +1 -2
  39. package/lib/es/locale/vi-VN.js +1 -2
  40. package/lib/es/locale/zh-CN.js +1 -2
  41. package/lib/es/locale/zh-HK.js +1 -2
  42. package/lib/es/locale/zh-TW.js +1 -2
  43. package/lib/facade.js +9 -12
  44. package/lib/index.css +9 -4
  45. package/lib/index.js +795 -949
  46. package/lib/locale/ar-SA.js +1 -2
  47. package/lib/locale/ca-ES.js +1 -2
  48. package/lib/locale/de-DE.js +1 -2
  49. package/lib/locale/en-US.js +1 -2
  50. package/lib/locale/es-ES.js +1 -2
  51. package/lib/locale/fa-IR.js +1 -2
  52. package/lib/locale/fr-FR.js +1 -2
  53. package/lib/locale/id-ID.js +1 -2
  54. package/lib/locale/it-IT.js +1 -2
  55. package/lib/locale/ja-JP.js +1 -2
  56. package/lib/locale/ko-KR.js +1 -2
  57. package/lib/locale/pl-PL.js +1 -2
  58. package/lib/locale/pt-BR.js +1 -2
  59. package/lib/locale/ru-RU.js +1 -2
  60. package/lib/locale/sk-SK.js +1 -2
  61. package/lib/locale/vi-VN.js +1 -2
  62. package/lib/locale/zh-CN.js +1 -2
  63. package/lib/locale/zh-HK.js +1 -2
  64. package/lib/locale/zh-TW.js +1 -2
  65. package/lib/types/controllers/cell-custom-render.controller.d.ts +3 -0
  66. package/lib/types/controllers/components.controller.d.ts +0 -1
  67. package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +5 -3
  68. package/lib/types/controllers/render-controllers/mobile/mobile-header-resize.render-controller.d.ts +7 -3
  69. package/lib/types/menu/utils.d.ts +46 -1
  70. package/lib/types/services/auto-height.service.d.ts +2 -1
  71. package/lib/types/services/canvas-pop-manager.service.d.ts +3 -1
  72. package/lib/types/services/cell-dropdown-manager.service.d.ts +1 -1
  73. package/lib/types/services/clipboard/clipboard.service.d.ts +21 -21
  74. package/lib/types/services/clipboard/html-to-usm/utils.d.ts +3 -3
  75. package/lib/types/services/clipboard/utils.d.ts +1 -1
  76. package/lib/types/services/editor/cell-editor-manager.service.d.ts +1 -1
  77. package/lib/types/services/editor/formula-editor-manager.service.d.ts +1 -1
  78. package/lib/types/services/editor-bridge.service.d.ts +8 -8
  79. package/lib/types/services/format-painter/format-painter.service.d.ts +1 -1
  80. package/lib/types/services/mark-selection/mark-selection.service.d.ts +1 -1
  81. package/lib/types/services/repeat-last-action.service.d.ts +1 -1
  82. package/lib/types/services/selection/base-selection-render.service.d.ts +1 -1
  83. package/lib/types/services/selection/mobile-selection-shape.d.ts +5 -2
  84. package/lib/types/services/selection/selection-shape-extension.d.ts +2 -0
  85. package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +1 -1
  86. package/lib/types/services/sheet-embed-integration.service.d.ts +3 -3
  87. package/lib/types/services/sheet-embed-runtime.service.d.ts +1 -1
  88. package/lib/types/services/sheet-host-chrome-override.service.d.ts +1 -1
  89. package/lib/types/services/status-bar.service.d.ts +1 -1
  90. package/lib/types/views/hook.d.ts +1 -1
  91. package/lib/types/views/mobile/action-panel/MobileStylePanel.d.ts +3 -2
  92. package/lib/types/views/permission/extensions/range-protection.render.d.ts +3 -4
  93. package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +3 -2
  94. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +7 -5
  95. package/lib/umd/facade.js +1 -1
  96. package/lib/umd/index.js +5 -5
  97. package/package.json +19 -19
@@ -1,4 +1,4 @@
1
- //#region src/locale/ar-SA.ts
1
+ // src/locale/ar-SA.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "نسخ التنسيق",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ca-ES.ts
1
+ // src/locale/ca-ES.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Copiar format",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/de-DE.ts
1
+ // src/locale/de-DE.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Format übertragen",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/en-US.ts
1
+ // src/locale/en-US.ts
2
2
  /**
3
3
  * Copyright 2023-present DreamNum Co., Ltd.
4
4
  *
@@ -367,5 +367,4 @@ const locale = { "sheets-ui": {
367
367
  }
368
368
  } };
369
369
 
370
- //#endregion
371
370
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/es-ES.ts
1
+ // src/locale/es-ES.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Copiar formato",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fa-IR.ts
1
+ // src/locale/fa-IR.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "کپی قالب",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fr-FR.ts
1
+ // src/locale/fr-FR.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Reproduire la mise en forme",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/id-ID.ts
1
+ // src/locale/id-ID.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Format cat",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/it-IT.ts
1
+ // src/locale/it-IT.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Copia formato",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ja-JP.ts
1
+ // src/locale/ja-JP.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "書式のコピー",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ko-KR.ts
1
+ // src/locale/ko-KR.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "서식 페인트",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pl-PL.ts
1
+ // src/locale/pl-PL.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Malarz formatów",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pt-BR.ts
1
+ // src/locale/pt-BR.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Copiar formatação",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ru-RU.ts
1
+ // src/locale/ru-RU.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Копировать формат",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/sk-SK.ts
1
+ // src/locale/sk-SK.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Kopírovať formát",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/vi-VN.ts
1
+ // src/locale/vi-VN.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "Chổi định dạng",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-CN.ts
1
+ // src/locale/zh-CN.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "格式刷",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-HK.ts
1
+ // src/locale/zh-HK.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "複製格式",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-TW.ts
1
+ // src/locale/zh-TW.ts
2
2
  const locale = { "sheets-ui": {
3
3
  toolbar: {
4
4
  formatPainter: "複製格式",
@@ -352,5 +352,4 @@ const locale = { "sheets-ui": {
352
352
  }
353
353
  } };
354
354
 
355
- //#endregion
356
355
  export { locale as default };
@@ -25,4 +25,7 @@ export declare class CellCustomRenderController extends Disposable implements IR
25
25
  private _enterActiveRender;
26
26
  constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: RenderManagerService, _permissionService: IPermissionService);
27
27
  private _initEventBinding;
28
+ private _getActiveRender;
29
+ private _bindEvents;
30
+ private _handlePointerMove;
28
31
  }
@@ -21,6 +21,5 @@ export declare class ComponentsController extends Disposable {
21
21
  private readonly _injector;
22
22
  constructor(_componentManager: ComponentManager, _iconManager: IconManager, _injector: Injector);
23
23
  private _registerComponents;
24
- private _registerParts;
25
24
  private _registerIcons;
26
25
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
17
17
  import type { MenuConfig } from '@univerjs/ui';
18
- import { Disposable, IConfigService, IPermissionService } from '@univerjs/core';
18
+ import { Disposable, IConfigService, IPermissionService, ThemeService } from '@univerjs/core';
19
19
  import { IRenderManagerService } from '@univerjs/engine-render';
20
20
  import { RangeProtectionRuleModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';
21
21
  import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
@@ -28,9 +28,10 @@ export declare class SheetPermissionRenderController extends Disposable implemen
28
28
  private _sheetSkeletonManagerService;
29
29
  private _permissionService;
30
30
  private _configService;
31
+ private readonly _themeService;
31
32
  private _rangeProtectionCanViewRenderExtension;
32
33
  private _rangeProtectionCanNotViewRenderExtension;
33
- constructor(_context: IRenderContext, _rangeProtectionRuleModel: RangeProtectionRuleModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _permissionService: IPermissionService, _configService: IConfigService);
34
+ constructor(_context: IRenderContext, _rangeProtectionRuleModel: RangeProtectionRuleModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _permissionService: IPermissionService, _configService: IConfigService, _themeService: ThemeService);
34
35
  private _initRender;
35
36
  private _initSkeleton;
36
37
  }
@@ -40,8 +41,9 @@ export declare class WorksheetProtectionRenderController extends Disposable impl
40
41
  private _sheetSkeletonManagerService;
41
42
  private _worksheetProtectionRuleModel;
42
43
  private _configService;
44
+ private readonly _themeService;
43
45
  private _worksheetProtectionRenderExtension;
44
- constructor(_context: IRenderContext, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _configService: IConfigService);
46
+ constructor(_context: IRenderContext, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _configService: IConfigService, _themeService: ThemeService);
45
47
  private _initRender;
46
48
  private _initSkeleton;
47
49
  }
@@ -15,8 +15,8 @@
15
15
  */
16
16
  import type { Workbook } from '@univerjs/core';
17
17
  import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
- import { Disposable, ICommandService, IContextService } from '@univerjs/core';
19
- import { SheetsSelectionsService } from '@univerjs/sheets';
18
+ import { Disposable, ICommandService, IContextService, Injector, IPermissionService } from '@univerjs/core';
19
+ import { RangeProtectionRuleModel, SheetsSelectionsService } from '@univerjs/sheets';
20
20
  import { SheetScrollManagerService } from '../../../services/scroll-manager.service';
21
21
  import { SheetSkeletonManagerService } from '../../../services/sheet-skeleton-manager.service';
22
22
  export declare class MobileHeaderResizeRenderController extends Disposable implements IRenderModule {
@@ -26,6 +26,9 @@ export declare class MobileHeaderResizeRenderController extends Disposable imple
26
26
  private readonly _commandService;
27
27
  private readonly _contextService;
28
28
  private readonly _scrollManagerService;
29
+ private readonly _injector;
30
+ private readonly _permissionService;
31
+ private readonly _rangeProtectionRuleModel;
29
32
  private _currentRow;
30
33
  private _currentColumn;
31
34
  private _rowResizeButton;
@@ -35,7 +38,7 @@ export declare class MobileHeaderResizeRenderController extends Disposable imple
35
38
  private _resizeListeners;
36
39
  private _selectionSubscription;
37
40
  private _scrollSubscription;
38
- constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionManagerService: SheetsSelectionsService, _commandService: ICommandService, _contextService: IContextService, _scrollManagerService: SheetScrollManagerService);
41
+ constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionManagerService: SheetsSelectionsService, _commandService: ICommandService, _contextService: IContextService, _scrollManagerService: SheetScrollManagerService, _injector: Injector, _permissionService: IPermissionService, _rangeProtectionRuleModel: RangeProtectionRuleModel);
39
42
  dispose(): void;
40
43
  private _init;
41
44
  private _initResizeShapes;
@@ -48,6 +51,7 @@ export declare class MobileHeaderResizeRenderController extends Disposable imple
48
51
  private _bindPointerEventsToButton;
49
52
  private _startResize;
50
53
  private _setupPointerHandlers;
54
+ private _canResize;
51
55
  private _bindResizeListeners;
52
56
  private _createResizeHelper;
53
57
  private _updateResizeHelper;
@@ -14,4 +14,49 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IAccessor } from '@univerjs/core';
17
- export declare function getFontStyleAtCursor(accessor: IAccessor): import("@univerjs/core").ITextRun | null | undefined;
17
+ export declare function getFontStyleAtCursor(accessor: IAccessor): {
18
+ st: number;
19
+ ed: number;
20
+ sId?: string;
21
+ ts: {
22
+ ff?: import("@univerjs/core").Nullable<string>;
23
+ eastAsiaFontFamily?: import("@univerjs/core").Nullable<string>;
24
+ it?: import("@univerjs/core").BooleanNumber;
25
+ bl?: import("@univerjs/core").BooleanNumber;
26
+ ul?: import("@univerjs/core").ITextDecoration;
27
+ bbl?: import("@univerjs/core").ITextDecoration;
28
+ st?: import("@univerjs/core").ITextDecoration;
29
+ ol?: import("@univerjs/core").ITextDecoration;
30
+ bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
31
+ bd?: import("@univerjs/core").Nullable<import("@univerjs/core").IBorderData>;
32
+ cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
33
+ va?: import("@univerjs/core").Nullable<import("@univerjs/core").BaselineOffset>;
34
+ n?: import("@univerjs/core").Nullable<{
35
+ pattern: string;
36
+ }>;
37
+ hidden?: boolean;
38
+ fontHint?: 'default' | 'eastAsia' | 'cs';
39
+ positionedTab?: {
40
+ alignment: import("@univerjs/core").TabStopAlignment;
41
+ relativeTo: 'margin' | 'indent';
42
+ leader?: import("@univerjs/core").TabStopLeader;
43
+ };
44
+ symbol?: {
45
+ font: string;
46
+ code: number;
47
+ };
48
+ lang?: string;
49
+ altLang?: string;
50
+ kerning?: number;
51
+ caps?: boolean;
52
+ smallCaps?: boolean;
53
+ sc?: number;
54
+ pos?: number;
55
+ sa?: number;
56
+ textFill?: import("@univerjs/core").IDocTextFill;
57
+ textOutline?: import("@univerjs/core").IDocTextOutline;
58
+ glow?: import("@univerjs/core").IGlowEffect;
59
+ outerShadow?: import("@univerjs/core").IShadowEffect;
60
+ fs: number | undefined;
61
+ };
62
+ } | null | undefined;
@@ -27,7 +27,7 @@ export interface IAutoHeightTaskInfo extends IAutoHeightTask {
27
27
  startTime: number;
28
28
  skeleton: SpreadsheetSkeleton;
29
29
  }
30
- export declare const IAutoHeightService: import("@wendellhu/redi").IdentifierDecorator<unknown>;
30
+ export declare const IAutoHeightService: import("@univerjs/core").IdentifierDecorator<unknown>;
31
31
  export declare function taskRowsFromRanges(ranges: IRange[], rows: number): {
32
32
  result: IRange[];
33
33
  lasts: IRange[];
@@ -40,6 +40,7 @@ export declare class AutoHeightService extends Disposable implements IRenderModu
40
40
  private _calculateLoopId;
41
41
  constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService);
42
42
  private _initMarkDirty;
43
+ dispose(): void;
43
44
  private _loopTask;
44
45
  private _calculateLoop;
45
46
  private _initialCalculateLoop;
@@ -46,6 +46,7 @@ export declare class SheetCanvasPopManagerService extends Disposable {
46
46
  private readonly _selectionManagerService;
47
47
  private _popupMenuFeatureMap;
48
48
  private _popupMenuTitleMap;
49
+ private _popupMenuIconMap;
49
50
  private _popupMenuOffsetMap;
50
51
  private readonly _popupDisposables;
51
52
  constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _refRangeService: RefRangeService, _commandService: ICommandService, _refSelectionsService: ISheetSelectionRenderService, _selectionManagerService: SheetsSelectionsService);
@@ -54,7 +55,7 @@ export declare class SheetCanvasPopManagerService extends Disposable {
54
55
  /**
55
56
  * Register a feature menu callback for a specific drawing type.such as image, chart, etc.
56
57
  */
57
- registerFeatureMenu(type: DrawingTypeEnum, getPopupMenuCallBack: getPopupMenuItemCallback, title?: string): void;
58
+ registerFeatureMenu(type: DrawingTypeEnum, getPopupMenuCallBack: getPopupMenuItemCallback, title?: string, icon?: string): void;
58
59
  /**
59
60
  * Register a feature menu offset for a specific drawing type.
60
61
  * @param {DrawingTypeEnum} type the drawing type
@@ -72,6 +73,7 @@ export declare class SheetCanvasPopManagerService extends Disposable {
72
73
  */
73
74
  getFeatureMenu(unitId: string, subUnitId: string, drawingId: string, drawingType: DrawingTypeEnum): Nullable<IPopupMenuItem[]>;
74
75
  getFeatureMenuTitle(drawingType: DrawingTypeEnum): Nullable<string>;
76
+ getFeatureMenuIcon(drawingType: DrawingTypeEnum): Nullable<string>;
75
77
  dispose(): void;
76
78
  private _createHiddenRectObserver;
77
79
  private _createPositionObserver;
@@ -32,7 +32,7 @@ export interface IDropdownComponentProps {
32
32
  export interface ISheetCellDropdownManagerService {
33
33
  showDropdown(param: IDropdownParam): IDisposable;
34
34
  }
35
- export declare const ISheetCellDropdownManagerService: import("@wendellhu/redi").IdentifierDecorator<ISheetCellDropdownManagerService>;
35
+ export declare const ISheetCellDropdownManagerService: import("@univerjs/core").IdentifierDecorator<ISheetCellDropdownManagerService>;
36
36
  export declare class SheetCellDropdownManagerService extends Disposable implements ISheetCellDropdownManagerService {
37
37
  private readonly _canvasPopupManagerService;
38
38
  private readonly _renderManagerService;
@@ -24,30 +24,30 @@ import { IClipboardInterfaceService, INotificationService, IPlatformService } fr
24
24
  import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
25
25
  import { CopyContentCache } from './copy-content-cache';
26
26
  export declare const PREDEFINED_HOOK_NAME_COPY: {
27
- readonly DEFAULT_COPY: "default-copy";
28
- readonly SPECIAL_COPY_FORMULA_ONLY: "special-copy-formula-only";
27
+ readonly DEFAULT_COPY: 'default-copy';
28
+ readonly SPECIAL_COPY_FORMULA_ONLY: 'special-copy-formula-only';
29
29
  };
30
30
  export declare const PREDEFINED_HOOK_NAME_PASTE: {
31
- readonly DEFAULT_PASTE: "default-paste";
32
- readonly DEFAULT_PASTE_ROWS: "default-paste-rows";
33
- readonly DEFAULT_PASTE_COLUMNS: "default-paste-columns";
34
- readonly SPECIAL_PASTE_VALUE: "special-paste-value";
35
- readonly SPECIAL_PASTE_FORMAT: "special-paste-format";
36
- readonly SPECIAL_PASTE_COL_WIDTH: "special-paste-col-width";
37
- readonly SPECIAL_PASTE_BESIDES_BORDER: "special-paste-besides-border";
38
- readonly SPECIAL_PASTE_FORMULA: "special-paste-formula";
31
+ readonly DEFAULT_PASTE: 'default-paste';
32
+ readonly DEFAULT_PASTE_ROWS: 'default-paste-rows';
33
+ readonly DEFAULT_PASTE_COLUMNS: 'default-paste-columns';
34
+ readonly SPECIAL_PASTE_VALUE: 'special-paste-value';
35
+ readonly SPECIAL_PASTE_FORMAT: 'special-paste-format';
36
+ readonly SPECIAL_PASTE_COL_WIDTH: 'special-paste-col-width';
37
+ readonly SPECIAL_PASTE_BESIDES_BORDER: 'special-paste-besides-border';
38
+ readonly SPECIAL_PASTE_FORMULA: 'special-paste-formula';
39
39
  };
40
40
  export declare const PREDEFINED_HOOK_NAME: {
41
- readonly DEFAULT_PASTE: "default-paste";
42
- readonly DEFAULT_PASTE_ROWS: "default-paste-rows";
43
- readonly DEFAULT_PASTE_COLUMNS: "default-paste-columns";
44
- readonly SPECIAL_PASTE_VALUE: "special-paste-value";
45
- readonly SPECIAL_PASTE_FORMAT: "special-paste-format";
46
- readonly SPECIAL_PASTE_COL_WIDTH: "special-paste-col-width";
47
- readonly SPECIAL_PASTE_BESIDES_BORDER: "special-paste-besides-border";
48
- readonly SPECIAL_PASTE_FORMULA: "special-paste-formula";
49
- readonly DEFAULT_COPY: "default-copy";
50
- readonly SPECIAL_COPY_FORMULA_ONLY: "special-copy-formula-only";
41
+ readonly DEFAULT_COPY: 'default-copy';
42
+ readonly SPECIAL_COPY_FORMULA_ONLY: 'special-copy-formula-only';
43
+ readonly DEFAULT_PASTE: 'default-paste';
44
+ readonly DEFAULT_PASTE_ROWS: 'default-paste-rows';
45
+ readonly DEFAULT_PASTE_COLUMNS: 'default-paste-columns';
46
+ readonly SPECIAL_PASTE_VALUE: 'special-paste-value';
47
+ readonly SPECIAL_PASTE_FORMAT: 'special-paste-format';
48
+ readonly SPECIAL_PASTE_COL_WIDTH: 'special-paste-col-width';
49
+ readonly SPECIAL_PASTE_BESIDES_BORDER: 'special-paste-besides-border';
50
+ readonly SPECIAL_PASTE_FORMULA: 'special-paste-formula';
51
51
  };
52
52
  export declare const FORMULA_CLIPBOARD_MIME_TYPE = "web application/x-univer-sheets-formula";
53
53
  interface ICopyContent {
@@ -79,7 +79,7 @@ export interface ISheetClipboardService {
79
79
  getClipboardHooks(): ISheetClipboardHook[];
80
80
  removeMarkSelection(): void;
81
81
  }
82
- export declare const ISheetClipboardService: import("@wendellhu/redi").IdentifierDecorator<ISheetClipboardService>;
82
+ export declare const ISheetClipboardService: import("@univerjs/core").IdentifierDecorator<ISheetClipboardService>;
83
83
  export declare class SheetClipboardService extends Disposable implements ISheetClipboardService {
84
84
  private readonly _logService;
85
85
  private readonly _univerInstanceService;
@@ -18,8 +18,7 @@ import type { ICellDataWithSpanInfo } from '../type';
18
18
  export default function parseToDom(rawHtml: string): HTMLElement;
19
19
  export declare function getParagraphStyle(el: HTMLElement): Nullable<IParagraphStyle>;
20
20
  export declare function generateParagraphs(dataStream: string, prevParagraph?: IParagraph): IParagraph[];
21
- export declare function convertToCellStyle(cell: ICellDataWithSpanInfo, dataStream: string, textRuns: ITextRun[] | undefined): ICellDataWithSpanInfo | {
22
- s: import("@univerjs/core").ITextStyle | undefined;
21
+ export declare function convertToCellStyle(cell: ICellDataWithSpanInfo, dataStream: string, textRuns: ITextRun[] | undefined): {
23
22
  p?: Nullable<import("@univerjs/core").IDocumentData>;
24
23
  v?: Nullable<import("@univerjs/core").CellValue>;
25
24
  t?: Nullable<import("@univerjs/core").CellValueType>;
@@ -30,7 +29,8 @@ export declare function convertToCellStyle(cell: ICellDataWithSpanInfo, dataStre
30
29
  xf?: Nullable<string>;
31
30
  si?: Nullable<string>;
32
31
  custom?: import("@univerjs/core").CustomData;
32
+ s: import("@univerjs/core").ITextStyle | undefined;
33
33
  rowSpan?: number;
34
34
  colSpan?: number;
35
35
  plain?: string;
36
- };
36
+ } | ICellDataWithSpanInfo;
@@ -29,7 +29,7 @@ export declare const getRepeatRange: (sourceRange: IRange, targetRange: IRange,
29
29
  }[];
30
30
  export declare function htmlIsFromExcel(html: string): boolean;
31
31
  export declare function htmlContainsImage(html: string): boolean;
32
- export declare function mergeCellValues(...cellValues: IObjectMatrixPrimitiveType<Nullable<ICellData>>[]): IObjectMatrixPrimitiveType<Nullable<ICellData>> | IObjectMatrixPrimitiveType<IObjectMatrixPrimitiveType<Nullable<ICellData>>>;
32
+ export declare function mergeCellValues(...cellValues: IObjectMatrixPrimitiveType<Nullable<ICellData>>[]): IObjectMatrixPrimitiveType<IObjectMatrixPrimitiveType<Nullable<ICellData>>> | IObjectMatrixPrimitiveType<Nullable<ICellData>>;
33
33
  export declare function getRangeValuesMergeable(m1: IMutationInfo<ISetRangeValuesMutationParams>, m2: IMutationInfo<ISetRangeValuesMutationParams>): boolean;
34
34
  export declare function mergeSetRangeValues(mutations: IMutationInfo[]): IMutationInfo<object>[];
35
35
  export declare function spilitLargeSetRangeValuesMutations(mutation: IMutationInfo<ISetRangeValuesMutationParams>, options?: {
@@ -53,4 +53,4 @@ export declare class CellEditorManagerService implements ICellEditorManagerServi
53
53
  setFocus(param?: boolean): void;
54
54
  private _refresh;
55
55
  }
56
- export declare const ICellEditorManagerService: import("@wendellhu/redi").IdentifierDecorator<ICellEditorManagerService>;
56
+ export declare const ICellEditorManagerService: import("@univerjs/core").IdentifierDecorator<ICellEditorManagerService>;
@@ -46,4 +46,4 @@ export declare class FormulaEditorManagerService extends Disposable implements I
46
46
  handleFoldBtnClick(params: boolean): void;
47
47
  private _refresh;
48
48
  }
49
- export declare const IFormulaEditorManagerService: import("@wendellhu/redi").IdentifierDecorator<IFormulaEditorManagerService>;
49
+ export declare const IFormulaEditorManagerService: import("@univerjs/core").IdentifierDecorator<IFormulaEditorManagerService>;
@@ -110,13 +110,6 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
110
110
  private readonly _currentEditCellLayout$;
111
111
  readonly currentEditCellLayout$: Observable<Nullable<ICellEditorLayout>>;
112
112
  readonly currentEditCell$: Observable<{
113
- position: IPosition;
114
- canvasOffset: {
115
- left: number;
116
- top: number;
117
- };
118
- scaleX: number;
119
- scaleY: number;
120
113
  unitId: string;
121
114
  sheetId: string;
122
115
  row: number;
@@ -125,6 +118,13 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
125
118
  editorUnitId: string;
126
119
  isInArrayFormulaRange?: Nullable<boolean>;
127
120
  isPercentFormat?: boolean;
121
+ position: IPosition;
122
+ canvasOffset: {
123
+ left: number;
124
+ top: number;
125
+ };
126
+ scaleX: number;
127
+ scaleY: number;
128
128
  } | null>;
129
129
  private readonly _visibleParams$;
130
130
  readonly visible$: Observable<IEditorBridgeServiceVisibleParam>;
@@ -173,4 +173,4 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
173
173
  changeEditorDirty(dirtyStatus: boolean): void;
174
174
  getEditorDirty(): boolean;
175
175
  }
176
- export declare const IEditorBridgeService: import("@wendellhu/redi").IdentifierDecorator<IEditorBridgeService>;
176
+ export declare const IEditorBridgeService: import("@univerjs/core").IdentifierDecorator<IEditorBridgeService>;
@@ -56,7 +56,7 @@ export interface IFormatPainterBeforeApplyHookParams {
56
56
  undoMutationsInfo: IMutationInfo[];
57
57
  format: ISelectionFormatInfo;
58
58
  }
59
- export declare const IFormatPainterService: import("@wendellhu/redi").IdentifierDecorator<IFormatPainterService>;
59
+ export declare const IFormatPainterService: import("@univerjs/core").IdentifierDecorator<IFormatPainterService>;
60
60
  export declare class FormatPainterService extends Disposable implements IFormatPainterService {
61
61
  private readonly _selectionManagerService;
62
62
  private readonly _themeService;
@@ -34,7 +34,7 @@ interface IMarkSelectionInfo {
34
34
  control: SelectionControl | null;
35
35
  exits: string[];
36
36
  }
37
- export declare const IMarkSelectionService: import("@wendellhu/redi").IdentifierDecorator<IMarkSelectionService>;
37
+ export declare const IMarkSelectionService: import("@univerjs/core").IdentifierDecorator<IMarkSelectionService>;
38
38
  /**
39
39
  * For copy and cut selection.
40
40
  * also for selection when hover on conditional format items in the cf panel on the right.
@@ -33,7 +33,7 @@ export interface IRepeatLastActionService {
33
33
  registerRepeatableCommand(commandId: string, handler: RepeatableCommandHandler, permissionType?: RepeatLastActionPermission): IDisposable;
34
34
  runWithoutRecording(selections: IRange[]): Promise<boolean>;
35
35
  }
36
- export declare const IRepeatLastActionService: import("@wendellhu/redi").IdentifierDecorator<IRepeatLastActionService>;
36
+ export declare const IRepeatLastActionService: import("@univerjs/core").IdentifierDecorator<IRepeatLastActionService>;
37
37
  export declare class RepeatLastActionService extends Disposable implements IRepeatLastActionService {
38
38
  private readonly _commandService;
39
39
  private _action;
@@ -50,7 +50,7 @@ export interface ISheetSelectionRenderService {
50
50
  refreshSelectionMoveEnd(): void;
51
51
  resetSelectionsByModelData(selectionsWithStyleList: readonly ISelectionWithStyle[]): void;
52
52
  }
53
- export declare const ISheetSelectionRenderService: import("@wendellhu/redi").IdentifierDecorator<ISheetSelectionRenderService>;
53
+ export declare const ISheetSelectionRenderService: import("@univerjs/core").IdentifierDecorator<ISheetSelectionRenderService>;
54
54
  /**
55
55
  * The basic implementation of selection rendering logics. It is designed to be reused for different purposes.
56
56
  */