@univerjs/sheets-ui 0.1.0-alpha.1

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 (342) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/lib/cjs/index.js +21729 -0
  4. package/lib/cjs/locale/en-US.js +605 -0
  5. package/lib/cjs/locale/zh-CN.js +442 -0
  6. package/lib/esm/index.js +21640 -0
  7. package/lib/esm/locale/en-US.js +584 -0
  8. package/lib/esm/locale/zh-CN.js +421 -0
  9. package/lib/index.css +587 -0
  10. package/lib/types/basics/const/default-univer-sheet-config.d.ts +127 -0
  11. package/lib/types/basics/const/default-univer-sheet-config.d.ts.map +1 -0
  12. package/lib/types/basics/const/index.d.ts +3 -0
  13. package/lib/types/basics/const/index.d.ts.map +1 -0
  14. package/lib/types/basics/const/plugin-name.d.ts +2 -0
  15. package/lib/types/basics/const/plugin-name.d.ts.map +1 -0
  16. package/lib/types/basics/editor/get-editor-object.d.ts +9 -0
  17. package/lib/types/basics/editor/get-editor-object.d.ts.map +1 -0
  18. package/lib/types/basics/index.d.ts +3 -0
  19. package/lib/types/basics/index.d.ts.map +1 -0
  20. package/lib/types/basics/interfaces/cell.d.ts +6 -0
  21. package/lib/types/basics/interfaces/cell.d.ts.map +1 -0
  22. package/lib/types/basics/interfaces/component-config/i-sheet-ui-plugin-config.d.ts +13 -0
  23. package/lib/types/basics/interfaces/component-config/i-sheet-ui-plugin-config.d.ts.map +1 -0
  24. package/lib/types/basics/interfaces/component-config/index.d.ts +3 -0
  25. package/lib/types/basics/interfaces/component-config/index.d.ts.map +1 -0
  26. package/lib/types/basics/interfaces/component-config/sheet-container-config.d.ts +20 -0
  27. package/lib/types/basics/interfaces/component-config/sheet-container-config.d.ts.map +1 -0
  28. package/lib/types/basics/interfaces/component-config/toolbar-config.d.ts +25 -0
  29. package/lib/types/basics/interfaces/component-config/toolbar-config.d.ts.map +1 -0
  30. package/lib/types/basics/interfaces/index.d.ts +2 -0
  31. package/lib/types/basics/interfaces/index.d.ts.map +1 -0
  32. package/lib/types/commands/commands/__tests__/auto-fill.controller.spec.d.ts +2 -0
  33. package/lib/types/commands/commands/__tests__/auto-fill.controller.spec.d.ts.map +1 -0
  34. package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +29 -0
  35. package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts.map +1 -0
  36. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +2 -0
  37. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts.map +1 -0
  38. package/lib/types/commands/commands/__tests__/set-selections.command.spec.d.ts +2 -0
  39. package/lib/types/commands/commands/__tests__/set-selections.command.spec.d.ts.map +1 -0
  40. package/lib/types/commands/commands/auto-fill.command.d.ts +20 -0
  41. package/lib/types/commands/commands/auto-fill.command.d.ts.map +1 -0
  42. package/lib/types/commands/commands/clipboard.command.d.ts +12 -0
  43. package/lib/types/commands/commands/clipboard.command.d.ts.map +1 -0
  44. package/lib/types/commands/commands/inline-format.command.d.ts +15 -0
  45. package/lib/types/commands/commands/inline-format.command.d.ts.map +1 -0
  46. package/lib/types/commands/commands/refill.command.d.ts +3 -0
  47. package/lib/types/commands/commands/refill.command.d.ts.map +1 -0
  48. package/lib/types/commands/commands/rename.command.d.ts +3 -0
  49. package/lib/types/commands/commands/rename.command.d.ts.map +1 -0
  50. package/lib/types/commands/commands/set-format-painter.command.d.ts +12 -0
  51. package/lib/types/commands/commands/set-format-painter.command.d.ts.map +1 -0
  52. package/lib/types/commands/commands/set-frozen.command.d.ts +14 -0
  53. package/lib/types/commands/commands/set-frozen.command.d.ts.map +1 -0
  54. package/lib/types/commands/commands/set-scroll.command.d.ts +24 -0
  55. package/lib/types/commands/commands/set-scroll.command.d.ts.map +1 -0
  56. package/lib/types/commands/commands/set-selection-frozen.command.d.ts +3 -0
  57. package/lib/types/commands/commands/set-selection-frozen.command.d.ts.map +1 -0
  58. package/lib/types/commands/commands/set-selection.command.d.ts +40 -0
  59. package/lib/types/commands/commands/set-selection.command.d.ts.map +1 -0
  60. package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +16 -0
  61. package/lib/types/commands/commands/set-zoom-ratio.command.d.ts.map +1 -0
  62. package/lib/types/commands/commands/unhide.command.d.ts +3 -0
  63. package/lib/types/commands/commands/unhide.command.d.ts.map +1 -0
  64. package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +4 -0
  65. package/lib/types/commands/operations/activate-cell-edit.operation.d.ts.map +1 -0
  66. package/lib/types/commands/operations/cell-edit.operation.d.ts +9 -0
  67. package/lib/types/commands/operations/cell-edit.operation.d.ts.map +1 -0
  68. package/lib/types/commands/operations/scroll.operation.d.ts +4 -0
  69. package/lib/types/commands/operations/scroll.operation.d.ts.map +1 -0
  70. package/lib/types/commands/operations/selection.operation.d.ts +12 -0
  71. package/lib/types/commands/operations/selection.operation.d.ts.map +1 -0
  72. package/lib/types/commands/operations/set-editor-resize.operation.d.ts +3 -0
  73. package/lib/types/commands/operations/set-editor-resize.operation.d.ts.map +1 -0
  74. package/lib/types/commands/operations/set-format-painter.operation.d.ts +7 -0
  75. package/lib/types/commands/operations/set-format-painter.operation.d.ts.map +1 -0
  76. package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +10 -0
  77. package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts.map +1 -0
  78. package/lib/types/common/keys.d.ts +22 -0
  79. package/lib/types/common/keys.d.ts.map +1 -0
  80. package/lib/types/components/border-panel/BorderPanel.d.ts +4 -0
  81. package/lib/types/components/border-panel/BorderPanel.d.ts.map +1 -0
  82. package/lib/types/components/border-panel/border-line/BorderLine.d.ts +8 -0
  83. package/lib/types/components/border-panel/border-line/BorderLine.d.ts.map +1 -0
  84. package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +3 -0
  85. package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts.map +1 -0
  86. package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +3 -0
  87. package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts.map +1 -0
  88. package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +3 -0
  89. package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts.map +1 -0
  90. package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +3 -0
  91. package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts.map +1 -0
  92. package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +3 -0
  93. package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts.map +1 -0
  94. package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +3 -0
  95. package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts.map +1 -0
  96. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +3 -0
  97. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts.map +1 -0
  98. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +3 -0
  99. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts.map +1 -0
  100. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +3 -0
  101. package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts.map +1 -0
  102. package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +3 -0
  103. package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts.map +1 -0
  104. package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +3 -0
  105. package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts.map +1 -0
  106. package/lib/types/components/border-panel/index.d.ts +1 -0
  107. package/lib/types/components/border-panel/index.d.ts.map +1 -0
  108. package/lib/types/components/border-panel/interface.d.ts +11 -0
  109. package/lib/types/components/border-panel/interface.d.ts.map +1 -0
  110. package/lib/types/components/color-picker/index.d.ts +3 -0
  111. package/lib/types/components/color-picker/index.d.ts.map +1 -0
  112. package/lib/types/components/color-picker/interface.d.ts +2 -0
  113. package/lib/types/components/color-picker/interface.d.ts.map +1 -0
  114. package/lib/types/components/const.d.ts +2 -0
  115. package/lib/types/components/const.d.ts.map +1 -0
  116. package/lib/types/components/font-family/FontFamily.d.ts +4 -0
  117. package/lib/types/components/font-family/FontFamily.d.ts.map +1 -0
  118. package/lib/types/components/font-family/FontFamilyItem.d.ts +4 -0
  119. package/lib/types/components/font-family/FontFamilyItem.d.ts.map +1 -0
  120. package/lib/types/components/font-family/index.d.ts +4 -0
  121. package/lib/types/components/font-family/index.d.ts.map +1 -0
  122. package/lib/types/components/font-family/interface.d.ts +10 -0
  123. package/lib/types/components/font-family/interface.d.ts.map +1 -0
  124. package/lib/types/components/font-size/FontSize.d.ts +4 -0
  125. package/lib/types/components/font-size/FontSize.d.ts.map +1 -0
  126. package/lib/types/components/font-size/index.d.ts +3 -0
  127. package/lib/types/components/font-size/index.d.ts.map +1 -0
  128. package/lib/types/components/font-size/interface.d.ts +9 -0
  129. package/lib/types/components/font-size/interface.d.ts.map +1 -0
  130. package/lib/types/components/menu-item-input/MenuItemInput.d.ts +4 -0
  131. package/lib/types/components/menu-item-input/MenuItemInput.d.ts.map +1 -0
  132. package/lib/types/components/menu-item-input/index.d.ts +3 -0
  133. package/lib/types/components/menu-item-input/index.d.ts.map +1 -0
  134. package/lib/types/components/menu-item-input/interface.d.ts +7 -0
  135. package/lib/types/components/menu-item-input/interface.d.ts.map +1 -0
  136. package/lib/types/components/range-selector/RangeSelector.d.ts +7 -0
  137. package/lib/types/components/range-selector/RangeSelector.d.ts.map +1 -0
  138. package/lib/types/controllers/auto-fill.controller.d.ts +32 -0
  139. package/lib/types/controllers/auto-fill.controller.d.ts.map +1 -0
  140. package/lib/types/controllers/auto-height.controller.d.ts +15 -0
  141. package/lib/types/controllers/auto-height.controller.d.ts.map +1 -0
  142. package/lib/types/controllers/clipboard/clipboard.controller.d.ts +25 -0
  143. package/lib/types/controllers/clipboard/clipboard.controller.d.ts.map +1 -0
  144. package/lib/types/controllers/clipboard/utils.d.ts +36 -0
  145. package/lib/types/controllers/clipboard/utils.d.ts.map +1 -0
  146. package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts +20 -0
  147. package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts.map +1 -0
  148. package/lib/types/controllers/editor/editing.controller.d.ts +16 -0
  149. package/lib/types/controllers/editor/editing.controller.d.ts.map +1 -0
  150. package/lib/types/controllers/editor/end-edit.controller.d.ts +36 -0
  151. package/lib/types/controllers/editor/end-edit.controller.d.ts.map +1 -0
  152. package/lib/types/controllers/editor/formula-editor.controller.d.ts +28 -0
  153. package/lib/types/controllers/editor/formula-editor.controller.d.ts.map +1 -0
  154. package/lib/types/controllers/editor/initialize-editor.controller.d.ts +13 -0
  155. package/lib/types/controllers/editor/initialize-editor.controller.d.ts.map +1 -0
  156. package/lib/types/controllers/editor/start-edit.controller.d.ts +49 -0
  157. package/lib/types/controllers/editor/start-edit.controller.d.ts.map +1 -0
  158. package/lib/types/controllers/editor-bridge.controller.d.ts +29 -0
  159. package/lib/types/controllers/editor-bridge.controller.d.ts.map +1 -0
  160. package/lib/types/controllers/format-painter/format-painter.controller.d.ts +17 -0
  161. package/lib/types/controllers/format-painter/format-painter.controller.d.ts.map +1 -0
  162. package/lib/types/controllers/freeze.controller.d.ts +57 -0
  163. package/lib/types/controllers/freeze.controller.d.ts.map +1 -0
  164. package/lib/types/controllers/header-menu.controller.d.ts +27 -0
  165. package/lib/types/controllers/header-menu.controller.d.ts.map +1 -0
  166. package/lib/types/controllers/header-move.controller.d.ts +39 -0
  167. package/lib/types/controllers/header-move.controller.d.ts.map +1 -0
  168. package/lib/types/controllers/header-resize.controller.d.ts +27 -0
  169. package/lib/types/controllers/header-resize.controller.d.ts.map +1 -0
  170. package/lib/types/controllers/header-unhide.controller.d.ts +21 -0
  171. package/lib/types/controllers/header-unhide.controller.d.ts.map +1 -0
  172. package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +7 -0
  173. package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts.map +1 -0
  174. package/lib/types/controllers/menu/__tests__/menu.spec.d.ts +2 -0
  175. package/lib/types/controllers/menu/__tests__/menu.spec.d.ts.map +1 -0
  176. package/lib/types/controllers/menu/__tests__/row-col.menu.spec.d.ts +2 -0
  177. package/lib/types/controllers/menu/__tests__/row-col.menu.spec.d.ts.map +1 -0
  178. package/lib/types/controllers/menu/border.menu.d.ts +5 -0
  179. package/lib/types/controllers/menu/border.menu.d.ts.map +1 -0
  180. package/lib/types/controllers/menu/clear.menu.d.ts +6 -0
  181. package/lib/types/controllers/menu/clear.menu.d.ts.map +1 -0
  182. package/lib/types/controllers/menu/delete.menu.d.ts +7 -0
  183. package/lib/types/controllers/menu/delete.menu.d.ts.map +1 -0
  184. package/lib/types/controllers/menu/insert.menu.d.ts +12 -0
  185. package/lib/types/controllers/menu/insert.menu.d.ts.map +1 -0
  186. package/lib/types/controllers/menu/menu.d.ts +79 -0
  187. package/lib/types/controllers/menu/menu.d.ts.map +1 -0
  188. package/lib/types/controllers/menu/merge.menu.d.ts +8 -0
  189. package/lib/types/controllers/menu/merge.menu.d.ts.map +1 -0
  190. package/lib/types/controllers/menu/sheet.menu.d.ts +10 -0
  191. package/lib/types/controllers/menu/sheet.menu.d.ts.map +1 -0
  192. package/lib/types/controllers/move-range.controller.d.ts +11 -0
  193. package/lib/types/controllers/move-range.controller.d.ts.map +1 -0
  194. package/lib/types/controllers/navigation/navigation.controller.d.ts +8 -0
  195. package/lib/types/controllers/navigation/navigation.controller.d.ts.map +1 -0
  196. package/lib/types/controllers/scroll.controller.d.ts +24 -0
  197. package/lib/types/controllers/scroll.controller.d.ts.map +1 -0
  198. package/lib/types/controllers/selection.controller.d.ts +27 -0
  199. package/lib/types/controllers/selection.controller.d.ts.map +1 -0
  200. package/lib/types/controllers/sheet-render.controller.d.ts +19 -0
  201. package/lib/types/controllers/sheet-render.controller.d.ts.map +1 -0
  202. package/lib/types/controllers/sheet-ui.controller.d.ts +15 -0
  203. package/lib/types/controllers/sheet-ui.controller.d.ts.map +1 -0
  204. package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +12 -0
  205. package/lib/types/controllers/shortcuts/editor.shortcut.d.ts.map +1 -0
  206. package/lib/types/controllers/shortcuts/operation.shortcut.d.ts +4 -0
  207. package/lib/types/controllers/shortcuts/operation.shortcut.d.ts.map +1 -0
  208. package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +24 -0
  209. package/lib/types/controllers/shortcuts/selection.shortcut.d.ts.map +1 -0
  210. package/lib/types/controllers/shortcuts/style.shortcut.d.ts +6 -0
  211. package/lib/types/controllers/shortcuts/style.shortcut.d.ts.map +1 -0
  212. package/lib/types/controllers/shortcuts/utils.d.ts +9 -0
  213. package/lib/types/controllers/shortcuts/utils.d.ts.map +1 -0
  214. package/lib/types/controllers/shortcuts/value.shortcut.d.ts +3 -0
  215. package/lib/types/controllers/shortcuts/value.shortcut.d.ts.map +1 -0
  216. package/lib/types/controllers/shortcuts/view.shortcut.d.ts +5 -0
  217. package/lib/types/controllers/shortcuts/view.shortcut.d.ts.map +1 -0
  218. package/lib/types/controllers/status-bar.controller.d.ts +16 -0
  219. package/lib/types/controllers/status-bar.controller.d.ts.map +1 -0
  220. package/lib/types/controllers/utils/component-tools.d.ts +30 -0
  221. package/lib/types/controllers/utils/component-tools.d.ts.map +1 -0
  222. package/lib/types/controllers/zoom.controller.d.ts +24 -0
  223. package/lib/types/controllers/zoom.controller.d.ts.map +1 -0
  224. package/lib/types/index.d.ts +26 -0
  225. package/lib/types/index.d.ts.map +1 -0
  226. package/lib/types/locale/en-US.d.ts +471 -0
  227. package/lib/types/locale/en-US.d.ts.map +1 -0
  228. package/lib/types/locale/index.d.ts +3 -0
  229. package/lib/types/locale/index.d.ts.map +1 -0
  230. package/lib/types/locale/zh-CN.d.ts +436 -0
  231. package/lib/types/locale/zh-CN.d.ts.map +1 -0
  232. package/lib/types/services/auto-fill/auto-fill.service.d.ts +65 -0
  233. package/lib/types/services/auto-fill/auto-fill.service.d.ts.map +1 -0
  234. package/lib/types/services/auto-fill/rules.d.ts +9 -0
  235. package/lib/types/services/auto-fill/rules.d.ts.map +1 -0
  236. package/lib/types/services/auto-fill/tools.d.ts +96 -0
  237. package/lib/types/services/auto-fill/tools.d.ts.map +1 -0
  238. package/lib/types/services/auto-fill/type.d.ts +54 -0
  239. package/lib/types/services/auto-fill/type.d.ts.map +1 -0
  240. package/lib/types/services/clipboard/__tests__/clipboard-service.spec.d.ts +2 -0
  241. package/lib/types/services/clipboard/__tests__/clipboard-service.spec.d.ts.map +1 -0
  242. package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +21 -0
  243. package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts.map +1 -0
  244. package/lib/types/services/clipboard/__tests__/mock-clipboard.d.ts +23 -0
  245. package/lib/types/services/clipboard/__tests__/mock-clipboard.d.ts.map +1 -0
  246. package/lib/types/services/clipboard/clipboard.service.d.ts +104 -0
  247. package/lib/types/services/clipboard/clipboard.service.d.ts.map +1 -0
  248. package/lib/types/services/clipboard/copy-content-cache.d.ts +20 -0
  249. package/lib/types/services/clipboard/copy-content-cache.d.ts.map +1 -0
  250. package/lib/types/services/clipboard/html-to-usm/converter.d.ts +27 -0
  251. package/lib/types/services/clipboard/html-to-usm/converter.d.ts.map +1 -0
  252. package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +3 -0
  253. package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts.map +1 -0
  254. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts +4 -0
  255. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts.map +1 -0
  256. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts +4 -0
  257. package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts.map +1 -0
  258. package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts +16 -0
  259. package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts.map +1 -0
  260. package/lib/types/services/clipboard/html-to-usm/utils.d.ts +5 -0
  261. package/lib/types/services/clipboard/html-to-usm/utils.d.ts.map +1 -0
  262. package/lib/types/services/clipboard/type.d.ts +120 -0
  263. package/lib/types/services/clipboard/type.d.ts.map +1 -0
  264. package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +9 -0
  265. package/lib/types/services/clipboard/usm-to-html/convertor.d.ts.map +1 -0
  266. package/lib/types/services/editor/cell-editor-manager.service.d.ts +43 -0
  267. package/lib/types/services/editor/cell-editor-manager.service.d.ts.map +1 -0
  268. package/lib/types/services/editor/formula-editor-manager.service.d.ts +30 -0
  269. package/lib/types/services/editor/formula-editor-manager.service.d.ts.map +1 -0
  270. package/lib/types/services/editor-bridge.service.d.ts +79 -0
  271. package/lib/types/services/editor-bridge.service.d.ts.map +1 -0
  272. package/lib/types/services/format-painter/format-painter.service.d.ts +29 -0
  273. package/lib/types/services/format-painter/format-painter.service.d.ts.map +1 -0
  274. package/lib/types/services/mark-selection/mark-selection.service.d.ts +28 -0
  275. package/lib/types/services/mark-selection/mark-selection.service.d.ts.map +1 -0
  276. package/lib/types/services/scroll-manager.service.d.ts +38 -0
  277. package/lib/types/services/scroll-manager.service.d.ts.map +1 -0
  278. package/lib/types/services/selection/selection-render-model.d.ts +45 -0
  279. package/lib/types/services/selection/selection-render-model.d.ts.map +1 -0
  280. package/lib/types/services/selection/selection-render.service.d.ts +165 -0
  281. package/lib/types/services/selection/selection-render.service.d.ts.map +1 -0
  282. package/lib/types/services/selection/selection-shape-extension.d.ts +45 -0
  283. package/lib/types/services/selection/selection-shape-extension.d.ts.map +1 -0
  284. package/lib/types/services/selection/selection-shape.d.ts +114 -0
  285. package/lib/types/services/selection/selection-shape.d.ts.map +1 -0
  286. package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +39 -0
  287. package/lib/types/services/sheet-bar/sheet-bar.service.d.ts.map +1 -0
  288. package/lib/types/services/sheet-skeleton-manager.service.d.ts +47 -0
  289. package/lib/types/services/sheet-skeleton-manager.service.d.ts.map +1 -0
  290. package/lib/types/services/status-bar.service.d.ts +26 -0
  291. package/lib/types/services/status-bar.service.d.ts.map +1 -0
  292. package/lib/types/sheets-ui-plugin.d.ts +13 -0
  293. package/lib/types/sheets-ui-plugin.d.ts.map +1 -0
  294. package/lib/types/views/count-bar/CountBar.d.ts +8 -0
  295. package/lib/types/views/count-bar/CountBar.d.ts.map +1 -0
  296. package/lib/types/views/count-bar/index.d.ts +2 -0
  297. package/lib/types/views/count-bar/index.d.ts.map +1 -0
  298. package/lib/types/views/count-bar/zoom-slider.d.ts +3 -0
  299. package/lib/types/views/count-bar/zoom-slider.d.ts.map +1 -0
  300. package/lib/types/views/editor-container/EditorContainer.d.ts +10 -0
  301. package/lib/types/views/editor-container/EditorContainer.d.ts.map +1 -0
  302. package/lib/types/views/editor-container/index.d.ts +2 -0
  303. package/lib/types/views/editor-container/index.d.ts.map +1 -0
  304. package/lib/types/views/formula-bar/FormulaBar.d.ts +3 -0
  305. package/lib/types/views/formula-bar/FormulaBar.d.ts.map +1 -0
  306. package/lib/types/views/formula-bar/index.d.ts +2 -0
  307. package/lib/types/views/formula-bar/index.d.ts.map +1 -0
  308. package/lib/types/views/header-menu-shape.d.ts +23 -0
  309. package/lib/types/views/header-menu-shape.d.ts.map +1 -0
  310. package/lib/types/views/header-resize-shape.d.ts +27 -0
  311. package/lib/types/views/header-resize-shape.d.ts.map +1 -0
  312. package/lib/types/views/header-unhide-shape.d.ts +35 -0
  313. package/lib/types/views/header-unhide-shape.d.ts.map +1 -0
  314. package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts +14 -0
  315. package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts.map +1 -0
  316. package/lib/types/views/operate-container/OperateContainer.d.ts +3 -0
  317. package/lib/types/views/operate-container/OperateContainer.d.ts.map +1 -0
  318. package/lib/types/views/operate-container/index.d.ts +2 -0
  319. package/lib/types/views/operate-container/index.d.ts.map +1 -0
  320. package/lib/types/views/sheet-bar/SheetBar.d.ts +3 -0
  321. package/lib/types/views/sheet-bar/SheetBar.d.ts.map +1 -0
  322. package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +20 -0
  323. package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts.map +1 -0
  324. package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +14 -0
  325. package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts.map +1 -0
  326. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +14 -0
  327. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts.map +1 -0
  328. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts +5 -0
  329. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts.map +1 -0
  330. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/animate.d.ts +29 -0
  331. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/animate.d.ts.map +1 -0
  332. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +142 -0
  333. package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts.map +1 -0
  334. package/lib/types/views/sheet-canvas-view.d.ts +20 -0
  335. package/lib/types/views/sheet-canvas-view.d.ts.map +1 -0
  336. package/lib/types/views/sheet-container/SheetContainer.d.ts +11 -0
  337. package/lib/types/views/sheet-container/SheetContainer.d.ts.map +1 -0
  338. package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +15 -0
  339. package/lib/types/views/status-bar/CopyableStatisticItem.d.ts.map +1 -0
  340. package/lib/types/views/status-bar/StatusBar.d.ts +3 -0
  341. package/lib/types/views/status-bar/StatusBar.d.ts.map +1 -0
  342. package/package.json +72 -0
@@ -0,0 +1,436 @@
1
+ declare const _default: {
2
+ spreadsheetLabel: string;
3
+ spreadsheetRightLabel: string;
4
+ toolbar: {
5
+ undo: string;
6
+ redo: string;
7
+ formatPainter: string;
8
+ currencyFormat: string;
9
+ percentageFormat: string;
10
+ numberDecrease: string;
11
+ numberIncrease: string;
12
+ moreFormats: string;
13
+ font: string;
14
+ fontSize: string;
15
+ bold: string;
16
+ italic: string;
17
+ strikethrough: string;
18
+ underline: string;
19
+ textColor: {
20
+ main: string;
21
+ right: string;
22
+ };
23
+ resetColor: string;
24
+ customColor: string;
25
+ alternatingColors: string;
26
+ confirmColor: string;
27
+ cancelColor: string;
28
+ collapse: string;
29
+ fillColor: {
30
+ main: string;
31
+ right: string;
32
+ };
33
+ border: {
34
+ main: string;
35
+ right: string;
36
+ };
37
+ mergeCell: {
38
+ main: string;
39
+ right: string;
40
+ };
41
+ horizontalAlignMode: {
42
+ main: string;
43
+ right: string;
44
+ };
45
+ verticalAlignMode: {
46
+ main: string;
47
+ right: string;
48
+ };
49
+ textWrapMode: {
50
+ main: string;
51
+ right: string;
52
+ };
53
+ textRotateMode: {
54
+ main: string;
55
+ right: string;
56
+ };
57
+ freezeTopRow: string;
58
+ sortAndFilter: string;
59
+ findAndReplace: string;
60
+ sum: string;
61
+ autoSum: string;
62
+ moreFunction: string;
63
+ conditionalalFormat: string;
64
+ comment: string;
65
+ pivotTable: string;
66
+ chart: string;
67
+ screenshot: string;
68
+ splitColumn: string;
69
+ insertImage: string;
70
+ insertLink: string;
71
+ dataValidation: string;
72
+ protection: string;
73
+ clearText: string;
74
+ noColorSelectedText: string;
75
+ toolMore: string;
76
+ toolLess: string;
77
+ toolClose: string;
78
+ toolMoreTip: string;
79
+ moreOptions: string;
80
+ cellFormat: string;
81
+ print: string;
82
+ borderMethod: {
83
+ top: string;
84
+ bottom: string;
85
+ left: string;
86
+ right: string;
87
+ };
88
+ more: string;
89
+ };
90
+ defaultFmt: {
91
+ Automatic: {
92
+ text: string;
93
+ value: string;
94
+ example: string;
95
+ };
96
+ Number: {
97
+ text: string;
98
+ value: string;
99
+ example: string;
100
+ };
101
+ Percent: {
102
+ text: string;
103
+ value: string;
104
+ example: string;
105
+ };
106
+ PlainText: {
107
+ text: string;
108
+ value: string;
109
+ example: string;
110
+ };
111
+ Scientific: {
112
+ text: string;
113
+ value: string;
114
+ example: string;
115
+ };
116
+ Accounting: {
117
+ text: string;
118
+ value: string;
119
+ example: string;
120
+ };
121
+ Thousand: {
122
+ text: string;
123
+ value: string;
124
+ example: string;
125
+ };
126
+ Currency: {
127
+ text: string;
128
+ value: string;
129
+ example: string;
130
+ };
131
+ Digit: {
132
+ text: string;
133
+ value: string;
134
+ example: string;
135
+ };
136
+ Date: {
137
+ text: string;
138
+ value: string;
139
+ example: string;
140
+ };
141
+ Time: {
142
+ text: string;
143
+ value: string;
144
+ example: string;
145
+ };
146
+ Time24H: {
147
+ text: string;
148
+ value: string;
149
+ example: string;
150
+ };
151
+ DateTime: {
152
+ text: string;
153
+ value: string;
154
+ example: string;
155
+ };
156
+ DateTime24H: {
157
+ text: string;
158
+ value: string;
159
+ example: string;
160
+ };
161
+ CustomFormats: {
162
+ text: string;
163
+ value: string;
164
+ example: string;
165
+ };
166
+ };
167
+ format: {
168
+ moreCurrency: string;
169
+ moreDateTime: string;
170
+ moreNumber: string;
171
+ titleCurrency: string;
172
+ decimalPlaces: string;
173
+ titleDateTime: string;
174
+ titleNumber: string;
175
+ };
176
+ fontFamily: {
177
+ TimesNewRoman: string;
178
+ Arial: string;
179
+ Tahoma: string;
180
+ Verdana: string;
181
+ MicrosoftYaHei: string;
182
+ SimSun: string;
183
+ SimHei: string;
184
+ Kaiti: string;
185
+ FangSong: string;
186
+ NSimSun: string;
187
+ STXinwei: string;
188
+ STXingkai: string;
189
+ STLiti: string;
190
+ HanaleiFill: string;
191
+ Anton: string;
192
+ Pacifico: string;
193
+ };
194
+ print: {
195
+ normalBtn: string;
196
+ layoutBtn: string;
197
+ pageBtn: string;
198
+ menuItemPrint: string;
199
+ menuItemAreas: string;
200
+ menuItemRows: string;
201
+ menuItemColumns: string;
202
+ };
203
+ align: {
204
+ left: string;
205
+ center: string;
206
+ right: string;
207
+ top: string;
208
+ middle: string;
209
+ bottom: string;
210
+ };
211
+ button: {
212
+ confirm: string;
213
+ cancel: string;
214
+ close: string;
215
+ update: string;
216
+ delete: string;
217
+ insert: string;
218
+ prevPage: string;
219
+ nextPage: string;
220
+ total: string;
221
+ };
222
+ punctuation: {
223
+ tab: string;
224
+ semicolon: string;
225
+ comma: string;
226
+ space: string;
227
+ };
228
+ colorPicker: {
229
+ collapse: string;
230
+ customColor: string;
231
+ change: string;
232
+ confirmColor: string;
233
+ cancelColor: string;
234
+ };
235
+ borderLine: {
236
+ borderTop: string;
237
+ borderBottom: string;
238
+ borderLeft: string;
239
+ borderRight: string;
240
+ borderNone: string;
241
+ borderAll: string;
242
+ borderOutside: string;
243
+ borderInside: string;
244
+ borderHorizontal: string;
245
+ borderVertical: string;
246
+ borderColor: string;
247
+ borderSize: string;
248
+ borderType: string;
249
+ };
250
+ merge: {
251
+ all: string;
252
+ vertical: string;
253
+ horizontal: string;
254
+ cancel: string;
255
+ overlappingError: string;
256
+ partiallyError: string;
257
+ };
258
+ textWrap: {
259
+ overflow: string;
260
+ wrap: string;
261
+ clip: string;
262
+ };
263
+ textRotate: {
264
+ none: string;
265
+ angleUp: string;
266
+ angleDown: string;
267
+ vertical: string;
268
+ rotationUp: string;
269
+ rotationDown: string;
270
+ };
271
+ sheetConfig: {
272
+ delete: string;
273
+ copy: string;
274
+ rename: string;
275
+ changeColor: string;
276
+ hide: string;
277
+ unhide: string;
278
+ moveLeft: string;
279
+ moveRight: string;
280
+ resetColor: string;
281
+ cancelText: string;
282
+ chooseText: string;
283
+ tipNameRepeat: string;
284
+ noMoreSheet: string;
285
+ confirmDelete: string;
286
+ redoDelete: string;
287
+ noHide: string;
288
+ chartEditNoOpt: string;
289
+ sheetNameSpecCharError: string;
290
+ sheetNameCannotIsEmptyError: string;
291
+ };
292
+ rightClick: {
293
+ copy: string;
294
+ copyAs: string;
295
+ cut: string;
296
+ paste: string;
297
+ pasteSpecial: string;
298
+ pasteValue: string;
299
+ pasteFormat: string;
300
+ pasteColWidth: string;
301
+ pasteBesidesBorder: string;
302
+ insert: string;
303
+ delete: string;
304
+ insertRow: string;
305
+ insertColumn: string;
306
+ deleteCell: string;
307
+ insertCell: string;
308
+ deleteSelected: string;
309
+ hide: string;
310
+ hideSelected: string;
311
+ showHide: string;
312
+ toTopAdd: string;
313
+ toBottomAdd: string;
314
+ toLeftAdd: string;
315
+ toRightAdd: string;
316
+ deleteSelectedRow: string;
317
+ deleteSelectedColumn: string;
318
+ hideSelectedRow: string;
319
+ showHideRow: string;
320
+ rowHeight: string;
321
+ hideSelectedColumn: string;
322
+ showHideColumn: string;
323
+ columnWidth: string;
324
+ to: string;
325
+ left: string;
326
+ right: string;
327
+ top: string;
328
+ bottom: string;
329
+ moveLeft: string;
330
+ moveUp: string;
331
+ moveRight: string;
332
+ moveDown: string;
333
+ add: string;
334
+ row: string;
335
+ column: string;
336
+ width: string;
337
+ height: string;
338
+ number: string;
339
+ confirm: string;
340
+ orderAZ: string;
341
+ orderZA: string;
342
+ clearSelection: string;
343
+ clearContent: string;
344
+ clearFormat: string;
345
+ clearAll: string;
346
+ matrix: string;
347
+ sortSelection: string;
348
+ filterSelection: string;
349
+ chartGeneration: string;
350
+ firstLineTitle: string;
351
+ untitled: string;
352
+ array1: string;
353
+ array2: string;
354
+ array3: string;
355
+ diagonal: string;
356
+ antiDiagonal: string;
357
+ diagonalOffset: string;
358
+ offset: string;
359
+ boolean: string;
360
+ flip: string;
361
+ upAndDown: string;
362
+ leftAndRight: string;
363
+ clockwise: string;
364
+ counterclockwise: string;
365
+ transpose: string;
366
+ matrixCalculation: string;
367
+ plus: string;
368
+ minus: string;
369
+ multiply: string;
370
+ divided: string;
371
+ power: string;
372
+ root: string;
373
+ log: string;
374
+ delete0: string;
375
+ removeDuplicate: string;
376
+ byRow: string;
377
+ byCol: string;
378
+ generateNewMatrix: string;
379
+ fitContent: string;
380
+ freeze: string;
381
+ freezeCol: string;
382
+ freezeRow: string;
383
+ cancelFreeze: string;
384
+ };
385
+ info: {
386
+ tooltip: string;
387
+ notChangeMerge: string;
388
+ detailUpdate: string;
389
+ detailSave: string;
390
+ row: string;
391
+ column: string;
392
+ loading: string;
393
+ copy: string;
394
+ return: string;
395
+ rename: string;
396
+ tips: string;
397
+ noName: string;
398
+ wait: string;
399
+ add: string;
400
+ addLast: string;
401
+ backTop: string;
402
+ pageInfo: string;
403
+ nextPage: string;
404
+ tipInputNumber: string;
405
+ tipInputNumberLimit: string;
406
+ tipRowHeightLimit: string;
407
+ tipColumnWidthLimit: string;
408
+ pageInfoFull: string;
409
+ };
410
+ clipboard: {
411
+ paste: {
412
+ exceedMaxCells: string;
413
+ };
414
+ };
415
+ statusbar: {
416
+ sum: string;
417
+ average: string;
418
+ min: string;
419
+ max: string;
420
+ count: string;
421
+ clickToCopy: string;
422
+ copied: string;
423
+ };
424
+ autoFill: {
425
+ copy: string;
426
+ series: string;
427
+ formatOnly: string;
428
+ noFormat: string;
429
+ };
430
+ rangeSelector: {
431
+ placeholder: string;
432
+ tooltip: string;
433
+ };
434
+ };
435
+ export default _default;
436
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA8aE"}
@@ -0,0 +1,65 @@
1
+ import type { IRange } from '@univerjs/core';
2
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
3
+ import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
4
+ import type { IDisposable } from '@wendellhu/redi';
5
+ import type { Observable } from 'rxjs';
6
+ import type { IAutoFillHook, IAutoFillRule } from './type';
7
+ import { APPLY_TYPE } from './type';
8
+ export interface IAutoFillService {
9
+ getRules(): IAutoFillRule[];
10
+ getApplyType(): APPLY_TYPE;
11
+ isFillingStyle(): boolean;
12
+ setApplyType(type: APPLY_TYPE): void;
13
+ setRanges(sourceRange: IRange, destRange: IRange, applyRange: IRange): void;
14
+ getRanges(): {
15
+ sourceRange: IRange | null;
16
+ destRange: IRange | null;
17
+ applyRange: IRange | null;
18
+ };
19
+ setFillingStyle(isFillingStyle: boolean): void;
20
+ applyType$: Observable<APPLY_TYPE>;
21
+ menu$: Observable<IApplyMenuItem[]>;
22
+ setDisableApplyType: (type: APPLY_TYPE, disable: boolean) => void;
23
+ registerRule(rule: IAutoFillRule): void;
24
+ getHooks(): IAutoFillHook[];
25
+ addHook(hook: IAutoFillHook): IDisposable;
26
+ }
27
+ export interface IApplyMenuItem {
28
+ label: string;
29
+ value: APPLY_TYPE;
30
+ disable: boolean;
31
+ }
32
+ export declare class AutoFillService extends Disposable implements IAutoFillService {
33
+ private _sheetInterceptorService;
34
+ private _univerInstanceService;
35
+ private _selectionManagerService;
36
+ private _rules;
37
+ private _hooks;
38
+ private readonly _applyType$;
39
+ private _isFillingStyle;
40
+ private _sourceRange;
41
+ private _destRange;
42
+ private _applyRange;
43
+ readonly applyType$: Observable<APPLY_TYPE>;
44
+ private readonly _menu$;
45
+ readonly menu$: Observable<IApplyMenuItem[]>;
46
+ constructor(_sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SelectionManagerService);
47
+ private _init;
48
+ addHook(hook: IAutoFillHook): IDisposable;
49
+ registerRule(rule: IAutoFillRule): void;
50
+ getRules(): IAutoFillRule[];
51
+ getHooks(): IAutoFillHook[];
52
+ getApplyType(): APPLY_TYPE;
53
+ setApplyType(type: APPLY_TYPE): void;
54
+ isFillingStyle(): boolean;
55
+ setFillingStyle(isFillingStyle: boolean): void;
56
+ setRanges(destRange: IRange, sourceRange: IRange, applyRange: IRange): void;
57
+ getRanges(): {
58
+ sourceRange: IRange | null;
59
+ destRange: IRange | null;
60
+ applyRange: IRange | null;
61
+ };
62
+ setDisableApplyType(type: APPLY_TYPE, disable: boolean): void;
63
+ }
64
+ export declare const IAutoFillService: import("@wendellhu/redi").IdentifierDecorator<AutoFillService>;
65
+ //# sourceMappingURL=auto-fill.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-fill.service.d.ts","sourceRoot":"","sources":["../../../../src/services/auto-fill/auto-fill.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAA8C,MAAM,gBAAgB,CAAC;AAChH,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAYvC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,IA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AAC,UAAU,CAAuB;IACzC,OAAO,CAAC,WAAW,CAAuB;IAC1C,QAAQ,CAAC,UAAU,yBAAmC;IAEtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAqBpB;IACH,QAAQ,CAAC,KAAK,+BAA8B;gBAEC,wBAAwB,EAAE,uBAAuB,EAClD,sBAAsB,EAAE,sBAAsB,EAC7C,wBAAwB,EAAE,uBAAuB;IAM9F,OAAO,CAAC,KAAK;IAab,OAAO,CAAC,IAAI,EAAE,aAAa;IAa3B,YAAY,CAAC,IAAI,EAAE,aAAa;IAUhC,QAAQ;IAIR,QAAQ;IAIR,YAAY;IAIZ,YAAY,CAAC,IAAI,EAAE,UAAU;IAI7B,cAAc,IAAI,OAAO;IAIzB,eAAe,CAAC,cAAc,EAAE,OAAO;IAIvC,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAMpE,SAAS;;;;;IAQT,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO;CAazD;AAED,eAAO,MAAM,gBAAgB,gEAAgE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { IAutoFillRule } from './type';
2
+ export declare const numberRule: IAutoFillRule;
3
+ export declare const otherRule: IAutoFillRule;
4
+ export declare const extendNumberRule: IAutoFillRule;
5
+ export declare const chnNumberRule: IAutoFillRule;
6
+ export declare const chnWeek2Rule: IAutoFillRule;
7
+ export declare const chnWeek3Rule: IAutoFillRule;
8
+ export declare const loopSeriesRule: IAutoFillRule;
9
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/services/auto-fill/rules.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG5C,eAAO,MAAM,UAAU,EAAE,aAoBxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,aAUvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,aA0C9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAqF3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,aAuD1B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,aAoD1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,aAuD5B,CAAC"}
@@ -0,0 +1,96 @@
1
+ import type { ICellData, IRange, Nullable } from '@univerjs/core';
2
+ import { Direction } from '@univerjs/core';
3
+ export declare const chnNumChar: {
4
+ 零: number;
5
+ 一: number;
6
+ 二: number;
7
+ 三: number;
8
+ 四: number;
9
+ 五: number;
10
+ 六: number;
11
+ 七: number;
12
+ 八: number;
13
+ 九: number;
14
+ };
15
+ export declare const chnNumChar2: string[];
16
+ export declare const chnUnitSection: string[];
17
+ export declare const chnUnitChar: string[];
18
+ export interface ICopyDataInType {
19
+ data: Array<Nullable<ICellData>>;
20
+ index: ICopyDataInTypeIndexInfo;
21
+ }
22
+ export type ICopyDataInTypeIndexInfo = number[];
23
+ export declare const chnNameValue: {
24
+ 十: {
25
+ value: number;
26
+ secUnit: boolean;
27
+ };
28
+ 百: {
29
+ value: number;
30
+ secUnit: boolean;
31
+ };
32
+ 千: {
33
+ value: number;
34
+ secUnit: boolean;
35
+ };
36
+ 万: {
37
+ value: number;
38
+ secUnit: boolean;
39
+ };
40
+ 亿: {
41
+ value: number;
42
+ secUnit: boolean;
43
+ };
44
+ };
45
+ export declare function chineseToNumber(chnStr?: Nullable<string>): number;
46
+ export declare function sectionToChinese(section: number): string;
47
+ export declare function numberToChinese(num: number): string;
48
+ export declare function isChnNumber(txt?: string): boolean;
49
+ export declare function matchExtendNumber(txt?: string): {
50
+ isExtendNumber: boolean;
51
+ matchTxt?: undefined;
52
+ beforeTxt?: undefined;
53
+ afterTxt?: undefined;
54
+ } | {
55
+ isExtendNumber: boolean;
56
+ matchTxt: number;
57
+ beforeTxt: string;
58
+ afterTxt: string;
59
+ };
60
+ export declare function isChnWeek1(txt: string): boolean;
61
+ export declare function isChnWeek2(txt: string): boolean;
62
+ export declare function isChnWeek3(txt: string): boolean;
63
+ export declare function getLenS(indexArr: any[], rsd: number): number;
64
+ /**
65
+ * equal diff
66
+ * @param arr
67
+ * @returns
68
+ */
69
+ export declare function isEqualDiff(arr: number[]): boolean;
70
+ export declare function getDataIndex(csLen: number, asLen: number, indexArr: number[]): ICopyDataInTypeIndexInfo;
71
+ export declare function fillCopy(data: Array<Nullable<ICellData>>, len: number): (void | ICellData | null)[];
72
+ export declare function fillCopyStyles(data: Array<Nullable<ICellData>>, len: number): {
73
+ s: Nullable<string | import("@univerjs/core").IStyleData>;
74
+ }[];
75
+ export declare function isEqualRatio(arr: number[]): boolean;
76
+ export declare function getXArr(len: number): number[];
77
+ export declare function fillSeries(data: Array<Nullable<ICellData>>, len: number, direction: Direction): ICellData[];
78
+ export declare function forecast(x: number, yArr: number[], xArr: number[]): number;
79
+ export declare function fillExtendNumber(data: Array<Nullable<ICellData>>, len: number, step: number): ICellData[];
80
+ export declare function fillOnlyFormat(data: Array<Nullable<ICellData>>, len: number): ICellData[];
81
+ export declare function fillChnWeek(data: Array<Nullable<ICellData>>, len: number, step: number, weekType?: number): ICellData[];
82
+ export declare function fillChnNumber(data: Array<Nullable<ICellData>>, len: number, step: number): ICellData[];
83
+ export declare function isLoopSeries(txt: string): boolean;
84
+ export declare function getLoopSeriesInfo(txt: string): {
85
+ name: string;
86
+ series: string[];
87
+ };
88
+ export declare function fillLoopSeries(data: Array<Nullable<ICellData>>, len: number, step: number, series: string[]): ICellData[];
89
+ export declare function getRepeatRange(sourceRange: IRange, targetRange: IRange): {
90
+ repeatStartCell: {
91
+ col: number;
92
+ row: number;
93
+ };
94
+ relativeRange: IRange;
95
+ }[];
96
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/services/auto-fill/tools.ts"],"names":[],"mappings":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BAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM;;;EAU5C;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAqB3G;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;qBAE9C;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;mBAC9B,MAAM;IA4I5B"}
@@ -0,0 +1,54 @@
1
+ import type { Direction, ICellData, IMutationInfo, IRange, Nullable } from '@univerjs/core';
2
+ export declare enum DATA_TYPE {
3
+ NUMBER = "number",
4
+ DATE = "date",
5
+ EXTEND_NUMBER = "extendNumber",
6
+ CHN_NUMBER = "chnNumber",
7
+ CHN_WEEK2 = "chnWeek2",
8
+ CHN_WEEK3 = "chnWeek3",
9
+ LOOP_SERIES = "loopSeries",
10
+ FORMULA = "formula",
11
+ OTHER = "other"
12
+ }
13
+ export interface ICopyDataPiece {
14
+ [key: string]: ICopyDataInType[];
15
+ }
16
+ export interface ICopyDataInType {
17
+ data: Array<Nullable<ICellData>>;
18
+ index: ICopyDataInTypeIndexInfo;
19
+ }
20
+ export type ICopyDataInTypeIndexInfo = number[];
21
+ export interface IAutoFillRule {
22
+ type: string;
23
+ match: (cellData: Nullable<ICellData>) => boolean;
24
+ isContinue: (prev: IRuleConfirmedData, cur: Nullable<ICellData>) => boolean;
25
+ applyFunctions?: APPLY_FUNCTIONS;
26
+ priority: number;
27
+ }
28
+ export interface IMutations {
29
+ redos: IMutationInfo[];
30
+ undos: IMutationInfo[];
31
+ }
32
+ export interface IAutoFillHook {
33
+ hookName: string;
34
+ hook: {
35
+ [APPLY_TYPE.SERIES]: (sourceRange: IRange, targetRange: IRange) => IMutations;
36
+ [APPLY_TYPE.NO_FORMAT]: (sourceRange: IRange, targetRange: IRange) => IMutations;
37
+ [APPLY_TYPE.ONLY_FORMAT]: (sourceRange: IRange, targetRange: IRange) => IMutations;
38
+ [APPLY_TYPE.COPY]: (sourceRange: IRange, targetRange: IRange) => IMutations;
39
+ };
40
+ }
41
+ export interface IRuleConfirmedData {
42
+ type?: string;
43
+ cellData: Nullable<ICellData>;
44
+ }
45
+ export type APPLY_FUNCTIONS = {
46
+ [key in APPLY_TYPE]?: (dataWithIndex: ICopyDataInType, len: number, direction: Direction, copyDataPiece: ICopyDataPiece) => Array<Nullable<ICellData>>;
47
+ };
48
+ export declare enum APPLY_TYPE {
49
+ COPY = "0",
50
+ SERIES = "1",
51
+ ONLY_FORMAT = "2",
52
+ NO_FORMAT = "3"
53
+ }
54
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/services/auto-fill/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE5F,oBAAY,SAAS;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,aAAa,iBAAiB;IAC9B,UAAU,cAAc;IACxB,SAAS,aAAa;IACtB,SAAS,aAAa;IACtB,WAAW,eAAe;IAC1B,OAAO,YAAY;IACnB,KAAK,UAAU;CAClB;AAED,MAAM,WAAW,cAAc;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACjC,KAAK,EAAE,wBAAwB,CAAC;CACnC;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,EAAE,CAAC;AAEhD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,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AClB,IAAI,MAAM;IACV,MAAM,MAAM;IACZ,WAAW,MAAM;IACjB,SAAS,MAAM;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clipboard-service.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard-service.spec.d.ts","sourceRoot":"","sources":["../../../../../src/services/clipboard/__tests__/clipboard-service.spec.ts"],"names":[],"mappings":""}