@univerjs/sheets-ui 0.17.0 → 0.18.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 (278) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +288 -20
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1276
  16. package/lib/es/index.js +288 -25637
  17. package/lib/es/locale/ca-ES.js +1 -463
  18. package/lib/es/locale/en-US.js +1 -465
  19. package/lib/es/locale/es-ES.js +1 -463
  20. package/lib/es/locale/fa-IR.js +1 -465
  21. package/lib/es/locale/fr-FR.js +1 -465
  22. package/lib/es/locale/ja-JP.js +1 -463
  23. package/lib/es/locale/ko-KR.js +1 -463
  24. package/lib/es/locale/ru-RU.js +1 -463
  25. package/lib/es/locale/sk-SK.js +1 -463
  26. package/lib/es/locale/vi-VN.js +1 -463
  27. package/lib/es/locale/zh-CN.js +1 -464
  28. package/lib/es/locale/zh-TW.js +1 -464
  29. package/lib/facade.js +1 -1276
  30. package/lib/index.css +1215 -1
  31. package/lib/index.js +288 -25637
  32. package/lib/locale/ca-ES.js +1 -463
  33. package/lib/locale/en-US.js +1 -465
  34. package/lib/locale/es-ES.js +1 -463
  35. package/lib/locale/fa-IR.js +1 -465
  36. package/lib/locale/fr-FR.js +1 -465
  37. package/lib/locale/ja-JP.js +1 -463
  38. package/lib/locale/ko-KR.js +1 -463
  39. package/lib/locale/ru-RU.js +1 -463
  40. package/lib/locale/sk-SK.js +1 -463
  41. package/lib/locale/vi-VN.js +1 -463
  42. package/lib/locale/zh-CN.js +1 -464
  43. package/lib/locale/zh-TW.js +1 -464
  44. package/lib/types/basics/editor/get-editor-object.d.ts +17 -2
  45. package/lib/types/basics/editor/range.d.ts +17 -2
  46. package/lib/types/commands/commands/clipboard.command.d.ts +16 -1
  47. package/lib/types/commands/commands/delete-range-move-left-confirm.command.d.ts +16 -1
  48. package/lib/types/commands/commands/delete-range-move-up-confirm.command.d.ts +16 -1
  49. package/lib/types/commands/commands/headersize-changed.command.d.ts +16 -1
  50. package/lib/types/commands/commands/hide-row-col-confirm.command.d.ts +16 -1
  51. package/lib/types/commands/commands/inline-format.command.d.ts +16 -1
  52. package/lib/types/commands/commands/insert-range-move-down-confirm.command.d.ts +16 -1
  53. package/lib/types/commands/commands/insert-range-move-right-confirm.command.d.ts +16 -1
  54. package/lib/types/commands/commands/range-protection.command.d.ts +17 -2
  55. package/lib/types/commands/commands/remove-row-col-confirm.command.d.ts +16 -1
  56. package/lib/types/commands/commands/remove-sheet-confirm.command.d.ts +16 -1
  57. package/lib/types/commands/commands/set-format-painter.command.d.ts +16 -1
  58. package/lib/types/commands/commands/set-frozen.command.d.ts +16 -1
  59. package/lib/types/commands/commands/set-scroll.command.d.ts +16 -1
  60. package/lib/types/commands/commands/set-selection.command.d.ts +17 -1
  61. package/lib/types/commands/commands/set-worksheet-auto-col-width.command.d.ts +16 -1
  62. package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +16 -1
  63. package/lib/types/commands/commands/unhide.command.d.ts +16 -1
  64. package/lib/types/commands/commands/utils/selection-utils.d.ts +17 -1
  65. package/lib/types/commands/commands/worksheet-protection.command.d.ts +16 -1
  66. package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +17 -2
  67. package/lib/types/commands/operations/cell-edit.operation.d.ts +17 -2
  68. package/lib/types/commands/operations/rename-sheet.operation.d.ts +16 -1
  69. package/lib/types/commands/operations/scroll-to-range.operation.d.ts +17 -2
  70. package/lib/types/commands/operations/scroll.operation.d.ts +17 -2
  71. package/lib/types/commands/operations/set-format-painter.operation.d.ts +17 -2
  72. package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +16 -1
  73. package/lib/types/commands/operations/sheet-permission-open-dialog.operation.d.ts +16 -1
  74. package/lib/types/commands/operations/sheet-permission-open-panel.operation.d.ts +17 -2
  75. package/lib/types/commands/operations/sidebar-defined-name.operation.d.ts +16 -1
  76. package/lib/types/common/utils.d.ts +22 -7
  77. package/lib/types/components/border-panel/BorderPanel.d.ts +16 -1
  78. package/lib/types/components/border-panel/border-line/BorderLine.d.ts +15 -0
  79. package/lib/types/components/border-panel/interface.d.ts +17 -2
  80. package/lib/types/components/hook.d.ts +17 -2
  81. package/lib/types/components/menu-item-frozen/MenuItemFrozen.d.ts +16 -1
  82. package/lib/types/components/menu-item-frozen/interface.d.ts +16 -1
  83. package/lib/types/components/menu-item-input/MenuItemInput.d.ts +16 -1
  84. package/lib/types/components/menu-item-input/interface.d.ts +17 -2
  85. package/lib/types/config/config.d.ts +19 -4
  86. package/lib/types/consts/mobile-context.d.ts +5 -0
  87. package/lib/types/consts/permission.d.ts +15 -0
  88. package/lib/types/controllers/auto-fill-ui.controller.d.ts +15 -0
  89. package/lib/types/controllers/auto-height.controller.d.ts +18 -2
  90. package/lib/types/controllers/auto-width.controller.d.ts +20 -4
  91. package/lib/types/controllers/cell-alert.controller.d.ts +18 -2
  92. package/lib/types/controllers/cell-custom-render.controller.d.ts +18 -2
  93. package/lib/types/controllers/cell-popup-editor.controller.d.ts +18 -2
  94. package/lib/types/controllers/checkbox.controller.d.ts +15 -0
  95. package/lib/types/controllers/clipboard/clipboard.controller.d.ts +16 -1
  96. package/lib/types/controllers/clipboard/utils.d.ts +19 -3
  97. package/lib/types/controllers/defined-name/defined-name.controller.d.ts +15 -0
  98. package/lib/types/controllers/drag-render.controller.d.ts +19 -2
  99. package/lib/types/controllers/editor/data-sync.controller.d.ts +15 -0
  100. package/lib/types/controllers/editor/editing.render-controller.d.ts +17 -1
  101. package/lib/types/controllers/editor/formula-editor.controller.d.ts +15 -0
  102. package/lib/types/controllers/force-string-alert-render.controller.d.ts +18 -2
  103. package/lib/types/controllers/force-string-render.controller.d.ts +18 -2
  104. package/lib/types/controllers/format-painter/format-painter.controller.d.ts +15 -0
  105. package/lib/types/controllers/hover-render.controller.d.ts +18 -2
  106. package/lib/types/controllers/mark-selection.controller.d.ts +18 -2
  107. package/lib/types/controllers/mobile/mobile-sheet-ui.controller.d.ts +15 -0
  108. package/lib/types/controllers/move-range.controller.d.ts +18 -2
  109. package/lib/types/controllers/permission/sheet-permission-check-ui.controller.d.ts +15 -0
  110. package/lib/types/controllers/permission/sheet-permission-init-ui.controller.d.ts +15 -0
  111. package/lib/types/controllers/permission/sheet-permission-interceptor-canvas-render.controller.d.ts +18 -2
  112. package/lib/types/controllers/permission/sheet-permission-interceptor-clipboard.controller.d.ts +15 -0
  113. package/lib/types/controllers/permission/sheet-permission-interceptor-formula-render.controller.d.ts +18 -2
  114. package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +19 -2
  115. package/lib/types/controllers/render-controllers/clipboard.render-controller.d.ts +18 -2
  116. package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +18 -2
  117. package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +19 -2
  118. package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +18 -2
  119. package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +20 -4
  120. package/lib/types/controllers/render-controllers/header-menu.render-controller.d.ts +18 -2
  121. package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +20 -4
  122. package/lib/types/controllers/render-controllers/header-resize.render-controller.d.ts +20 -4
  123. package/lib/types/controllers/render-controllers/header-unhide.render-controller.d.ts +18 -2
  124. package/lib/types/controllers/render-controllers/mobile/mobile-contextmenu.render-controller.d.ts +43 -6
  125. package/lib/types/controllers/render-controllers/mobile/mobile-header-resize.render-controller.d.ts +18 -2
  126. package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts +19 -2
  127. package/lib/types/controllers/render-controllers/scroll.render-controller.d.ts +19 -2
  128. package/lib/types/controllers/render-controllers/sheet.render-controller.d.ts +19 -3
  129. package/lib/types/controllers/render-controllers/skeleton.render-controller.d.ts +19 -2
  130. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +18 -2
  131. package/lib/types/controllers/sheet-ui.controller.d.ts +15 -0
  132. package/lib/types/controllers/shortcuts/copy-fill.shortcut.d.ts +18 -0
  133. package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +17 -1
  134. package/lib/types/controllers/shortcuts/operation.shortcut.d.ts +16 -1
  135. package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +17 -2
  136. package/lib/types/controllers/shortcuts/style.shortcut.d.ts +16 -1
  137. package/lib/types/controllers/shortcuts/utils.d.ts +16 -1
  138. package/lib/types/controllers/shortcuts/value.shortcut.d.ts +16 -1
  139. package/lib/types/controllers/shortcuts/view.shortcut.d.ts +16 -1
  140. package/lib/types/controllers/status-bar.controller.d.ts +21 -4
  141. package/lib/types/controllers/utils/char-tools.d.ts +16 -1
  142. package/lib/types/controllers/utils/component-tools.d.ts +18 -2
  143. package/lib/types/controllers/utils/range-tools.d.ts +17 -2
  144. package/lib/types/controllers/utils/selections-tools.d.ts +19 -3
  145. package/lib/types/facade/f-enum.d.ts +15 -0
  146. package/lib/types/facade/f-event.d.ts +22 -7
  147. package/lib/types/facade/f-permission.d.ts +15 -0
  148. package/lib/types/facade/f-range.d.ts +21 -4
  149. package/lib/types/facade/f-sheet-hooks.d.ts +18 -2
  150. package/lib/types/facade/f-univer.d.ts +18 -3
  151. package/lib/types/facade/f-workbook.d.ts +20 -5
  152. package/lib/types/facade/f-worksheet.d.ts +22 -5
  153. package/lib/types/hooks/use-highlight-range.d.ts +16 -1
  154. package/lib/types/index.d.ts +1 -0
  155. package/lib/types/locale/ca-ES.d.ts +16 -1
  156. package/lib/types/locale/es-ES.d.ts +16 -1
  157. package/lib/types/locale/fa-IR.d.ts +16 -1
  158. package/lib/types/locale/fr-FR.d.ts +16 -1
  159. package/lib/types/locale/ja-JP.d.ts +16 -1
  160. package/lib/types/locale/ko-KR.d.ts +16 -1
  161. package/lib/types/locale/ru-RU.d.ts +16 -1
  162. package/lib/types/locale/sk-SK.d.ts +16 -1
  163. package/lib/types/locale/vi-VN.d.ts +16 -1
  164. package/lib/types/locale/zh-CN.d.ts +16 -1
  165. package/lib/types/locale/zh-TW.d.ts +16 -1
  166. package/lib/types/menu/border.menu.d.ts +18 -3
  167. package/lib/types/menu/clear.menu.d.ts +17 -2
  168. package/lib/types/menu/delete.menu.d.ts +17 -2
  169. package/lib/types/menu/font.menu.d.ts +18 -2
  170. package/lib/types/menu/frozen.menu.d.ts +17 -2
  171. package/lib/types/menu/gridlines.menu.d.ts +17 -2
  172. package/lib/types/menu/header-menu-shape.d.ts +17 -1
  173. package/lib/types/menu/insert.menu.d.ts +17 -2
  174. package/lib/types/menu/menu-util.d.ts +18 -2
  175. package/lib/types/menu/menu.d.ts +18 -2
  176. package/lib/types/menu/merge.menu.d.ts +17 -2
  177. package/lib/types/menu/mobile-menu.d.ts +16 -2
  178. package/lib/types/menu/permission-menu-util.d.ts +25 -10
  179. package/lib/types/menu/permission.menu.d.ts +17 -2
  180. package/lib/types/menu/schema.d.ts +16 -1
  181. package/lib/types/menu/sheet.menu.d.ts +17 -2
  182. package/lib/types/menu/text-to-number.menu.d.ts +17 -2
  183. package/lib/types/menu/utils.d.ts +17 -2
  184. package/lib/types/mobile-plugin.d.ts +16 -1
  185. package/lib/types/plugin.d.ts +16 -1
  186. package/lib/types/services/auto-height.service.d.ts +19 -3
  187. package/lib/types/services/canvas-pop-manager.service.d.ts +23 -4
  188. package/lib/types/services/cell-alert-manager.service.d.ts +19 -3
  189. package/lib/types/services/cell-dropdown-manager.service.d.ts +20 -4
  190. package/lib/types/services/cell-popup-manager.service.d.ts +21 -4
  191. package/lib/types/services/clipboard/clipboard.service.d.ts +22 -5
  192. package/lib/types/services/clipboard/clone.d.ts +17 -2
  193. package/lib/types/services/clipboard/copy-content-cache.d.ts +19 -4
  194. package/lib/types/services/clipboard/html-to-usm/converter.d.ts +19 -4
  195. package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +16 -1
  196. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts +16 -1
  197. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-univer.d.ts +16 -1
  198. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts +16 -1
  199. package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts +16 -1
  200. package/lib/types/services/clipboard/html-to-usm/utils.d.ts +22 -7
  201. package/lib/types/services/clipboard/type.d.ts +25 -3
  202. package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +18 -3
  203. package/lib/types/services/clipboard/utils.d.ts +17 -2
  204. package/lib/types/services/drag-manager.service.d.ts +22 -5
  205. package/lib/types/services/editor/cell-editor-manager.service.d.ts +18 -3
  206. package/lib/types/services/editor/cell-editor-resize.service.d.ts +15 -0
  207. package/lib/types/services/editor/formula-editor-manager.service.d.ts +18 -3
  208. package/lib/types/services/editor-bridge.service.d.ts +23 -5
  209. package/lib/types/services/format-painter/format-painter.service.d.ts +19 -3
  210. package/lib/types/services/hover-manager.service.d.ts +39 -22
  211. package/lib/types/services/mark-selection/mark-selection.service.d.ts +17 -2
  212. package/lib/types/services/permission/sheet-permission-panel.model.d.ts +17 -2
  213. package/lib/types/services/permission/sheet-permission-render-manager.service.d.ts +16 -1
  214. package/lib/types/services/permission/sheet-permission-user-list.service.d.ts +18 -3
  215. package/lib/types/services/print-interceptor.service.d.ts +21 -5
  216. package/lib/types/services/scroll-manager.service.d.ts +18 -3
  217. package/lib/types/services/select-all/select-all.service.d.ts +17 -1
  218. package/lib/types/services/selection/base-selection-render.service.d.ts +26 -8
  219. package/lib/types/services/selection/const.d.ts +20 -5
  220. package/lib/types/services/selection/mobile-selection-render.service.d.ts +22 -3
  221. package/lib/types/services/selection/mobile-selection-shape.d.ts +20 -3
  222. package/lib/types/services/selection/selection-control.d.ts +24 -6
  223. package/lib/types/services/selection/selection-layer.d.ts +17 -1
  224. package/lib/types/services/selection/selection-render-model.d.ts +18 -2
  225. package/lib/types/services/selection/selection-render.service.d.ts +19 -2
  226. package/lib/types/services/selection/selection-shape-extension.d.ts +18 -3
  227. package/lib/types/services/selection/util.d.ts +18 -3
  228. package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +20 -4
  229. package/lib/types/services/sheet-skeleton-manager.service.d.ts +21 -4
  230. package/lib/types/services/sheets-render.service.d.ts +17 -1
  231. package/lib/types/services/shortcut-experience.service.d.ts +18 -2
  232. package/lib/types/services/status-bar.service.d.ts +19 -4
  233. package/lib/types/services/utils/doc-skeleton-util.d.ts +18 -3
  234. package/lib/types/services/utils/drawing-position-util.d.ts +18 -3
  235. package/lib/types/services/utils/selection-util.d.ts +17 -2
  236. package/lib/types/views/auto-fill-popup-menu/AutoFillPopupMenu.d.ts +15 -0
  237. package/lib/types/views/cell-alert/CellAlertPopup.d.ts +16 -1
  238. package/lib/types/views/cell-popup/index.d.ts +17 -2
  239. package/lib/types/views/defined-name/DefinedNameInput.d.ts +16 -1
  240. package/lib/types/views/dropdown/cascader-dropdown/index.d.ts +18 -3
  241. package/lib/types/views/dropdown/color-dropdown/index.d.ts +17 -2
  242. package/lib/types/views/dropdown/date-dropdown/index.d.ts +17 -2
  243. package/lib/types/views/dropdown/index.d.ts +23 -4
  244. package/lib/types/views/dropdown/list-dropdown/index.d.ts +17 -2
  245. package/lib/types/views/dropdown/type.d.ts +16 -1
  246. package/lib/types/views/editor-container/hooks.d.ts +16 -1
  247. package/lib/types/views/header-resize-shape.d.ts +17 -1
  248. package/lib/types/views/header-unhide-shape.d.ts +17 -1
  249. package/lib/types/views/permission/extensions/range-protection.render.d.ts +19 -3
  250. package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +18 -2
  251. package/lib/types/views/permission/panel/index.d.ts +16 -1
  252. package/lib/types/views/permission/panel-detail/PermissionDetailFooterPart.d.ts +17 -2
  253. package/lib/types/views/permission/panel-detail/PermissionDetailMainPart.d.ts +16 -1
  254. package/lib/types/views/permission/panel-detail/PermissionDetailPanel.d.ts +16 -1
  255. package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +15 -0
  256. package/lib/types/views/permission/spin/index.d.ts +16 -1
  257. package/lib/types/views/permission/util.d.ts +17 -2
  258. package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +16 -1
  259. package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +16 -1
  260. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +17 -2
  261. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabsContextMenu.d.ts +17 -2
  262. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +15 -0
  263. package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +17 -2
  264. package/lib/umd/facade.js +1 -1
  265. package/lib/umd/index.js +288 -20
  266. package/lib/umd/locale/ca-ES.js +1 -1
  267. package/lib/umd/locale/en-US.js +1 -1
  268. package/lib/umd/locale/es-ES.js +1 -1
  269. package/lib/umd/locale/fa-IR.js +1 -1
  270. package/lib/umd/locale/fr-FR.js +1 -1
  271. package/lib/umd/locale/ja-JP.js +1 -1
  272. package/lib/umd/locale/ko-KR.js +1 -1
  273. package/lib/umd/locale/ru-RU.js +1 -1
  274. package/lib/umd/locale/sk-SK.js +1 -1
  275. package/lib/umd/locale/vi-VN.js +1 -1
  276. package/lib/umd/locale/zh-CN.js +1 -1
  277. package/lib/umd/locale/zh-TW.js +1 -1
  278. package/package.json +16 -15
@@ -1,2 +1,17 @@
1
- import { IAccessor } from '@univerjs/core';
2
- export declare function getFontStyleAtCursor(accessor: IAccessor): import('@univerjs/core').ITextRun | null | undefined;
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IAccessor } from '@univerjs/core';
17
+ export declare function getFontStyleAtCursor(accessor: IAccessor): import("@univerjs/core").ITextRun | null | undefined;
@@ -1,4 +1,19 @@
1
- import { IUniverSheetsUIConfig } from './config/config';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IUniverSheetsUIConfig } from './config/config';
2
17
  import { IConfigService, Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
3
18
  import { IRenderManagerService } from '@univerjs/engine-render';
4
19
  import { ComponentManager } from '@univerjs/ui';
@@ -1,4 +1,19 @@
1
- import { IUniverSheetsUIConfig } from './config/config';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IUniverSheetsUIConfig } from './config/config';
2
17
  import { IConfigService, Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
3
18
  import { IRenderManagerService } from '@univerjs/engine-render';
4
19
  import { ComponentManager } from '@univerjs/ui';
@@ -1,5 +1,21 @@
1
- import { IRange, Workbook, Disposable, ICommandService } from '@univerjs/core';
2
- import { IRenderContext, IRenderModule, SpreadsheetSkeleton } from '@univerjs/engine-render';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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, Workbook } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule, SpreadsheetSkeleton } from '@univerjs/engine-render';
18
+ import { Disposable, ICommandService } from '@univerjs/core';
3
19
  import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
4
20
  export interface IAutoHeightTask {
5
21
  ranges: IRange[];
@@ -11,7 +27,7 @@ export interface IAutoHeightTaskInfo extends IAutoHeightTask {
11
27
  startTime: number;
12
28
  skeleton: SpreadsheetSkeleton;
13
29
  }
14
- export declare const IAutoHeightService: import('@wendellhu/redi').IdentifierDecorator<unknown>;
30
+ export declare const IAutoHeightService: import("@wendellhu/redi").IdentifierDecorator<unknown>;
15
31
  export declare function taskRowsFromRanges(ranges: IRange[], rows: number): {
16
32
  result: IRange[];
17
33
  lasts: IRange[];
@@ -1,7 +1,26 @@
1
- import { DrawingTypeEnum, ICommandInfo, INeedCheckDisposable, IRange, Nullable, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
- import { BaseObject, IBoundRectNoAngle, Viewport, IRenderManagerService } from '@univerjs/engine-render';
3
- import { ISheetLocationBase, RefRangeService, SheetsSelectionsService } from '@univerjs/sheets';
4
- import { IPopup, ICanvasPopupService } from '@univerjs/ui';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { DrawingTypeEnum, ICommandInfo, INeedCheckDisposable, IRange, Nullable } from '@univerjs/core';
17
+ import type { BaseObject, IBoundRectNoAngle, Viewport } from '@univerjs/engine-render';
18
+ import type { ISheetLocationBase } from '@univerjs/sheets';
19
+ import type { IPopup } from '@univerjs/ui';
20
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
21
+ import { IRenderManagerService } from '@univerjs/engine-render';
22
+ import { RefRangeService, SheetsSelectionsService } from '@univerjs/sheets';
23
+ import { ICanvasPopupService } from '@univerjs/ui';
5
24
  import { ISheetSelectionRenderService } from './selection/base-selection-render.service';
6
25
  export interface ICanvasPopup extends Omit<IPopup, 'anchorRect' | 'anchorRect$' | 'unitId' | 'subUnitId' | 'canvasElement'> {
7
26
  mask?: boolean;
@@ -1,5 +1,21 @@
1
- import { IDisposable, Disposable } from '@univerjs/core';
2
- import { ISheetLocationBase } from '@univerjs/sheets';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IDisposable } from '@univerjs/core';
17
+ import type { ISheetLocationBase } from '@univerjs/sheets';
18
+ import { Disposable } from '@univerjs/core';
3
19
  import { IRenderManagerService } from '@univerjs/engine-render';
4
20
  import { CellPopupManagerService } from './cell-popup-manager.service';
5
21
  export declare enum CellAlertType {
@@ -25,7 +41,7 @@ export declare class CellAlertManagerService extends Disposable {
25
41
  alert: ICellAlert;
26
42
  dispose: IDisposable;
27
43
  }>;
28
- currentAlert$: import('rxjs').Observable<[string, {
44
+ currentAlert$: import("rxjs").Observable<[string, {
29
45
  alert: ICellAlert;
30
46
  dispose: IDisposable;
31
47
  }][]>;
@@ -1,6 +1,22 @@
1
- import { IDisposable, Disposable } from '@univerjs/core';
2
- import { ISheetLocation } from '@univerjs/sheets';
3
- import { ICellDropdown } from '../views/dropdown';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IDisposable } from '@univerjs/core';
17
+ import type { ISheetLocation } from '@univerjs/sheets';
18
+ import type { ICellDropdown } from '../views/dropdown';
19
+ import { Disposable } from '@univerjs/core';
4
20
  import { IRenderManagerService } from '@univerjs/engine-render';
5
21
  import { ComponentManager, IZenZoneService } from '@univerjs/ui';
6
22
  import { SheetCanvasPopManagerService } from './canvas-pop-manager.service';
@@ -17,7 +33,7 @@ export interface IDropdownComponentProps {
17
33
  export interface ISheetCellDropdownManagerService {
18
34
  showDropdown(param: IDropdownParam): IDisposable;
19
35
  }
20
- export declare const ISheetCellDropdownManagerService: import('@wendellhu/redi').IdentifierDecorator<ISheetCellDropdownManagerService>;
36
+ export declare const ISheetCellDropdownManagerService: import("@wendellhu/redi").IdentifierDecorator<ISheetCellDropdownManagerService>;
21
37
  export declare class SheetCellDropdownManagerService extends Disposable implements ISheetCellDropdownManagerService {
22
38
  private readonly _canvasPopupManagerService;
23
39
  private readonly _zenZoneService;
@@ -1,6 +1,23 @@
1
- import { IDisposable, Disposable } from '@univerjs/core';
2
- import { ISheetLocationBase } from '@univerjs/sheets';
3
- import { ICanvasPopup, SheetCanvasPopManagerService } from './canvas-pop-manager.service';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IDisposable } from '@univerjs/core';
17
+ import type { ISheetLocationBase } from '@univerjs/sheets';
18
+ import type { ICanvasPopup } from './canvas-pop-manager.service';
19
+ import { Disposable } from '@univerjs/core';
20
+ import { SheetCanvasPopManagerService } from './canvas-pop-manager.service';
4
21
  export interface ICellPopup extends Omit<ICanvasPopup, 'direction' | 'offset' | 'mask'> {
5
22
  direction?: 'horizontal' | 'vertical';
6
23
  id?: string;
@@ -21,7 +38,7 @@ export declare class CellPopupManagerService extends Disposable {
21
38
  private readonly _sheetCanvasPopManagerService;
22
39
  private readonly _cellPopupMap;
23
40
  private readonly _change$;
24
- readonly change$: import('rxjs').Observable<ICellPopupChange>;
41
+ readonly change$: import("rxjs").Observable<ICellPopupChange>;
25
42
  constructor(_sheetCanvasPopManagerService: SheetCanvasPopManagerService);
26
43
  private _ensureCellPopupMap;
27
44
  showPopup(location: ISheetLocationBase, popup: ICellPopup): IDisposable;
@@ -1,8 +1,25 @@
1
- import { ICellDataWithSpanAndDisplay, IDisposable, IRange, Nullable, Disposable, ErrorService, ICommandService, ILogService, Injector, IUndoRedoService, IUniverInstanceService, LocaleService, ObjectMatrix, ThemeService } from '@univerjs/core';
2
- import { IDiscreteRange, SheetsSelectionsService } from '@univerjs/sheets';
3
- import { Observable } from 'rxjs';
4
- import { ICopyOptions, IPasteHookKeyType, IPasteOptionCache, ISheetClipboardHook } from './type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { ICellDataWithSpanAndDisplay, IDisposable, IRange, Nullable } from '@univerjs/core';
17
+ import type { IDiscreteRange } from '@univerjs/sheets';
18
+ import type { Observable } from 'rxjs';
19
+ import type { ICopyOptions, IPasteHookKeyType, IPasteOptionCache, ISheetClipboardHook } from './type';
20
+ import { Disposable, ErrorService, ICommandService, ILogService, Injector, IUndoRedoService, IUniverInstanceService, LocaleService, ObjectMatrix, ThemeService } from '@univerjs/core';
5
21
  import { IRenderManagerService } from '@univerjs/engine-render';
22
+ import { SheetsSelectionsService } from '@univerjs/sheets';
6
23
  import { IClipboardInterfaceService, INotificationService, IPlatformService } from '@univerjs/ui';
7
24
  import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
8
25
  import { CopyContentCache } from './copy-content-cache';
@@ -59,7 +76,7 @@ export interface ISheetClipboardService {
59
76
  getClipboardHooks(): ISheetClipboardHook[];
60
77
  removeMarkSelection(): void;
61
78
  }
62
- export declare const ISheetClipboardService: import('@wendellhu/redi').IdentifierDecorator<ISheetClipboardService>;
79
+ export declare const ISheetClipboardService: import("@wendellhu/redi").IdentifierDecorator<ISheetClipboardService>;
63
80
  export declare class SheetClipboardService extends Disposable implements ISheetClipboardService {
64
81
  private readonly _logService;
65
82
  private readonly _univerInstanceService;
@@ -1,5 +1,20 @@
1
- import { Nullable } from '@univerjs/core';
2
- import { ICellDataWithSpanInfo } from './type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 type { ICellDataWithSpanInfo } from './type';
3
18
  /**
4
19
  * Fast clone for ICellDataWithSpanInfo. Optimized for the known structure.
5
20
  * This extends cloneCellData with additional span and plain properties.
@@ -1,6 +1,21 @@
1
- import { Nullable, ObjectMatrix } from '@univerjs/core';
2
- import { IDiscreteRange } from '@univerjs/sheets';
3
- import { COPY_TYPE, ICellDataWithSpanInfo } from './type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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, ObjectMatrix } from '@univerjs/core';
17
+ import type { IDiscreteRange } from '@univerjs/sheets';
18
+ import type { COPY_TYPE, ICellDataWithSpanInfo } from './type';
4
19
  export interface ICopyContentCacheData {
5
20
  subUnitId: string;
6
21
  unitId: string;
@@ -13,7 +28,7 @@ export declare function extractId(html: string): string | null;
13
28
  export declare class CopyContentCache {
14
29
  private _cache;
15
30
  private readonly _lastCopyId$;
16
- readonly lastCopyId$: import('rxjs').Observable<string | null>;
31
+ readonly lastCopyId$: import("rxjs").Observable<string | null>;
17
32
  set(id: string, clipboardData: ICopyContentCacheData): void;
18
33
  get(id: string): ICopyContentCacheData | undefined;
19
34
  del(id: string): void;
@@ -1,7 +1,22 @@
1
- import { ITextStyle, Nullable } from '@univerjs/core';
2
- import { ISheetSkeletonManagerParam } from '../../sheet-skeleton-manager.service';
3
- import { IClipboardPropertyItem, IUniverSheetCopyDataModel } from '../type';
4
- import { IPastePlugin } from './paste-plugins/type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { ITextStyle, Nullable } from '@univerjs/core';
17
+ import type { ISheetSkeletonManagerParam } from '../../sheet-skeleton-manager.service';
18
+ import type { IClipboardPropertyItem, IUniverSheetCopyDataModel } from '../type';
19
+ import type { IPastePlugin } from './paste-plugins/type';
5
20
  export interface IStyleRule {
6
21
  filter: string | string[] | ((node: HTMLElement) => boolean);
7
22
  getStyle(node: HTMLElement): ITextStyle;
@@ -1,2 +1,17 @@
1
- import { ITextStyle } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { ITextStyle } from '@univerjs/core';
2
17
  export declare function extractNodeStyle(node: HTMLElement, predefinedStyles?: Record<string, string>): ITextStyle;
@@ -1,2 +1,17 @@
1
- import { IPastePlugin } from './type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IPastePlugin } from './type';
2
17
  export declare const LarkPastePlugin: IPastePlugin;
@@ -1,2 +1,17 @@
1
- import { IPastePlugin } from './type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IPastePlugin } from './type';
2
17
  export declare const UniverPastePlugin: IPastePlugin;
@@ -1,2 +1,17 @@
1
- import { IPastePlugin } from './type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IPastePlugin } from './type';
2
17
  export declare const WordPastePlugin: IPastePlugin;
@@ -1,4 +1,19 @@
1
- import { IDocumentBody, ITextStyle } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IDocumentBody, ITextStyle } from '@univerjs/core';
2
17
  export interface IStyleRule {
3
18
  filter: string | string[] | ((node: HTMLElement) => boolean);
4
19
  getStyle(node: HTMLElement): ITextStyle;
@@ -1,18 +1,33 @@
1
- import { IParagraph, IParagraphStyle, ITextRun, Nullable } from '@univerjs/core';
2
- import { ICellDataWithSpanInfo } from '../type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { IParagraph, IParagraphStyle, ITextRun, Nullable } from '@univerjs/core';
17
+ import type { ICellDataWithSpanInfo } from '../type';
3
18
  export default function parseToDom(rawHtml: string): HTMLBodyElement;
4
19
  export declare function getParagraphStyle(el: HTMLElement): Nullable<IParagraphStyle>;
5
20
  export declare function generateParagraphs(dataStream: string, prevParagraph?: IParagraph): IParagraph[];
6
21
  export declare function convertToCellStyle(cell: ICellDataWithSpanInfo, dataStream: string, textRuns: ITextRun[] | undefined): ICellDataWithSpanInfo | {
7
- s: import('@univerjs/core').ITextStyle | undefined;
8
- p?: Nullable<import('@univerjs/core').IDocumentData>;
9
- v?: Nullable<import('@univerjs/core').CellValue>;
10
- t?: Nullable<import('@univerjs/core').CellValueType>;
22
+ s: import("@univerjs/core").ITextStyle | undefined;
23
+ p?: Nullable<import("@univerjs/core").IDocumentData>;
24
+ v?: Nullable<import("@univerjs/core").CellValue>;
25
+ t?: Nullable<import("@univerjs/core").CellValueType>;
11
26
  f?: Nullable<string>;
12
27
  ref?: Nullable<string>;
13
28
  xf?: Nullable<string>;
14
29
  si?: Nullable<string>;
15
- custom?: import('@univerjs/core').CustomData;
30
+ custom?: import("@univerjs/core").CustomData;
16
31
  rowSpan?: number;
17
32
  colSpan?: number;
18
33
  plain?: string;
@@ -1,6 +1,21 @@
1
- import { ICellData, ICellDataWithSpanAndDisplay, IDocumentData, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
2
- import { IDiscreteRange } from '@univerjs/sheets';
3
- import { PREDEFINED_HOOK_NAME_COPY, PREDEFINED_HOOK_NAME_PASTE } from './clipboard.service';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { ICellData, ICellDataWithSpanAndDisplay, IDocumentData, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
17
+ import type { IDiscreteRange } from '@univerjs/sheets';
18
+ import type { PREDEFINED_HOOK_NAME_COPY, PREDEFINED_HOOK_NAME_PASTE } from './clipboard.service';
4
19
  export declare enum COPY_TYPE {
5
20
  COPY = "COPY",
6
21
  CUT = "CUT"
@@ -201,6 +216,13 @@ export interface ISheetClipboardHook {
201
216
  * Handle matrix on each cell of copy operation.
202
217
  */
203
218
  handleMatrixOnCell?(row: number, column: number, rowIndexInMatrix: number, columnIndexInMatrix: number, matrix: ObjectMatrix<ICellDataWithSpanAndDisplay>, matrixFragment: ObjectMatrix<ICellDataWithSpanInfo>, plainMatrix: ObjectMatrix<ICellDataWithSpanAndDisplay>): void;
219
+ /**
220
+ * If the hook is provided with `getCellValueBySpecialMatrix`, then should be used first to get cell value when copying.
221
+ */
222
+ getCellValueBySpecialMatrix?(row: number, column: number, options?: {
223
+ unitId?: string;
224
+ subUnitId?: string;
225
+ }): ICellDataWithSpanAndDisplay | undefined;
204
226
  }
205
227
  export interface ICopyOptions {
206
228
  copyType?: COPY_TYPE;
@@ -1,6 +1,21 @@
1
- import { ICellData, ObjectMatrix } from '@univerjs/core';
2
- import { IDiscreteRange } from '@univerjs/sheets';
3
- import { ISheetClipboardHook } from '../type';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { ICellData, ObjectMatrix } from '@univerjs/core';
17
+ import type { IDiscreteRange } from '@univerjs/sheets';
18
+ import type { ISheetClipboardHook } from '../type';
4
19
  export declare class USMToHtmlService {
5
20
  convert(matrix: ObjectMatrix<ICellData & {
6
21
  rowSpan?: number | undefined;
@@ -1,5 +1,20 @@
1
- import { ICellData, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
2
- import { IDiscreteRange, ISetRangeValuesMutationParams } from '@univerjs/sheets';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { ICellData, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
17
+ import type { IDiscreteRange, ISetRangeValuesMutationParams } from '@univerjs/sheets';
3
18
  /**
4
19
  *
5
20
  *
@@ -1,6 +1,23 @@
1
- import { Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { IDragEvent, IRenderManagerService } from '@univerjs/engine-render';
3
- import { IHoverCellPosition } from './hover-manager.service';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 type { IDragEvent } from '@univerjs/engine-render';
18
+ import type { IHoverCellPosition } from './hover-manager.service';
19
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
20
+ import { IRenderManagerService } from '@univerjs/engine-render';
4
21
  export interface IDragCellPosition extends IHoverCellPosition {
5
22
  dataTransfer: DataTransfer;
6
23
  }
@@ -8,9 +25,9 @@ export declare class DragManagerService extends Disposable {
8
25
  private readonly _univerInstanceService;
9
26
  private readonly _renderManagerService;
10
27
  private _currentCell$;
11
- currentCell$: import('rxjs').Observable<Nullable<IDragCellPosition>>;
28
+ currentCell$: import("rxjs").Observable<Nullable<IDragCellPosition>>;
12
29
  private _endCell$;
13
- endCell$: import('rxjs').Observable<Nullable<IDragCellPosition>>;
30
+ endCell$: import("rxjs").Observable<Nullable<IDragCellPosition>>;
14
31
  constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
15
32
  dispose(): void;
16
33
  private _initCellDisposableListener;