@cool-office/docs-ui 0.0.0-stage → 1.2.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 (343) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +112 -2
  3. package/lib/cjs/facade.js +81 -0
  4. package/lib/cjs/index.js +33220 -0
  5. package/lib/cjs/locale/ar-SA.js +258 -0
  6. package/lib/cjs/locale/ca-ES.js +258 -0
  7. package/lib/cjs/locale/de-DE.js +258 -0
  8. package/lib/cjs/locale/en-US.js +273 -0
  9. package/lib/cjs/locale/es-ES.js +258 -0
  10. package/lib/cjs/locale/fa-IR.js +258 -0
  11. package/lib/cjs/locale/fr-FR.js +258 -0
  12. package/lib/cjs/locale/id-ID.js +258 -0
  13. package/lib/cjs/locale/it-IT.js +258 -0
  14. package/lib/cjs/locale/ja-JP.js +258 -0
  15. package/lib/cjs/locale/ko-KR.js +258 -0
  16. package/lib/cjs/locale/pl-PL.js +258 -0
  17. package/lib/cjs/locale/pt-BR.js +258 -0
  18. package/lib/cjs/locale/ru-RU.js +258 -0
  19. package/lib/cjs/locale/sk-SK.js +258 -0
  20. package/lib/cjs/locale/vi-VN.js +258 -0
  21. package/lib/cjs/locale/zh-CN.js +258 -0
  22. package/lib/cjs/locale/zh-HK.js +258 -0
  23. package/lib/cjs/locale/zh-TW.js +258 -0
  24. package/lib/es/facade.js +82 -0
  25. package/lib/es/index.js +32881 -0
  26. package/lib/es/locale/ar-SA.js +258 -0
  27. package/lib/es/locale/ca-ES.js +258 -0
  28. package/lib/es/locale/de-DE.js +258 -0
  29. package/lib/es/locale/en-US.js +273 -0
  30. package/lib/es/locale/es-ES.js +258 -0
  31. package/lib/es/locale/fa-IR.js +258 -0
  32. package/lib/es/locale/fr-FR.js +258 -0
  33. package/lib/es/locale/id-ID.js +258 -0
  34. package/lib/es/locale/it-IT.js +258 -0
  35. package/lib/es/locale/ja-JP.js +258 -0
  36. package/lib/es/locale/ko-KR.js +258 -0
  37. package/lib/es/locale/pl-PL.js +258 -0
  38. package/lib/es/locale/pt-BR.js +258 -0
  39. package/lib/es/locale/ru-RU.js +258 -0
  40. package/lib/es/locale/sk-SK.js +258 -0
  41. package/lib/es/locale/vi-VN.js +258 -0
  42. package/lib/es/locale/zh-CN.js +258 -0
  43. package/lib/es/locale/zh-HK.js +258 -0
  44. package/lib/es/locale/zh-TW.js +258 -0
  45. package/lib/facade.js +82 -0
  46. package/lib/index.css +1252 -0
  47. package/lib/index.js +32881 -0
  48. package/lib/locale/ar-SA.js +258 -0
  49. package/lib/locale/ca-ES.js +258 -0
  50. package/lib/locale/de-DE.js +258 -0
  51. package/lib/locale/en-US.js +273 -0
  52. package/lib/locale/es-ES.js +258 -0
  53. package/lib/locale/fa-IR.js +258 -0
  54. package/lib/locale/fr-FR.js +258 -0
  55. package/lib/locale/id-ID.js +258 -0
  56. package/lib/locale/it-IT.js +258 -0
  57. package/lib/locale/ja-JP.js +258 -0
  58. package/lib/locale/ko-KR.js +258 -0
  59. package/lib/locale/pl-PL.js +258 -0
  60. package/lib/locale/pt-BR.js +258 -0
  61. package/lib/locale/ru-RU.js +258 -0
  62. package/lib/locale/sk-SK.js +258 -0
  63. package/lib/locale/vi-VN.js +258 -0
  64. package/lib/locale/zh-CN.js +258 -0
  65. package/lib/locale/zh-HK.js +258 -0
  66. package/lib/locale/zh-TW.js +258 -0
  67. package/lib/types/basics/component-tools.d.ts +30 -0
  68. package/lib/types/basics/custom-decoration-factory.d.ts +40 -0
  69. package/lib/types/basics/doc-custom-range-chrome.d.ts +31 -0
  70. package/lib/types/basics/docs-view-key.d.ts +30 -0
  71. package/lib/types/basics/editor.d.ts +16 -0
  72. package/lib/types/basics/paragraph.d.ts +24 -0
  73. package/lib/types/basics/selection.d.ts +17 -0
  74. package/lib/types/basics/table.d.ts +31 -0
  75. package/lib/types/commands/commands/auto-format.command.d.ts +22 -0
  76. package/lib/types/commands/commands/break-line.command.d.ts +29 -0
  77. package/lib/types/commands/commands/clipboard.command.d.ts +39 -0
  78. package/lib/types/commands/commands/clipboard.inner.command.d.ts +43 -0
  79. package/lib/types/commands/commands/doc-block-move.command.d.ts +52 -0
  80. package/lib/types/commands/commands/doc-delete.command.d.ts +44 -0
  81. package/lib/types/commands/commands/doc-header-footer.command.d.ts +40 -0
  82. package/lib/types/commands/commands/doc-horizontal-line.command.d.ts +24 -0
  83. package/lib/types/commands/commands/doc-page-setup.command.d.ts +27 -0
  84. package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +20 -0
  85. package/lib/types/commands/commands/doc-select-all.command.d.ts +23 -0
  86. package/lib/types/commands/commands/format-painter.command.d.ts +33 -0
  87. package/lib/types/commands/commands/ime-input.command.d.ts +25 -0
  88. package/lib/types/commands/commands/inline-format.command.d.ts +36 -0
  89. package/lib/types/commands/commands/insert-below/insert-bullet-below.command.d.ts +21 -0
  90. package/lib/types/commands/commands/insert-custom-range.command.d.ts +26 -0
  91. package/lib/types/commands/commands/insert-header-footer-field.command.d.ts +28 -0
  92. package/lib/types/commands/commands/insert-special-character.command.d.ts +19 -0
  93. package/lib/types/commands/commands/list.command.d.ts +64 -0
  94. package/lib/types/commands/commands/paragraph-align.command.d.ts +34 -0
  95. package/lib/types/commands/commands/refresh-header-footer-fields.command.d.ts +22 -0
  96. package/lib/types/commands/commands/replace-content.command.d.ts +55 -0
  97. package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts +21 -0
  98. package/lib/types/commands/commands/set-heading.command.d.ts +38 -0
  99. package/lib/types/commands/commands/switch-doc-mode.command.d.ts +19 -0
  100. package/lib/types/commands/commands/table/doc-table-create.command.d.ts +56 -0
  101. package/lib/types/commands/commands/table/doc-table-delete.command.d.ts +28 -0
  102. package/lib/types/commands/commands/table/doc-table-insert.command.d.ts +49 -0
  103. package/lib/types/commands/commands/table/doc-table-tab.command.d.ts +20 -0
  104. package/lib/types/commands/commands/table/table.d.ts +108 -0
  105. package/lib/types/commands/commands/util.d.ts +17 -0
  106. package/lib/types/commands/operations/doc-create-table.operation.d.ts +17 -0
  107. package/lib/types/commands/operations/doc-cursor.operation.d.ts +29 -0
  108. package/lib/types/commands/operations/doc-header-footer-panel.operation.d.ts +20 -0
  109. package/lib/types/commands/operations/doc-header-footer-ribbon.operation.d.ts +19 -0
  110. package/lib/types/commands/operations/doc-paragraph-setting-panel.operation.d.ts +17 -0
  111. package/lib/types/commands/operations/doc-section-setting-panel.operation.d.ts +17 -0
  112. package/lib/types/commands/operations/insert-break.operation.d.ts +21 -0
  113. package/lib/types/commands/operations/open-page-setting.operation.d.ts +17 -0
  114. package/lib/types/commands/operations/paragraph-permission.operation.d.ts +17 -0
  115. package/lib/types/commands/operations/permission-panel.operation.d.ts +17 -0
  116. package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts +22 -0
  117. package/lib/types/commands/util.d.ts +23 -0
  118. package/lib/types/components/doc-page-render-component.d.ts +21 -0
  119. package/lib/types/config/config.d.ts +50 -0
  120. package/lib/types/consts/mobile-context.d.ts +17 -0
  121. package/lib/types/controllers/components.controller.d.ts +25 -0
  122. package/lib/types/controllers/doc-auto-format.controller.d.ts +27 -0
  123. package/lib/types/controllers/doc-header-footer-ribbon.controller.d.ts +31 -0
  124. package/lib/types/controllers/doc-header-footer.controller.d.ts +46 -0
  125. package/lib/types/controllers/doc-move-cursor.controller.d.ts +71 -0
  126. package/lib/types/controllers/doc-paragraph-setting.controller.d.ts +25 -0
  127. package/lib/types/controllers/doc-section-setting.controller.d.ts +27 -0
  128. package/lib/types/controllers/doc-table.controller.d.ts +23 -0
  129. package/lib/types/controllers/format-painter.controller.d.ts +23 -0
  130. package/lib/types/controllers/mobile/components.controller.d.ts +25 -0
  131. package/lib/types/controllers/mobile/ui.controller.d.ts +29 -0
  132. package/lib/types/controllers/render-controllers/back-scroll.render-controller.d.ts +50 -0
  133. package/lib/types/controllers/render-controllers/doc-canvas-popup-layout-interaction.controller.d.ts +30 -0
  134. package/lib/types/controllers/render-controllers/doc-checklist.render-controller.d.ts +31 -0
  135. package/lib/types/controllers/render-controllers/doc-clipboard.controller.d.ts +32 -0
  136. package/lib/types/controllers/render-controllers/doc-contextmenu.render-controller.d.ts +38 -0
  137. package/lib/types/controllers/render-controllers/doc-editor-bridge.controller.d.ts +41 -0
  138. package/lib/types/controllers/render-controllers/doc-field.render-controller.d.ts +31 -0
  139. package/lib/types/controllers/render-controllers/doc-ime-input.controller.d.ts +44 -0
  140. package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +36 -0
  141. package/lib/types/controllers/render-controllers/doc-layout-progress.render-controller.d.ts +42 -0
  142. package/lib/types/controllers/render-controllers/doc-layout-recovery.render-controller.d.ts +38 -0
  143. package/lib/types/controllers/render-controllers/doc-mutation-layout.d.ts +35 -0
  144. package/lib/types/controllers/render-controllers/doc-paragraph-placeholder.render-controller.d.ts +61 -0
  145. package/lib/types/controllers/render-controllers/doc-paste-options.render-controller.d.ts +27 -0
  146. package/lib/types/controllers/render-controllers/doc-resize.render-controller.d.ts +30 -0
  147. package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +50 -0
  148. package/lib/types/controllers/render-controllers/doc-selection-render.util.d.ts +21 -0
  149. package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +133 -0
  150. package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +23 -0
  151. package/lib/types/controllers/render-controllers/mobile/back-scroll.render-controller.d.ts +30 -0
  152. package/lib/types/controllers/render-controllers/mobile/doc-pinch-zoom.d.ts +51 -0
  153. package/lib/types/controllers/render-controllers/mobile/doc-selection-render.controller.d.ts +73 -0
  154. package/lib/types/controllers/render-controllers/mobile/doc.render-controller.d.ts +36 -0
  155. package/lib/types/controllers/render-controllers/mobile/zoom.render-controller.d.ts +30 -0
  156. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +49 -0
  157. package/lib/types/controllers/ui.controller.d.ts +38 -0
  158. package/lib/types/embed-docs-custom-block-bleed.d.ts +32 -0
  159. package/lib/types/embed-docs-custom-block-refresh.d.ts +28 -0
  160. package/lib/types/embed-docs-custom-block-scroll.d.ts +19 -0
  161. package/lib/types/embed-host-anchor.d.ts +48 -0
  162. package/lib/types/facade/f-document.d.ts +39 -0
  163. package/lib/types/facade/index.d.ts +17 -0
  164. package/lib/types/index.d.ts +142 -0
  165. package/lib/types/locale/ar-SA.d.ts +18 -0
  166. package/lib/types/locale/ca-ES.d.ts +18 -0
  167. package/lib/types/locale/de-DE.d.ts +18 -0
  168. package/lib/types/locale/en-US.d.ts +280 -0
  169. package/lib/types/locale/es-ES.d.ts +18 -0
  170. package/lib/types/locale/fa-IR.d.ts +18 -0
  171. package/lib/types/locale/fr-FR.d.ts +18 -0
  172. package/lib/types/locale/id-ID.d.ts +18 -0
  173. package/lib/types/locale/it-IT.d.ts +18 -0
  174. package/lib/types/locale/ja-JP.d.ts +18 -0
  175. package/lib/types/locale/ko-KR.d.ts +18 -0
  176. package/lib/types/locale/pl-PL.d.ts +18 -0
  177. package/lib/types/locale/pt-BR.d.ts +18 -0
  178. package/lib/types/locale/ru-RU.d.ts +18 -0
  179. package/lib/types/locale/sk-SK.d.ts +18 -0
  180. package/lib/types/locale/types.d.ts +18 -0
  181. package/lib/types/locale/vi-VN.d.ts +18 -0
  182. package/lib/types/locale/zh-CN.d.ts +18 -0
  183. package/lib/types/locale/zh-HK.d.ts +18 -0
  184. package/lib/types/locale/zh-TW.d.ts +18 -0
  185. package/lib/types/menu/context-menu.d.ts +39 -0
  186. package/lib/types/menu/display.menu.d.ts +21 -0
  187. package/lib/types/menu/header-footer-ribbon.d.ts +17 -0
  188. package/lib/types/menu/menu.d.ts +77 -0
  189. package/lib/types/menu/mobile-schema.d.ts +17 -0
  190. package/lib/types/menu/paragraph-menu.d.ts +90 -0
  191. package/lib/types/menu/permission.menu.d.ts +19 -0
  192. package/lib/types/menu/schema.d.ts +18 -0
  193. package/lib/types/mobile-plugin.d.ts +36 -0
  194. package/lib/types/plugin.d.ts +37 -0
  195. package/lib/types/services/clipboard/clipboard.service.d.ts +136 -0
  196. package/lib/types/services/clipboard/copy-content-cache.d.ts +24 -0
  197. package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +57 -0
  198. package/lib/types/services/clipboard/html-to-udm/converter.d.ts +51 -0
  199. package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +17 -0
  200. package/lib/types/services/clipboard/html-to-udm/parse-to-dom.d.ts +16 -0
  201. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +18 -0
  202. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-univer.d.ts +18 -0
  203. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +18 -0
  204. package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +31 -0
  205. package/lib/types/services/clipboard/html-to-udm/utils.d.ts +17 -0
  206. package/lib/types/services/clipboard/internal-fragment.d.ts +34 -0
  207. package/lib/types/services/clipboard/paste-options.d.ts +33 -0
  208. package/lib/types/services/clipboard/rtf-to-plain-text.d.ts +16 -0
  209. package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +25 -0
  210. package/lib/types/services/clipboard/udm-to-html/doc-html-export.service.d.ts +23 -0
  211. package/lib/types/services/doc-auto-format.service.d.ts +54 -0
  212. package/lib/types/services/doc-contextual-ribbon.service.d.ts +29 -0
  213. package/lib/types/services/doc-embed-integration.service.d.ts +65 -0
  214. package/lib/types/services/doc-event-manager.service.d.ts +204 -0
  215. package/lib/types/services/doc-heading-collapse.service.d.ts +38 -0
  216. package/lib/types/services/doc-ime-input-manager.service.d.ts +63 -0
  217. package/lib/types/services/doc-ime-state-change-interceptor.service.d.ts +23 -0
  218. package/lib/types/services/doc-layout-coordinator.service.d.ts +79 -0
  219. package/lib/types/services/doc-layout-interaction.service.d.ts +29 -0
  220. package/lib/types/services/doc-layout-progress.service.d.ts +30 -0
  221. package/lib/types/services/doc-menu-style.service.d.ts +37 -0
  222. package/lib/types/services/doc-mobile-element-menu.service.d.ts +44 -0
  223. package/lib/types/services/doc-page-layout.service.d.ts +28 -0
  224. package/lib/types/services/doc-paragraph-menu.service.d.ts +129 -0
  225. package/lib/types/services/doc-popup-manager.service.d.ts +79 -0
  226. package/lib/types/services/doc-print-interceptor.service.d.ts +55 -0
  227. package/lib/types/services/doc-render-background.d.ts +29 -0
  228. package/lib/types/services/doc-view-scale.d.ts +54 -0
  229. package/lib/types/services/doc-zoom.d.ts +23 -0
  230. package/lib/types/services/docs-render.service.d.ts +30 -0
  231. package/lib/types/services/editor/editor-manager.service.d.ts +88 -0
  232. package/lib/types/services/editor/editor-runtime-config.d.ts +26 -0
  233. package/lib/types/services/editor/editor.d.ts +139 -0
  234. package/lib/types/services/float-menu.service.d.ts +62 -0
  235. package/lib/types/services/index.d.ts +22 -0
  236. package/lib/types/services/mobile/doc-selection-render.service.d.ts +60 -0
  237. package/lib/types/services/mobile/doc-view-scale.d.ts +19 -0
  238. package/lib/types/services/mobile/float-menu.service.d.ts +20 -0
  239. package/lib/types/services/mobile/mobile-text-selection-visuals.d.ts +32 -0
  240. package/lib/types/services/selection/convert-rect-range.d.ts +42 -0
  241. package/lib/types/services/selection/convert-text-range.d.ts +86 -0
  242. package/lib/types/services/selection/doc-selection-render.service.d.ts +203 -0
  243. package/lib/types/services/selection/range-interface.d.ts +34 -0
  244. package/lib/types/services/selection/rect-range.d.ts +63 -0
  245. package/lib/types/services/selection/selection-utils.d.ts +41 -0
  246. package/lib/types/services/selection/text-range.d.ts +88 -0
  247. package/lib/types/services/selection/word-boundary.d.ts +23 -0
  248. package/lib/types/shortcuts/core-editing.shortcut.d.ts +25 -0
  249. package/lib/types/shortcuts/cursor.shortcut.d.ts +41 -0
  250. package/lib/types/shortcuts/format.shortcut.d.ts +19 -0
  251. package/lib/types/shortcuts/heading.shortcut.d.ts +22 -0
  252. package/lib/types/shortcuts/toolbar.shortcut.d.ts +28 -0
  253. package/lib/types/shortcuts/utils.d.ts +19 -0
  254. package/lib/types/types/const/padding.d.ts +16 -0
  255. package/lib/types/utils/date-time-field.d.ts +22 -0
  256. package/lib/types/utils/horizontal-line.d.ts +17 -0
  257. package/lib/types/utils/section-header-footer.d.ts +34 -0
  258. package/lib/types/views/DocLayoutProgress.d.ts +16 -0
  259. package/lib/types/views/DocLayoutRecovery.d.ts +17 -0
  260. package/lib/types/views/DocPasteOptions.d.ts +17 -0
  261. package/lib/types/views/DocSideMenu.d.ts +16 -0
  262. package/lib/types/views/Icon.d.ts +46 -0
  263. package/lib/types/views/PageSettings.d.ts +43 -0
  264. package/lib/types/views/ParagraphMenu.d.ts +79 -0
  265. package/lib/types/views/RichTextEditor.d.ts +62 -0
  266. package/lib/types/views/SideMenu.d.ts +43 -0
  267. package/lib/types/views/const.d.ts +16 -0
  268. package/lib/types/views/count-bar/CountBar.d.ts +21 -0
  269. package/lib/types/views/count-bar/ZoomSlider.d.ts +16 -0
  270. package/lib/types/views/count-bar/index.d.ts +16 -0
  271. package/lib/types/views/doc-footer/DocFooter.d.ts +16 -0
  272. package/lib/types/views/doc-footer/index.d.ts +16 -0
  273. package/lib/types/views/doc-side-menu-layout.d.ts +17 -0
  274. package/lib/types/views/doc-statistics/DocPageStatus.d.ts +30 -0
  275. package/lib/types/views/doc-statistics/DocStatistics.d.ts +16 -0
  276. package/lib/types/views/doc-statistics/use-doc-statistics.d.ts +30 -0
  277. package/lib/types/views/editor/utils.d.ts +22 -0
  278. package/lib/types/views/float-toolbar/FloatToolbar.d.ts +40 -0
  279. package/lib/types/views/float-toolbar/FloatToolbar.stories.d.ts +22 -0
  280. package/lib/types/views/header-footer/content-cover.d.ts +30 -0
  281. package/lib/types/views/header-footer/panel/DocHeaderFooterFields.d.ts +19 -0
  282. package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +23 -0
  283. package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +17 -0
  284. package/lib/types/views/header-footer/panel/DocHeaderFooterRibbonControl.d.ts +20 -0
  285. package/lib/types/views/header-footer/panel/component-name.d.ts +18 -0
  286. package/lib/types/views/header-footer/panel/use-header-footer-options.d.ts +25 -0
  287. package/lib/types/views/header-footer/text-bubble.d.ts +35 -0
  288. package/lib/types/views/heading-collapse-shape.d.ts +38 -0
  289. package/lib/types/views/list-type-picker/Picker.d.ts +27 -0
  290. package/lib/types/views/list-type-picker/index.d.ts +18 -0
  291. package/lib/types/views/mobile/MobileDocCanvasViewport.d.ts +20 -0
  292. package/lib/types/views/mobile/MobileDocPasteOptions.d.ts +21 -0
  293. package/lib/types/views/mobile/MobileDocSettings.d.ts +20 -0
  294. package/lib/types/views/mobile-doc-toolbar/MobileDocToolbar.d.ts +30 -0
  295. package/lib/types/views/mobile-element-menu/MobileDocElementMenu.d.ts +25 -0
  296. package/lib/types/views/mobile-rich-text-editor/MobileRichTextEditor.d.ts +33 -0
  297. package/lib/types/views/mobile-rich-text-toolbar/MobileRichTextToolbar.d.ts +20 -0
  298. package/lib/types/views/paragraph-menu/component-keys.d.ts +17 -0
  299. package/lib/types/views/paragraph-menu/paragraph-menu-position.d.ts +21 -0
  300. package/lib/types/views/paragraph-menu/theme-color.d.ts +17 -0
  301. package/lib/types/views/paragraph-setting/Setting.d.ts +45 -0
  302. package/lib/types/views/paragraph-setting/hook/utils.d.ts +48 -0
  303. package/lib/types/views/paragraph-setting/index.d.ts +17 -0
  304. package/lib/types/views/paragraph-setting/line-spacing.d.ts +39 -0
  305. package/lib/types/views/permission/DocObjectPermissionEntry.d.ts +24 -0
  306. package/lib/types/views/rich-text-editor/hooks/editor-undo-redo-keyboard.d.ts +36 -0
  307. package/lib/types/views/rich-text-editor/hooks/index.d.ts +23 -0
  308. package/lib/types/views/rich-text-editor/hooks/use-editor-click-outside.d.ts +17 -0
  309. package/lib/types/views/rich-text-editor/hooks/use-editor.d.ts +36 -0
  310. package/lib/types/views/rich-text-editor/hooks/use-is-focusing.d.ts +16 -0
  311. package/lib/types/views/rich-text-editor/hooks/use-keyboard-event.d.ts +26 -0
  312. package/lib/types/views/rich-text-editor/hooks/use-left-and-right-arrow.d.ts +18 -0
  313. package/lib/types/views/rich-text-editor/hooks/use-on-change.d.ts +18 -0
  314. package/lib/types/views/rich-text-editor/hooks/use-resize.d.ts +23 -0
  315. package/lib/types/views/section-setting/Setting.d.ts +27 -0
  316. package/lib/types/views/section-setting/component-name.d.ts +16 -0
  317. package/lib/types/views/section-setting/index.d.ts +17 -0
  318. package/lib/types/views/section-setting/use-section-setting.d.ts +75 -0
  319. package/lib/types/views/side-menu/SideMenu.stories.d.ts +31 -0
  320. package/lib/types/views/table/create/TableCreate.d.ts +24 -0
  321. package/lib/types/views/table/create/component-name.d.ts +16 -0
  322. package/lib/umd/facade.js +1 -0
  323. package/lib/umd/index.js +54 -0
  324. package/lib/umd/locale/ar-SA.js +1 -0
  325. package/lib/umd/locale/ca-ES.js +1 -0
  326. package/lib/umd/locale/de-DE.js +1 -0
  327. package/lib/umd/locale/en-US.js +1 -0
  328. package/lib/umd/locale/es-ES.js +1 -0
  329. package/lib/umd/locale/fa-IR.js +1 -0
  330. package/lib/umd/locale/fr-FR.js +1 -0
  331. package/lib/umd/locale/id-ID.js +1 -0
  332. package/lib/umd/locale/it-IT.js +1 -0
  333. package/lib/umd/locale/ja-JP.js +1 -0
  334. package/lib/umd/locale/ko-KR.js +1 -0
  335. package/lib/umd/locale/pl-PL.js +1 -0
  336. package/lib/umd/locale/pt-BR.js +1 -0
  337. package/lib/umd/locale/ru-RU.js +1 -0
  338. package/lib/umd/locale/sk-SK.js +1 -0
  339. package/lib/umd/locale/vi-VN.js +1 -0
  340. package/lib/umd/locale/zh-CN.js +1 -0
  341. package/lib/umd/locale/zh-HK.js +1 -0
  342. package/lib/umd/locale/zh-TW.js +1 -0
  343. package/package.json +99 -3
@@ -0,0 +1,73 @@
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 { DocumentDataModel } from '@cool-office/core';
17
+ import type { IRenderContext, IRenderModule } from '@cool-office/engine-render';
18
+ import type { MobileDocSelectionRenderService } from '../../../services/mobile/doc-selection-render.service';
19
+ import { Disposable, ICommandService, IContextService, IUniverInstanceService } from '@cool-office/core';
20
+ import { DocSelectionManagerService, DocSkeletonManagerService } from '@cool-office/docs';
21
+ import { IContextMenuService } from '@cool-office/ui';
22
+ import { IDocEmbedInteractionBoundaryService, IDocEmbedRuntimeFocusCoordinator } from '../../../services/doc-embed-integration.service';
23
+ import { DocMobileElementMenuService } from '../../../services/doc-mobile-element-menu.service';
24
+ import { IEditorService } from '../../../services/editor/editor-manager.service';
25
+ export declare class MobileDocSelectionRenderController extends Disposable implements IRenderModule {
26
+ private readonly _context;
27
+ private readonly _commandService;
28
+ private readonly _editorService;
29
+ private readonly _instanceSrv;
30
+ private readonly _docSelectionRenderService;
31
+ private readonly _docSkeletonManagerService;
32
+ private readonly _docSelectionManagerService;
33
+ private readonly _contextService;
34
+ private readonly _contextMenuService;
35
+ private readonly _mobileElementMenuService;
36
+ private readonly _embedRuntimeFocusCoordinator?;
37
+ private _loadedMap;
38
+ private _deferredEditorFocusTimer;
39
+ private _gestureTimer;
40
+ private _gestureDisposables;
41
+ private _lastTap;
42
+ private _inertiaAnimationId;
43
+ private _inertiaLastFrameTime;
44
+ private _inertiaVelocity;
45
+ private _initialSelectionReady;
46
+ constructor(_context: IRenderContext<DocumentDataModel>, _commandService: ICommandService, _editorService: IEditorService, _instanceSrv: IUniverInstanceService, _docSelectionRenderService: MobileDocSelectionRenderService, _docSkeletonManagerService: DocSkeletonManagerService, _docSelectionManagerService: DocSelectionManagerService, _contextService: IContextService, _contextMenuService: IContextMenuService, _mobileElementMenuService: DocMobileElementMenuService, _embedInteractionBoundaryService?: IDocEmbedInteractionBoundaryService, _embedRuntimeFocusCoordinator?: IDocEmbedRuntimeFocusCoordinator | undefined);
47
+ private _initialize;
48
+ private _init;
49
+ private _refreshListener;
50
+ private _syncSelection;
51
+ private _initialMain;
52
+ private _initialEditor;
53
+ dispose(): void;
54
+ private _syncEditArea;
55
+ private _startGesture;
56
+ private _handleTap;
57
+ private _selectWord;
58
+ private _scrollDocument;
59
+ private _startInertia;
60
+ private _stopInertia;
61
+ private _enterEditing;
62
+ private _getDocumentOffset;
63
+ private _showCaretMenu;
64
+ private _clearGestureTimer;
65
+ private _clearGesture;
66
+ private _getTransformCoordForDocumentOffset;
67
+ private _isEditorReadOnly;
68
+ private _setEditorFocus;
69
+ private _isEmbedInteractionEvent;
70
+ private _isEmbedChildInteractionActive;
71
+ private _commandExecutedListener;
72
+ private _skeletonListener;
73
+ }
@@ -0,0 +1,36 @@
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 { DocumentDataModel } from '@cool-office/core';
17
+ import type { DocumentSkeleton, IRenderContext } from '@cool-office/engine-render';
18
+ import type { IDocLayoutScheduleOptions } from '../doc.render-controller';
19
+ import { ICommandService, ILogService, IUniverInstanceService, ThemeService } from '@cool-office/core';
20
+ import { DocLayoutExecutorService, DocSelectionManagerService, DocSkeletonManagerService } from '@cool-office/docs';
21
+ import { IRenderManagerService } from '@cool-office/engine-render';
22
+ import { DocLayoutInteractionService } from '../../../services/doc-layout-interaction.service';
23
+ import { DocPageLayoutService } from '../../../services/doc-page-layout.service';
24
+ import { DocViewScaleService } from '../../../services/doc-view-scale';
25
+ import { IEditorService } from '../../../services/editor/editor-manager.service';
26
+ import { DocSelectionRenderService } from '../../../services/selection/doc-selection-render.service';
27
+ import { DocRenderController } from '../doc.render-controller';
28
+ export declare class MobileDocRenderController extends DocRenderController {
29
+ private _mobileModernPageWidth;
30
+ constructor(context: IRenderContext<DocumentDataModel>, commandService: ICommandService, docSelectionRenderService: DocSelectionRenderService, docSkeletonManagerService: DocSkeletonManagerService, editorService: IEditorService, renderManagerService: IRenderManagerService, univerInstanceService: IUniverInstanceService, docPageLayoutService: DocPageLayoutService, textSelectionManagerService: DocSelectionManagerService, docViewScaleService: DocViewScaleService, themeService: ThemeService, docLayoutExecutorService: DocLayoutExecutorService, docLayoutInteractionService: DocLayoutInteractionService, logService: ILogService);
31
+ protected _scheduleLayout(unitId: string, skeleton: DocumentSkeleton, options: IDocLayoutScheduleOptions, refreshMainSelection?: boolean, preserveInactiveViewportAnchor?: boolean): void;
32
+ protected _shouldEnableHorizontalScrollBar(): boolean;
33
+ private _getMobileModernLayoutOptions;
34
+ private _initResponsiveLayout;
35
+ protected _getHorizontalPageMargin(): number;
36
+ }
@@ -0,0 +1,30 @@
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 { DocumentDataModel } from '@cool-office/core';
17
+ import type { IRenderContext } from '@cool-office/engine-render';
18
+ import { ICommandService, IContextService, IUniverInstanceService } from '@cool-office/core';
19
+ import { DocSelectionManagerService, DocSkeletonManagerService } from '@cool-office/docs';
20
+ import { IRenderManagerService } from '@cool-office/engine-render';
21
+ import { IDocEmbedInteractionBoundaryService } from '../../../services/doc-embed-integration.service';
22
+ import { DocPageLayoutService } from '../../../services/doc-page-layout.service';
23
+ import { DocViewScaleService } from '../../../services/doc-view-scale';
24
+ import { IEditorService } from '../../../services/editor/editor-manager.service';
25
+ import { DocZoomRenderController } from '../zoom.render-controller';
26
+ export declare class MobileDocZoomRenderController extends DocZoomRenderController {
27
+ constructor(context: IRenderContext<DocumentDataModel>, contextService: IContextService, docSkeletonManagerService: DocSkeletonManagerService, univerInstanceService: IUniverInstanceService, commandService: ICommandService, textSelectionManagerService: DocSelectionManagerService, editorService: IEditorService, docPageLayoutService: DocPageLayoutService, renderManagerService: IRenderManagerService, docViewScaleService: DocViewScaleService, embedInteractionBoundaryService?: IDocEmbedInteractionBoundaryService);
28
+ protected _initCommandExecutedListener(): void;
29
+ private _initGestureZoom;
30
+ }
@@ -0,0 +1,49 @@
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 { DocumentDataModel } from '@cool-office/core';
17
+ import type { IRenderContext, IRenderModule, IWheelEvent } from '@cool-office/engine-render';
18
+ import { Disposable, DocumentFlavor, ICommandService, IContextService, IUniverInstanceService } from '@cool-office/core';
19
+ import { DocSelectionManagerService, DocSkeletonManagerService } from '@cool-office/docs';
20
+ import { IRenderManagerService } from '@cool-office/engine-render';
21
+ import { IDocEmbedInteractionBoundaryService } from '../../services/doc-embed-integration.service';
22
+ import { DocPageLayoutService } from '../../services/doc-page-layout.service';
23
+ import { DocViewScaleService } from '../../services/doc-view-scale';
24
+ import { IEditorService } from '../../services/editor/editor-manager.service';
25
+ export declare function shouldHandleDocWheelZoom(event: Pick<IWheelEvent, 'ctrlKey' | 'metaKey'>, focusingDoc: boolean, _documentFlavor?: DocumentFlavor): boolean;
26
+ export declare class DocZoomRenderController extends Disposable implements IRenderModule {
27
+ protected readonly _context: IRenderContext<DocumentDataModel>;
28
+ protected readonly _contextService: IContextService;
29
+ private readonly _docSkeletonManagerService;
30
+ private readonly _univerInstanceService;
31
+ protected readonly _commandService: ICommandService;
32
+ protected readonly _textSelectionManagerService: DocSelectionManagerService;
33
+ private readonly _editorService;
34
+ private readonly _docPageLayoutService;
35
+ private readonly _renderManagerService;
36
+ protected readonly _docViewScaleService: DocViewScaleService;
37
+ private readonly _embedInteractionBoundaryService?;
38
+ private _isSheetEditor;
39
+ private _initTimer;
40
+ private _updateTimer;
41
+ private _fitToWidthAvailableWidth;
42
+ constructor(_context: IRenderContext<DocumentDataModel>, _contextService: IContextService, _docSkeletonManagerService: DocSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _textSelectionManagerService: DocSelectionManagerService, _editorService: IEditorService, _docPageLayoutService: DocPageLayoutService, _renderManagerService: IRenderManagerService, _docViewScaleService: DocViewScaleService, _embedInteractionBoundaryService?: IDocEmbedInteractionBoundaryService | undefined);
43
+ dispose(): void;
44
+ private _initSkeletonListener;
45
+ protected _initCommandExecutedListener(): void;
46
+ private _initFitToWidthResizeListener;
47
+ updateViewZoom(zoomRatio: number, needRefreshSelection?: boolean): void;
48
+ private _initZoomEventListener;
49
+ }
@@ -0,0 +1,38 @@
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 { Disposable, ICommandService, IConfigService, Injector, IUniverInstanceService } from '@cool-office/core';
17
+ import { ILayoutService, IMenuManagerService, IShortcutService, IUIPartsService } from '@cool-office/ui';
18
+ import { IDocEmbedInteractionBoundaryService, IDocEmbedRuntimeFocusCoordinator } from '../services/doc-embed-integration.service';
19
+ export declare class DocUIController extends Disposable {
20
+ protected readonly _injector: Injector;
21
+ protected readonly _commandService: ICommandService;
22
+ protected readonly _layoutService: ILayoutService;
23
+ protected readonly _menuManagerService: IMenuManagerService;
24
+ protected readonly _uiPartsService: IUIPartsService;
25
+ protected readonly _univerInstanceService: IUniverInstanceService;
26
+ protected readonly _shortcutService: IShortcutService;
27
+ protected readonly _configService: IConfigService;
28
+ protected readonly _embedRuntimeFocusCoordinator?: IDocEmbedRuntimeFocusCoordinator | undefined;
29
+ constructor(_injector: Injector, _commandService: ICommandService, _layoutService: ILayoutService, _menuManagerService: IMenuManagerService, _uiPartsService: IUIPartsService, _univerInstanceService: IUniverInstanceService, _shortcutService: IShortcutService, _configService: IConfigService, _embedInteractionBoundaryService?: IDocEmbedInteractionBoundaryService, _embedRuntimeFocusCoordinator?: IDocEmbedRuntimeFocusCoordinator | undefined);
30
+ private _initUiParts;
31
+ private _initMenus;
32
+ private _initShortCut;
33
+ private _init;
34
+ private _initCommands;
35
+ private _initDateTimeFields;
36
+ private _initFocusHandler;
37
+ private _shouldPreserveEmbedFocus;
38
+ }
@@ -0,0 +1,32 @@
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
+ export interface IDocsCustomBlockBleedViewport {
17
+ bleedLeft: number;
18
+ bleedRight: number;
19
+ bleedWidth: number;
20
+ contentWidth: number;
21
+ virtualWidth: number;
22
+ }
23
+ export interface IDocsCustomBlockBleedViewportHint {
24
+ authoritativeContentWidth?: boolean;
25
+ bleedLeft?: number;
26
+ bleedWidth?: number;
27
+ viewScale?: number;
28
+ }
29
+ export declare function createDefaultDocsTableLikeCustomBlockBleedViewport(): IDocsCustomBlockBleedViewport;
30
+ export declare function resolveDocsTableLikeCustomBlockBleedViewport(root: HTMLElement, contentWidth: number, hint?: IDocsCustomBlockBleedViewportHint): IDocsCustomBlockBleedViewport;
31
+ export declare function resolveDocsTableLikeCustomBlockContentWidth(authoritativeContentWidth: number | undefined, fallbackContentWidth: number): number;
32
+ export declare function resolveDocsTableLikeCustomBlockContentHeight(authoritativeContentHeight: number | undefined, fallbackContentHeight: number): number;
@@ -0,0 +1,28 @@
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
+ export declare function collectDocsTableLikeEmbedChildUnitIds(drawings: Record<string, unknown> | undefined, resolveChildUnitId?: (data: Record<string, unknown>) => string | undefined): Set<string>;
17
+ export declare function getCommandUnitId(commandParams: unknown): string | undefined;
18
+ export declare function shouldRefreshDocsCustomBlockSizeForCommand(params: {
19
+ commandId?: string;
20
+ childUnitIds: Set<string>;
21
+ commandParams: unknown;
22
+ hostUnitId: string;
23
+ }): boolean;
24
+ export interface IDocsCustomBlockSizeRefreshScheduler {
25
+ dispose: () => void;
26
+ schedule: () => void;
27
+ }
28
+ export declare function createDocsCustomBlockSizeRefreshScheduler(refresh: () => void): IDocsCustomBlockSizeRefreshScheduler;
@@ -0,0 +1,19 @@
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
+ export interface IDocsTableLikeCustomBlockScrollOptions {
17
+ maxScrollLeft?: number;
18
+ }
19
+ export declare function scrollDocsTableLikeCustomBlockLive(event: WheelEvent, live: HTMLElement, options?: IDocsTableLikeCustomBlockScrollOptions): boolean;
@@ -0,0 +1,48 @@
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 { UniverInstanceType } from '@cool-office/core';
17
+ import { DocumentFlavor } from '@cool-office/core';
18
+ export interface IDocsCustomBlockRenderViewportParams {
19
+ childType?: UniverInstanceType;
20
+ contentHeight?: number;
21
+ contentWidth?: number;
22
+ docsLeft?: number;
23
+ documentFlavor?: DocumentFlavor;
24
+ fallbackHeight?: number;
25
+ fallbackWidth?: number;
26
+ pageMarginLeft?: number;
27
+ pageMarginRight?: number;
28
+ pageWidth?: number;
29
+ scale?: number;
30
+ visibleCanvasHeight?: number;
31
+ visibleCanvasLeft?: number;
32
+ visibleCanvasWidth?: number;
33
+ }
34
+ export interface IDocsCustomBlockLayoutViewport {
35
+ bleedLeft?: number;
36
+ bleedWidth?: number;
37
+ contentHeight?: number;
38
+ contentWidth?: number;
39
+ height: number;
40
+ layoutWidth?: number;
41
+ offsetLeft?: number;
42
+ pageContentWidth?: number;
43
+ viewScale?: number;
44
+ visibleCanvasHeight?: number;
45
+ viewportHeight?: number;
46
+ width: number;
47
+ }
48
+ export declare function resolveDocsCustomBlockRenderViewport(params: IDocsCustomBlockRenderViewportParams): IDocsCustomBlockLayoutViewport;
@@ -0,0 +1,39 @@
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 { FDocument } from '@cool-office/docs/facade';
17
+ interface IFDocumentUIMixin {
18
+ setSelection(startOffset: number, endOffset: number): void;
19
+ }
20
+ export declare class FDocumentUIMixin extends FDocument implements IFDocumentUIMixin {
21
+ /**
22
+ * Sets the selection to a specified text range in the document.
23
+ * A computed offscreen target is selected after its render data is loaded.
24
+ * A newer pointer/selection action or changed text supersedes that request.
25
+ * @param startOffset - The starting offset of the selection in the document.
26
+ * @param endOffset - The ending offset of the selection in the document.
27
+ * @example
28
+ * ```typescript
29
+ * const fDocument = univerAPI.getActiveDocument();
30
+ * fDocument.setSelection(10, 20);
31
+ * ```
32
+ */
33
+ setSelection(startOffset: number, endOffset: number): void;
34
+ }
35
+ declare module '@cool-office/docs/facade' {
36
+ interface FDocument extends IFDocumentUIMixin {
37
+ }
38
+ }
39
+ export {};
@@ -0,0 +1,17 @@
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 './f-document';
17
+ export type * from './f-document';
@@ -0,0 +1,142 @@
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 './global.css';
17
+ export type { IDocObjectParam } from './basics/component-tools';
18
+ export { getDocObjectById, neoGetDocObject } from './basics/component-tools';
19
+ export { addCustomDecorationBySelectionFactory, addCustomDecorationFactory, deleteCustomDecorationFactory, } from './basics/custom-decoration-factory';
20
+ export { DOC_CUSTOM_RANGE_CHROME_BACKGROUND_ALPHA, DOC_CUSTOM_RANGE_CHROME_RADIUS, drawDocCustomRangeChrome, resolveDocCustomRangeChromeTheme, } from './basics/doc-custom-range-chrome';
21
+ export type { IDocCustomRangeChromeRect, IDocCustomRangeChromeTheme, } from './basics/doc-custom-range-chrome';
22
+ export * from './basics/docs-view-key';
23
+ export { hasParagraphInTable } from './basics/paragraph';
24
+ export { AfterSpaceCommand, EnterCommand, TabCommand } from './commands/commands/auto-format.command';
25
+ export type { ITabCommandParams } from './commands/commands/auto-format.command';
26
+ export { BreakLineCommand } from './commands/commands/break-line.command';
27
+ export { generateParagraphs } from './commands/commands/break-line.command';
28
+ export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';
29
+ export { CutContentCommand, InnerPasteCommand } from './commands/commands/clipboard.inner.command';
30
+ export type { IInnerPasteCommandParams } from './commands/commands/clipboard.inner.command';
31
+ export type { IInnerCutCommandParams } from './commands/commands/clipboard.inner.command';
32
+ export { getCutActionsFromDocRanges } from './commands/commands/clipboard.inner.command';
33
+ export { buildMoveDocBlockActions, MoveDocBlockCommand } from './commands/commands/doc-block-move.command';
34
+ export type { IMoveDocBlockCommandParams } from './commands/commands/doc-block-move.command';
35
+ export { DeleteCurrentParagraphCommand, DeleteCustomBlockCommand, DeleteLeftCommand, DeleteRightCommand, MergeTwoParagraphCommand, } from './commands/commands/doc-delete.command';
36
+ export type { IDeleteCurrentParagraphCommandParams, IDeleteCustomBlockParams, } from './commands/commands/doc-delete.command';
37
+ export { getCursorWhenDelete } from './commands/commands/doc-delete.command';
38
+ export { HorizontalLineCommand } from './commands/commands/doc-horizontal-line.command';
39
+ export { DocSelectAllCommand } from './commands/commands/doc-select-all.command';
40
+ export { captureTextFormat } from './commands/commands/format-painter.command';
41
+ export { IMEInputCommand } from './commands/commands/ime-input.command';
42
+ export type { IIMEInputCommandParams } from './commands/commands/ime-input.command';
43
+ export { getStyleInTextRange, ResetInlineFormatTextBackgroundColorCommand, ResetInlineFormatTextColorCommand, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatTextFillCommand, SetInlineFormatUnderlineCommand, } from './commands/commands/inline-format.command';
44
+ export { InsertCustomRangeCommand } from './commands/commands/insert-custom-range.command';
45
+ export type { IInsertCustomRangeCommandParams } from './commands/commands/insert-custom-range.command';
46
+ export { BulletListCommand, ChangeListNestingLevelCommand, ChangeListTypeCommand, CheckListCommand, ListOperationCommand, OrderListCommand, QuickListCommand, ToggleCheckListCommand, } from './commands/commands/list.command';
47
+ export { ChangeListNestingLevelType } from './commands/commands/list.command';
48
+ export { AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand, } from './commands/commands/paragraph-align.command';
49
+ export { ReplaceTextRunsCommand } from './commands/commands/replace-content.command';
50
+ export { CoverContentCommand, ReplaceSelectionCommand, ReplaceSnapshotCommand, } from './commands/commands/replace-content.command';
51
+ export type { IReplaceSelectionCommandParams, IReplaceSnapshotCommandParams, } from './commands/commands/replace-content.command';
52
+ export { SetDocZoomRatioCommand } from './commands/commands/set-doc-zoom-ratio.command';
53
+ export { SetParagraphNamedStyleCommand } from './commands/commands/set-heading.command';
54
+ export { SwitchDocModeCommand } from './commands/commands/switch-doc-mode.command';
55
+ export { CreateDocTableCommand } from './commands/commands/table/doc-table-create.command';
56
+ export type { ICreateDocTableCommandParams } from './commands/commands/table/doc-table-create.command';
57
+ export { DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand, } from './commands/commands/table/doc-table-delete.command';
58
+ export type { IDocTableDeleteColumnsCommandParams, IDocTableDeleteRowsCommandParams, IDocTableDeleteTableCommandParams, } from './commands/commands/table/doc-table-delete.command';
59
+ export type { IDocTableInsertColumnCommandParams, IDocTableInsertColumnLeftCommandParams, IDocTableInsertColumnRightCommandParams, IDocTableInsertRowAboveCommandParams, IDocTableInsertRowBellowCommandParams, IDocTableInsertRowCommandParams, } from './commands/commands/table/doc-table-insert.command';
60
+ export { DocTableInsertColumnCommand, DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand, DocTableInsertRowCommand, } from './commands/commands/table/doc-table-insert.command';
61
+ export type { IDocTableTabCommandParams } from './commands/commands/table/doc-table-tab.command';
62
+ export { DocTableTabCommand } from './commands/commands/table/doc-table-tab.command';
63
+ export { genTableSource, getEmptyTableCell, getEmptyTableRow, getTableColumn } from './commands/commands/table/table';
64
+ export { DocCreateTableOperation } from './commands/operations/doc-create-table.operation';
65
+ export { MoveSelectionOperation } from './commands/operations/doc-cursor.operation';
66
+ export type { IMoveCursorOperationParams } from './commands/operations/doc-cursor.operation';
67
+ export { MoveCursorOperation } from './commands/operations/doc-cursor.operation';
68
+ export { SetDocZoomRatioOperation } from './commands/operations/set-doc-zoom-ratio.operation';
69
+ export type { ISetDocZoomRatioOperationParams } from './commands/operations/set-doc-zoom-ratio.operation';
70
+ export { getCommandSkeleton } from './commands/util';
71
+ export type { DocFitAlign, DocFitMode, DocFitTarget, IDocFitToWidthOptions, IUniverDocsUIConfig } from './config/config';
72
+ export { DEFAULT_DOC_FIT_TO_WIDTH_OPTIONS, DOCS_UI_PLUGIN_CONFIG_KEY } from './config/config';
73
+ export { DocBackScrollRenderController } from './controllers/render-controllers/back-scroll.render-controller';
74
+ export { DocParagraphPlaceholderRenderController, } from './controllers/render-controllers/doc-paragraph-placeholder.render-controller';
75
+ export { DocRenderController } from './controllers/render-controllers/doc.render-controller';
76
+ export { DocUIController } from './controllers/ui.controller';
77
+ export { createDefaultDocsTableLikeCustomBlockBleedViewport, resolveDocsTableLikeCustomBlockBleedViewport, resolveDocsTableLikeCustomBlockContentHeight, resolveDocsTableLikeCustomBlockContentWidth, } from './embed-docs-custom-block-bleed';
78
+ export type { IDocsCustomBlockBleedViewport, IDocsCustomBlockBleedViewportHint } from './embed-docs-custom-block-bleed';
79
+ export { collectDocsTableLikeEmbedChildUnitIds, createDocsCustomBlockSizeRefreshScheduler, shouldRefreshDocsCustomBlockSizeForCommand, } from './embed-docs-custom-block-refresh';
80
+ export { scrollDocsTableLikeCustomBlockLive } from './embed-docs-custom-block-scroll';
81
+ export type { IDocsTableLikeCustomBlockScrollOptions } from './embed-docs-custom-block-scroll';
82
+ export { resolveDocsCustomBlockRenderViewport } from './embed-host-anchor';
83
+ export type { IDocsCustomBlockLayoutViewport, IDocsCustomBlockRenderViewportParams } from './embed-host-anchor';
84
+ export { ParagraphSettingMenuFactory } from './menu/context-menu';
85
+ export { AlignMenuItemFactory, BackgroundColorSelectorMenuItemFactory, BoldMenuItemFactory, disableMenuWhenHeaderFooterEditing, disableMenuWithoutDocumentUnitPermission, FLOAT_TEXT_STYLE_MENU_ID, FLOAT_TOOLBAR_MENU_POSITION, FloatTextStyleMenuItemFactory, FontFamilySelectorMenuItemFactory, FontSizeSelectorMenuItemFactory, hideMenuWhenSelectionInBlockRange, isTextRangeInAnyBlockRange, ItalicMenuItemFactory, StrikeThroughMenuItemFactory, TextColorSelectorMenuItemFactory, UnderlineMenuItemFactory, } from './menu/menu';
86
+ export { DOC_CONTENT_INSERT_MENU_ID, DOC_PARAGRAPH_T_ALIGN_MENU_ID, DOC_PARAGRAPH_T_COLORS_MENU_ID, DOC_PARAGRAPH_T_DIVIDER_MENU_ID, DOC_PARAGRAPH_T_EDIT_MENU_ID, DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID, DOC_PARAGRAPH_T_INSERT_MENU_ID, DOC_TABLE_BLOCK_MENU_ID, EMPTY_PARAGRAPH_MENU_ID, getDocBlockRangeMenuId, INSERT_BELLOW_MENU_ID, ParagraphMenuInsertBelowSubmenuItemFactory, } from './menu/paragraph-menu';
87
+ export { menuSchema as DocsUIMenuSchema } from './menu/schema';
88
+ export { UniverDocsMobileUIPlugin } from './mobile-plugin';
89
+ export { UniverDocsUIPlugin } from './plugin';
90
+ export * from './services';
91
+ export { convertClipboardHtmlToDocumentData, IDocClipboardService, removeClipboardHtmlImages, } from './services/clipboard/clipboard.service';
92
+ export type { IDocClipboardCopyContentContext, IDocClipboardHook, IDocClipboardPasteContext, } from './services/clipboard/clipboard.service';
93
+ export { DocClipboardPasteAdapterService, IDocClipboardPasteAdapterService, } from './services/clipboard/doc-paste-mutation-adapter.service';
94
+ export type { IDocClipboardPasteAdapter, IDocClipboardPasteBlockRangeMapping, IDocClipboardPasteCustomBlockMapping, IDocClipboardPasteCustomRangeMapping, IDocClipboardPasteMutationInfoParams, IDocClipboardPasteMutationInfos, } from './services/clipboard/doc-paste-mutation-adapter.service';
95
+ export { convertClipboardRtfToPlainText } from './services/clipboard/rtf-to-plain-text';
96
+ export { convertBodyToHtml } from './services/clipboard/udm-to-html/convertor';
97
+ export { DocHtmlExportService } from './services/clipboard/udm-to-html/doc-html-export.service';
98
+ export type { DocHtmlExportTransformer } from './services/clipboard/udm-to-html/doc-html-export.service';
99
+ export { DocAutoFormatService } from './services/doc-auto-format.service';
100
+ export { DocContextualRibbonService } from './services/doc-contextual-ribbon.service';
101
+ export { DOC_EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE, IDocEmbedInteractionBoundaryService, IDocEmbedRuntimeFocusCoordinator, } from './services/doc-embed-integration.service';
102
+ export { DocEventManagerService, getListMarkerFallbackBound, getListParagraphContextMenuHit, } from './services/doc-event-manager.service';
103
+ export type { IBulletBound, IMutiPageParagraphBound } from './services/doc-event-manager.service';
104
+ export { DocIMEInputManagerService } from './services/doc-ime-input-manager.service';
105
+ export { DocLayoutInteractionService } from './services/doc-layout-interaction.service';
106
+ export { SetDocInputStyleCommand } from './services/doc-menu-style.service';
107
+ export type { ISetDocInputStyleCommandParams } from './services/doc-menu-style.service';
108
+ export { DocMobileElementMenuService } from './services/doc-mobile-element-menu.service';
109
+ export { DocPageLayoutService } from './services/doc-page-layout.service';
110
+ export { DocParagraphMenuService } from './services/doc-paragraph-menu.service';
111
+ export type { IDocCanvasPopup } from './services/doc-popup-manager.service';
112
+ export { calcDocRangePositions, DocCanvasPopManagerService } from './services/doc-popup-manager.service';
113
+ export type { IDocPrintPreparationContext } from './services/doc-print-interceptor.service';
114
+ export { DocPrintInterceptorService } from './services/doc-print-interceptor.service';
115
+ export type { IDocPrintComponentContext, IDocPrintContext } from './services/doc-print-interceptor.service';
116
+ export { DocsRenderService } from './services/docs-render.service';
117
+ export { Editor } from './services/editor/editor';
118
+ export { EditorService, IEditorService } from './services/editor/editor-manager.service';
119
+ export type { IEditorRuntimeConfig } from './services/editor/editor-runtime-config';
120
+ export { getEditorRuntimeConfig, registerEditorRuntimeConfig } from './services/editor/editor-runtime-config';
121
+ export { DocFloatMenuService } from './services/float-menu.service';
122
+ export { isInSameTableCell, isValidRectRange, NodePositionConvertToRectRange, } from './services/selection/convert-rect-range';
123
+ export { findDocRangeNodePositions } from './services/selection/convert-text-range';
124
+ export { NodePositionConvertToCursor } from './services/selection/convert-text-range';
125
+ export { getOneTextSelectionRange } from './services/selection/convert-text-range';
126
+ export type { IEditorInputConfig } from './services/selection/doc-selection-render.service';
127
+ export { DocSelectionRenderService } from './services/selection/doc-selection-render.service';
128
+ export type { IDocRange } from './services/selection/range-interface';
129
+ export { convertPositionsToRectRanges, RectRange } from './services/selection/rect-range';
130
+ export { getCanvasOffsetByEngine, getTextRangeFromCharIndex } from './services/selection/selection-utils';
131
+ export { getAnchorBounding, getLineBounding, TEXT_RANGE_LAYER_INDEX, TextRange } from './services/selection/text-range';
132
+ export { whenDocAndEditorFocused } from './shortcuts/utils';
133
+ export { DOC_VERTICAL_PADDING } from './types/const/padding';
134
+ export { BulletListTypePicker, OrderListTypePicker } from './views/list-type-picker/Picker';
135
+ export { MOBILE_DOC_ELEMENT_MENU, MobileDocElementMenu } from './views/mobile-element-menu/MobileDocElementMenu';
136
+ export { MobileRichTextEditor } from './views/mobile-rich-text-editor/MobileRichTextEditor';
137
+ export { MobileRichTextToolbar } from './views/mobile-rich-text-toolbar/MobileRichTextToolbar';
138
+ export type { IMobileRichTextToolbarProps } from './views/mobile-rich-text-toolbar/MobileRichTextToolbar';
139
+ export { createEditorUndoRedoKeyboardConfig, executeEditorUndoRedoCommand, useEditor, useEditorClickOutside, useIsFocusing, useKeyboardEvent, useLeftAndRightArrow, useOnChange, useResize, } from './views/rich-text-editor/hooks';
140
+ export type { ICreateEditorUndoRedoKeyboardConfigOptions, IExecuteEditorUndoRedoCommandOptions, IKeyboardEventConfig, } from './views/rich-text-editor/hooks';
141
+ export { RichTextEditor } from './views/RichTextEditor';
142
+ export type { IRichTextEditorProps } from './views/RichTextEditor';
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;