@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,19 @@
1
+ import type { IRange } from '@univerjs/core';
2
+ import type { IDeleteOperator, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IHorizontalMoveOperator, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveRangeCommand, IOperator, IRemoveRowColCommand, IVerticalMoveOperator } from './type';
3
+ export declare const handleMoveRange: (param: IMoveRangeCommand, targetRange: IRange) => IOperator[];
4
+ /**
5
+ * see the doc 【ref-range-remove-col.tldr】
6
+ */
7
+ export declare const handleIRemoveCol: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
8
+ /**
9
+ * see the doc 【ref-range-remove-row.tldr】
10
+ */
11
+ export declare const handleIRemoveRow: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
12
+ export declare const handleInsertRow: (param: IInsertRowCommand, targetRange: IRange) => IDeleteOperator[] | IVerticalMoveOperator[];
13
+ export declare const handleInsertCol: (param: IInsertColCommand, targetRange: IRange) => IDeleteOperator[] | IHorizontalMoveOperator[];
14
+ export declare const handleInsertRangeMoveDown: (param: IInsertRangeMoveDownCommand, targetRange: IRange) => IDeleteOperator[] | IVerticalMoveOperator[];
15
+ export declare const handleInsertRangeMoveRight: (param: IInsertRangeMoveRightCommand, targetRange: IRange) => IDeleteOperator[] | IHorizontalMoveOperator[];
16
+ export declare const handleDeleteRangeMoveLeft: (param: IDeleteRangeMoveLeftCommand, targetRange: IRange) => IDeleteOperator[] | IHorizontalMoveOperator[];
17
+ export declare const handleDeleteRangeMoveUp: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IDeleteOperator[] | IVerticalMoveOperator[];
18
+ export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;
19
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/services/ref-range/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAY,MAAM,gBAAgB,CAAC;AAGvD,OAAO,KAAK,EACR,eAAe,EACf,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,oBAAoB,EACpB,qBAAqB,EACxB,MAAM,QAAQ,CAAC;AAIhB,eAAO,MAAM,eAAe,UAAW,iBAAiB,eAAe,MAAM,gBA4B5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,oBAAoB,eAAe,MAAM,gBAiDhF,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,oBAAoB,eAAe,MAAM,gBAiDhF,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,iBAAiB,eAAe,MAAM,gDA+B5E,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,iBAAiB,eAAe,MAAM,kDA8B5E,CAAC;AACF,eAAO,MAAM,yBAAyB,UAAW,2BAA2B,eAAe,MAAM,gDA2BhG,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAAW,4BAA4B,eAAe,MAAM,kDAuBlG,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,2BAA2B,eAAe,MAAM,kDAwBhG,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,yBAAyB,eAAe,MAAM,gDAwB5F,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAAe,SAAS,EAAE,SAAS,MAAM,kBAoCzE,CAAC"}
@@ -0,0 +1,79 @@
1
+ import type { IRange, ISelectionCell, Nullable } from '@univerjs/core';
2
+ import type { IDisposable } from '@wendellhu/redi';
3
+ import type { ISelectionStyle, ISelectionWithStyle } from '../basics/selection';
4
+ export declare const NORMAL_SELECTION_PLUGIN_NAME = "normalSelectionPluginName";
5
+ export interface ISelectionManagerSearchParam {
6
+ pluginName: string;
7
+ unitId: string;
8
+ sheetId: string;
9
+ }
10
+ export interface ISelectionManagerInsertParam extends ISelectionManagerSearchParam {
11
+ selectionDatas: ISelectionWithStyle[];
12
+ }
13
+ export type ISelectionInfo = Map<string, Map<string, Map<string, ISelectionWithStyle[]>>>;
14
+ /**
15
+ * This service is responsible for managing the selection data.
16
+ *
17
+ * You can generally modify its data through SetSelectionsOperation.
18
+ *
19
+ * In the same app and sub-table, there will be different functional selection areas,
20
+ * such as charts, formulas, conditional formats, etc.,
21
+ * which are distinguished by the pluginName.
22
+ *
23
+ * The selection data drawn by the user through the SelectionRenderService will be saved to this service.
24
+ *
25
+ * Data changes within the service will also notify the SelectionController to redraw the selection area.
26
+ *
27
+ * Not only will switching sub-tables trigger a redraw, but also changing row and column widths,
28
+ * hiding rows and columns, automatic row height, dragging rows and columns, deleting rows and columns,
29
+ * and so on, will cause the size of the selection area to change.
30
+ */
31
+ export declare class SelectionManagerService implements IDisposable {
32
+ private readonly _selectionInfo;
33
+ private _currentSelection;
34
+ private readonly _selectionInfo$;
35
+ private readonly _copySelectionInfo$;
36
+ readonly selectionInfo$: import("rxjs").Observable<Nullable<ISelectionWithStyle[]>>;
37
+ private _dirty;
38
+ getCurrent(): Nullable<ISelectionManagerSearchParam>;
39
+ getLastByPlugin(pluginName: string): Readonly<Nullable<ISelectionWithStyle>>;
40
+ changePlugin(pluginName: string): void;
41
+ changePluginNoRefresh(pluginName: string): void;
42
+ reset(): void;
43
+ resetPlugin(): void;
44
+ dispose(): void;
45
+ makeDirty(dirty?: boolean): void;
46
+ refreshSelection(): void;
47
+ setCurrentSelection(param: ISelectionManagerSearchParam): void;
48
+ setCurrentSelectionNotRefresh(param: ISelectionManagerSearchParam): void;
49
+ getSelectionInfo(): Readonly<ISelectionInfo>;
50
+ getSelectionDatasByParam(param: Nullable<ISelectionManagerSearchParam>): Readonly<Nullable<ISelectionWithStyle[]>>;
51
+ getSelections(): Readonly<Nullable<ISelectionWithStyle[]>>;
52
+ getSelectionRanges(): Nullable<IRange[]>;
53
+ getFirst(): Readonly<Nullable<ISelectionWithStyle>>;
54
+ getLast(): Readonly<Nullable<ISelectionWithStyle & {
55
+ primary: ISelectionCell;
56
+ }>>;
57
+ addNoRefresh(selectionDatas: ISelectionWithStyle[]): void;
58
+ add(selectionDatas: ISelectionWithStyle[]): void;
59
+ replace(selectionDatas: ISelectionWithStyle[]): void;
60
+ replaceWithNoRefresh(selectionDatas: ISelectionWithStyle[]): void;
61
+ clear(): void;
62
+ remove(index: number): void;
63
+ createDefaultAutoFillSelection(): ISelectionStyle;
64
+ createCopyPasteSelection(): ISelectionStyle;
65
+ createDefaultSelection(): ISelectionStyle;
66
+ /**
67
+ * Determine whether multiple current selections overlap
68
+ */
69
+ isOverlapping(): boolean;
70
+ private _getSelectionDatas;
71
+ private refresh;
72
+ private _getFirstByParam;
73
+ private _getLastByParam;
74
+ private _addByParam;
75
+ private _replaceByParam;
76
+ private _clearByParam;
77
+ private _removeByParam;
78
+ }
79
+ //# sourceMappingURL=selection-manager.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-manager.service.d.ts","sourceRoot":"","sources":["../../../src/services/selection-manager.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE,MAAM,WAAW,4BAA4B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,4BAA6B,SAAQ,4BAA4B;IAC9E,cAAc,EAAE,mBAAmB,EAAE,CAAC;CACzC;AAGD,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC,CAAC;AAE1F;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,uBAAwB,YAAW,WAAW;IACvD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;IAE5D,OAAO,CAAC,iBAAiB,CAAgD;IAIzE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA8D;IAC9F,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA8D;IAGlG,QAAQ,CAAC,cAAc,6DAAuC;IAE9D,OAAO,CAAC,MAAM,CAAiB;IAU/B,UAAU;IAIV,eAAe,CAAC,UAAU,EAAE,MAAM;IAOlC,YAAY,CAAC,UAAU,EAAE,MAAM;IAa/B,qBAAqB,CAAC,UAAU,EAAE,MAAM;IAWxC,KAAK;IAcL,WAAW;IASX,OAAO,IAAI,IAAI;IAKf,SAAS,CAAC,KAAK,GAAE,OAAc;IAI/B,gBAAgB;IAQhB,mBAAmB,CAAC,KAAK,EAAE,4BAA4B;IASvD,6BAA6B,CAAC,KAAK,EAAE,4BAA4B;IAIjE,gBAAgB,IAAI,QAAQ,CAAC,cAAc,CAAC;IAI5C,wBAAwB,CAAC,KAAK,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAIlH,aAAa,IAAI,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAI1D,kBAAkB,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;IASxC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAInD,OAAO,IAAI,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,GAAG;QAAE,OAAO,EAAE,cAAc,CAAA;KAAE,CAAC,CAAC;IAOhF,YAAY,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAalD,GAAG,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAUzC,OAAO,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAW7C,oBAAoB,CAAC,cAAc,EAAE,mBAAmB,EAAE;IAU1D,KAAK,IAAI,IAAI;IAOb,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQ3B,8BAA8B,IAAI,eAAe;IAUjD,wBAAwB,IAAI,eAAe;IAW3C,sBAAsB,IAAI,eAAe;IAUzC;;OAEG;IACH,aAAa,IAAI,OAAO;IAqBxB,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,WAAW;IA2BnB,OAAO,CAAC,eAAe;IAyBvB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,cAAc;CAWzB"}
@@ -0,0 +1,16 @@
1
+ import type { IWorkbookData } from '@univerjs/core';
2
+ import { Univer } from '@univerjs/core';
3
+ import type { Dependency } from '@wendellhu/redi';
4
+ export declare function createCoreTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
5
+ univer: Univer;
6
+ get: {
7
+ <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
8
+ <T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
9
+ <T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
10
+ <T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
11
+ <T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
12
+ <T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
13
+ };
14
+ sheet: import("@univerjs/core").Workbook;
15
+ };
16
+ //# sourceMappingURL=create-core-test-bed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-core-test-bed.d.ts","sourceRoot":"","sources":["../../../../../src/services/sheet-interceptor/__tests__/create-core-test-bed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAuE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA2BlD,wBAAgB,iBAAiB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,EAAE;;;;;;;;;;;EA6C5F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sheet-interceptor.service.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-interceptor.service.spec.d.ts","sourceRoot":"","sources":["../../../../../src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { ICellData, ICommandInfo } from '@univerjs/core';
2
+ import type { ISheetLocation } from './utils/interceptor';
3
+ export declare const INTERCEPTOR_POINT: {
4
+ CELL_CONTENT: import("@univerjs/core").IInterceptor<ICellData, ISheetLocation>;
5
+ PERMISSION: import("@univerjs/core").IInterceptor<boolean, ICommandInfo<object>>;
6
+ };
7
+ //# sourceMappingURL=interceptor-const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interceptor-const.d.ts","sourceRoot":"","sources":["../../../../src/services/sheet-interceptor/interceptor-const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK1D,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { ICommandInfo, IInterceptor, IUndoRedoCommandInfos } from '@univerjs/core';
2
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
3
+ import type { IDisposable } from '@wendellhu/redi';
4
+ export interface ICommandInterceptor {
5
+ priority?: number;
6
+ getMutations(command: ICommandInfo): IUndoRedoCommandInfos;
7
+ }
8
+ /**
9
+ * This class expose methods for sheet features to inject code to sheet underlying logic.
10
+ *
11
+ * It would inject Workbook & Worksheet.
12
+ */
13
+ export declare class SheetInterceptorService extends Disposable {
14
+ private readonly _currentUniverService;
15
+ private _interceptorsByName;
16
+ private _commandInterceptors;
17
+ private readonly _workbookDisposables;
18
+ private readonly _worksheetDisposables;
19
+ constructor(_currentUniverService: IUniverInstanceService);
20
+ dispose(): void;
21
+ interceptCommand(interceptor: ICommandInterceptor): IDisposable;
22
+ /**
23
+ * When command is executing, call this method to gether undo redo mutations from upper features.
24
+ * @param command
25
+ * @returns
26
+ */
27
+ onCommandExecute(command: ICommandInfo): IUndoRedoCommandInfos;
28
+ intercept<T extends IInterceptor<any, any>>(name: T, interceptor: T): IDisposable;
29
+ fetchThroughInterceptors<T, C>(name: IInterceptor<T, C>): (initValue: import("@univerjs/core/common/type-utils.js").Nullable<T>, initContext: C) => import("@univerjs/core/common/type-utils.js").Nullable<T>;
30
+ private _interceptWorkbook;
31
+ private _disposeWorkbookInterceptor;
32
+ private _disposeSheetInterceptor;
33
+ }
34
+ //# sourceMappingURL=sheet-interceptor.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-interceptor.service.d.ts","sourceRoot":"","sources":["../../../../src/services/sheet-interceptor/sheet-interceptor.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,YAAY,EACZ,YAAY,EACZ,qBAAqB,EAIxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEH,UAAU,EAEV,sBAAsB,EAKzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,qBAAqB,CAAC;CAC9D;AAED;;;;GAIG;AACH,qBACa,uBAAwB,SAAQ,UAAU;IAOf,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAN1E,OAAO,CAAC,mBAAmB,CAAiE;IAC5F,OAAO,CAAC,oBAAoB,CAA6B;IAEzD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAkC;IACvE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAkC;gBAEnB,qBAAqB,EAAE,sBAAsB;IAuCzF,OAAO,IAAI,IAAI;IAQxB,gBAAgB,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW;IAW/D;;;;OAIG;IACH,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,qBAAqB;IAS9D,SAAS,CAAC,CAAC,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC;IAgBnE,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC;IAMvD,OAAO,CAAC,kBAAkB;IA+C1B,OAAO,CAAC,2BAA2B;IAUnC,OAAO,CAAC,wBAAwB;CASnC"}
@@ -0,0 +1,10 @@
1
+ import type { Workbook, Worksheet } from '@univerjs/core';
2
+ export interface ISheetLocation {
3
+ workbook: Workbook;
4
+ worksheet: Worksheet;
5
+ workbookId: string;
6
+ worksheetId: string;
7
+ row: number;
8
+ col: number;
9
+ }
10
+ //# sourceMappingURL=interceptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/services/sheet-interceptor/utils/interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,15 @@
1
+ import { ICommandService, LocaleService, Plugin, PluginType } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
+ /**
4
+ * The main sheet base, construct the sheet container and layout, mount the rendering engine
5
+ */
6
+ export declare class SheetsPlugin extends Plugin {
7
+ private readonly _commandService;
8
+ private readonly _localeService;
9
+ readonly _injector: Injector;
10
+ static type: PluginType;
11
+ constructor(config: undefined, _commandService: ICommandService, _localeService: LocaleService, _injector: Injector);
12
+ onRendered(): void;
13
+ private _initializeDependencies;
14
+ }
15
+ //# sourceMappingURL=sheets-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheets-plugin.d.ts","sourceRoot":"","sources":["../../src/sheets-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEpF,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAenD;;GAEG;AACH,qBAAa,YAAa,SAAQ,MAAM;IAKf,OAAO,CAAC,QAAQ,CAAC,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,cAAc;aAClB,SAAS,EAAE,QAAQ;IAN3D,OAAgB,IAAI,aAAoB;gBAGpC,MAAM,EAAE,SAAS,EACiB,eAAe,EAAE,eAAe,EAC1B,cAAc,EAAE,aAAa,EACjC,SAAS,EAAE,QAAQ;IAOlD,UAAU,IAAI,IAAI;IAM3B,OAAO,CAAC,uBAAuB;CAmBlC"}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@univerjs/sheets",
3
+ "version": "0.1.0-alpha.1",
4
+ "description": "UniverSheet normal base-sheets",
5
+ "keywords": [],
6
+ "author": "DreamNum <developer@univer.ai>",
7
+ "license": "MIT",
8
+ "main": "./lib/cjs/index.js",
9
+ "module": "./lib/esm/index.js",
10
+ "types": "./lib/types/index.d.ts",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": "./lib/esm/index.js",
17
+ "require": "./lib/cjs/index.js",
18
+ "types": "./lib/types/index.d.ts"
19
+ },
20
+ "./*": {
21
+ "import": "./lib/esm/*",
22
+ "require": "./lib/cjs/*",
23
+ "types": "./lib/types/index.d.ts"
24
+ },
25
+ "./locale/*": {
26
+ "import": "./lib/esm/locale/*.js",
27
+ "require": "./lib/cjs/locale/*.js",
28
+ "types": "./lib/types/index.d.ts"
29
+ }
30
+ },
31
+ "directories": {
32
+ "lib": "lib"
33
+ },
34
+ "files": [
35
+ "lib"
36
+ ],
37
+ "private": false,
38
+ "dependencies": {
39
+ "@ctrl/tinycolor": "^4.0.2",
40
+ "@wendellhu/redi": "^0.12.11",
41
+ "rxjs": "^7.8.1",
42
+ "@univerjs/engine-render": "0.1.0-alpha.1",
43
+ "@univerjs/core": "0.1.0-alpha.1"
44
+ },
45
+ "devDependencies": {
46
+ "@vitest/coverage-istanbul": "^0.34.6",
47
+ "esbuild": "^0.19.8",
48
+ "happy-dom": "^12.10.3",
49
+ "less": "^4.2.0",
50
+ "ts-node": "^10.9.1",
51
+ "typescript": "^5.3.2",
52
+ "vitest": "^0.34.6"
53
+ },
54
+ "scripts": {
55
+ "test": "vitest run",
56
+ "test:watch": "vitest",
57
+ "coverage": "vitest run --coverage",
58
+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"
59
+ }
60
+ }