@univerjs/sheets 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +2 -3
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -8762
  16. package/lib/es/index.js +2 -15285
  17. package/lib/es/locale/ca-ES.js +1 -17
  18. package/lib/es/locale/en-US.js +1 -17
  19. package/lib/es/locale/es-ES.js +1 -17
  20. package/lib/es/locale/fa-IR.js +1 -17
  21. package/lib/es/locale/fr-FR.js +1 -17
  22. package/lib/es/locale/ja-JP.js +1 -17
  23. package/lib/es/locale/ko-KR.js +1 -17
  24. package/lib/es/locale/ru-RU.js +1 -17
  25. package/lib/es/locale/sk-SK.js +1 -17
  26. package/lib/es/locale/vi-VN.js +1 -17
  27. package/lib/es/locale/zh-CN.js +1 -17
  28. package/lib/es/locale/zh-TW.js +1 -17
  29. package/lib/facade.js +1 -8762
  30. package/lib/index.js +2 -15285
  31. package/lib/locale/ca-ES.js +1 -17
  32. package/lib/locale/en-US.js +1 -17
  33. package/lib/locale/es-ES.js +1 -17
  34. package/lib/locale/fa-IR.js +1 -17
  35. package/lib/locale/fr-FR.js +1 -17
  36. package/lib/locale/ja-JP.js +1 -17
  37. package/lib/locale/ko-KR.js +1 -17
  38. package/lib/locale/ru-RU.js +1 -17
  39. package/lib/locale/sk-SK.js +1 -17
  40. package/lib/locale/vi-VN.js +1 -17
  41. package/lib/locale/zh-CN.js +1 -17
  42. package/lib/locale/zh-TW.js +1 -17
  43. package/lib/types/basics/cell-style.d.ts +16 -1
  44. package/lib/types/basics/cell-type.d.ts +17 -1
  45. package/lib/types/basics/cell-value.d.ts +18 -2
  46. package/lib/types/basics/const/command-listener-const.d.ts +31 -16
  47. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +16 -1
  48. package/lib/types/basics/expand-range.d.ts +16 -1
  49. package/lib/types/basics/interfaces/i-ruler-manager.d.ts +16 -1
  50. package/lib/types/basics/interfaces/mutation-interface.d.ts +16 -1
  51. package/lib/types/basics/interfaces/selection-config.d.ts +16 -1
  52. package/lib/types/basics/interfaces/spreadsheet-config.d.ts +16 -1
  53. package/lib/types/basics/range-merge.d.ts +17 -1
  54. package/lib/types/basics/row-column-value.d.ts +16 -1
  55. package/lib/types/basics/selection.d.ts +16 -1
  56. package/lib/types/basics/sheet-header.d.ts +16 -1
  57. package/lib/types/basics/split-range-text.d.ts +16 -1
  58. package/lib/types/basics/utils.d.ts +17 -2
  59. package/lib/types/commands/commands/add-range-protection.command.d.ts +17 -2
  60. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +18 -2
  61. package/lib/types/commands/commands/add-worksheet-protection.command.d.ts +17 -2
  62. package/lib/types/commands/commands/add-worksheet-range-theme.command.d.ts +16 -1
  63. package/lib/types/commands/commands/append-row.command.d.ts +16 -1
  64. package/lib/types/commands/commands/auto-fill.command.d.ts +18 -1
  65. package/lib/types/commands/commands/clear-selection-all.command.d.ts +16 -1
  66. package/lib/types/commands/commands/clear-selection-content.command.d.ts +16 -1
  67. package/lib/types/commands/commands/clear-selection-format.command.d.ts +16 -1
  68. package/lib/types/commands/commands/copy-worksheet.command.d.ts +17 -1
  69. package/lib/types/commands/commands/delete-range-move-left.command.d.ts +16 -1
  70. package/lib/types/commands/commands/delete-range-move-up.command.d.ts +16 -1
  71. package/lib/types/commands/commands/delete-range-protection.command.d.ts +17 -2
  72. package/lib/types/commands/commands/delete-worksheet-protection.command.d.ts +17 -2
  73. package/lib/types/commands/commands/delete-worksheet-range-theme.command.d.ts +16 -1
  74. package/lib/types/commands/commands/insert-defined-name.command.d.ts +16 -1
  75. package/lib/types/commands/commands/insert-range-move-down.command.d.ts +16 -1
  76. package/lib/types/commands/commands/insert-range-move-right.command.d.ts +16 -1
  77. package/lib/types/commands/commands/insert-row-col.command.d.ts +17 -1
  78. package/lib/types/commands/commands/insert-sheet.command.d.ts +16 -1
  79. package/lib/types/commands/commands/move-range.command.d.ts +16 -1
  80. package/lib/types/commands/commands/move-rows-cols.command.d.ts +16 -1
  81. package/lib/types/commands/commands/refill.command.d.ts +17 -2
  82. package/lib/types/commands/commands/register-range-theme.command.d.ts +17 -2
  83. package/lib/types/commands/commands/remove-defined-name.command.d.ts +16 -1
  84. package/lib/types/commands/commands/remove-row-col.command.d.ts +16 -1
  85. package/lib/types/commands/commands/remove-sheet.command.d.ts +16 -1
  86. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +16 -1
  87. package/lib/types/commands/commands/reorder-range.command.d.ts +17 -2
  88. package/lib/types/commands/commands/set-border-command.d.ts +18 -2
  89. package/lib/types/commands/commands/set-col-data.command.d.ts +17 -2
  90. package/lib/types/commands/commands/set-col-visible.command.d.ts +16 -1
  91. package/lib/types/commands/commands/set-defined-name.command.d.ts +16 -1
  92. package/lib/types/commands/commands/set-frozen.command.d.ts +16 -1
  93. package/lib/types/commands/commands/set-gridlines-color.command.d.ts +16 -1
  94. package/lib/types/commands/commands/set-protection.command.d.ts +18 -3
  95. package/lib/types/commands/commands/set-range-custom-metadata.command.d.ts +17 -2
  96. package/lib/types/commands/commands/set-range-values.command.d.ts +17 -2
  97. package/lib/types/commands/commands/set-row-data.command.d.ts +17 -2
  98. package/lib/types/commands/commands/set-row-visible.command.d.ts +16 -1
  99. package/lib/types/commands/commands/set-style.command.d.ts +17 -2
  100. package/lib/types/commands/commands/set-tab-color.command.d.ts +17 -2
  101. package/lib/types/commands/commands/set-workbook-name.command.d.ts +16 -1
  102. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +16 -1
  103. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +16 -1
  104. package/lib/types/commands/commands/set-worksheet-column-count.command.d.ts +16 -1
  105. package/lib/types/commands/commands/set-worksheet-default-style.command.d.ts +16 -1
  106. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +16 -1
  107. package/lib/types/commands/commands/set-worksheet-name.command.d.ts +16 -1
  108. package/lib/types/commands/commands/set-worksheet-order.command.d.ts +16 -1
  109. package/lib/types/commands/commands/set-worksheet-permission-points.command.d.ts +17 -2
  110. package/lib/types/commands/commands/set-worksheet-protection.command.d.ts +17 -2
  111. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +17 -1
  112. package/lib/types/commands/commands/set-worksheet-row-count.command.d.ts +16 -1
  113. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +16 -1
  114. package/lib/types/commands/commands/set-worksheet-show.command.d.ts +16 -1
  115. package/lib/types/commands/commands/split-text-to-columns.command.d.ts +18 -2
  116. package/lib/types/commands/commands/text-to-number.command.d.ts +17 -2
  117. package/lib/types/commands/commands/toggle-checkbox.command.d.ts +16 -1
  118. package/lib/types/commands/commands/toggle-gridlines.command.d.ts +17 -1
  119. package/lib/types/commands/commands/unregister-range-theme.command.d.ts +16 -1
  120. package/lib/types/commands/commands/util.d.ts +17 -1
  121. package/lib/types/commands/commands/utils/selection-utils.d.ts +18 -3
  122. package/lib/types/commands/commands/utils/target-util.d.ts +16 -1
  123. package/lib/types/commands/mutations/add-range-protection.mutation.d.ts +18 -3
  124. package/lib/types/commands/mutations/add-range-theme.mutation.d.ts +17 -2
  125. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +17 -2
  126. package/lib/types/commands/mutations/add-worksheet-protection.mutation.d.ts +17 -2
  127. package/lib/types/commands/mutations/add-worksheet-range-theme.mutation.d.ts +18 -3
  128. package/lib/types/commands/mutations/copy-worksheet-end.mutation.d.ts +16 -1
  129. package/lib/types/commands/mutations/delete-range-protection.mutation.d.ts +17 -2
  130. package/lib/types/commands/mutations/delete-worksheet-protection.mutation.d.ts +16 -1
  131. package/lib/types/commands/mutations/delete-worksheet-range-theme.mutation.d.ts +18 -3
  132. package/lib/types/commands/mutations/empty.mutation.d.ts +16 -1
  133. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +17 -2
  134. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +17 -2
  135. package/lib/types/commands/mutations/mark-dirty-auto-height.mutation.d.ts +16 -1
  136. package/lib/types/commands/mutations/move-range.mutation.d.ts +16 -1
  137. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +16 -1
  138. package/lib/types/commands/mutations/numfmt-mutation.d.ts +16 -1
  139. package/lib/types/commands/mutations/register-range-theme.mutation.d.ts +17 -2
  140. package/lib/types/commands/mutations/remove-range-theme.mutation.d.ts +16 -1
  141. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +17 -2
  142. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +17 -2
  143. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +17 -2
  144. package/lib/types/commands/mutations/reorder-range.mutation.d.ts +17 -2
  145. package/lib/types/commands/mutations/set-col-data.mutation.d.ts +16 -1
  146. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +16 -1
  147. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +16 -1
  148. package/lib/types/commands/mutations/set-gridlines-color.mutation.d.ts +16 -1
  149. package/lib/types/commands/mutations/set-range-protection.mutation.d.ts +17 -2
  150. package/lib/types/commands/mutations/set-range-theme.mutation.d.ts +17 -2
  151. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +16 -1
  152. package/lib/types/commands/mutations/set-row-data.mutation.d.ts +16 -1
  153. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +16 -1
  154. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +16 -1
  155. package/lib/types/commands/mutations/set-workbook-name.mutation.d.ts +16 -1
  156. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +16 -1
  157. package/lib/types/commands/mutations/set-worksheet-column-count.mutation.d.ts +16 -1
  158. package/lib/types/commands/mutations/set-worksheet-default-style.mutation.d.ts +16 -1
  159. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +16 -1
  160. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +16 -1
  161. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +16 -1
  162. package/lib/types/commands/mutations/set-worksheet-permission-points.mutation.d.ts +17 -2
  163. package/lib/types/commands/mutations/set-worksheet-protection.mutation.d.ts +17 -2
  164. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +16 -1
  165. package/lib/types/commands/mutations/set-worksheet-row-count.mutation.d.ts +16 -1
  166. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +16 -1
  167. package/lib/types/commands/mutations/toggle-gridlines.mutation.d.ts +16 -1
  168. package/lib/types/commands/mutations/unregister-range-theme-style.mutation.d.ts +16 -1
  169. package/lib/types/commands/operations/scroll-to-cell.operation.d.ts +16 -1
  170. package/lib/types/commands/operations/selection.operation.d.ts +18 -3
  171. package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +16 -1
  172. package/lib/types/commands/utils/handle-merge-operation.d.ts +18 -3
  173. package/lib/types/commands/utils/handle-range-mutation.d.ts +18 -2
  174. package/lib/types/commands/utils/selection-command-util.d.ts +16 -1
  175. package/lib/types/config/config.d.ts +16 -1
  176. package/lib/types/controllers/active-worksheet.controller.d.ts +15 -0
  177. package/lib/types/controllers/auto-fill.controller.d.ts +15 -0
  178. package/lib/types/controllers/basic-worksheet.controller.d.ts +17 -1
  179. package/lib/types/controllers/calculate-result-apply.controller.d.ts +15 -0
  180. package/lib/types/controllers/defined-name-data.controller.d.ts +15 -0
  181. package/lib/types/controllers/freeze-sync.controller.d.ts +15 -0
  182. package/lib/types/controllers/merge-cell.controller.d.ts +21 -5
  183. package/lib/types/controllers/number-cell.controller.d.ts +15 -0
  184. package/lib/types/controllers/permission/sheet-permission-check.controller.d.ts +18 -2
  185. package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +15 -0
  186. package/lib/types/controllers/permission/sheet-permission-view-model.controller.d.ts +15 -0
  187. package/lib/types/controllers/zebar-crossing.controller.d.ts +15 -0
  188. package/lib/types/facade/f-defined-name.d.ts +18 -2
  189. package/lib/types/facade/f-enum.d.ts +15 -0
  190. package/lib/types/facade/f-event.d.ts +21 -6
  191. package/lib/types/facade/f-permission.d.ts +55 -39
  192. package/lib/types/facade/f-range.d.ts +20 -4
  193. package/lib/types/facade/f-selection.d.ts +18 -2
  194. package/lib/types/facade/f-sheet-hooks.d.ts +15 -0
  195. package/lib/types/facade/f-univer.d.ts +17 -2
  196. package/lib/types/facade/f-workbook.d.ts +23 -4
  197. package/lib/types/facade/f-worksheet.d.ts +19 -3
  198. package/lib/types/facade/permission/f-range-permission.d.ts +20 -4
  199. package/lib/types/facade/permission/f-range-protection-rule.d.ts +17 -2
  200. package/lib/types/facade/permission/f-workbook-permission.d.ts +19 -3
  201. package/lib/types/facade/permission/f-worksheet-permission.d.ts +20 -4
  202. package/lib/types/facade/permission/permission-point-map.d.ts +16 -1
  203. package/lib/types/facade/permission/permission-types.d.ts +17 -2
  204. package/lib/types/facade/utils.d.ts +17 -1
  205. package/lib/types/index.d.ts +1 -1
  206. package/lib/types/locale/ca-ES.d.ts +16 -1
  207. package/lib/types/locale/es-ES.d.ts +16 -1
  208. package/lib/types/locale/fa-IR.d.ts +16 -1
  209. package/lib/types/locale/fr-FR.d.ts +16 -1
  210. package/lib/types/locale/ja-JP.d.ts +16 -1
  211. package/lib/types/locale/ko-KR.d.ts +16 -1
  212. package/lib/types/locale/ru-RU.d.ts +16 -1
  213. package/lib/types/locale/sk-SK.d.ts +16 -1
  214. package/lib/types/locale/vi-VN.d.ts +16 -1
  215. package/lib/types/locale/zh-CN.d.ts +16 -1
  216. package/lib/types/locale/zh-TW.d.ts +16 -1
  217. package/lib/types/model/range-protection-render.model.d.ts +18 -2
  218. package/lib/types/model/range-protection-rule.model.d.ts +20 -5
  219. package/lib/types/model/range-protection.cache.d.ts +17 -1
  220. package/lib/types/model/range-theme-model.d.ts +20 -3
  221. package/lib/types/model/range-theme-util.d.ts +16 -1
  222. package/lib/types/model/range-themes/build-in-theme.factory.d.ts +15 -0
  223. package/lib/types/model/range-themes/default.d.ts +15 -0
  224. package/lib/types/model/zebra-crossing-cache.d.ts +16 -1
  225. package/lib/types/plugin.d.ts +16 -1
  226. package/lib/types/services/auto-fill/auto-fill.service.d.ts +21 -4
  227. package/lib/types/services/auto-fill/rules.d.ts +16 -1
  228. package/lib/types/services/auto-fill/tools.d.ts +24 -8
  229. package/lib/types/services/auto-fill/type.d.ts +17 -2
  230. package/lib/types/services/border-style-manager.service.d.ts +18 -2
  231. package/lib/types/services/exclusive-range/exclusive-range-service.d.ts +20 -4
  232. package/lib/types/services/lazy-execute-schedule.service.d.ts +18 -2
  233. package/lib/types/services/numfmt/numfmt.service.d.ts +18 -2
  234. package/lib/types/services/numfmt/type.d.ts +17 -2
  235. package/lib/types/services/permission/permission-point/const.d.ts +15 -0
  236. package/lib/types/services/permission/permission-point/range/delete-protection.d.ts +17 -1
  237. package/lib/types/services/permission/permission-point/range/edit.d.ts +17 -1
  238. package/lib/types/services/permission/permission-point/range/manage-collaborator.d.ts +17 -1
  239. package/lib/types/services/permission/permission-point/range/view.d.ts +17 -1
  240. package/lib/types/services/permission/permission-point/workbook/comment.d.ts +17 -1
  241. package/lib/types/services/permission/permission-point/workbook/copy-sheet.d.ts +17 -1
  242. package/lib/types/services/permission/permission-point/workbook/copy.d.ts +17 -1
  243. package/lib/types/services/permission/permission-point/workbook/create-permission.d.ts +17 -1
  244. package/lib/types/services/permission/permission-point/workbook/create-sheet.d.ts +17 -1
  245. package/lib/types/services/permission/permission-point/workbook/delete-column.d.ts +17 -1
  246. package/lib/types/services/permission/permission-point/workbook/delete-row.d.ts +17 -1
  247. package/lib/types/services/permission/permission-point/workbook/delete-sheet.d.ts +17 -1
  248. package/lib/types/services/permission/permission-point/workbook/duplicate.d.ts +17 -1
  249. package/lib/types/services/permission/permission-point/workbook/editable.d.ts +17 -1
  250. package/lib/types/services/permission/permission-point/workbook/export.d.ts +17 -1
  251. package/lib/types/services/permission/permission-point/workbook/hide-sheet.d.ts +17 -1
  252. package/lib/types/services/permission/permission-point/workbook/history.d.ts +17 -1
  253. package/lib/types/services/permission/permission-point/workbook/insert-column.d.ts +17 -1
  254. package/lib/types/services/permission/permission-point/workbook/insert-row.d.ts +17 -1
  255. package/lib/types/services/permission/permission-point/workbook/manage-collaborator.d.ts +17 -1
  256. package/lib/types/services/permission/permission-point/workbook/move-sheet.d.ts +17 -1
  257. package/lib/types/services/permission/permission-point/workbook/print.d.ts +17 -1
  258. package/lib/types/services/permission/permission-point/workbook/recover-history.d.ts +17 -1
  259. package/lib/types/services/permission/permission-point/workbook/rename-sheet.d.ts +17 -1
  260. package/lib/types/services/permission/permission-point/workbook/share.d.ts +17 -1
  261. package/lib/types/services/permission/permission-point/workbook/view-history.d.ts +17 -1
  262. package/lib/types/services/permission/permission-point/workbook/view.d.ts +17 -1
  263. package/lib/types/services/permission/permission-point/worksheet/copy.d.ts +17 -1
  264. package/lib/types/services/permission/permission-point/worksheet/delete-column.d.ts +17 -1
  265. package/lib/types/services/permission/permission-point/worksheet/delete-protection.d.ts +17 -1
  266. package/lib/types/services/permission/permission-point/worksheet/delete-row.d.ts +17 -1
  267. package/lib/types/services/permission/permission-point/worksheet/edit-extra-object.d.ts +17 -1
  268. package/lib/types/services/permission/permission-point/worksheet/edit.d.ts +17 -1
  269. package/lib/types/services/permission/permission-point/worksheet/filter.d.ts +17 -1
  270. package/lib/types/services/permission/permission-point/worksheet/insert-column.d.ts +17 -1
  271. package/lib/types/services/permission/permission-point/worksheet/insert-hyperlink.d.ts +17 -1
  272. package/lib/types/services/permission/permission-point/worksheet/insert-row.d.ts +17 -1
  273. package/lib/types/services/permission/permission-point/worksheet/manage-collaborator.d.ts +17 -1
  274. package/lib/types/services/permission/permission-point/worksheet/pivot-table.d.ts +17 -1
  275. package/lib/types/services/permission/permission-point/worksheet/select-protected-cells.d.ts +17 -1
  276. package/lib/types/services/permission/permission-point/worksheet/select-un-protected-cells.d.ts +17 -1
  277. package/lib/types/services/permission/permission-point/worksheet/set-cell-style.d.ts +17 -1
  278. package/lib/types/services/permission/permission-point/worksheet/set-cell-value.d.ts +17 -1
  279. package/lib/types/services/permission/permission-point/worksheet/set-column-style.d.ts +17 -1
  280. package/lib/types/services/permission/permission-point/worksheet/set-row-style.d.ts +17 -1
  281. package/lib/types/services/permission/permission-point/worksheet/sort.d.ts +17 -1
  282. package/lib/types/services/permission/permission-point/worksheet/view.d.ts +17 -1
  283. package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +21 -5
  284. package/lib/types/services/permission/range-permission/range-protection.service.d.ts +15 -0
  285. package/lib/types/services/permission/range-permission/util.d.ts +15 -0
  286. package/lib/types/services/permission/type.d.ts +17 -2
  287. package/lib/types/services/permission/util.d.ts +16 -1
  288. package/lib/types/services/permission/workbook-permission/util.d.ts +15 -0
  289. package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +16 -1
  290. package/lib/types/services/permission/worksheet-permission/type.d.ts +16 -1
  291. package/lib/types/services/permission/worksheet-permission/utils.d.ts +15 -0
  292. package/lib/types/services/permission/worksheet-permission/worksheet-permission-point.model.d.ts +17 -2
  293. package/lib/types/services/permission/worksheet-permission/worksheet-permission-rule.model.d.ts +20 -5
  294. package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +15 -0
  295. package/lib/types/services/range-theme-service.d.ts +18 -2
  296. package/lib/types/services/ref-range/ref-range.service.d.ts +20 -4
  297. package/lib/types/services/ref-range/type.d.ts +34 -10
  298. package/lib/types/services/ref-range/util.d.ts +31 -15
  299. package/lib/types/services/selections/move-active-cell-util.d.ts +18 -2
  300. package/lib/types/services/selections/ref-selections.service.d.ts +16 -1
  301. package/lib/types/services/selections/selection-data-model.d.ts +20 -3
  302. package/lib/types/services/selections/selection.service.d.ts +21 -4
  303. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +18 -3
  304. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +18 -2
  305. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +16 -1
  306. package/lib/types/skeleton/skeleton.service.d.ts +17 -1
  307. package/lib/umd/facade.js +1 -1
  308. package/lib/umd/index.js +2 -3
  309. package/lib/umd/locale/ca-ES.js +1 -1
  310. package/lib/umd/locale/en-US.js +1 -1
  311. package/lib/umd/locale/es-ES.js +1 -1
  312. package/lib/umd/locale/fa-IR.js +1 -1
  313. package/lib/umd/locale/fr-FR.js +1 -1
  314. package/lib/umd/locale/ja-JP.js +1 -1
  315. package/lib/umd/locale/ko-KR.js +1 -1
  316. package/lib/umd/locale/ru-RU.js +1 -1
  317. package/lib/umd/locale/sk-SK.js +1 -1
  318. package/lib/umd/locale/vi-VN.js +1 -1
  319. package/lib/umd/locale/zh-CN.js +1 -1
  320. package/lib/umd/locale/zh-TW.js +1 -1
  321. package/package.json +11 -10
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(Còpia{0})",
5
- sheet: "Full"
6
- },
7
- info: {
8
- overlappingSelections: "No es pot utilitzar aquesta ordre en seleccions superposades",
9
- acrossMergedCell: "A través d'una cel·la combinada",
10
- partOfCell: "Només una part d'una cel·la combinada està seleccionada",
11
- hideSheet: "No hi ha fulls visibles després d'ocultar aquest"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(Còpia{0})`,sheet:`Full`},info:{overlappingSelections:`No es pot utilitzar aquesta ordre en seleccions superposades`,acrossMergedCell:`A través d'una cel·la combinada`,partOfCell:`Només una part d'una cel·la combinada està seleccionada`,hideSheet:`No hi ha fulls visibles després d'ocultar aquest`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(Copy{0})",
5
- sheet: "Sheet"
6
- },
7
- info: {
8
- overlappingSelections: "Cannot use that command on overlapping selections",
9
- acrossMergedCell: "Across a merged cell",
10
- partOfCell: "Only part of a merged cell is selected",
11
- hideSheet: "No visible sheet after you hide this"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(Copy{0})`,sheet:`Sheet`},info:{overlappingSelections:`Cannot use that command on overlapping selections`,acrossMergedCell:`Across a merged cell`,partOfCell:`Only part of a merged cell is selected`,hideSheet:`No visible sheet after you hide this`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(Copia{0})",
5
- sheet: "Hoja"
6
- },
7
- info: {
8
- overlappingSelections: "No se puede usar ese comando en selecciones superpuestas",
9
- acrossMergedCell: "A través de una celda combinada",
10
- partOfCell: "Solo una parte de una celda combinada está seleccionada",
11
- hideSheet: "No hay hojas visibles después de ocultar esta"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(Copia{0})`,sheet:`Hoja`},info:{overlappingSelections:`No se puede usar ese comando en selecciones superpuestas`,acrossMergedCell:`A través de una celda combinada`,partOfCell:`Solo una parte de una celda combinada está seleccionada`,hideSheet:`No hay hojas visibles después de ocultar esta`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(کپی{0})",
5
- sheet: "برگ"
6
- },
7
- info: {
8
- overlappingSelections: "نمی‌توان از این دستور روی انتخاب‌های همپوشانی استفاده کرد",
9
- acrossMergedCell: "در سراسر سلول ادغام شده",
10
- partOfCell: "فقط بخشی از سلول ادغام شده انتخاب شده است",
11
- hideSheet: "پس از پنهان کردن این برگ، هیچ برگی قابل مشاهده نخواهد بود"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(کپی{0})`,sheet:`برگ`},info:{overlappingSelections:`نمی‌توان از این دستور روی انتخاب‌های همپوشانی استفاده کرد`,acrossMergedCell:`در سراسر سلول ادغام شده`,partOfCell:`فقط بخشی از سلول ادغام شده انتخاب شده است`,hideSheet:`پس از پنهان کردن این برگ، هیچ برگی قابل مشاهده نخواهد بود`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(Copie{0})",
5
- sheet: "Feuille"
6
- },
7
- info: {
8
- overlappingSelections: "Impossible d'utiliser cette commande sur des sélections qui se chevauchent",
9
- acrossMergedCell: "À travers une cellule fusionnée",
10
- partOfCell: "Seule une partie d'une cellule fusionnée est sélectionnée",
11
- hideSheet: "Aucune feuille visible après avoir masqué celle-ci"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(Copie{0})`,sheet:`Feuille`},info:{overlappingSelections:`Impossible d'utiliser cette commande sur des sélections qui se chevauchent`,acrossMergedCell:`À travers une cellule fusionnée`,partOfCell:`Seule une partie d'une cellule fusionnée est sélectionnée`,hideSheet:`Aucune feuille visible après avoir masqué celle-ci`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(コピー{0})",
5
- sheet: "シート"
6
- },
7
- info: {
8
- overlappingSelections: "そのコマンドは、重なり合う選択範囲に対しては使用できません。",
9
- acrossMergedCell: "結合セルをまたいでいます",
10
- partOfCell: "結合セルの一部が選択されています",
11
- hideSheet: "表示されるシートがなくなるため、このシートを非表示にできません。"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(コピー{0})`,sheet:`シート`},info:{overlappingSelections:`そのコマンドは、重なり合う選択範囲に対しては使用できません。`,acrossMergedCell:`結合セルをまたいでいます`,partOfCell:`結合セルの一部が選択されています`,hideSheet:`表示されるシートがなくなるため、このシートを非表示にできません。`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(복사본{0})",
5
- sheet: "시트"
6
- },
7
- info: {
8
- overlappingSelections: "겹치는 영역에서는 해당 명령을 사용할 수 없습니다.",
9
- acrossMergedCell: "병합된 셀을 가로지름",
10
- partOfCell: "병합된 셀의 일부만 선택됨",
11
- hideSheet: "이 시트를 숨기면 표시되는 시트가 없습니다."
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(복사본{0})`,sheet:`시트`},info:{overlappingSelections:`겹치는 영역에서는 해당 명령을 사용할 수 없습니다.`,acrossMergedCell:`병합된 셀을 가로지름`,partOfCell:`병합된 셀의 일부만 선택됨`,hideSheet:`이 시트를 숨기면 표시되는 시트가 없습니다.`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(Копия{0})",
5
- sheet: "Лист"
6
- },
7
- info: {
8
- overlappingSelections: "Невозможно использовать эту команду на пересекающихся выделениях",
9
- acrossMergedCell: "Через объединенную ячейку",
10
- partOfCell: "Выделена только часть объединенной ячейки",
11
- hideSheet: "После скрытия этого листа не будет видно ни одного листа"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(Копия{0})`,sheet:`Лист`},info:{overlappingSelections:`Невозможно использовать эту команду на пересекающихся выделениях`,acrossMergedCell:`Через объединенную ячейку`,partOfCell:`Выделена только часть объединенной ячейки`,hideSheet:`После скрытия этого листа не будет видно ни одного листа`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(Kópia{0})",
5
- sheet: "Hárok"
6
- },
7
- info: {
8
- overlappingSelections: "Na prekrývajúcich sa výberoch nie je možné použiť tento príkaz",
9
- acrossMergedCell: "Cez zlúčenú bunku",
10
- partOfCell: "Je vybraná iba časť zlúčenej bunky",
11
- hideSheet: "Po skrytí tohto hárka nebude viditeľný žiadny hárok"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(Kópia{0})`,sheet:`Hárok`},info:{overlappingSelections:`Na prekrývajúcich sa výberoch nie je možné použiť tento príkaz`,acrossMergedCell:`Cez zlúčenú bunku`,partOfCell:`Je vybraná iba časť zlúčenej bunky`,hideSheet:`Po skrytí tohto hárka nebude viditeľný žiadny hárok`}}};export{e as default};
@@ -1,17 +1 @@
1
- const h = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(Bản sao {0})",
5
- sheet: "Bảng tính"
6
- },
7
- info: {
8
- overlappingSelections: "Không thể sử dụng lệnh này trên các vùng chọn chồng chéo nhau",
9
- acrossMergedCell: "Không thể vượt qua các ô đã hợp nhất",
10
- partOfCell: "Chỉ chọn một phần của ô đã hợp nhất",
11
- hideSheet: "Không có bảng tính nào hiển thị sau khi ẩn"
12
- }
13
- }
14
- };
15
- export {
16
- h as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(Bản sao {0})`,sheet:`Bảng tính`},info:{overlappingSelections:`Không thể sử dụng lệnh này trên các vùng chọn chồng chéo nhau`,acrossMergedCell:`Không thể vượt qua các ô đã hợp nhất`,partOfCell:`Chỉ chọn một phần của ô đã hợp nhất`,hideSheet:`Không có bảng tính nào hiển thị sau khi ẩn`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(副本{0})",
5
- sheet: "工作表"
6
- },
7
- info: {
8
- overlappingSelections: "无法对重叠选区使用该命令",
9
- acrossMergedCell: "无法跨越合并单元格",
10
- partOfCell: "仅选择了合并单元格的一部分",
11
- hideSheet: "隐藏后无可见工作表"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(副本{0})`,sheet:`工作表`},info:{overlappingSelections:`无法对重叠选区使用该命令`,acrossMergedCell:`无法跨越合并单元格`,partOfCell:`仅选择了合并单元格的一部分`,hideSheet:`隐藏后无可见工作表`}}};export{e as default};
@@ -1,17 +1 @@
1
- const e = {
2
- sheets: {
3
- tabs: {
4
- sheetCopy: "(副本{0})",
5
- sheet: "工作表"
6
- },
7
- info: {
8
- overlappingSelections: "無法對重疊選區使用該命令",
9
- acrossMergedCell: "無法跨越合併儲存格",
10
- partOfCell: "僅選擇了合併儲存格的一部份",
11
- hideSheet: "隱藏後無可見工作表"
12
- }
13
- }
14
- };
15
- export {
16
- e as default
17
- };
1
+ const e={sheets:{tabs:{sheetCopy:`(副本{0})`,sheet:`工作表`},info:{overlappingSelections:`無法對重疊選區使用該命令`,acrossMergedCell:`無法跨越合併儲存格`,partOfCell:`僅選擇了合併儲存格的一部份`,hideSheet:`隱藏後無可見工作表`}}};export{e as default};
@@ -1,4 +1,19 @@
1
- import { ICellData, IStyleData, Nullable, Styles } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICellData, IStyleData, Nullable, Styles } from '@univerjs/core';
2
17
  /**
3
18
  *
4
19
  * @param styles
@@ -1,4 +1,20 @@
1
- import { CellValue, ICellData, Nullable, Styles, CellValueType } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { CellValue, ICellData, Nullable, Styles } from '@univerjs/core';
17
+ import { CellValueType } from '@univerjs/core';
2
18
  /**
3
19
  * Get cell value type by style, new value and old value.
4
20
  * If the new value contains t, then take t directly. In other cases, we need to dynamically determine based on actual data and styles
@@ -1,11 +1,27 @@
1
- import { ICellData, Nullable, CellValueType } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICellData, Nullable } from '@univerjs/core';
17
+ import { CellValueType } from '@univerjs/core';
2
18
  /**
3
19
  * Get cell value from new value by type
4
20
  * @param type
5
21
  * @param cell
6
22
  * @returns
7
23
  */
8
- export declare function getCellValue(type: Nullable<CellValueType>, cell: ICellData): void | import('@univerjs/core').CellValue | null;
24
+ export declare function getCellValue(type: Nullable<CellValueType>, cell: ICellData): void | import("@univerjs/core").CellValue | null;
9
25
  /**
10
26
  * Supplement the data of the cell, set the other value to NULL, Used to reset properties when undoing
11
27
  * @param value
@@ -1,19 +1,34 @@
1
- import { ICommandInfo, IRange, IUniverInstanceService } from '@univerjs/core';
2
- import { IMoveRangeMutationParams } from '../../commands/mutations/move-range.mutation';
3
- import { IMoveColumnsMutationParams, IMoveRowsMutationParams } from '../../commands/mutations/move-rows-cols.mutation';
4
- import { IReorderRangeMutationParams } from '../../commands/mutations/reorder-range.mutation';
5
- import { ISetColDataMutationParams } from '../../commands/mutations/set-col-data.mutation';
6
- import { ISetColHiddenMutationParams, ISetColVisibleMutationParams } from '../../commands/mutations/set-col-visible.mutation';
7
- import { ISetGridlinesColorMutationParams } from '../../commands/mutations/set-gridlines-color.mutation';
8
- import { ISetRangeValuesMutationParams } from '../../commands/mutations/set-range-values.mutation';
9
- import { ISetRowDataMutationParams } from '../../commands/mutations/set-row-data.mutation';
10
- import { ISetRowHiddenMutationParams, ISetRowVisibleMutationParams } from '../../commands/mutations/set-row-visible.mutation';
11
- import { ISetWorksheetColWidthMutationParams } from '../../commands/mutations/set-worksheet-col-width.mutation';
12
- import { ISetWorksheetDefaultStyleMutationParams } from '../../commands/mutations/set-worksheet-default-style.mutation';
13
- import { ISetWorksheetRowAutoHeightMutationParams, ISetWorksheetRowHeightMutationParams, ISetWorksheetRowIsAutoHeightMutationParams } from '../../commands/mutations/set-worksheet-row-height.mutation';
14
- import { IToggleGridlinesMutationParams } from '../../commands/mutations/toggle-gridlines.mutation';
15
- import { ISetWorksheetActiveOperationParams } from '../../commands/operations/set-worksheet-active.operation';
16
- import { IAddWorksheetMergeMutationParams, IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams, IRemoveWorksheetMergeMutationParams, IWorksheetRangeThemeStyleMutationParams } from '../interfaces';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommandInfo, IRange, IUniverInstanceService } from '@univerjs/core';
17
+ import type { IMoveRangeMutationParams } from '../../commands/mutations/move-range.mutation';
18
+ import type { IMoveColumnsMutationParams, IMoveRowsMutationParams } from '../../commands/mutations/move-rows-cols.mutation';
19
+ import type { IReorderRangeMutationParams } from '../../commands/mutations/reorder-range.mutation';
20
+ import type { ISetColDataMutationParams } from '../../commands/mutations/set-col-data.mutation';
21
+ import type { ISetColHiddenMutationParams, ISetColVisibleMutationParams } from '../../commands/mutations/set-col-visible.mutation';
22
+ import type { ISetGridlinesColorMutationParams } from '../../commands/mutations/set-gridlines-color.mutation';
23
+ import type { ISetRangeValuesMutationParams } from '../../commands/mutations/set-range-values.mutation';
24
+ import type { ISetRowDataMutationParams } from '../../commands/mutations/set-row-data.mutation';
25
+ import type { ISetRowHiddenMutationParams, ISetRowVisibleMutationParams } from '../../commands/mutations/set-row-visible.mutation';
26
+ import type { ISetWorksheetColWidthMutationParams } from '../../commands/mutations/set-worksheet-col-width.mutation';
27
+ import type { ISetWorksheetDefaultStyleMutationParams } from '../../commands/mutations/set-worksheet-default-style.mutation';
28
+ import type { ISetWorksheetRowAutoHeightMutationParams, ISetWorksheetRowHeightMutationParams, ISetWorksheetRowIsAutoHeightMutationParams } from '../../commands/mutations/set-worksheet-row-height.mutation';
29
+ import type { IToggleGridlinesMutationParams } from '../../commands/mutations/toggle-gridlines.mutation';
30
+ import type { ISetWorksheetActiveOperationParams } from '../../commands/operations/set-worksheet-active.operation';
31
+ import type { IAddWorksheetMergeMutationParams, IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams, IRemoveWorksheetMergeMutationParams, IWorksheetRangeThemeStyleMutationParams } from '../interfaces';
17
32
  /**
18
33
  * Enum for all skeleton change command IDs
19
34
  */
@@ -1,2 +1,17 @@
1
- import { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';
2
17
  export declare const DEFAULT_SPREADSHEET_PLUGIN_DATA: IUniverSheetsConfig;
@@ -1,4 +1,19 @@
1
- import { IRange, Worksheet } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IRange, Worksheet } from '@univerjs/core';
2
17
  export interface IExpandParams {
3
18
  left?: boolean;
4
19
  right?: boolean;
@@ -1,4 +1,19 @@
1
- import { BooleanNumber } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { BooleanNumber } from '@univerjs/core';
2
17
  /**
3
18
  * Column ruler data type
4
19
  */
@@ -1,4 +1,19 @@
1
- import { Dimension, ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IStyleData, IWorksheetData, Nullable } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { Dimension, ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IStyleData, IWorksheetData, Nullable } from '@univerjs/core';
2
17
  /** Params of `RemoveSheetMutation` */
3
18
  export interface IRemoveSheetMutationParams {
4
19
  subUnitId: string;
@@ -1,4 +1,19 @@
1
- import { IRange, IRangeCellData } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IRange, IRangeCellData } from '@univerjs/core';
2
17
  export interface ISelectionConfig {
3
18
  selection: IRange;
4
19
  cell?: IRangeCellData;
@@ -1,4 +1,19 @@
1
- import { ISelectionsConfig } from './selection-config';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ISelectionsConfig } from './selection-config';
2
17
  export interface IUniverSheetsConfig {
3
18
  selections: ISelectionsConfig;
4
19
  }
@@ -1,4 +1,20 @@
1
- import { IRange, ObjectMatrix } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IRange } from '@univerjs/core';
17
+ import { ObjectMatrix } from '@univerjs/core';
2
18
  export declare const createTopMatrixFromRanges: (ranges: IRange[]) => ObjectMatrix<number>;
3
19
  export declare const createTopMatrixFromMatrix: (matrix: ObjectMatrix<1>) => ObjectMatrix<number>;
4
20
  export declare const findAllRectangle: (topMatrix: ObjectMatrix<number>) => IRange[];
@@ -1,4 +1,19 @@
1
- import { IColumnData, IRowData, Nullable } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IColumnData, IRowData, Nullable } from '@univerjs/core';
2
17
  /**
3
18
  * Reset the row data to undefined when undoing the operation
4
19
  * @param currentRow
@@ -1,4 +1,19 @@
1
- import { ICellWithCoord, IRange, IRangeWithCoord, ISelection, ISelectionCell, Nullable } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICellWithCoord, IRange, IRangeWithCoord, ISelection, ISelectionCell, Nullable } from '@univerjs/core';
2
17
  export declare const SELECTION_CONTROL_BORDER_BUFFER_WIDTH = 1.5;
3
18
  export declare const SELECTION_CONTROL_BORDER_BUFFER_COLOR = "rgba(255, 255, 255, 0.01)";
4
19
  /**
@@ -1,3 +1,18 @@
1
- import { Worksheet } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { Worksheet } from '@univerjs/core';
2
17
  export declare function rowHeightByHeader(worksheet: Worksheet): number;
3
18
  export declare function columnWidthByHeader(worksheet: Worksheet): number;
@@ -1,4 +1,19 @@
1
- import { IRange, Worksheet } from '@univerjs/core';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IRange, Worksheet } from '@univerjs/core';
2
17
  /**
3
18
  * The default delimiter to split the text.
4
19
  */
@@ -1,5 +1,20 @@
1
- import { IAccessor, ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, UniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
2
- import { IDiscreteRange } from './interfaces';
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IAccessor, ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, UniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
17
+ import type { IDiscreteRange } from './interfaces';
3
18
  export declare const groupByKey: <T = Record<string, unknown>>(arr: T[], key: string, blankKey?: string) => Record<string, T[]>;
4
19
  export declare const createUniqueKey: (initValue?: number) => () => number;
5
20
  export declare function findFirstNonEmptyCell(range: IRange, worksheet: Worksheet): IRange | null;