@univerjs/sheets 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 (263) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +13 -0
  3. package/lib/cjs/index.js +11383 -0
  4. package/lib/cjs/locale/en-US.js +26 -0
  5. package/lib/cjs/locale/zh-CN.js +26 -0
  6. package/lib/esm/index.js +10934 -0
  7. package/lib/esm/locale/en-US.js +5 -0
  8. package/lib/esm/locale/zh-CN.js +5 -0
  9. package/lib/types/basics/const/command-listener-const.d.ts +3 -0
  10. package/lib/types/basics/const/command-listener-const.d.ts.map +1 -0
  11. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +3 -0
  12. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts.map +1 -0
  13. package/lib/types/basics/const/index.d.ts +3 -0
  14. package/lib/types/basics/const/index.d.ts.map +1 -0
  15. package/lib/types/basics/get-apply-data.d.ts +1 -0
  16. package/lib/types/basics/get-apply-data.d.ts.map +1 -0
  17. package/lib/types/basics/index.d.ts +4 -0
  18. package/lib/types/basics/index.d.ts.map +1 -0
  19. package/lib/types/basics/interfaces/i-ruler-manager.d.ts +8 -0
  20. package/lib/types/basics/interfaces/i-ruler-manager.d.ts.map +1 -0
  21. package/lib/types/basics/interfaces/index.d.ts +4 -0
  22. package/lib/types/basics/interfaces/index.d.ts.map +1 -0
  23. package/lib/types/basics/interfaces/mutation-interface.d.ts +66 -0
  24. package/lib/types/basics/interfaces/mutation-interface.d.ts.map +1 -0
  25. package/lib/types/basics/interfaces/selection-config.d.ts +9 -0
  26. package/lib/types/basics/interfaces/selection-config.d.ts.map +1 -0
  27. package/lib/types/basics/interfaces/spreadsheet-config.d.ts +5 -0
  28. package/lib/types/basics/interfaces/spreadsheet-config.d.ts.map +1 -0
  29. package/lib/types/basics/selection.d.ts +136 -0
  30. package/lib/types/basics/selection.d.ts.map +1 -0
  31. package/lib/types/basics/sheet-header.d.ts +4 -0
  32. package/lib/types/basics/sheet-header.d.ts.map +1 -0
  33. package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts +2 -0
  34. package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts.map +1 -0
  35. package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts +2 -0
  36. package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts.map +1 -0
  37. package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts +2 -0
  38. package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts.map +1 -0
  39. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +11 -0
  40. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts.map +1 -0
  41. package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts +2 -0
  42. package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts.map +1 -0
  43. package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts +2 -0
  44. package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts.map +1 -0
  45. package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts +2 -0
  46. package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts.map +1 -0
  47. package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts +2 -0
  48. package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts.map +1 -0
  49. package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts +2 -0
  50. package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts.map +1 -0
  51. package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts +2 -0
  52. package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts.map +1 -0
  53. package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts +2 -0
  54. package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts.map +1 -0
  55. package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts +2 -0
  56. package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts.map +1 -0
  57. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +2 -0
  58. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts.map +1 -0
  59. package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts +2 -0
  60. package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts.map +1 -0
  61. package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts +2 -0
  62. package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts.map +1 -0
  63. package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts +2 -0
  64. package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts.map +1 -0
  65. package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts +2 -0
  66. package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts.map +1 -0
  67. package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts +2 -0
  68. package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts.map +1 -0
  69. package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts +2 -0
  70. package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts.map +1 -0
  71. package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts +2 -0
  72. package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts.map +1 -0
  73. package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts +2 -0
  74. package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts.map +1 -0
  75. package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts +2 -0
  76. package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts.map +1 -0
  77. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +20 -0
  78. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts.map +1 -0
  79. package/lib/types/commands/commands/clear-selection-all.command.d.ts +6 -0
  80. package/lib/types/commands/commands/clear-selection-all.command.d.ts.map +1 -0
  81. package/lib/types/commands/commands/clear-selection-content.command.d.ts +6 -0
  82. package/lib/types/commands/commands/clear-selection-content.command.d.ts.map +1 -0
  83. package/lib/types/commands/commands/clear-selection-format.command.d.ts +7 -0
  84. package/lib/types/commands/commands/clear-selection-format.command.d.ts.map +1 -0
  85. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +9 -0
  86. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts.map +1 -0
  87. package/lib/types/commands/commands/copy-worksheet.command.d.ts +7 -0
  88. package/lib/types/commands/commands/copy-worksheet.command.d.ts.map +1 -0
  89. package/lib/types/commands/commands/delete-range-move-left.command.d.ts +10 -0
  90. package/lib/types/commands/commands/delete-range-move-left.command.d.ts.map +1 -0
  91. package/lib/types/commands/commands/delete-range-move-up.command.d.ts +10 -0
  92. package/lib/types/commands/commands/delete-range-move-up.command.d.ts.map +1 -0
  93. package/lib/types/commands/commands/insert-range-move-down.command.d.ts +10 -0
  94. package/lib/types/commands/commands/insert-range-move-down.command.d.ts.map +1 -0
  95. package/lib/types/commands/commands/insert-range-move-right.command.d.ts +10 -0
  96. package/lib/types/commands/commands/insert-range-move-right.command.d.ts.map +1 -0
  97. package/lib/types/commands/commands/insert-row-col.command.d.ts +36 -0
  98. package/lib/types/commands/commands/insert-row-col.command.d.ts.map +1 -0
  99. package/lib/types/commands/commands/insert-sheet.command.d.ts +11 -0
  100. package/lib/types/commands/commands/insert-sheet.command.d.ts.map +1 -0
  101. package/lib/types/commands/commands/move-range.command.d.ts +8 -0
  102. package/lib/types/commands/commands/move-range.command.d.ts.map +1 -0
  103. package/lib/types/commands/commands/move-rows-cols.command.d.ts +15 -0
  104. package/lib/types/commands/commands/move-rows-cols.command.d.ts.map +1 -0
  105. package/lib/types/commands/commands/remove-row-col.command.d.ts +15 -0
  106. package/lib/types/commands/commands/remove-row-col.command.d.ts.map +1 -0
  107. package/lib/types/commands/commands/remove-sheet.command.d.ts +10 -0
  108. package/lib/types/commands/commands/remove-sheet.command.d.ts.map +1 -0
  109. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +3 -0
  110. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts.map +1 -0
  111. package/lib/types/commands/commands/set-border-command.d.ts +24 -0
  112. package/lib/types/commands/commands/set-border-command.d.ts.map +1 -0
  113. package/lib/types/commands/commands/set-col-visible.command.d.ts +10 -0
  114. package/lib/types/commands/commands/set-col-visible.command.d.ts.map +1 -0
  115. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +3 -0
  116. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts.map +1 -0
  117. package/lib/types/commands/commands/set-frozen.command.d.ts +3 -0
  118. package/lib/types/commands/commands/set-frozen.command.d.ts.map +1 -0
  119. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +9 -0
  120. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts.map +1 -0
  121. package/lib/types/commands/commands/set-range-values.command.d.ts +17 -0
  122. package/lib/types/commands/commands/set-range-values.command.d.ts.map +1 -0
  123. package/lib/types/commands/commands/set-row-visible.command.d.ts +10 -0
  124. package/lib/types/commands/commands/set-row-visible.command.d.ts.map +1 -0
  125. package/lib/types/commands/commands/set-style.command.d.ts +70 -0
  126. package/lib/types/commands/commands/set-style.command.d.ts.map +1 -0
  127. package/lib/types/commands/commands/set-tab-color.command.d.ts +6 -0
  128. package/lib/types/commands/commands/set-tab-color.command.d.ts.map +1 -0
  129. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +7 -0
  130. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts.map +1 -0
  131. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +11 -0
  132. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts.map +1 -0
  133. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +6 -0
  134. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts.map +1 -0
  135. package/lib/types/commands/commands/set-worksheet-name.command.d.ts +11 -0
  136. package/lib/types/commands/commands/set-worksheet-name.command.d.ts.map +1 -0
  137. package/lib/types/commands/commands/set-worksheet-order.command.d.ts +8 -0
  138. package/lib/types/commands/commands/set-worksheet-order.command.d.ts.map +1 -0
  139. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +9 -0
  140. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts.map +1 -0
  141. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +14 -0
  142. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts.map +1 -0
  143. package/lib/types/commands/commands/set-worksheet-show.command.d.ts +6 -0
  144. package/lib/types/commands/commands/set-worksheet-show.command.d.ts.map +1 -0
  145. package/lib/types/commands/commands/utils/merged-cell-util.d.ts +7 -0
  146. package/lib/types/commands/commands/utils/merged-cell-util.d.ts.map +1 -0
  147. package/lib/types/commands/commands/utils/selection-util.d.ts +52 -0
  148. package/lib/types/commands/commands/utils/selection-util.d.ts.map +1 -0
  149. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +6 -0
  150. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts.map +1 -0
  151. package/lib/types/commands/mutations/delete-range.mutation.d.ts +15 -0
  152. package/lib/types/commands/mutations/delete-range.mutation.d.ts.map +1 -0
  153. package/lib/types/commands/mutations/insert-range.mutation.d.ts +15 -0
  154. package/lib/types/commands/mutations/insert-range.mutation.d.ts.map +1 -0
  155. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +8 -0
  156. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts.map +1 -0
  157. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +13 -0
  158. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts.map +1 -0
  159. package/lib/types/commands/mutations/move-range.mutation.d.ts +9 -0
  160. package/lib/types/commands/mutations/move-range.mutation.d.ts.map +1 -0
  161. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +36 -0
  162. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts.map +1 -0
  163. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +8 -0
  164. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts.map +1 -0
  165. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +13 -0
  166. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts.map +1 -0
  167. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +6 -0
  168. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts.map +1 -0
  169. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +25 -0
  170. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts.map +1 -0
  171. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +13 -0
  172. package/lib/types/commands/mutations/set-frozen.mutation.d.ts.map +1 -0
  173. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +10 -0
  174. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts.map +1 -0
  175. package/lib/types/commands/mutations/set-numfmt-mutation.d.ts +16 -0
  176. package/lib/types/commands/mutations/set-numfmt-mutation.d.ts.map +1 -0
  177. package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts +18 -0
  178. package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts.map +1 -0
  179. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +63 -0
  180. package/lib/types/commands/mutations/set-range-values.mutation.d.ts.map +1 -0
  181. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +25 -0
  182. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts.map +1 -0
  183. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +10 -0
  184. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts.map +1 -0
  185. package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts +9 -0
  186. package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts.map +1 -0
  187. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +12 -0
  188. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts.map +1 -0
  189. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +13 -0
  190. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts.map +1 -0
  191. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +10 -0
  192. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts.map +1 -0
  193. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +10 -0
  194. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts.map +1 -0
  195. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +10 -0
  196. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts.map +1 -0
  197. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +10 -0
  198. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts.map +1 -0
  199. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +28 -0
  200. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts.map +1 -0
  201. package/lib/types/commands/operations/selection.operation.d.ts +10 -0
  202. package/lib/types/commands/operations/selection.operation.d.ts.map +1 -0
  203. package/lib/types/commands/utils/interface.d.ts +5 -0
  204. package/lib/types/commands/utils/interface.d.ts.map +1 -0
  205. package/lib/types/controllers/__tests__/util.d.ts +16 -0
  206. package/lib/types/controllers/__tests__/util.d.ts.map +1 -0
  207. package/lib/types/controllers/basic-worksheet.controller.d.ts +16 -0
  208. package/lib/types/controllers/basic-worksheet.controller.d.ts.map +1 -0
  209. package/lib/types/controllers/config/config.d.ts +3 -0
  210. package/lib/types/controllers/config/config.d.ts.map +1 -0
  211. package/lib/types/controllers/merge-cell.controller.d.ts +27 -0
  212. package/lib/types/controllers/merge-cell.controller.d.ts.map +1 -0
  213. package/lib/types/index.d.ts +97 -0
  214. package/lib/types/index.d.ts.map +1 -0
  215. package/lib/types/locale/en-US.d.ts +3 -0
  216. package/lib/types/locale/en-US.d.ts.map +1 -0
  217. package/lib/types/locale/index.d.ts +3 -0
  218. package/lib/types/locale/index.d.ts.map +1 -0
  219. package/lib/types/locale/zh-CN.d.ts +3 -0
  220. package/lib/types/locale/zh-CN.d.ts.map +1 -0
  221. package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts +2 -0
  222. package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts.map +1 -0
  223. package/lib/types/services/__tests__/sheet-permission.spec.d.ts +2 -0
  224. package/lib/types/services/__tests__/sheet-permission.spec.d.ts.map +1 -0
  225. package/lib/types/services/__tests__/util.d.ts +17 -0
  226. package/lib/types/services/__tests__/util.d.ts.map +1 -0
  227. package/lib/types/services/border-style-manager.service.d.ts +24 -0
  228. package/lib/types/services/border-style-manager.service.d.ts.map +1 -0
  229. package/lib/types/services/numfmt/numfmt.service.d.ts +37 -0
  230. package/lib/types/services/numfmt/numfmt.service.d.ts.map +1 -0
  231. package/lib/types/services/numfmt/type.d.ts +37 -0
  232. package/lib/types/services/numfmt/type.d.ts.map +1 -0
  233. package/lib/types/services/permission/index.d.ts +3 -0
  234. package/lib/types/services/permission/index.d.ts.map +1 -0
  235. package/lib/types/services/permission/permission-point.d.ts +10 -0
  236. package/lib/types/services/permission/permission-point.d.ts.map +1 -0
  237. package/lib/types/services/permission/sheet-permission.service.d.ts +18 -0
  238. package/lib/types/services/permission/sheet-permission.service.d.ts.map +1 -0
  239. package/lib/types/services/ref-range/__tests__/util.d.ts +17 -0
  240. package/lib/types/services/ref-range/__tests__/util.d.ts.map +1 -0
  241. package/lib/types/services/ref-range/__tests__/util.spec.d.ts +2 -0
  242. package/lib/types/services/ref-range/__tests__/util.spec.d.ts.map +1 -0
  243. package/lib/types/services/ref-range/ref-range.service.d.ts +55 -0
  244. package/lib/types/services/ref-range/ref-range.service.d.ts.map +1 -0
  245. package/lib/types/services/ref-range/type.d.ts +81 -0
  246. package/lib/types/services/ref-range/type.d.ts.map +1 -0
  247. package/lib/types/services/ref-range/util.d.ts +19 -0
  248. package/lib/types/services/ref-range/util.d.ts.map +1 -0
  249. package/lib/types/services/selection-manager.service.d.ts +79 -0
  250. package/lib/types/services/selection-manager.service.d.ts.map +1 -0
  251. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +16 -0
  252. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts.map +1 -0
  253. package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts +2 -0
  254. package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts.map +1 -0
  255. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +7 -0
  256. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts.map +1 -0
  257. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +34 -0
  258. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts.map +1 -0
  259. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +10 -0
  260. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts.map +1 -0
  261. package/lib/types/sheets-plugin.d.ts +15 -0
  262. package/lib/types/sheets-plugin.d.ts.map +1 -0
  263. package/package.json +60 -0
@@ -0,0 +1,5 @@
1
+ // src/locale/en-US.ts
2
+ var en_US_default = {};
3
+ export {
4
+ en_US_default as default
5
+ };
@@ -0,0 +1,5 @@
1
+ // src/locale/zh-CN.ts
2
+ var zh_CN_default = {};
3
+ export {
4
+ zh_CN_default as default
5
+ };
@@ -0,0 +1,3 @@
1
+ export declare const COMMAND_LISTENER_SKELETON_CHANGE: string[];
2
+ export declare const COMMAND_LISTENER_VALUE_CHANGE: string[];
3
+ //# sourceMappingURL=command-listener-const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-listener-const.d.ts","sourceRoot":"","sources":["../../../../src/basics/const/command-listener-const.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gCAAgC,UAgB5C,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAoD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ISheetsPluginConfig } from '../interfaces/spreadsheet-config';
2
+ export declare const DEFAULT_SPREADSHEET_PLUGIN_DATA: ISheetsPluginConfig;
3
+ //# sourceMappingURL=default-spreadsheet-plugin-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-spreadsheet-plugin-data.d.ts","sourceRoot":"","sources":["../../../../src/basics/const/default-spreadsheet-plugin-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,eAAO,MAAM,+BAA+B,EAAE,mBAE7C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './command-listener-const';
2
+ export * from './default-spreadsheet-plugin-data';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/basics/const/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=get-apply-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-apply-data.d.ts","sourceRoot":"","sources":["../../../src/basics/get-apply-data.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './const/index';
2
+ export * from './interfaces/index';
3
+ export * from './selection';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/basics/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { BooleanNumber } from '@univerjs/core';
2
+ /**
3
+ * Column ruler data type
4
+ */
5
+ export interface IColumnRulerData {
6
+ hd: BooleanNumber;
7
+ }
8
+ //# sourceMappingURL=i-ruler-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-ruler-manager.d.ts","sourceRoot":"","sources":["../../../../src/basics/interfaces/i-ruler-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,aAAa,CAAC;CACrB"}
@@ -0,0 +1,4 @@
1
+ export * from './mutation-interface';
2
+ export * from './selection-config';
3
+ export * from './spreadsheet-config';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/basics/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { Dimension, ICellData, IColumnData, IRange, IRowData, IWorksheetData, ObjectArray, ObjectMatrixPrimitiveType } from '@univerjs/core';
2
+ /** Params of `RemoveSheetMutation` */
3
+ export interface IRemoveSheetMutationParams {
4
+ worksheetId: string;
5
+ workbookId: string;
6
+ }
7
+ /** Params of `InsertSheetMutation` */
8
+ export interface IInsertSheetMutationParams {
9
+ index: number;
10
+ sheet: IWorksheetData;
11
+ workbookId: string;
12
+ }
13
+ /** Params of InsertRowMutation */
14
+ export interface IInsertRowMutationParams {
15
+ workbookId: string;
16
+ worksheetId: string;
17
+ ranges: IRange[];
18
+ rowInfo?: ObjectArray<IRowData>;
19
+ }
20
+ /** Params of InsertColMutation */
21
+ export interface IInsertColMutationParams {
22
+ workbookId: string;
23
+ worksheetId: string;
24
+ ranges: IRange[];
25
+ colInfo?: ObjectArray<IColumnData>;
26
+ }
27
+ /** Params of InsertRowMutation */
28
+ export interface IRemoveRowsMutationParams {
29
+ workbookId: string;
30
+ worksheetId: string;
31
+ ranges: IRange[];
32
+ }
33
+ /** Params of InsertColMutation */
34
+ export interface IRemoveColMutationParams {
35
+ workbookId: string;
36
+ worksheetId: string;
37
+ ranges: IRange[];
38
+ }
39
+ /** Params of DeleteRange */
40
+ export interface IDeleteRangeMutationParams {
41
+ workbookId: string;
42
+ worksheetId: string;
43
+ ranges: IRange[];
44
+ shiftDimension: Dimension;
45
+ }
46
+ /** Params of InsertRange */
47
+ export interface IInsertRangeMutationParams {
48
+ workbookId: string;
49
+ worksheetId: string;
50
+ ranges: IRange[];
51
+ shiftDimension: Dimension;
52
+ cellValue: ObjectMatrixPrimitiveType<ICellData>;
53
+ }
54
+ /** Params of RemoveWorksheetMergeMutation */
55
+ export interface IRemoveWorksheetMergeMutationParams {
56
+ workbookId: string;
57
+ worksheetId: string;
58
+ ranges: IRange[];
59
+ }
60
+ /** Params of AddWorksheetMergeMutation */
61
+ export interface IAddWorksheetMergeMutationParams {
62
+ workbookId: string;
63
+ worksheetId: string;
64
+ ranges: IRange[];
65
+ }
66
+ //# sourceMappingURL=mutation-interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-interface.d.ts","sourceRoot":"","sources":["../../../../src/basics/interfaces/mutation-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EACT,SAAS,EACT,WAAW,EACX,MAAM,EACN,QAAQ,EACR,cAAc,EACd,WAAW,EACX,yBAAyB,EAC5B,MAAM,gBAAgB,CAAC;AAExB,sCAAsC;AACtC,MAAM,WAAW,0BAA0B;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,sCAAsC;AACtC,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,kCAAkC;AAClC,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;CACnC;AAED,kCAAkC;AAClC,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACtC;AAED,kCAAkC;AAClC,MAAM,WAAW,yBAAyB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,kCAAkC;AAClC,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,4BAA4B;AAC5B,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,SAAS,CAAC;CAC7B;AAED,4BAA4B;AAC5B,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,SAAS,CAAC;IAC1B,SAAS,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;CACnD;AAED,6CAA6C;AAC7C,MAAM,WAAW,mCAAmC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,0CAA0C;AAC1C,MAAM,WAAW,gCAAgC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -0,0 +1,9 @@
1
+ import type { IRange, IRangeCellData } from '@univerjs/core';
2
+ export interface ISelectionConfig {
3
+ selection: IRange;
4
+ cell?: IRangeCellData;
5
+ }
6
+ export interface ISelectionsConfig {
7
+ [worksheetId: string]: ISelectionConfig[];
8
+ }
9
+ //# sourceMappingURL=selection-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-config.d.ts","sourceRoot":"","sources":["../../../../src/basics/interfaces/selection-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAC9B,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAAC;CAC7C"}
@@ -0,0 +1,5 @@
1
+ import type { ISelectionsConfig } from './selection-config';
2
+ export interface ISheetsPluginConfig {
3
+ selections: ISelectionsConfig;
4
+ }
5
+ //# sourceMappingURL=spreadsheet-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spreadsheet-config.d.ts","sourceRoot":"","sources":["../../../../src/basics/interfaces/spreadsheet-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,iBAAiB,CAAC;CACjC"}
@@ -0,0 +1,136 @@
1
+ import type { IRange, ISelection, ISelectionCellWithCoord, ISelectionWithCoord, Nullable, ThemeService } from '@univerjs/core';
2
+ export declare const SELECTION_CONTROL_BORDER_BUFFER_WIDTH = 1;
3
+ export declare const SELECTION_CONTROL_BORDER_BUFFER_COLOR = "rgba(255,255,255, 0.01)";
4
+ /**
5
+ * Whether to display the controller that modifies the selection, distributed in 8 locations
6
+ * tl top_left_corner
7
+ * tc top_center_corner
8
+ * tr top_right_corner
9
+ * ml middle_left_corner
10
+ * mr middle_right_corner
11
+ * bl bottom_left_corner
12
+ * bc bottom_center_corner
13
+ * br bottom_right_corner
14
+ */
15
+ export interface ISelectionWidgetConfig {
16
+ tl?: boolean;
17
+ tc?: boolean;
18
+ tr?: boolean;
19
+ ml?: boolean;
20
+ mr?: boolean;
21
+ bl?: boolean;
22
+ bc?: boolean;
23
+ br?: boolean;
24
+ }
25
+ /**
26
+ * https://support.microsoft.com/en-us/office/select-cell-contents-in-excel-23f64223-2b6b-453a-8688-248355f10fa9
27
+ */
28
+ export interface ISelectionStyle {
29
+ /**
30
+ * Assign an ID to a selection area.
31
+ * The current scenario is to identify the formula string corresponding to the selection area
32
+ */
33
+ id?: string;
34
+ /**
35
+ * The volume of the selection border determines the thickness of the selection border
36
+ */
37
+ strokeWidth: number;
38
+ /**
39
+ * The color of the selection border.
40
+ */
41
+ stroke: string;
42
+ /**
43
+ * The dashed line of the selection border. Here, the dashed line is a numerical value, different from the canvas dashed line setting. It is implemented internally as [0, strokeDash]. Setting it to 8 will look more aesthetically pleasing.
44
+ */
45
+ strokeDash?: number;
46
+ /**
47
+ * The fill color inside the selection. It needs to have a level of transparency, otherwise content in the covered area of the selection will be obscured.
48
+ */
49
+ fill: string;
50
+ /**
51
+ * The eight touch points of the selection. You can refer to Excel's formula and chart selections,
52
+ * which allow you to manually adjust the size of the selection.
53
+ * Univer has four more touch points (up, down, left, and right) than Excel.
54
+ * https://support.microsoft.com/en-us/office/select-data-for-a-chart-5fca57b7-8c52-4e09-979a-631085113862
55
+ */
56
+ widgets: ISelectionWidgetConfig;
57
+ /**
58
+ * The volume of the touch points.
59
+ */
60
+ widgetSize?: number;
61
+ /**
62
+ * The thickness of the border of the touch points
63
+ */
64
+ widgetStrokeWidth?: number;
65
+ /**
66
+ * The color of the touch points.
67
+ */
68
+ widgetStroke?: string;
69
+ /**
70
+ * https://support.microsoft.com/en-us/office/copy-a-formula-by-dragging-the-fill-handle-in-excel-for-mac-dd928259-622b-473f-9a33-83aa1a63e218
71
+ * Whether to show the drop-down fill button at the bottom right corner of the selection.
72
+ */
73
+ hasAutoFill: boolean;
74
+ AutofillSize?: number;
75
+ AutofillStrokeWidth?: number;
76
+ AutofillStroke?: string;
77
+ /**
78
+ * Whether to synchronize the display of row title highlights, the highlighting range is consistent with the horizontal range of the selection.
79
+ */
80
+ hasRowHeader?: boolean;
81
+ /**
82
+ * The color of the row title highlight.
83
+ * A level of transparency should be set to avoid covering the row title content.
84
+ */
85
+ rowHeaderFill?: string;
86
+ /**
87
+ * The color of the bottom border of the row title.
88
+ */
89
+ rowHeaderStroke?: string;
90
+ /**
91
+ * The color of the bottom border of the row title.
92
+ */
93
+ rowHeaderStrokeWidth?: number;
94
+ /**
95
+ * The setting of column title highlight is similar to that of row title.
96
+ */
97
+ hasColumnHeader?: boolean;
98
+ columnHeaderFill?: string;
99
+ columnHeaderStroke?: string;
100
+ columnHeaderStrokeWidth?: number;
101
+ }
102
+ export interface ISelectionWithCoordAndStyle extends ISelectionWithCoord {
103
+ style: Nullable<ISelectionStyle>;
104
+ }
105
+ export interface ISelectionWithStyle extends ISelection {
106
+ style: Nullable<ISelectionStyle>;
107
+ }
108
+ export declare function getNormalSelectionStyle(themeService: ThemeService): ISelectionStyle;
109
+ /**
110
+ * Process a selection with coordinates and style,
111
+ * and extract the coordinate information, because the render needs coordinates when drawing.
112
+ * Since the selection.manager.service is unrelated to the coordinates,
113
+ * it only accepts data of type ISelectionWithStyle, so a conversion is necessary.
114
+ * @param selectionWithCoordAndStyle Selection with coordinates and style
115
+ * @returns
116
+ */
117
+ export declare function convertSelectionDataToRange(selectionWithCoordAndStyle: ISelectionWithCoordAndStyle): ISelectionWithStyle;
118
+ export declare function convertPrimaryWithCoordToPrimary(primaryWithCoord: ISelectionCellWithCoord): {
119
+ actualRow: number;
120
+ actualColumn: number;
121
+ isMerged: boolean;
122
+ isMergedMainCell: boolean;
123
+ startRow: number;
124
+ startColumn: number;
125
+ endRow: number;
126
+ endColumn: number;
127
+ };
128
+ /**
129
+ * Convert the coordinates of a single cell into a selection data.
130
+ * @param row Specified Row Coordinate
131
+ * @param column Specified Column Coordinate
132
+ * @param mergeData Obtain the data of merged cells through the worksheet object.
133
+ * @returns ISelectionWithStyle
134
+ */
135
+ export declare function transformCellDataToSelectionData(row: number, column: number, mergeData: IRange[]): Nullable<ISelectionWithStyle>;
136
+ //# sourceMappingURL=selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/basics/selection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,MAAM,EACN,UAAU,EACV,uBAAuB,EACvB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACf,MAAM,gBAAgB,CAAC;AAIxB,eAAO,MAAM,qCAAqC,IAAI,CAAC;AAEvD,eAAO,MAAM,qCAAqC,4BAA4B,CAAC;AAE/E;;;;;;;;;;GAUG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,OAAO,EAAE,sBAAsB,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACpE,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACnD,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CACpC;AAGD,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,YAAY,GAAG,eAAe,CA6BnF;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACvC,0BAA0B,EAAE,2BAA2B,GACxD,mBAAmB,CAiBrB;AAED,wBAAgB,gCAAgC,CAAC,gBAAgB,EAAE,uBAAuB;;;;;;;;;EAazF;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC5C,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,GACpB,QAAQ,CAAC,mBAAmB,CAAC,CAc/B"}
@@ -0,0 +1,4 @@
1
+ import type { Worksheet } from '@univerjs/core';
2
+ export declare function rowHeightByHeader(worksheet: Worksheet): number;
3
+ export declare function columnWidthByHeader(worksheet: Worksheet): number;
4
+ //# sourceMappingURL=sheet-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-header.d.ts","sourceRoot":"","sources":["../../../src/basics/sheet-header.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,UAIrD;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,UAIvD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=add-worksheet-merge.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-worksheet-merge.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clear-selection.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-selection.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/clear-selection.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=copy-worksheet.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-worksheet.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/copy-worksheet.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { IWorkbookData, Workbook } from '@univerjs/core';
2
+ import { Univer } from '@univerjs/core';
3
+ import type { Dependency } from '@wendellhu/redi';
4
+ import { Injector } from '@wendellhu/redi';
5
+ export interface ITestBed {
6
+ univer: Univer;
7
+ get: Injector['get'];
8
+ sheet: Workbook;
9
+ }
10
+ export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
11
+ //# sourceMappingURL=create-command-test-bed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-command-test-bed.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/create-command-test-bed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAuE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AA8BnD,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrB,KAAK,EAAE,QAAQ,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,QAAQ,CAuC1G"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=delete-range.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-range.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/delete-range.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insert-range.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-range.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/insert-range.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insert-remove-rows-cols.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-remove-rows-cols.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=move-range-commands.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"move-range-commands.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/move-range-commands.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=move-rows-cols.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"move-rows-cols.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/move-rows-cols.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=remove-sheet.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-sheet.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/remove-sheet.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-border.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-border.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-border.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-col-width.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-col-width.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-col-width.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-frozen.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-frozen.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-frozen.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-range-values.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-range-values.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-range-values.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-row-col-visible.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-row-col-visible.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-row-col-visible.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-row-height.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-row-height.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-row-height.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-style.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-style.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-style.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-tab-color.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-tab-color.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-tab-color.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-worksheet-hide.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-worksheet-hide.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-worksheet-name.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-worksheet-name.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-worksheet-name.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-worksheet-order.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-worksheet-order.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-worksheet-order.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-worksheet-show.command.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-worksheet-show.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/set-worksheet-show.command.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { ICommand, IRange } from '@univerjs/core';
2
+ import { Dimension } from '@univerjs/core';
3
+ export interface IAddMergeCommandParams {
4
+ value?: Dimension.ROWS | Dimension.COLUMNS;
5
+ selections: IRange[];
6
+ workbookId: string;
7
+ worksheetId: string;
8
+ }
9
+ export declare const AddWorksheetMergeCommand: ICommand;
10
+ export declare const AddWorksheetMergeAllCommand: ICommand;
11
+ export declare const AddWorksheetMergeVerticalCommand: ICommand;
12
+ export declare const AddWorksheetMergeHorizontalCommand: ICommand;
13
+ /**
14
+ * calculates the selection based on the merged cell type
15
+ * @param {IRange[]} selection
16
+ * @param {Dimension} [type]
17
+ * @return {*}
18
+ */
19
+ export declare const getAddMergeMutationRangeByType: (selection: IRange[], type?: Dimension) => IRange[];
20
+ //# sourceMappingURL=add-worksheet-merge.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-worksheet-merge.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/add-worksheet-merge.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAe,SAAS,EAA6D,MAAM,gBAAgB,CAAC;AAcnH,MAAM,WAAW,sBAAsB;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC;IAC3C,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,wBAAwB,EAAE,QAsDtC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,QA2BzC,CAAC;AACF,eAAO,MAAM,gCAAgC,EAAE,QA4B9C,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,QA2BhD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,cAAe,MAAM,EAAE,SAAS,SAAS,aA+BnF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ /**
3
+ * The command to clear all in current selected ranges.
4
+ */
5
+ export declare const ClearSelectionAllCommand: ICommand;
6
+ //# sourceMappingURL=clear-selection-all.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-selection-all.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/clear-selection-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,QAAQ,EAAoD,MAAM,gBAAgB,CAAC;AAgB5G;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,QA8DtC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ /**
3
+ * The command to clear content in current selected ranges.
4
+ */
5
+ export declare const ClearSelectionContentCommand: ICommand;
6
+ //# sourceMappingURL=clear-selection-content.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-selection-content.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/clear-selection-content.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,QAAQ,EAAqC,MAAM,gBAAgB,CAAC;AAgB7F;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,QAgD1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ICellData, ICommand, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
2
+ /**
3
+ * The command to clear content in current selected ranges.
4
+ */
5
+ export declare const ClearSelectionFormatCommand: ICommand;
6
+ export declare function generateNullCellValue(ranges: IRange[]): ObjectMatrixPrimitiveType<ICellData>;
7
+ //# sourceMappingURL=clear-selection-format.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-selection-format.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/clear-selection-format.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAiB,MAAM,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAgB5G;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAgEzC,CAAC;AAGF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAgB5F"}
@@ -0,0 +1,9 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ export interface ICopySheetToCommandParams {
3
+ workbookId?: string;
4
+ worksheetId?: string;
5
+ copyToWorkbookId?: string;
6
+ copyToSheetId?: string;
7
+ }
8
+ export declare const CopySheetToCommand: ICommand;
9
+ //# sourceMappingURL=copy-to-worksheet.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-to-worksheet.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/copy-to-worksheet.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAU/C,MAAM,WAAW,yBAAyB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB,EAAE,QAoDhC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ export interface ICopySheetCommandParams {
3
+ workbookId?: string;
4
+ worksheetId?: string;
5
+ }
6
+ export declare const CopySheetCommand: ICommand;
7
+ //# sourceMappingURL=copy-worksheet.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-worksheet.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/copy-worksheet.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAgB/C,MAAM,WAAW,uBAAuB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,QAmE9B,CAAC"}