@univerjs/sheets 0.1.0-alpha.1 → 0.1.0-alpha.3

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 (274) hide show
  1. package/LICENSE.txt +178 -0
  2. package/lib/cjs/index.js +1 -11383
  3. package/lib/es/index.js +5503 -0
  4. package/lib/types/basics/__tests__/rangeMerge.spec.d.ts +16 -0
  5. package/lib/types/basics/const/command-listener-const.d.ts +15 -1
  6. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +17 -3
  7. package/lib/types/basics/const/index.d.ts +15 -1
  8. package/lib/types/basics/index.d.ts +16 -1
  9. package/lib/types/basics/interfaces/i-ruler-manager.d.ts +15 -1
  10. package/lib/types/basics/interfaces/index.d.ts +15 -1
  11. package/lib/types/basics/interfaces/mutation-interface.d.ts +44 -30
  12. package/lib/types/basics/interfaces/selection-config.d.ts +16 -2
  13. package/lib/types/basics/interfaces/spreadsheet-config.d.ts +16 -2
  14. package/lib/types/basics/rangeMerge.d.ts +24 -0
  15. package/lib/types/basics/selection.d.ts +15 -1
  16. package/lib/types/basics/sheet-header.d.ts +15 -1
  17. package/lib/types/basics/utils.d.ts +17 -0
  18. package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts +15 -1
  19. package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts +15 -1
  20. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +15 -1
  21. package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts +15 -1
  22. package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts +15 -1
  23. package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts +15 -1
  24. package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts +15 -1
  25. package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts +15 -1
  26. package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts +15 -1
  27. package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts +15 -1
  28. package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts +15 -1
  29. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +15 -1
  30. package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts +15 -1
  31. package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts +15 -1
  32. package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts +15 -1
  33. package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts +15 -1
  34. package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts +15 -1
  35. package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts +15 -1
  36. package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts +15 -1
  37. package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts +15 -1
  38. package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts +15 -1
  39. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +17 -10
  40. package/lib/types/commands/commands/clear-selection-all.command.d.ts +15 -1
  41. package/lib/types/commands/commands/clear-selection-content.command.d.ts +15 -1
  42. package/lib/types/commands/commands/clear-selection-format.command.d.ts +17 -3
  43. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +18 -4
  44. package/lib/types/commands/commands/copy-worksheet.command.d.ts +17 -3
  45. package/lib/types/commands/commands/delete-range-move-left.command.d.ts +16 -2
  46. package/lib/types/commands/commands/delete-range-move-up.command.d.ts +16 -2
  47. package/lib/types/commands/commands/insert-range-move-down.command.d.ts +16 -2
  48. package/lib/types/commands/commands/insert-range-move-right.command.d.ts +16 -2
  49. package/lib/types/commands/commands/insert-row-col.command.d.ts +22 -6
  50. package/lib/types/commands/commands/insert-sheet.command.d.ts +16 -2
  51. package/lib/types/commands/commands/move-range.command.d.ts +15 -1
  52. package/lib/types/commands/commands/move-rows-cols.command.d.ts +15 -1
  53. package/lib/types/commands/commands/remove-row-col.command.d.ts +16 -2
  54. package/lib/types/commands/commands/remove-sheet.command.d.ts +17 -3
  55. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +15 -1
  56. package/lib/types/commands/commands/set-border-command.d.ts +15 -1
  57. package/lib/types/commands/commands/set-col-visible.command.d.ts +17 -3
  58. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +15 -1
  59. package/lib/types/commands/commands/set-frozen.command.d.ts +15 -1
  60. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +17 -3
  61. package/lib/types/commands/commands/set-range-values.command.d.ts +20 -6
  62. package/lib/types/commands/commands/set-row-visible.command.d.ts +17 -3
  63. package/lib/types/commands/commands/set-style.command.d.ts +17 -3
  64. package/lib/types/commands/commands/set-tab-color.command.d.ts +15 -1
  65. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +17 -3
  66. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +15 -1
  67. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +16 -2
  68. package/lib/types/commands/commands/set-worksheet-name.command.d.ts +18 -4
  69. package/lib/types/commands/commands/set-worksheet-order.command.d.ts +17 -3
  70. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +17 -3
  71. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +17 -2
  72. package/lib/types/commands/commands/set-worksheet-show.command.d.ts +15 -1
  73. package/lib/types/commands/commands/utils/merged-cell-util.d.ts +15 -1
  74. package/lib/types/commands/commands/utils/selection-utils.d.ts +42 -0
  75. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +15 -1
  76. package/lib/types/commands/mutations/delete-range.mutation.d.ts +16 -2
  77. package/lib/types/commands/mutations/insert-range.mutation.d.ts +17 -3
  78. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +15 -1
  79. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +15 -1
  80. package/lib/types/commands/mutations/move-range.mutation.d.ts +20 -6
  81. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +19 -5
  82. package/lib/types/commands/mutations/numfmt-mutation.d.ts +52 -0
  83. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +15 -1
  84. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +15 -1
  85. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +15 -1
  86. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +23 -9
  87. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +17 -3
  88. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +17 -3
  89. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +19 -9
  90. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +23 -9
  91. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +17 -3
  92. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +19 -6
  93. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +17 -3
  94. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +17 -3
  95. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +17 -3
  96. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +17 -3
  97. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +17 -3
  98. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +24 -11
  99. package/lib/types/commands/operations/selection.operation.d.ts +19 -3
  100. package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +21 -0
  101. package/lib/types/commands/utils/interface.d.ts +17 -3
  102. package/lib/types/controllers/__tests__/util.d.ts +15 -1
  103. package/lib/types/controllers/basic-worksheet.controller.d.ts +15 -1
  104. package/lib/types/controllers/calculate-result-apply.controller.d.ts +22 -0
  105. package/lib/types/controllers/config/config.d.ts +15 -1
  106. package/lib/types/controllers/feature-calculation.controller.d.ts +25 -0
  107. package/lib/types/controllers/merge-cell.controller.d.ts +24 -2
  108. package/lib/types/index.d.ts +29 -14
  109. package/lib/types/locale/en-US.d.ts +15 -1
  110. package/lib/types/locale/index.d.ts +15 -1
  111. package/lib/types/locale/zh-CN.d.ts +15 -1
  112. package/lib/types/services/__tests__/numfmt.service.test.d.ts +16 -0
  113. package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts +15 -1
  114. package/lib/types/services/__tests__/sheet-permission.spec.d.ts +15 -1
  115. package/lib/types/services/__tests__/util.d.ts +15 -1
  116. package/lib/types/services/border-style-manager.service.d.ts +15 -1
  117. package/lib/types/services/numfmt/numfmt.service.d.ts +23 -9
  118. package/lib/types/services/numfmt/type.d.ts +25 -11
  119. package/lib/types/services/permission/index.d.ts +15 -1
  120. package/lib/types/services/permission/permission-point.d.ts +18 -4
  121. package/lib/types/services/permission/sheet-permission.service.d.ts +18 -4
  122. package/lib/types/services/ref-range/__tests__/util.d.ts +15 -1
  123. package/lib/types/services/ref-range/__tests__/util.spec.d.ts +15 -1
  124. package/lib/types/services/ref-range/ref-range.service.d.ts +25 -28
  125. package/lib/types/services/ref-range/type.d.ts +15 -1
  126. package/lib/types/services/ref-range/util.d.ts +15 -1
  127. package/lib/types/services/selection-manager.service.d.ts +34 -8
  128. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +15 -1
  129. package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts +15 -1
  130. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +17 -3
  131. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +15 -1
  132. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +17 -3
  133. package/lib/types/sheets-plugin.d.ts +21 -3
  134. package/lib/umd/index.js +1 -0
  135. package/package.json +24 -23
  136. package/LICENSE +0 -21
  137. package/lib/cjs/locale/en-US.js +0 -26
  138. package/lib/cjs/locale/zh-CN.js +0 -26
  139. package/lib/esm/index.js +0 -10934
  140. package/lib/esm/locale/en-US.js +0 -5
  141. package/lib/esm/locale/zh-CN.js +0 -5
  142. package/lib/types/basics/const/command-listener-const.d.ts.map +0 -1
  143. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts.map +0 -1
  144. package/lib/types/basics/const/index.d.ts.map +0 -1
  145. package/lib/types/basics/get-apply-data.d.ts +0 -1
  146. package/lib/types/basics/get-apply-data.d.ts.map +0 -1
  147. package/lib/types/basics/index.d.ts.map +0 -1
  148. package/lib/types/basics/interfaces/i-ruler-manager.d.ts.map +0 -1
  149. package/lib/types/basics/interfaces/index.d.ts.map +0 -1
  150. package/lib/types/basics/interfaces/mutation-interface.d.ts.map +0 -1
  151. package/lib/types/basics/interfaces/selection-config.d.ts.map +0 -1
  152. package/lib/types/basics/interfaces/spreadsheet-config.d.ts.map +0 -1
  153. package/lib/types/basics/selection.d.ts.map +0 -1
  154. package/lib/types/basics/sheet-header.d.ts.map +0 -1
  155. package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts +0 -2
  156. package/lib/types/commands/commands/__tests__/add-worksheet-merge.command.spec.d.ts.map +0 -1
  157. package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts.map +0 -1
  158. package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts.map +0 -1
  159. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts.map +0 -1
  160. package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts.map +0 -1
  161. package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts.map +0 -1
  162. package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts.map +0 -1
  163. package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts.map +0 -1
  164. package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts.map +0 -1
  165. package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts.map +0 -1
  166. package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts.map +0 -1
  167. package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts.map +0 -1
  168. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts.map +0 -1
  169. package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts.map +0 -1
  170. package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts.map +0 -1
  171. package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts.map +0 -1
  172. package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts.map +0 -1
  173. package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts.map +0 -1
  174. package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts.map +0 -1
  175. package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts.map +0 -1
  176. package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts.map +0 -1
  177. package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts.map +0 -1
  178. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts.map +0 -1
  179. package/lib/types/commands/commands/clear-selection-all.command.d.ts.map +0 -1
  180. package/lib/types/commands/commands/clear-selection-content.command.d.ts.map +0 -1
  181. package/lib/types/commands/commands/clear-selection-format.command.d.ts.map +0 -1
  182. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts.map +0 -1
  183. package/lib/types/commands/commands/copy-worksheet.command.d.ts.map +0 -1
  184. package/lib/types/commands/commands/delete-range-move-left.command.d.ts.map +0 -1
  185. package/lib/types/commands/commands/delete-range-move-up.command.d.ts.map +0 -1
  186. package/lib/types/commands/commands/insert-range-move-down.command.d.ts.map +0 -1
  187. package/lib/types/commands/commands/insert-range-move-right.command.d.ts.map +0 -1
  188. package/lib/types/commands/commands/insert-row-col.command.d.ts.map +0 -1
  189. package/lib/types/commands/commands/insert-sheet.command.d.ts.map +0 -1
  190. package/lib/types/commands/commands/move-range.command.d.ts.map +0 -1
  191. package/lib/types/commands/commands/move-rows-cols.command.d.ts.map +0 -1
  192. package/lib/types/commands/commands/remove-row-col.command.d.ts.map +0 -1
  193. package/lib/types/commands/commands/remove-sheet.command.d.ts.map +0 -1
  194. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts.map +0 -1
  195. package/lib/types/commands/commands/set-border-command.d.ts.map +0 -1
  196. package/lib/types/commands/commands/set-col-visible.command.d.ts.map +0 -1
  197. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts.map +0 -1
  198. package/lib/types/commands/commands/set-frozen.command.d.ts.map +0 -1
  199. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts.map +0 -1
  200. package/lib/types/commands/commands/set-range-values.command.d.ts.map +0 -1
  201. package/lib/types/commands/commands/set-row-visible.command.d.ts.map +0 -1
  202. package/lib/types/commands/commands/set-style.command.d.ts.map +0 -1
  203. package/lib/types/commands/commands/set-tab-color.command.d.ts.map +0 -1
  204. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts.map +0 -1
  205. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts.map +0 -1
  206. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts.map +0 -1
  207. package/lib/types/commands/commands/set-worksheet-name.command.d.ts.map +0 -1
  208. package/lib/types/commands/commands/set-worksheet-order.command.d.ts.map +0 -1
  209. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts.map +0 -1
  210. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts.map +0 -1
  211. package/lib/types/commands/commands/set-worksheet-show.command.d.ts.map +0 -1
  212. package/lib/types/commands/commands/utils/merged-cell-util.d.ts.map +0 -1
  213. package/lib/types/commands/commands/utils/selection-util.d.ts +0 -52
  214. package/lib/types/commands/commands/utils/selection-util.d.ts.map +0 -1
  215. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts.map +0 -1
  216. package/lib/types/commands/mutations/delete-range.mutation.d.ts.map +0 -1
  217. package/lib/types/commands/mutations/insert-range.mutation.d.ts.map +0 -1
  218. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts.map +0 -1
  219. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts.map +0 -1
  220. package/lib/types/commands/mutations/move-range.mutation.d.ts.map +0 -1
  221. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts.map +0 -1
  222. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts.map +0 -1
  223. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts.map +0 -1
  224. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts.map +0 -1
  225. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts.map +0 -1
  226. package/lib/types/commands/mutations/set-frozen.mutation.d.ts.map +0 -1
  227. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts.map +0 -1
  228. package/lib/types/commands/mutations/set-numfmt-mutation.d.ts +0 -16
  229. package/lib/types/commands/mutations/set-numfmt-mutation.d.ts.map +0 -1
  230. package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts +0 -18
  231. package/lib/types/commands/mutations/set-range-formatted-value.mutation.d.ts.map +0 -1
  232. package/lib/types/commands/mutations/set-range-values.mutation.d.ts.map +0 -1
  233. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts.map +0 -1
  234. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts.map +0 -1
  235. package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts +0 -9
  236. package/lib/types/commands/mutations/set-worksheet-activate.mutation.d.ts.map +0 -1
  237. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts.map +0 -1
  238. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts.map +0 -1
  239. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts.map +0 -1
  240. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts.map +0 -1
  241. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts.map +0 -1
  242. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts.map +0 -1
  243. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts.map +0 -1
  244. package/lib/types/commands/operations/selection.operation.d.ts.map +0 -1
  245. package/lib/types/commands/utils/interface.d.ts.map +0 -1
  246. package/lib/types/controllers/__tests__/util.d.ts.map +0 -1
  247. package/lib/types/controllers/basic-worksheet.controller.d.ts.map +0 -1
  248. package/lib/types/controllers/config/config.d.ts.map +0 -1
  249. package/lib/types/controllers/merge-cell.controller.d.ts.map +0 -1
  250. package/lib/types/index.d.ts.map +0 -1
  251. package/lib/types/locale/en-US.d.ts.map +0 -1
  252. package/lib/types/locale/index.d.ts.map +0 -1
  253. package/lib/types/locale/zh-CN.d.ts.map +0 -1
  254. package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts.map +0 -1
  255. package/lib/types/services/__tests__/sheet-permission.spec.d.ts.map +0 -1
  256. package/lib/types/services/__tests__/util.d.ts.map +0 -1
  257. package/lib/types/services/border-style-manager.service.d.ts.map +0 -1
  258. package/lib/types/services/numfmt/numfmt.service.d.ts.map +0 -1
  259. package/lib/types/services/numfmt/type.d.ts.map +0 -1
  260. package/lib/types/services/permission/index.d.ts.map +0 -1
  261. package/lib/types/services/permission/permission-point.d.ts.map +0 -1
  262. package/lib/types/services/permission/sheet-permission.service.d.ts.map +0 -1
  263. package/lib/types/services/ref-range/__tests__/util.d.ts.map +0 -1
  264. package/lib/types/services/ref-range/__tests__/util.spec.d.ts.map +0 -1
  265. package/lib/types/services/ref-range/ref-range.service.d.ts.map +0 -1
  266. package/lib/types/services/ref-range/type.d.ts.map +0 -1
  267. package/lib/types/services/ref-range/util.d.ts.map +0 -1
  268. package/lib/types/services/selection-manager.service.d.ts.map +0 -1
  269. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts.map +0 -1
  270. package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts.map +0 -1
  271. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts.map +0 -1
  272. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts.map +0 -1
  273. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts.map +0 -1
  274. package/lib/types/sheets-plugin.d.ts.map +0 -1
@@ -1,8 +1,23 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation, IRange } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface IMoveRowsMutationParams {
4
- workbookId: string;
5
- worksheetId: string;
19
+ unitId: string;
20
+ subUnitId: string;
6
21
  /**
7
22
  * The rows to be moved.
8
23
  */
@@ -20,8 +35,8 @@ export interface IMoveRowsMutationParams {
20
35
  export declare function MoveRowsMutationUndoFactory(_accessor: IAccessor, params: IMoveRowsMutationParams): IMoveRowsMutationParams;
21
36
  export declare const MoveRowsMutation: IMutation<IMoveRowsMutationParams>;
22
37
  export interface IMoveColumnsMutationParams {
23
- workbookId: string;
24
- worksheetId: string;
38
+ unitId: string;
39
+ subUnitId: string;
25
40
  /**
26
41
  * The cols to be moved.
27
42
  */
@@ -33,4 +48,3 @@ export interface IMoveColumnsMutationParams {
33
48
  }
34
49
  export declare function MoveColsMutationUndoFactory(_accessor: IAccessor, params: IMoveColumnsMutationParams): IMoveColumnsMutationParams;
35
50
  export declare const MoveColsMutation: IMutation<IMoveColumnsMutationParams>;
36
- //# sourceMappingURL=move-rows-cols.mutation.d.ts.map
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommand, IMutationInfo, IRange } from '@univerjs/core';
17
+ import type { IAccessor } from '@wendellhu/redi';
18
+ import type { FormatType } from '../../services/numfmt/type';
19
+ export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<ISetNumfmtMutationParams | IRemoveNumfmtMutationParams>[];
20
+ export interface ISetNumfmtMutationParams {
21
+ values: {
22
+ [id: string]: {
23
+ ranges: IRange[];
24
+ };
25
+ };
26
+ refMap: {
27
+ [id: string]: {
28
+ pattern: string;
29
+ type: FormatType;
30
+ };
31
+ };
32
+ unitId: string;
33
+ subUnitId: string;
34
+ }
35
+ export declare const SetNumfmtMutation: ICommand<ISetNumfmtMutationParams>;
36
+ export interface IRemoveNumfmtMutationParams {
37
+ ranges: IRange[];
38
+ unitId: string;
39
+ subUnitId: string;
40
+ }
41
+ export declare const RemoveNumfmtMutation: ICommand<IRemoveNumfmtMutationParams>;
42
+ export declare const factoryRemoveNumfmtUndoMutation: (accessor: IAccessor, option: IRemoveNumfmtMutationParams) => {
43
+ id: string;
44
+ params: ISetNumfmtMutationParams;
45
+ }[];
46
+ export type ISetCellsNumfmt = Array<{
47
+ pattern: string;
48
+ type: FormatType;
49
+ row: number;
50
+ col: number;
51
+ }>;
52
+ export declare const transformCellsToRange: (unitId: string, subUnitId: string, cells: ISetCellsNumfmt) => ISetNumfmtMutationParams;
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation, Worksheet } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  import type { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
@@ -5,4 +20,3 @@ export declare const RemoveRowsUndoMutationFactory: (params: IRemoveRowsMutation
5
20
  export declare const RemoveRowMutation: IMutation<IRemoveRowsMutationParams>;
6
21
  export declare const RemoveColMutationFactory: (accessor: IAccessor, params: IRemoveColMutationParams) => IInsertColMutationParams;
7
22
  export declare const RemoveColMutation: IMutation<IRemoveColMutationParams>;
8
- //# sourceMappingURL=remove-row-col.mutation.d.ts.map
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  import type { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
@@ -10,4 +25,3 @@ import type { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../
10
25
  */
11
26
  export declare const RemoveSheetUndoMutationFactory: (accessor: IAccessor, params: IRemoveSheetMutationParams) => IInsertSheetMutationParams;
12
27
  export declare const RemoveSheetMutation: IMutation<IRemoveSheetMutationParams, boolean>;
13
- //# sourceMappingURL=remove-sheet.mutation.d.ts.map
@@ -1,6 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  import type { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
4
19
  export declare const RemoveMergeUndoMutationFactory: (accessor: IAccessor, params: IRemoveWorksheetMergeMutationParams) => IAddWorksheetMergeMutationParams;
5
20
  export declare const RemoveWorksheetMergeMutation: IMutation<IRemoveWorksheetMergeMutationParams>;
6
- //# sourceMappingURL=remove-worksheet-merge.mutation.d.ts.map
@@ -1,25 +1,39 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation, IRange } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetColHiddenMutationParams {
4
- workbookId: string;
5
- worksheetId: string;
19
+ unitId: string;
20
+ subUnitId: string;
6
21
  ranges: IRange[];
7
22
  }
8
23
  export declare const SetColHiddenUndoMutationFactory: (accessor: IAccessor, params: ISetColHiddenMutationParams) => {
9
- workbookId: string;
10
- worksheetId: string;
24
+ unitId: string;
25
+ subUnitId: string;
11
26
  ranges: IRange[];
12
27
  };
13
28
  export declare const SetColHiddenMutation: IMutation<ISetColHiddenMutationParams>;
14
29
  export interface ISetColVisibleMutationParams {
15
- workbookId: string;
16
- worksheetId: string;
30
+ unitId: string;
31
+ subUnitId: string;
17
32
  ranges: IRange[];
18
33
  }
19
34
  export declare const SetColVisibleUndoMutationFactory: (accessor: IAccessor, params: ISetColVisibleMutationParams) => {
20
- workbookId: string;
21
- worksheetId: string;
35
+ unitId: string;
36
+ subUnitId: string;
22
37
  ranges: IRange[];
23
38
  };
24
39
  export declare const SetColVisibleMutation: IMutation<ISetColVisibleMutationParams>;
25
- //# sourceMappingURL=set-col-visible.mutation.d.ts.map
@@ -1,8 +1,23 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetFrozenMutationParams {
4
- workbookId: string;
5
- worksheetId: string;
19
+ unitId: string;
20
+ subUnitId: string;
6
21
  startRow: number;
7
22
  startColumn: number;
8
23
  ySplit: number;
@@ -10,4 +25,3 @@ export interface ISetFrozenMutationParams {
10
25
  }
11
26
  export declare const SetFrozenMutationFactory: (accessor: IAccessor, params: ISetFrozenMutationParams) => ISetFrozenMutationParams;
12
27
  export declare const SetFrozenMutation: IMutation<ISetFrozenMutationParams>;
13
- //# sourceMappingURL=set-frozen.mutation.d.ts.map
@@ -1,10 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { BooleanNumber, IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetHideGridlinesMutationParams {
4
19
  hideGridlines: BooleanNumber;
5
- workbookId: string;
6
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
7
22
  }
8
23
  export declare const SetHideGridlinesUndoMutationFactory: (accessor: IAccessor, params: ISetHideGridlinesMutationParams) => ISetHideGridlinesMutationParams;
9
24
  export declare const SetHideGridlinesMutation: IMutation<ISetHideGridlinesMutationParams>;
10
- //# sourceMappingURL=set-hide-gridlines.mutatiom.d.ts.map
@@ -1,21 +1,32 @@
1
- import type { IBorderData, ICellData, ICopyToOptionsData, IDocumentData, IMutation, IMutationCommonParams, IRange, IStyleData, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IBorderData, ICellData, ICopyToOptionsData, IDocumentData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, IStyleData, Nullable } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  /** Params of `SetRangeValuesMutation` */
4
19
  export interface ISetRangeValuesMutationParams extends IMutationCommonParams {
5
- worksheetId: string;
6
- workbookId: string;
20
+ subUnitId: string;
21
+ unitId: string;
7
22
  /**
8
23
  * null for clear all
9
24
  */
10
- cellValue?: ObjectMatrixPrimitiveType<ICellData | null>;
25
+ cellValue?: IObjectMatrixPrimitiveType<Nullable<ICellData>>;
11
26
  /**
12
27
  * @deprecated not a good design
13
28
  */
14
29
  options?: ICopyToOptionsData;
15
- /**
16
- * for formula calculate
17
- */
18
- isFormulaUpdate?: boolean;
19
30
  }
20
31
  export interface ISetRangeValuesRangeMutationParams extends ISetRangeValuesMutationParams {
21
32
  range: IRange[];
@@ -60,4 +71,3 @@ export declare function mergeStyle(oldStyle: Nullable<IStyleData>, newStyle: Nul
60
71
  * @param newStyle
61
72
  */
62
73
  export declare function mergeRichTextStyle(p: IDocumentData, newStyle: Nullable<IStyleData>): void;
63
- //# sourceMappingURL=set-range-values.mutation.d.ts.map
@@ -1,25 +1,39 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation, IRange } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetRowVisibleMutationParams {
4
- workbookId: string;
5
- worksheetId: string;
19
+ unitId: string;
20
+ subUnitId: string;
6
21
  ranges: IRange[];
7
22
  }
8
23
  export declare const SetRowVisibleUndoMutationFactory: (accessor: IAccessor, params: ISetRowVisibleMutationParams) => {
9
- workbookId: string;
10
- worksheetId: string;
24
+ unitId: string;
25
+ subUnitId: string;
11
26
  ranges: IRange[];
12
27
  };
13
28
  export declare const SetRowVisibleMutation: IMutation<ISetRowVisibleMutationParams>;
14
29
  export interface ISetRowHiddenMutationParams {
15
- workbookId: string;
16
- worksheetId: string;
30
+ unitId: string;
31
+ subUnitId: string;
17
32
  ranges: IRange[];
18
33
  }
19
34
  export declare const SetRowHiddenUndoMutationFactory: (accessor: IAccessor, params: ISetRowHiddenMutationParams) => {
20
- workbookId: string;
21
- worksheetId: string;
35
+ unitId: string;
36
+ subUnitId: string;
22
37
  ranges: IRange[];
23
38
  };
24
39
  export declare const SetRowHiddenMutation: IMutation<ISetRowHiddenMutationParams>;
25
- //# sourceMappingURL=set-row-visible.mutation.d.ts.map
@@ -1,10 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetTabColorMutationParams {
4
19
  color: string;
5
- workbookId: string;
6
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
7
22
  }
8
23
  export declare const SetTabColorUndoMutationFactory: (accessor: IAccessor, params: ISetTabColorMutationParams) => ISetTabColorMutationParams;
9
24
  export declare const SetTabColorMutation: IMutation<ISetTabColorMutationParams>;
10
- //# sourceMappingURL=set-tab-color.mutation.d.ts.map
@@ -1,12 +1,25 @@
1
- import type { IMutation, IRange } from '@univerjs/core';
2
- import { ObjectArray } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
3
17
  import type { IAccessor } from '@wendellhu/redi';
4
18
  export interface ISetWorksheetColWidthMutationParams {
5
- workbookId: string;
6
- worksheetId: string;
19
+ unitId: string;
20
+ subUnitId: string;
7
21
  ranges: IRange[];
8
- colWidth: number | ObjectArray<number>;
22
+ colWidth: number | IObjectArrayPrimitiveType<Nullable<number>>;
9
23
  }
10
24
  export declare const SetWorksheetColWidthMutationFactory: (accessor: IAccessor, params: ISetWorksheetColWidthMutationParams) => ISetWorksheetColWidthMutationParams;
11
25
  export declare const SetWorksheetColWidthMutation: IMutation<ISetWorksheetColWidthMutationParams>;
12
- //# sourceMappingURL=set-worksheet-col-width.mutation.d.ts.map
@@ -1,13 +1,27 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation, IWorksheetData } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  /** @deprecated */
4
19
  export interface ISetWorksheetConfigMutationParams {
5
- workbookId: string;
6
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
7
22
  config: IWorksheetData;
8
23
  }
9
24
  /** @deprecated */
10
25
  export declare const SetWorksheetConfigUndoMutationFactory: (accessor: IAccessor, params: ISetWorksheetConfigMutationParams) => ISetWorksheetConfigMutationParams;
11
26
  /** @deprecated */
12
27
  export declare const SetWorksheetConfigMutation: IMutation<ISetWorksheetConfigMutationParams>;
13
- //# sourceMappingURL=set-worksheet-config.mutation.d.ts.map
@@ -1,10 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { BooleanNumber, IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetWorksheetHideMutationParams {
4
19
  hidden: BooleanNumber;
5
- workbookId: string;
6
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
7
22
  }
8
23
  export declare const SetWorksheetHideMutationFactory: (accessor: IAccessor, params: ISetWorksheetHideMutationParams) => ISetWorksheetHideMutationParams;
9
24
  export declare const SetWorksheetHideMutation: IMutation<ISetWorksheetHideMutationParams>;
10
- //# sourceMappingURL=set-worksheet-hide.mutation.d.ts.map
@@ -1,10 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetWorksheetNameMutationParams {
4
19
  name: string;
5
- workbookId: string;
6
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
7
22
  }
8
23
  export declare const SetWorksheetNameMutationFactory: (accessor: IAccessor, params: ISetWorksheetNameMutationParams) => ISetWorksheetNameMutationParams;
9
24
  export declare const SetWorksheetNameMutation: IMutation<ISetWorksheetNameMutationParams>;
10
- //# sourceMappingURL=set-worksheet-name.mutation.d.ts.map
@@ -1,10 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetWorksheetOrderMutationParams {
4
19
  order: number;
5
- workbookId: string;
6
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
7
22
  }
8
23
  export declare const SetWorksheetOrderUndoMutationFactory: (accessor: IAccessor, params: ISetWorksheetOrderMutationParams) => ISetWorksheetOrderMutationParams;
9
24
  export declare const SetWorksheetOrderMutation: IMutation<ISetWorksheetOrderMutationParams>;
10
- //# sourceMappingURL=set-worksheet-order.mutation.d.ts.map
@@ -1,10 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import type { BooleanNumber, IMutation } from '@univerjs/core';
2
17
  import type { IAccessor } from '@wendellhu/redi';
3
18
  export interface ISetWorksheetRightToLeftMutationParams {
4
19
  rightToLeft: BooleanNumber;
5
- workbookId: string;
6
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
7
22
  }
8
23
  export declare const SetWorksheetRightToLeftUndoMutationFactory: (accessor: IAccessor, params: ISetWorksheetRightToLeftMutationParams) => ISetWorksheetRightToLeftMutationParams;
9
24
  export declare const SetWorksheetRightToLeftMutation: IMutation<ISetWorksheetRightToLeftMutationParams>;
10
- //# sourceMappingURL=set-worksheet-right-to-left.mutation.d.ts.map
@@ -1,22 +1,36 @@
1
- import type { IMutation, IRange, Nullable } from '@univerjs/core';
2
- import { ObjectArray } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
3
17
  import type { IRowAutoHeightInfo } from '@univerjs/engine-render';
4
18
  import type { IAccessor } from '@wendellhu/redi';
5
19
  export interface ISetWorksheetRowHeightMutationParams {
6
- workbookId: string;
7
- worksheetId: string;
20
+ unitId: string;
21
+ subUnitId: string;
8
22
  ranges: IRange[];
9
- rowHeight: number | ObjectArray<number>;
23
+ rowHeight: number | IObjectArrayPrimitiveType<Nullable<number>>;
10
24
  }
11
25
  export interface ISetWorksheetRowIsAutoHeightMutationParams {
12
- workbookId: string;
13
- worksheetId: string;
26
+ unitId: string;
27
+ subUnitId: string;
14
28
  ranges: IRange[];
15
- autoHeightInfo: boolean | ObjectArray<Nullable<boolean>>;
29
+ autoHeightInfo: boolean | IObjectArrayPrimitiveType<Nullable<boolean>>;
16
30
  }
17
31
  export interface ISetWorksheetRowAutoHeightMutationParams {
18
- workbookId: string;
19
- worksheetId: string;
32
+ unitId: string;
33
+ subUnitId: string;
20
34
  rowsAutoHeightInfo: IRowAutoHeightInfo[];
21
35
  }
22
36
  export declare const SetWorksheetRowHeightMutationFactory: (accessor: IAccessor, params: ISetWorksheetRowHeightMutationParams) => ISetWorksheetRowHeightMutationParams;
@@ -25,4 +39,3 @@ export declare const SetWorksheetRowAutoHeightMutationFactory: (accessor: IAcces
25
39
  export declare const SetWorksheetRowHeightMutation: IMutation<ISetWorksheetRowHeightMutationParams>;
26
40
  export declare const SetWorksheetRowIsAutoHeightMutation: IMutation<ISetWorksheetRowIsAutoHeightMutationParams>;
27
41
  export declare const SetWorksheetRowAutoHeightMutation: IMutation<ISetWorksheetRowAutoHeightMutationParams>;
28
- //# sourceMappingURL=set-worksheet-row-height.mutation.d.ts.map