@univerjs/sheets-ui 0.1.4 → 0.1.6

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 (161) hide show
  1. package/lib/cjs/index.js +10 -10
  2. package/lib/es/index.js +6396 -5578
  3. package/lib/index.css +1 -1
  4. package/lib/types/basics/editor/get-editor-object.d.ts +3 -17
  5. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +3 -19
  6. package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +18 -32
  7. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +2 -17
  8. package/lib/types/commands/commands/auto-fill.command.d.ts +2 -16
  9. package/lib/types/commands/commands/clipboard.command.d.ts +2 -16
  10. package/lib/types/commands/commands/delete-range-move-left-confirm.command .d.ts +2 -16
  11. package/lib/types/commands/commands/delete-range-move-up-confirm.command.d.ts +2 -16
  12. package/lib/types/commands/commands/hide-row-col-confirm.command.d.ts +2 -16
  13. package/lib/types/commands/commands/inline-format.command.d.ts +2 -16
  14. package/lib/types/commands/commands/insert-range-move-down-confirm.command.d.ts +2 -16
  15. package/lib/types/commands/commands/insert-range-move-right-confirm.command.d.ts +2 -16
  16. package/lib/types/commands/commands/refill.command.d.ts +2 -16
  17. package/lib/types/commands/commands/remove-row-col-confirm.command.d.ts +2 -16
  18. package/lib/types/commands/commands/remove-sheet-confirm.command.d.ts +2 -16
  19. package/lib/types/commands/commands/set-format-painter.command.d.ts +2 -16
  20. package/lib/types/commands/commands/set-frozen.command.d.ts +2 -16
  21. package/lib/types/commands/commands/set-scroll.command.d.ts +2 -16
  22. package/lib/types/commands/commands/set-selection.command.d.ts +2 -16
  23. package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +2 -16
  24. package/lib/types/commands/commands/unhide.command.d.ts +2 -16
  25. package/lib/types/commands/commands/utils/selection-utils.d.ts +2 -17
  26. package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +3 -17
  27. package/lib/types/commands/operations/cell-edit.operation.d.ts +3 -17
  28. package/lib/types/commands/operations/rename-sheet.operation.d.ts +2 -16
  29. package/lib/types/commands/operations/scroll.operation.d.ts +3 -17
  30. package/lib/types/commands/operations/set-format-painter.operation.d.ts +3 -17
  31. package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +3 -17
  32. package/lib/types/commands/operations/sidebar-defined-name.operation.d.ts +6 -0
  33. package/lib/types/common/utils.d.ts +12 -20
  34. package/lib/types/components/border-panel/BorderPanel.d.ts +3 -17
  35. package/lib/types/components/border-panel/border-line/BorderLine.d.ts +2 -16
  36. package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +2 -16
  37. package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +2 -16
  38. package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +2 -16
  39. package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +2 -16
  40. package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +2 -16
  41. package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +2 -16
  42. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +2 -16
  43. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +2 -16
  44. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +2 -16
  45. package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +2 -16
  46. package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +2 -16
  47. package/lib/types/components/border-panel/interface.d.ts +3 -17
  48. package/lib/types/components/menu-item-input/MenuItemInput.d.ts +3 -17
  49. package/lib/types/components/menu-item-input/interface.d.ts +2 -16
  50. package/lib/types/controllers/active-worksheet/active-worksheet.controller.d.ts +1 -15
  51. package/lib/types/controllers/auto-fill.controller.d.ts +6 -20
  52. package/lib/types/controllers/auto-height.controller.d.ts +4 -18
  53. package/lib/types/controllers/cell-alert.controller.d.ts +8 -0
  54. package/lib/types/controllers/cell-custom-render.controller.d.ts +12 -0
  55. package/lib/types/controllers/clipboard/clipboard.controller.d.ts +6 -20
  56. package/lib/types/controllers/clipboard/utils.d.ts +4 -19
  57. package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts +5 -19
  58. package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +3 -19
  59. package/lib/types/controllers/editor/editing.controller.d.ts +2 -16
  60. package/lib/types/controllers/editor/end-edit.controller.d.ts +7 -23
  61. package/lib/types/controllers/editor/formula-editor.controller.d.ts +5 -19
  62. package/lib/types/controllers/editor/start-edit.controller.d.ts +6 -20
  63. package/lib/types/controllers/editor-bridge.controller.d.ts +7 -21
  64. package/lib/types/controllers/format-painter/format-painter.controller.d.ts +4 -18
  65. package/lib/types/controllers/freeze.controller.d.ts +7 -21
  66. package/lib/types/controllers/header-menu.controller.d.ts +5 -19
  67. package/lib/types/controllers/header-move.controller.d.ts +5 -19
  68. package/lib/types/controllers/header-resize.controller.d.ts +4 -18
  69. package/lib/types/controllers/header-unhide.controller.d.ts +3 -17
  70. package/lib/types/controllers/hover.controller.d.ts +12 -0
  71. package/lib/types/controllers/mark-selection.controller.d.ts +3 -17
  72. package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +2 -16
  73. package/lib/types/controllers/menu/border.menu.d.ts +4 -18
  74. package/lib/types/controllers/menu/clear.menu.d.ts +2 -16
  75. package/lib/types/controllers/menu/delete.menu.d.ts +2 -16
  76. package/lib/types/controllers/menu/insert.menu.d.ts +3 -17
  77. package/lib/types/controllers/menu/menu.d.ts +3 -17
  78. package/lib/types/controllers/menu/merge.menu.d.ts +3 -17
  79. package/lib/types/controllers/menu/sheet.menu.d.ts +3 -17
  80. package/lib/types/controllers/move-range.controller.d.ts +3 -17
  81. package/lib/types/controllers/scroll.controller.d.ts +8 -20
  82. package/lib/types/controllers/selection.controller.d.ts +10 -22
  83. package/lib/types/controllers/sheet-render.controller.d.ts +3 -17
  84. package/lib/types/controllers/sheet-ui.controller.d.ts +3 -18
  85. package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +2 -17
  86. package/lib/types/controllers/shortcuts/operation.shortcut.d.ts +2 -16
  87. package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +3 -17
  88. package/lib/types/controllers/shortcuts/style.shortcut.d.ts +2 -16
  89. package/lib/types/controllers/shortcuts/utils.d.ts +2 -16
  90. package/lib/types/controllers/shortcuts/value.shortcut.d.ts +2 -16
  91. package/lib/types/controllers/shortcuts/view.shortcut.d.ts +2 -16
  92. package/lib/types/controllers/status-bar.controller.d.ts +4 -18
  93. package/lib/types/controllers/utils/component-tools.d.ts +3 -17
  94. package/lib/types/controllers/utils/selections-tools.d.ts +3 -0
  95. package/lib/types/controllers/zoom.controller.d.ts +6 -20
  96. package/lib/types/index.d.ts +7 -2
  97. package/lib/types/locale/en-US.d.ts +2 -16
  98. package/lib/types/locale/zh-CN.d.ts +27 -1
  99. package/lib/types/services/auto-fill/auto-fill.service.d.ts +6 -22
  100. package/lib/types/services/auto-fill/rules.d.ts +2 -16
  101. package/lib/types/services/auto-fill/tools.d.ts +7 -22
  102. package/lib/types/services/auto-fill/type.d.ts +2 -16
  103. package/lib/types/services/canvas-pop-manager.service.d.ts +8 -22
  104. package/lib/types/services/cell-alert-manager.service.d.ts +30 -0
  105. package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +10 -25
  106. package/lib/types/services/clipboard/clipboard.service.d.ts +10 -25
  107. package/lib/types/services/clipboard/copy-content-cache.d.ts +3 -17
  108. package/lib/types/services/clipboard/html-to-usm/converter.d.ts +6 -26
  109. package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +2 -16
  110. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts +2 -16
  111. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts +2 -16
  112. package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts +2 -16
  113. package/lib/types/services/clipboard/html-to-usm/utils.d.ts +2 -16
  114. package/lib/types/services/clipboard/type.d.ts +2 -16
  115. package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +3 -17
  116. package/lib/types/services/clipboard/utils.d.ts +3 -17
  117. package/lib/types/services/editor/cell-editor-manager.service.d.ts +5 -19
  118. package/lib/types/services/editor/formula-editor-manager.service.d.ts +5 -19
  119. package/lib/types/services/editor-bridge.service.d.ts +16 -30
  120. package/lib/types/services/format-painter/format-painter.service.d.ts +5 -20
  121. package/lib/types/services/hover-manager.service.d.ts +26 -0
  122. package/lib/types/services/mark-selection/mark-selection.service.d.ts +7 -22
  123. package/lib/types/services/scroll-manager.service.d.ts +3 -17
  124. package/lib/types/services/selection/__test__/create-service-test-bed.d.ts +3 -19
  125. package/lib/types/services/selection/selection-render-model.d.ts +2 -17
  126. package/lib/types/services/selection/selection-render.service.d.ts +9 -25
  127. package/lib/types/services/selection/selection-shape-extension.d.ts +5 -19
  128. package/lib/types/services/selection/selection-shape.d.ts +25 -41
  129. package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +5 -19
  130. package/lib/types/services/sheet-skeleton-manager.service.d.ts +5 -21
  131. package/lib/types/services/shortcut-experience.service.d.ts +4 -19
  132. package/lib/types/services/status-bar.service.d.ts +6 -20
  133. package/lib/types/sheets-ui-plugin.d.ts +2 -16
  134. package/lib/types/views/cell-alert/CellAlertPopup.d.ts +3 -0
  135. package/lib/types/views/cell-alert/index.d.ts +18 -0
  136. package/lib/types/views/count-bar/CountBar.d.ts +2 -16
  137. package/lib/types/views/count-bar/ZoomSlider.d.ts +2 -16
  138. package/lib/types/views/defined-name/DefinedName.d.ts +3 -0
  139. package/lib/types/views/defined-name/DefinedNameContainer.d.ts +3 -0
  140. package/lib/types/views/defined-name/DefinedNameInput.d.ts +12 -0
  141. package/lib/types/views/defined-name/DefinedNameOverlay.d.ts +5 -0
  142. package/lib/types/views/defined-name/component-name.d.ts +17 -0
  143. package/lib/types/views/editor-container/EditorContainer.d.ts +2 -16
  144. package/lib/types/views/formula-bar/FormulaBar.d.ts +2 -16
  145. package/lib/types/views/header-menu-shape.d.ts +2 -17
  146. package/lib/types/views/header-resize-shape.d.ts +2 -17
  147. package/lib/types/views/header-unhide-shape.d.ts +2 -17
  148. package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts +2 -16
  149. package/lib/types/views/operate-container/OperateContainer.d.ts +2 -16
  150. package/lib/types/views/sheet-bar/SheetBar.d.ts +2 -16
  151. package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +2 -16
  152. package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +2 -16
  153. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +3 -17
  154. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts +2 -16
  155. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +1 -16
  156. package/lib/types/views/sheet-canvas-view.d.ts +5 -19
  157. package/lib/types/views/sheet-container/SheetContainer.d.ts +2 -16
  158. package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +3 -17
  159. package/lib/types/views/status-bar/StatusBar.d.ts +2 -16
  160. package/lib/umd/index.js +11 -11
  161. package/package.json +23 -22
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
17
- import type { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@wendellhu/redi';
2
+ import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
3
+
18
4
  export declare function CellMergeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
19
5
  export declare function CellMergeAllMenuItemFactory(accessor: IAccessor): IMenuButtonItem<string>;
20
6
  export declare function CellMergeVerticalMenuItemFactory(accessor: IAccessor): IMenuButtonItem<string>;
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
17
- import type { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@wendellhu/redi';
2
+ import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
3
+
18
4
  export declare function DeleteSheetMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
19
5
  export declare function CopySheetMenuItemFactory(): IMenuButtonItem;
20
6
  export declare function RenameSheetMenuItemFactory(): IMenuButtonItem;
@@ -1,21 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Disposable, ICommandService } from '@univerjs/core';
17
- import { SelectionManagerService } from '@univerjs/sheets';
18
1
  import { ISelectionRenderService } from '../services/selection/selection-render.service';
2
+ import { SelectionManagerService } from '@univerjs/sheets';
3
+ import { Disposable, ICommandService } from '@univerjs/core';
4
+
19
5
  export declare class MoveRangeController extends Disposable {
20
6
  private readonly _selectionRenderService;
21
7
  private readonly _selectionManagerService;
@@ -1,24 +1,9 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IRange } from '@univerjs/core';
17
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
18
- import { IRenderManagerService } from '@univerjs/engine-render';
19
- import { SelectionManagerService } from '@univerjs/sheets';
20
- import { ScrollManagerService } from '../services/scroll-manager.service';
21
1
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
+ import { ScrollManagerService } from '../services/scroll-manager.service';
3
+ import { SelectionManagerService } from '@univerjs/sheets';
4
+ import { IRenderManagerService } from '@univerjs/engine-render';
5
+ import { IRange, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
6
+
22
7
  /**
23
8
  * This controller handles scroll logic in sheet interaction.
24
9
  */
@@ -33,12 +18,15 @@ export declare class ScrollController extends Disposable {
33
18
  scrollToRange(range: IRange): boolean;
34
19
  private _init;
35
20
  private _initCommandListener;
21
+ private _scrollToSelectionForExpand;
36
22
  private _getFreeze;
37
23
  private _initScrollEventListener;
38
24
  private _scrollSubscribeBinding;
39
25
  private _initSkeletonListener;
40
26
  private _updateSceneSize;
41
27
  private _getSheetObject;
28
+ private _scrollToSelectionByDirection;
42
29
  private _scrollToSelection;
30
+ private _getViewportBounding;
43
31
  private _scrollToCell;
44
32
  }
@@ -1,24 +1,10 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Disposable, ICommandService, IUniverInstanceService, ThemeService } from '@univerjs/core';
17
- import { IRenderManagerService } from '@univerjs/engine-render';
18
- import { SelectionManagerService } from '@univerjs/sheets';
19
- import { ISelectionRenderService } from '../services/selection/selection-render.service';
20
1
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
21
- import { ScrollController } from './scroll.controller';
2
+ import { ISelectionRenderService } from '../services/selection/selection-render.service';
3
+ import { IDefinedNamesService } from '@univerjs/engine-formula';
4
+ import { SelectionManagerService } from '@univerjs/sheets';
5
+ import { IRenderManagerService } from '@univerjs/engine-render';
6
+ import { Disposable, ICommandService, IUniverInstanceService, ThemeService } from '@univerjs/core';
7
+
22
8
  export declare class SelectionController extends Disposable {
23
9
  private readonly _sheetSkeletonManagerService;
24
10
  private readonly _currentUniverService;
@@ -27,9 +13,10 @@ export declare class SelectionController extends Disposable {
27
13
  private readonly _selectionRenderService;
28
14
  private readonly _selectionManagerService;
29
15
  private readonly _themeService;
30
- private readonly _scrollController;
31
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService, _themeService: ThemeService, _scrollController: ScrollController);
16
+ private readonly _definedNamesService;
17
+ constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService, _themeService: ThemeService, _definedNamesService: IDefinedNamesService);
32
18
  private _initialize;
19
+ private _initDefinedNameListener;
33
20
  private _getActiveViewport;
34
21
  private _initViewMainListener;
35
22
  private _initThemeChangeListener;
@@ -38,6 +25,7 @@ export declare class SelectionController extends Disposable {
38
25
  private _initColumnHeader;
39
26
  private _initLeftTop;
40
27
  private _initSelectionChangeListener;
28
+ private _syncDefinedNameRange;
41
29
  private _initUserActionSyncListener;
42
30
  private _move;
43
31
  private _getSheetObject;
@@ -1,21 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
17
- import { IRenderManagerService } from '@univerjs/engine-render';
18
1
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
4
+
19
5
  export declare class SheetRenderController extends Disposable {
20
6
  private readonly _sheetSkeletonManagerService;
21
7
  private readonly _contextService;
@@ -1,22 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Disposable, ICommandService } from '@univerjs/core';
17
- import type { IDesktopUIController } from '@univerjs/ui';
18
- import { ComponentManager, ILayoutService, IMenuService, IShortcutService } from '@univerjs/ui';
19
1
  import { Injector } from '@wendellhu/redi';
2
+ import { IDesktopUIController, ComponentManager, ILayoutService, IMenuService, IShortcutService } from '@univerjs/ui';
3
+ import { Disposable, ICommandService } from '@univerjs/core';
4
+
20
5
  export declare class SheetUIController extends Disposable {
21
6
  private readonly _injector;
22
7
  private readonly _componentManager;
@@ -1,20 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IShortcutItem } from '@univerjs/ui';
17
- import { KeyCode } from '@univerjs/ui';
1
+ import { IShortcutItem, KeyCode } from '@univerjs/ui';
2
+
18
3
  export declare const ARROW_SELECTION_KEYCODE_LIST: KeyCode[];
19
4
  export declare const MOVE_SELECTION_KEYCODE_LIST: KeyCode[];
20
5
  export declare function generateArrowSelectionShortCutItem(): IShortcutItem<object>[];
@@ -1,18 +1,4 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IShortcutItem } from '@univerjs/ui';
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+
17
3
  export declare const SetRowHiddenShortcutItem: IShortcutItem;
18
4
  export declare const SetColHiddenShortcutItem: IShortcutItem;
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IShortcutItem } from '@univerjs/ui';
17
- import type { IExpandSelectionCommandParams, IMoveSelectionCommandParams, IMoveSelectionEnterAndTabCommandParams, ISelectAllCommandParams } from '../../commands/commands/set-selection.command';
1
+ import { IExpandSelectionCommandParams, IMoveSelectionCommandParams, IMoveSelectionEnterAndTabCommandParams, ISelectAllCommandParams } from '../../commands/commands/set-selection.command';
2
+ import { IShortcutItem } from '@univerjs/ui';
3
+
18
4
  export declare const MoveSelectionDownShortcutItem: IShortcutItem<IMoveSelectionCommandParams>;
19
5
  export declare const MoveSelectionUpShortcutItem: IShortcutItem<IMoveSelectionCommandParams>;
20
6
  export declare const MoveSelectionLeftShortcutItem: IShortcutItem<IMoveSelectionCommandParams>;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IShortcutItem } from '@univerjs/ui';
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+
17
3
  export declare const SetBoldShortcutItem: IShortcutItem;
18
4
  export declare const SetItalicShortcutItem: IShortcutItem;
19
5
  export declare const SetUnderlineShortcutItem: IShortcutItem;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IContextService } from '@univerjs/core';
1
+ import { IContextService } from '@univerjs/core';
2
+
17
3
  export declare function whenSheetFocused(contextService: IContextService): boolean;
18
4
  /**
19
5
  * Requires the currently focused unit to be Workbook and the sheet editor is focused but not activated.
@@ -1,17 +1,3 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IShortcutItem } from '@univerjs/ui';
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+
17
3
  export declare const ClearSelectionValueShortcutItem: IShortcutItem;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IShortcutItem } from '@univerjs/ui';
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+
17
3
  export declare const ZoomInShortcutItem: IShortcutItem;
18
4
  export declare const PreventDefaultZoomInShortcutItem: IShortcutItem;
19
5
  export declare const ZoomOutShortcutItem: IShortcutItem;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { FormulaDataModel, IFunctionService } from '@univerjs/engine-formula';
18
- import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';
19
1
  import { IStatusBarService } from '../services/status-bar.service';
2
+ import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';
3
+ import { FormulaDataModel, IFunctionService } from '@univerjs/engine-formula';
4
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
5
+
20
6
  export declare class StatusBarController extends Disposable {
21
7
  private readonly _univerInstanceService;
22
8
  private readonly _selectionManagerService;
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IUniverInstanceService, Nullable } from '@univerjs/core';
17
- import type { Engine, IRenderManagerService, Rect, Scene, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetHeader, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
1
+ import { Engine, IRenderManagerService, Rect, Scene, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetHeader, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
2
+ import { IUniverInstanceService, Nullable } from '@univerjs/core';
3
+
18
4
  export interface ISheetObjectParam {
19
5
  spreadsheet: Spreadsheet;
20
6
  spreadsheetRowHeader: SpreadsheetHeader;
@@ -0,0 +1,3 @@
1
+ import { IAccessor } from '@wendellhu/redi';
2
+
3
+ export declare function getSheetSelectionsDisabled$(accessor: IAccessor): import('rxjs').Observable<boolean>;
@@ -1,24 +1,10 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { IRenderManagerService } from '@univerjs/engine-render';
18
- import { SelectionManagerService } from '@univerjs/sheets';
19
- import { ScrollManagerService } from '../services/scroll-manager.service';
20
- import { ISelectionRenderService } from '../services/selection/selection-render.service';
21
1
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
+ import { ISelectionRenderService } from '../services/selection/selection-render.service';
3
+ import { ScrollManagerService } from '../services/scroll-manager.service';
4
+ import { SelectionManagerService } from '@univerjs/sheets';
5
+ import { IRenderManagerService } from '@univerjs/engine-render';
6
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
7
+
22
8
  export declare class ZoomController extends Disposable {
23
9
  private readonly _sheetSkeletonManagerService;
24
10
  private readonly _currentUniverService;
@@ -26,6 +26,7 @@ export { SetZoomRatioOperation } from './commands/operations/set-zoom-ratio.oper
26
26
  export { ResetScrollCommand, ScrollCommand, ScrollToCellCommand, SetScrollRelativeCommand, type IScrollCommandParams, type IScrollToCellCommandParams, type ISetScrollRelativeCommandParams, } from './commands/commands/set-scroll.command';
27
27
  export { VIEWPORT_KEY } from './common/keys';
28
28
  export { AutoFillController } from './controllers/auto-fill.controller';
29
+ export { CellCustomRenderController } from './controllers/cell-custom-render.controller';
29
30
  export { PASTE_SPECIAL_MENU_ID } from './controllers/menu/menu';
30
31
  export { whenFormulaEditorActivated } from './controllers/shortcuts/utils';
31
32
  export { getCoordByCell, getCoordByOffset, getSheetObject, getTransformCoord, } from './controllers/utils/component-tools';
@@ -38,7 +39,7 @@ export type { ICopyDataPiece, ISheetAutoFillHook } from './services/auto-fill/ty
38
39
  export { APPLY_TYPE, DATA_TYPE, type IAutoFillRule } from './services/auto-fill/type';
39
40
  export { type ICopyDataInTypeIndexInfo } from './services/auto-fill/type';
40
41
  export { ISheetClipboardService, PREDEFINED_HOOK_NAME, SheetClipboardService, } from './services/clipboard/clipboard.service';
41
- export type { ICellDataWithSpanInfo, ISheetClipboardHook } from './services/clipboard/type';
42
+ export type { ICellDataWithSpanInfo, ISheetClipboardHook, ISheetRangeLocation, ICopyPastePayload } from './services/clipboard/type';
42
43
  export { COPY_TYPE } from './services/clipboard/type';
43
44
  export { getRepeatRange } from './services/clipboard/utils';
44
45
  export { CellEditorManagerService, ICellEditorManagerService } from './services/editor/cell-editor-manager.service';
@@ -53,6 +54,10 @@ export type { ISheetSkeletonManagerParam } from './services/sheet-skeleton-manag
53
54
  export { SheetSkeletonManagerService } from './services/sheet-skeleton-manager.service';
54
55
  export { UniverSheetsUIPlugin } from './sheets-ui-plugin';
55
56
  export { SheetCanvasView } from './views/sheet-canvas-view';
57
+ export { HoverManagerService } from './services/hover-manager.service';
58
+ export { CellAlertManagerService, CellAlertType, type ICellAlert } from './services/cell-alert-manager.service';
59
+ export { HoverController } from './controllers/hover.controller';
56
60
  export { SHEET_VIEW_KEY } from './common/keys';
57
- export { CanvasPopManagerService } from './services/canvas-pop-manager.service';
61
+ export { SheetCanvasPopManagerService } from './services/canvas-pop-manager.service';
58
62
  export { mergeSetRangeValues } from './services/clipboard/utils';
63
+ export type { IAutoFillLocation } from './services/auto-fill/type';
@@ -1,18 +1,4 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type zhCN from './zh-CN';
1
+ import { default as zhCN } from './zh-CN';
2
+
17
3
  declare const locale: typeof zhCN;
18
4
  export default locale;
@@ -77,7 +77,7 @@ declare const locale: {
77
77
  sum: string;
78
78
  autoSum: string;
79
79
  moreFunction: string;
80
- conditionalalFormat: string;
80
+ conditionalFormatting: string;
81
81
  comment: string;
82
82
  pivotTable: string;
83
83
  chart: string;
@@ -490,5 +490,31 @@ declare const locale: {
490
490
  };
491
491
  'sheet-view': string;
492
492
  'sheet-edit': string;
493
+ definedName: {
494
+ managerTitle: string;
495
+ managerDescription: string;
496
+ addButton: string;
497
+ featureTitle: string;
498
+ ratioRange: string;
499
+ ratioFormula: string;
500
+ confirm: string;
501
+ cancel: string;
502
+ scopeWorkbook: string;
503
+ inputNamePlaceholder: string;
504
+ inputCommentPlaceholder: string;
505
+ inputRangePlaceholder: string;
506
+ inputFormulaPlaceholder: string;
507
+ nameEmpty: string;
508
+ nameDuplicate: string;
509
+ formulaOrRefStringEmpty: string;
510
+ formulaOrRefStringInvalid: string;
511
+ defaultName: string;
512
+ updateButton: string;
513
+ deleteButton: string;
514
+ deleteConfirmText: string;
515
+ nameConflict: string;
516
+ nameInvalid: string;
517
+ nameSheetConflict: string;
518
+ };
493
519
  };
494
520
  export default locale;
@@ -1,25 +1,9 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { Nullable } from '@univerjs/core';
17
- import { Direction, Disposable, IUniverInstanceService } from '@univerjs/core';
1
+ import { IAutoFillLocation, IAutoFillRule, ISheetAutoFillHook, APPLY_TYPE } from './type';
2
+ import { Observable } from 'rxjs';
3
+ import { IDisposable } from '@wendellhu/redi';
18
4
  import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
19
- import type { IDisposable } from '@wendellhu/redi';
20
- import type { Observable } from 'rxjs';
21
- import type { IAutoFillLocation, IAutoFillRule, ISheetAutoFillHook } from './type';
22
- import { APPLY_TYPE } from './type';
5
+ import { Nullable, Direction, Disposable, IUniverInstanceService } from '@univerjs/core';
6
+
23
7
  export interface IAutoFillService {
24
8
  applyType$: Observable<APPLY_TYPE>;
25
9
  applyType: APPLY_TYPE;
@@ -80,4 +64,4 @@ export declare class AutoFillService extends Disposable implements IAutoFillServ
80
64
  setDisableApplyType(type: APPLY_TYPE, disable: boolean): void;
81
65
  setShowMenu(show: boolean): void;
82
66
  }
83
- export declare const IAutoFillService: import("@wendellhu/redi").IdentifierDecorator<AutoFillService>;
67
+ export declare const IAutoFillService: import('@wendellhu/redi').IdentifierDecorator<AutoFillService>;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { IAutoFillRule } from './type';
1
+ import { IAutoFillRule } from './type';
2
+
17
3
  export declare const numberRule: IAutoFillRule;
18
4
  export declare const otherRule: IAutoFillRule;
19
5
  export declare const extendNumberRule: IAutoFillRule;