@univerjs/core 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/lib/cjs/index.js +15323 -0
  4. package/lib/esm/index.js +14601 -0
  5. package/lib/types/basics/index.d.ts +6 -0
  6. package/lib/types/basics/index.d.ts.map +1 -0
  7. package/lib/types/basics/registry.d.ts +27 -0
  8. package/lib/types/basics/registry.d.ts.map +1 -0
  9. package/lib/types/basics/univer-doc.d.ts +20 -0
  10. package/lib/types/basics/univer-doc.d.ts.map +1 -0
  11. package/lib/types/basics/univer-sheet.d.ts +31 -0
  12. package/lib/types/basics/univer-sheet.d.ts.map +1 -0
  13. package/lib/types/basics/univer-slide.d.ts +29 -0
  14. package/lib/types/basics/univer-slide.d.ts.map +1 -0
  15. package/lib/types/basics/univer.d.ts +41 -0
  16. package/lib/types/basics/univer.d.ts.map +1 -0
  17. package/lib/types/common/array.d.ts +15 -0
  18. package/lib/types/common/array.d.ts.map +1 -0
  19. package/lib/types/common/color/color-builder.d.ts +1 -0
  20. package/lib/types/common/color/color-builder.d.ts.map +1 -0
  21. package/lib/types/common/const.d.ts +4 -0
  22. package/lib/types/common/const.d.ts.map +1 -0
  23. package/lib/types/common/interceptor.d.ts +21 -0
  24. package/lib/types/common/interceptor.d.ts.map +1 -0
  25. package/lib/types/common/memory-cursor.d.ts +6 -0
  26. package/lib/types/common/memory-cursor.d.ts.map +1 -0
  27. package/lib/types/common/sequence.d.ts +18 -0
  28. package/lib/types/common/sequence.d.ts.map +1 -0
  29. package/lib/types/common/type-utils.d.ts +5 -0
  30. package/lib/types/common/type-utils.d.ts.map +1 -0
  31. package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts +2 -0
  32. package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts.map +1 -0
  33. package/lib/types/docs/data-model/apply-utils/common.d.ts +30 -0
  34. package/lib/types/docs/data-model/apply-utils/common.d.ts.map +1 -0
  35. package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts +3 -0
  36. package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts.map +1 -0
  37. package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts +3 -0
  38. package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts.map +1 -0
  39. package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +5 -0
  40. package/lib/types/docs/data-model/apply-utils/update-apply.d.ts.map +1 -0
  41. package/lib/types/docs/data-model/document-data-model.d.ts +57 -0
  42. package/lib/types/docs/data-model/document-data-model.d.ts.map +1 -0
  43. package/lib/types/docs/data-model/index.d.ts +3 -0
  44. package/lib/types/docs/data-model/index.d.ts.map +1 -0
  45. package/lib/types/docs/data-model/mutation-types.d.ts +33 -0
  46. package/lib/types/docs/data-model/mutation-types.d.ts.map +1 -0
  47. package/lib/types/docs/data-model/types.d.ts +27 -0
  48. package/lib/types/docs/data-model/types.d.ts.map +1 -0
  49. package/lib/types/docs/index.d.ts +2 -0
  50. package/lib/types/docs/index.d.ts.map +1 -0
  51. package/lib/types/index.d.ts +42 -0
  52. package/lib/types/index.d.ts.map +1 -0
  53. package/lib/types/observer/index.d.ts +3 -0
  54. package/lib/types/observer/index.d.ts.map +1 -0
  55. package/lib/types/observer/observable-hooks.d.ts +19 -0
  56. package/lib/types/observer/observable-hooks.d.ts.map +1 -0
  57. package/lib/types/observer/observable.d.ts +170 -0
  58. package/lib/types/observer/observable.d.ts.map +1 -0
  59. package/lib/types/plugin/plugin.d.ts +49 -0
  60. package/lib/types/plugin/plugin.d.ts.map +1 -0
  61. package/lib/types/services/auth/auth.service.d.ts +3 -0
  62. package/lib/types/services/auth/auth.service.d.ts.map +1 -0
  63. package/lib/types/services/command/command.service.d.ts +117 -0
  64. package/lib/types/services/command/command.service.d.ts.map +1 -0
  65. package/lib/types/services/command/command.service.spec.d.ts +2 -0
  66. package/lib/types/services/command/command.service.spec.d.ts.map +1 -0
  67. package/lib/types/services/config/config.service.d.ts +18 -0
  68. package/lib/types/services/config/config.service.d.ts.map +1 -0
  69. package/lib/types/services/context/context.d.ts +8 -0
  70. package/lib/types/services/context/context.d.ts.map +1 -0
  71. package/lib/types/services/context/context.service.d.ts +17 -0
  72. package/lib/types/services/context/context.service.d.ts.map +1 -0
  73. package/lib/types/services/error/error.service.d.ts +11 -0
  74. package/lib/types/services/error/error.service.d.ts.map +1 -0
  75. package/lib/types/services/floating-object/floating-object-interfaces.d.ts +20 -0
  76. package/lib/types/services/floating-object/floating-object-interfaces.d.ts.map +1 -0
  77. package/lib/types/services/floating-object/floating-object-manager.service.d.ts +82 -0
  78. package/lib/types/services/floating-object/floating-object-manager.service.d.ts.map +1 -0
  79. package/lib/types/services/instance/instance.service.d.ts +113 -0
  80. package/lib/types/services/instance/instance.service.d.ts.map +1 -0
  81. package/lib/types/services/lifecycle/lifecycle.d.ts +36 -0
  82. package/lib/types/services/lifecycle/lifecycle.d.ts.map +1 -0
  83. package/lib/types/services/lifecycle/lifecycle.service.d.ts +23 -0
  84. package/lib/types/services/lifecycle/lifecycle.service.d.ts.map +1 -0
  85. package/lib/types/services/local-storage/local-storage.service.d.ts +12 -0
  86. package/lib/types/services/local-storage/local-storage.service.d.ts.map +1 -0
  87. package/lib/types/services/locale/locale.service.d.ts +26 -0
  88. package/lib/types/services/locale/locale.service.d.ts.map +1 -0
  89. package/lib/types/services/log/log.service.d.ts +18 -0
  90. package/lib/types/services/log/log.service.d.ts.map +1 -0
  91. package/lib/types/services/permission/index.d.ts +4 -0
  92. package/lib/types/services/permission/index.d.ts.map +1 -0
  93. package/lib/types/services/permission/permission-point.d.ts +9 -0
  94. package/lib/types/services/permission/permission-point.d.ts.map +1 -0
  95. package/lib/types/services/permission/permission.service.d.ts +31 -0
  96. package/lib/types/services/permission/permission.service.d.ts.map +1 -0
  97. package/lib/types/services/permission/univer.permission.service.d.ts +12 -0
  98. package/lib/types/services/permission/univer.permission.service.d.ts.map +1 -0
  99. package/lib/types/services/resource-manager/resource-manager.service.d.ts +25 -0
  100. package/lib/types/services/resource-manager/resource-manager.service.d.ts.map +1 -0
  101. package/lib/types/services/resource-manager/type.d.ts +23 -0
  102. package/lib/types/services/resource-manager/type.d.ts.map +1 -0
  103. package/lib/types/services/theme/theme.service.d.ts +14 -0
  104. package/lib/types/services/theme/theme.service.d.ts.map +1 -0
  105. package/lib/types/services/undoredo/undoredo.service.d.ts +79 -0
  106. package/lib/types/services/undoredo/undoredo.service.d.ts.map +1 -0
  107. package/lib/types/shared/__test__/object-matrix.spec.d.ts +2 -0
  108. package/lib/types/shared/__test__/object-matrix.spec.d.ts.map +1 -0
  109. package/lib/types/shared/__test__/ref-alias.spec.d.ts +2 -0
  110. package/lib/types/shared/__test__/ref-alias.spec.d.ts.map +1 -0
  111. package/lib/types/shared/array-search.d.ts +4 -0
  112. package/lib/types/shared/array-search.d.ts.map +1 -0
  113. package/lib/types/shared/color/color-builder.d.ts +21 -0
  114. package/lib/types/shared/color/color-builder.d.ts.map +1 -0
  115. package/lib/types/shared/color/color.d.ts +65 -0
  116. package/lib/types/shared/color/color.d.ts.map +1 -0
  117. package/lib/types/shared/color-builder.d.ts +1 -0
  118. package/lib/types/shared/color-builder.d.ts.map +1 -0
  119. package/lib/types/shared/command-enum.d.ts +6 -0
  120. package/lib/types/shared/command-enum.d.ts.map +1 -0
  121. package/lib/types/shared/common.d.ts +29 -0
  122. package/lib/types/shared/common.d.ts.map +1 -0
  123. package/lib/types/shared/compare.d.ts +8 -0
  124. package/lib/types/shared/compare.d.ts.map +1 -0
  125. package/lib/types/shared/date-time.d.ts +6 -0
  126. package/lib/types/shared/date-time.d.ts.map +1 -0
  127. package/lib/types/shared/doc-tool.d.ts +8 -0
  128. package/lib/types/shared/doc-tool.d.ts.map +1 -0
  129. package/lib/types/shared/drop-cell.d.ts +1 -0
  130. package/lib/types/shared/drop-cell.d.ts.map +1 -0
  131. package/lib/types/shared/excel-date-time.d.ts +6 -0
  132. package/lib/types/shared/excel-date-time.d.ts.map +1 -0
  133. package/lib/types/shared/gen-name.d.ts +9 -0
  134. package/lib/types/shared/gen-name.d.ts.map +1 -0
  135. package/lib/types/shared/generate.d.ts +7 -0
  136. package/lib/types/shared/generate.d.ts.map +1 -0
  137. package/lib/types/shared/group-model.d.ts +4 -0
  138. package/lib/types/shared/group-model.d.ts.map +1 -0
  139. package/lib/types/shared/hash-algorithm.d.ts +2 -0
  140. package/lib/types/shared/hash-algorithm.d.ts.map +1 -0
  141. package/lib/types/shared/index.d.ts +35 -0
  142. package/lib/types/shared/index.d.ts.map +1 -0
  143. package/lib/types/shared/io-http.d.ts +84 -0
  144. package/lib/types/shared/io-http.d.ts.map +1 -0
  145. package/lib/types/shared/io-socket.d.ts +48 -0
  146. package/lib/types/shared/io-socket.d.ts.map +1 -0
  147. package/lib/types/shared/lifecycle.d.ts +28 -0
  148. package/lib/types/shared/lifecycle.d.ts.map +1 -0
  149. package/lib/types/shared/locale.d.ts +10 -0
  150. package/lib/types/shared/locale.d.ts.map +1 -0
  151. package/lib/types/shared/logger.d.ts +12 -0
  152. package/lib/types/shared/logger.d.ts.map +1 -0
  153. package/lib/types/shared/lru/index.d.ts +3 -0
  154. package/lib/types/shared/lru/index.d.ts.map +1 -0
  155. package/lib/types/shared/lru/lru-helper.d.ts +8 -0
  156. package/lib/types/shared/lru/lru-helper.d.ts.map +1 -0
  157. package/lib/types/shared/lru/lru-map.d.ts +66 -0
  158. package/lib/types/shared/lru/lru-map.d.ts.map +1 -0
  159. package/lib/types/shared/migrate/border.d.ts +3 -0
  160. package/lib/types/shared/migrate/border.d.ts.map +1 -0
  161. package/lib/types/shared/migrate/index.d.ts +2 -0
  162. package/lib/types/shared/migrate/index.d.ts.map +1 -0
  163. package/lib/types/shared/migrate/migrate.d.ts +3 -0
  164. package/lib/types/shared/migrate/migrate.d.ts.map +1 -0
  165. package/lib/types/shared/object-array.d.ts +96 -0
  166. package/lib/types/shared/object-array.d.ts.map +1 -0
  167. package/lib/types/shared/object-matrix.d.ts +67 -0
  168. package/lib/types/shared/object-matrix.d.ts.map +1 -0
  169. package/lib/types/shared/permission/index.d.ts +13 -0
  170. package/lib/types/shared/permission/index.d.ts.map +1 -0
  171. package/lib/types/shared/props-from.d.ts +6 -0
  172. package/lib/types/shared/props-from.d.ts.map +1 -0
  173. package/lib/types/shared/random.d.ts +7 -0
  174. package/lib/types/shared/random.d.ts.map +1 -0
  175. package/lib/types/shared/rect-tree/border-tree.d.ts +30 -0
  176. package/lib/types/shared/rect-tree/border-tree.d.ts.map +1 -0
  177. package/lib/types/shared/rect-tree/es-rect-tree.d.ts +9 -0
  178. package/lib/types/shared/rect-tree/es-rect-tree.d.ts.map +1 -0
  179. package/lib/types/shared/rect-tree/merge-tree.d.ts +1 -0
  180. package/lib/types/shared/rect-tree/merge-tree.d.ts.map +1 -0
  181. package/lib/types/shared/rect-tree/quick-select.d.ts +3 -0
  182. package/lib/types/shared/rect-tree/quick-select.d.ts.map +1 -0
  183. package/lib/types/shared/rect-tree/rect-tree.d.ts +60 -0
  184. package/lib/types/shared/rect-tree/rect-tree.d.ts.map +1 -0
  185. package/lib/types/shared/rect-tree/styles-tree.d.ts +1 -0
  186. package/lib/types/shared/rect-tree/styles-tree.d.ts.map +1 -0
  187. package/lib/types/shared/rectangle.d.ts +20 -0
  188. package/lib/types/shared/rectangle.d.ts.map +1 -0
  189. package/lib/types/shared/ref-alias.d.ts +26 -0
  190. package/lib/types/shared/ref-alias.d.ts.map +1 -0
  191. package/lib/types/shared/row-col-iter.d.ts +5 -0
  192. package/lib/types/shared/row-col-iter.d.ts.map +1 -0
  193. package/lib/types/shared/sequence.d.ts +27 -0
  194. package/lib/types/shared/sequence.d.ts.map +1 -0
  195. package/lib/types/shared/serialize/index.d.ts +5 -0
  196. package/lib/types/shared/serialize/index.d.ts.map +1 -0
  197. package/lib/types/shared/serialize/sequence.d.ts +4 -0
  198. package/lib/types/shared/serialize/sequence.d.ts.map +1 -0
  199. package/lib/types/shared/serialize/serialize-manager.d.ts +17 -0
  200. package/lib/types/shared/serialize/serialize-manager.d.ts.map +1 -0
  201. package/lib/types/shared/serialize/serialize.d.ts +8 -0
  202. package/lib/types/shared/serialize/serialize.d.ts.map +1 -0
  203. package/lib/types/shared/serialize/serializer.d.ts +14 -0
  204. package/lib/types/shared/serialize/serializer.d.ts.map +1 -0
  205. package/lib/types/shared/sort-rules.d.ts +10 -0
  206. package/lib/types/shared/sort-rules.d.ts.map +1 -0
  207. package/lib/types/shared/tools.d.ts +103 -0
  208. package/lib/types/shared/tools.d.ts.map +1 -0
  209. package/lib/types/shared/tuples.d.ts +12 -0
  210. package/lib/types/shared/tuples.d.ts.map +1 -0
  211. package/lib/types/shared/type-store.d.ts +10 -0
  212. package/lib/types/shared/type-store.d.ts.map +1 -0
  213. package/lib/types/shared/types.d.ts +30 -0
  214. package/lib/types/shared/types.d.ts.map +1 -0
  215. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +16 -0
  216. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts.map +1 -0
  217. package/lib/types/sheets/__tests__/styles.spec.d.ts +2 -0
  218. package/lib/types/sheets/__tests__/styles.spec.d.ts.map +1 -0
  219. package/lib/types/sheets/column-manager.d.ts +51 -0
  220. package/lib/types/sheets/column-manager.d.ts.map +1 -0
  221. package/lib/types/sheets/range.d.ts +312 -0
  222. package/lib/types/sheets/range.d.ts.map +1 -0
  223. package/lib/types/sheets/reference.d.ts +46 -0
  224. package/lib/types/sheets/reference.d.ts.map +1 -0
  225. package/lib/types/sheets/row-manager.d.ts +41 -0
  226. package/lib/types/sheets/row-manager.d.ts.map +1 -0
  227. package/lib/types/sheets/styles.d.ts +23 -0
  228. package/lib/types/sheets/styles.d.ts.map +1 -0
  229. package/lib/types/sheets/view-model.d.ts +36 -0
  230. package/lib/types/sheets/view-model.d.ts.map +1 -0
  231. package/lib/types/sheets/workbook.d.ts +130 -0
  232. package/lib/types/sheets/workbook.d.ts.map +1 -0
  233. package/lib/types/sheets/worksheet.d.ts +180 -0
  234. package/lib/types/sheets/worksheet.d.ts.map +1 -0
  235. package/lib/types/slides/domain/index.d.ts +2 -0
  236. package/lib/types/slides/domain/index.d.ts.map +1 -0
  237. package/lib/types/slides/domain/slide-model.d.ts +20 -0
  238. package/lib/types/slides/domain/slide-model.d.ts.map +1 -0
  239. package/lib/types/types/const/action-names.d.ts +51 -0
  240. package/lib/types/types/const/action-names.d.ts.map +1 -0
  241. package/lib/types/types/const/const.d.ts +153 -0
  242. package/lib/types/types/const/const.d.ts.map +1 -0
  243. package/lib/types/types/const/doc-action-names.d.ts +7 -0
  244. package/lib/types/types/const/doc-action-names.d.ts.map +1 -0
  245. package/lib/types/types/const/extension-names.d.ts +8 -0
  246. package/lib/types/types/const/extension-names.d.ts.map +1 -0
  247. package/lib/types/types/const/index.d.ts +5 -0
  248. package/lib/types/types/const/index.d.ts.map +1 -0
  249. package/lib/types/types/const/theme-color-map.d.ts +8 -0
  250. package/lib/types/types/const/theme-color-map.d.ts.map +1 -0
  251. package/lib/types/types/enum/auto-fill-series.d.ts +19 -0
  252. package/lib/types/types/enum/auto-fill-series.d.ts.map +1 -0
  253. package/lib/types/types/enum/border-style-types.d.ts +32 -0
  254. package/lib/types/types/enum/border-style-types.d.ts.map +1 -0
  255. package/lib/types/types/enum/color-type.d.ts +10 -0
  256. package/lib/types/types/enum/color-type.d.ts.map +1 -0
  257. package/lib/types/types/enum/common-hide-types.d.ts +8 -0
  258. package/lib/types/types/enum/common-hide-types.d.ts.map +1 -0
  259. package/lib/types/types/enum/condition-type.d.ts +38 -0
  260. package/lib/types/types/enum/condition-type.d.ts.map +1 -0
  261. package/lib/types/types/enum/copy-paste-type.d.ts +17 -0
  262. package/lib/types/types/enum/copy-paste-type.d.ts.map +1 -0
  263. package/lib/types/types/enum/developer-metadata-visibility.d.ts +8 -0
  264. package/lib/types/types/enum/developer-metadata-visibility.d.ts.map +1 -0
  265. package/lib/types/types/enum/dimension.d.ts +16 -0
  266. package/lib/types/types/enum/dimension.d.ts.map +1 -0
  267. package/lib/types/types/enum/direction.d.ts +8 -0
  268. package/lib/types/types/enum/direction.d.ts.map +1 -0
  269. package/lib/types/types/enum/format-type.d.ts +15 -0
  270. package/lib/types/types/enum/format-type.d.ts.map +1 -0
  271. package/lib/types/types/enum/group-control-toggle-position.d.ts +8 -0
  272. package/lib/types/types/enum/group-control-toggle-position.d.ts.map +1 -0
  273. package/lib/types/types/enum/index.d.ts +19 -0
  274. package/lib/types/types/enum/index.d.ts.map +1 -0
  275. package/lib/types/types/enum/interpolation-point-type.d.ts +12 -0
  276. package/lib/types/types/enum/interpolation-point-type.d.ts.map +1 -0
  277. package/lib/types/types/enum/locale-type.d.ts +11 -0
  278. package/lib/types/types/enum/locale-type.d.ts.map +1 -0
  279. package/lib/types/types/enum/place-holder-type.d.ts +20 -0
  280. package/lib/types/types/enum/place-holder-type.d.ts.map +1 -0
  281. package/lib/types/types/enum/protection-type.d.ts +8 -0
  282. package/lib/types/types/enum/protection-type.d.ts.map +1 -0
  283. package/lib/types/types/enum/relative-date.d.ts +13 -0
  284. package/lib/types/types/enum/relative-date.d.ts.map +1 -0
  285. package/lib/types/types/enum/shape-type.d.ts +146 -0
  286. package/lib/types/types/enum/shape-type.d.ts.map +1 -0
  287. package/lib/types/types/enum/sheet-types.d.ts +9 -0
  288. package/lib/types/types/enum/sheet-types.d.ts.map +1 -0
  289. package/lib/types/types/enum/text-style.d.ts +119 -0
  290. package/lib/types/types/enum/text-style.d.ts.map +1 -0
  291. package/lib/types/types/enum/theme-color-type.d.ts +72 -0
  292. package/lib/types/types/enum/theme-color-type.d.ts.map +1 -0
  293. package/lib/types/types/interfaces/i-cell-data.d.ts +33 -0
  294. package/lib/types/types/interfaces/i-cell-data.d.ts.map +1 -0
  295. package/lib/types/types/interfaces/i-column-data.d.ts +15 -0
  296. package/lib/types/types/interfaces/i-column-data.d.ts.map +1 -0
  297. package/lib/types/types/interfaces/i-document-data.d.ts +666 -0
  298. package/lib/types/types/interfaces/i-document-data.d.ts.map +1 -0
  299. package/lib/types/types/interfaces/i-extra-model-data.d.ts +19 -0
  300. package/lib/types/types/interfaces/i-extra-model-data.d.ts.map +1 -0
  301. package/lib/types/types/interfaces/i-freeze.d.ts +11 -0
  302. package/lib/types/types/interfaces/i-freeze.d.ts.map +1 -0
  303. package/lib/types/types/interfaces/i-image-properties.d.ts +23 -0
  304. package/lib/types/types/interfaces/i-image-properties.d.ts.map +1 -0
  305. package/lib/types/types/interfaces/i-placeholder.d.ts +7 -0
  306. package/lib/types/types/interfaces/i-placeholder.d.ts.map +1 -0
  307. package/lib/types/types/interfaces/i-range.d.ts +161 -0
  308. package/lib/types/types/interfaces/i-range.d.ts.map +1 -0
  309. package/lib/types/types/interfaces/i-row-data.d.ts +23 -0
  310. package/lib/types/types/interfaces/i-row-data.d.ts.map +1 -0
  311. package/lib/types/types/interfaces/i-selection-data.d.ts +43 -0
  312. package/lib/types/types/interfaces/i-selection-data.d.ts.map +1 -0
  313. package/lib/types/types/interfaces/i-service-data.d.ts +6 -0
  314. package/lib/types/types/interfaces/i-service-data.d.ts.map +1 -0
  315. package/lib/types/types/interfaces/i-shape-properties.d.ts +16 -0
  316. package/lib/types/types/interfaces/i-shape-properties.d.ts.map +1 -0
  317. package/lib/types/types/interfaces/i-slide-data.d.ts +149 -0
  318. package/lib/types/types/interfaces/i-slide-data.d.ts.map +1 -0
  319. package/lib/types/types/interfaces/i-style-data.d.ts +150 -0
  320. package/lib/types/types/interfaces/i-style-data.d.ts.map +1 -0
  321. package/lib/types/types/interfaces/i-univer-data.d.ts +23 -0
  322. package/lib/types/types/interfaces/i-univer-data.d.ts.map +1 -0
  323. package/lib/types/types/interfaces/i-workbook-data.d.ts +30 -0
  324. package/lib/types/types/interfaces/i-workbook-data.d.ts.map +1 -0
  325. package/lib/types/types/interfaces/i-worksheet-data.d.ts +62 -0
  326. package/lib/types/types/interfaces/i-worksheet-data.d.ts.map +1 -0
  327. package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +6 -0
  328. package/lib/types/types/interfaces/i-worksheet-order-data.d.ts.map +1 -0
  329. package/lib/types/types/interfaces/index.d.ts +18 -0
  330. package/lib/types/types/interfaces/index.d.ts.map +1 -0
  331. package/package.json +59 -0
@@ -0,0 +1,6 @@
1
+ export * from './registry';
2
+ export * from './univer';
3
+ export * from './univer-doc';
4
+ export * from './univer-sheet';
5
+ export * from './univer-slide';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/basics/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Add extension modules statically when the plugin is initialized, so that the plugin can register these extension modules uniformly
3
+ *
4
+ * @privateRemarks
5
+ * zh: 在插件初始化的时候静态添加扩展模块,方便插件统一注册这些扩展模块
6
+ */
7
+ export declare class Registry {
8
+ private _data;
9
+ static create(): Registry;
10
+ add(dataInstance: any): void;
11
+ delete(dataInstance: any): void;
12
+ getData(): any[];
13
+ }
14
+ /**
15
+ * Add extension modules statically when the plugin is initialized, so that the plugin can register these extension modules uniformly
16
+ *
17
+ * @privateRemarks
18
+ * zh: 在插件初始化的时候静态添加扩展模块,方便插件统一注册这些扩展模块
19
+ */
20
+ export declare class RegistryAsMap {
21
+ private _data;
22
+ static create(): RegistryAsMap;
23
+ add(id: string, dataInstance: any): void;
24
+ delete(id: string): void;
25
+ getData(): Map<string, any>;
26
+ }
27
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/basics/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,QAAQ;IACjB,OAAO,CAAC,KAAK,CAAa;IAE1B,MAAM,CAAC,MAAM;IAIb,GAAG,CAAC,YAAY,EAAE,GAAG;IAOrB,MAAM,CAAC,YAAY,EAAE,GAAG;IAKxB,OAAO;CAGV;AAED;;;;;GAKG;AACH,qBAAa,aAAa;IACtB,OAAO,CAAC,KAAK,CAA+B;IAE5C,MAAM,CAAC,MAAM;IAIb,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG;IAOjC,MAAM,CAAC,EAAE,EAAE,MAAM;IAIjB,OAAO;CAGV"}
@@ -0,0 +1,20 @@
1
+ import { Injector } from '@wendellhu/redi';
2
+ import { DocumentDataModel } from '../docs/data-model/document-data-model';
3
+ import type { Plugin, PluginCtor } from '../plugin/plugin';
4
+ import { LifecycleInitializerService } from '../services/lifecycle/lifecycle.service';
5
+ import { Disposable } from '../shared/lifecycle';
6
+ import type { IDocumentData } from '../types/interfaces/i-document-data';
7
+ /**
8
+ * Externally provided UniverDoc root instance
9
+ */
10
+ export declare class UniverDoc extends Disposable {
11
+ private readonly _injector;
12
+ private readonly _initService;
13
+ private readonly _pluginStore;
14
+ constructor(_injector: Injector, _initService: LifecycleInitializerService);
15
+ start(): void;
16
+ ready(): void;
17
+ createDoc(docData: Partial<IDocumentData>): DocumentDataModel;
18
+ addPlugin<T extends Plugin>(pluginCtor: PluginCtor<T>, options: any): void;
19
+ }
20
+ //# sourceMappingURL=univer-doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"univer-doc.d.ts","sourceRoot":"","sources":["../../../src/basics/univer-doc.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG3D,OAAO,EAAE,2BAA2B,EAAoB,MAAM,yCAAyC,CAAC;AACxG,OAAO,EAAE,UAAU,EAAgB,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;GAEG;AACH,qBAAa,SAAU,SAAQ,UAAU;IAIf,OAAO,CAAC,QAAQ,CAAC,SAAS;IACP,OAAO,CAAC,QAAQ,CAAC,YAAY;IAJtE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;gBAGX,SAAS,EAAE,QAAQ,EACA,YAAY,EAAE,2BAA2B;IAKnG,KAAK,IAAI,IAAI;IAKb,KAAK,IAAI,IAAI;IA4Bb,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,iBAAiB;IAK7D,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,GAAG,IAAI;CAM7E"}
@@ -0,0 +1,31 @@
1
+ import type { IDisposable } from '@wendellhu/redi';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import type { Plugin, PluginCtor } from '../plugin/plugin';
4
+ import { LifecycleInitializerService } from '../services/lifecycle/lifecycle.service';
5
+ import { Disposable } from '../shared/lifecycle';
6
+ import { Workbook } from '../sheets/workbook';
7
+ import type { IWorkbookData } from '../types/interfaces/i-workbook-data';
8
+ /**
9
+ * Externally provided UniverSheet root instance
10
+ */
11
+ export declare class UniverSheet extends Disposable implements IDisposable {
12
+ private readonly _injector;
13
+ private readonly _initService;
14
+ private readonly _pluginStore;
15
+ constructor(_injector: Injector, _initService: LifecycleInitializerService);
16
+ start(): void;
17
+ ready(): void;
18
+ createSheet(workbookConfig: Partial<IWorkbookData>): Workbook;
19
+ dispose(): void;
20
+ /**
21
+ * Add a plugin into UniverSheet. UniverSheet should add dependencies exposed from this plugin to its DI system.
22
+ *
23
+ * @param plugin constructor of the plugin class
24
+ * @param options options to this plugin
25
+ *
26
+ * @internal
27
+ */
28
+ addPlugin<T extends Plugin>(plugin: PluginCtor<T>, options: any): void;
29
+ private _initDependencies;
30
+ }
31
+ //# sourceMappingURL=univer-sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"univer-sheet.d.ts","sourceRoot":"","sources":["../../../src/basics/univer-sheet.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG3D,OAAO,EAAE,2BAA2B,EAAoB,MAAM,yCAAyC,CAAC;AACxG,OAAO,EAAE,UAAU,EAAgB,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;GAEG;AACH,qBAAa,WAAY,SAAQ,UAAW,YAAW,WAAW;IAIxC,OAAO,CAAC,QAAQ,CAAC,SAAS;IACP,OAAO,CAAC,QAAQ,CAAC,YAAY;IAJtE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;gBAGX,SAAS,EAAE,QAAQ,EACA,YAAY,EAAE,2BAA2B;IAOnG,KAAK,IAAI,IAAI;IAKb,KAAK,IAAI,IAAI;IA4Bb,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,QAAQ;IAKpD,OAAO,IAAI,IAAI;IAMxB;;;;;;;OAOG;IACH,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,GAAG,IAAI;IAKtE,OAAO,CAAC,iBAAiB;CAI5B"}
@@ -0,0 +1,29 @@
1
+ import { Injector } from '@wendellhu/redi';
2
+ import type { Plugin, PluginCtor } from '../plugin/plugin';
3
+ import { LifecycleInitializerService, LifecycleService } from '../services/lifecycle/lifecycle.service';
4
+ import { Disposable } from '../shared/lifecycle';
5
+ import { Slide } from '../slides/domain/slide-model';
6
+ import type { ISlideData } from '../types/interfaces/i-slide-data';
7
+ /**
8
+ * Externally provided UniverSlide root instance
9
+ */
10
+ export declare class UniverSlide extends Disposable {
11
+ private readonly _injector;
12
+ private readonly _lifecycleService;
13
+ private readonly _initializerService;
14
+ private readonly _pluginStore;
15
+ constructor(_injector: Injector, _lifecycleService: LifecycleService, _initializerService: LifecycleInitializerService);
16
+ start(): void;
17
+ ready(): void;
18
+ createSlide(data: Partial<ISlideData>): Slide;
19
+ /**
20
+ * Add a plugin into UniverSlide. UniverSlide should add dependencies exposed from this plugin to its DI system.
21
+ *
22
+ * @param plugin constructor of the plugin class
23
+ * @param options options to this plugin
24
+ *
25
+ * @internal
26
+ */
27
+ addPlugin<T extends Plugin>(plugin: PluginCtor<T>, options: any): void;
28
+ }
29
+ //# sourceMappingURL=univer-slide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"univer-slide.d.ts","sourceRoot":"","sources":["../../../src/basics/univer-slide.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG3D,OAAO,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AACxG,OAAO,EAAE,UAAU,EAAgB,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEnE;;GAEG;AACH,qBAAa,WAAY,SAAQ,UAAU;IAIjB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAClB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IACvB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAL7E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;gBAGX,SAAS,EAAE,QAAQ,EACX,iBAAiB,EAAE,gBAAgB,EACxB,mBAAmB,EAAE,2BAA2B;IAK1G,KAAK,IAAI,IAAI;IAKb,KAAK,IAAI,IAAI;IAyBb,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,KAAK;IAK7C;;;;;;;OAOG;IAEH,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,GAAG,IAAI;CAKzE"}
@@ -0,0 +1,41 @@
1
+ import { Injector } from '@wendellhu/redi';
2
+ import type { DocumentDataModel } from '../docs/data-model/document-data-model';
3
+ import type { Plugin, PluginCtor } from '../plugin/plugin';
4
+ import type { Workbook } from '../sheets/workbook';
5
+ import type { Slide } from '../slides/domain/slide-model';
6
+ import type { LocaleType } from '../types/enum/locale-type';
7
+ import type { IDocumentData, ISlideData, IUniverData, IWorkbookData } from '../types/interfaces';
8
+ /**
9
+ * Univer.
10
+ */
11
+ export declare class Univer {
12
+ private readonly _rootInjector;
13
+ private readonly _univerPluginStore;
14
+ private readonly _univerPluginRegistry;
15
+ private _univerSheet;
16
+ private _univerDoc;
17
+ private _univerSlide;
18
+ private get _univerInstanceService();
19
+ constructor(univerData?: Partial<IUniverData>);
20
+ __getInjector(): Injector;
21
+ dispose(): void;
22
+ /** Register a plugin into univer. */
23
+ registerPlugin<T extends Plugin>(plugin: PluginCtor<T>, configs?: any): void;
24
+ setLocale(locale: LocaleType): void;
25
+ /**
26
+ * Create a univer sheet instance with internal dependency injection.
27
+ */
28
+ createUniverSheet(config: Partial<IWorkbookData>): Workbook;
29
+ createUniverDoc(config: Partial<IDocumentData>): DocumentDataModel;
30
+ createUniverSlide(config: Partial<ISlideData>): Slide;
31
+ private _initDependencies;
32
+ private _tryStart;
33
+ private _tryProgressToReady;
34
+ private _registerUniverPlugin;
35
+ private _registerSheetsPlugin;
36
+ private _registerDocsPlugin;
37
+ private _registerSlidesPlugin;
38
+ private _initializePluginsForDoc;
39
+ private _initializePluginsForSlide;
40
+ }
41
+ //# sourceMappingURL=univer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"univer.d.ts","sourceRoot":"","sources":["../../../src/basics/univer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAsB3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKjG;;GAEG;AACH,qBAAa,MAAM;IACf,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAW;IAEzC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAwB;IAE9D,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,YAAY,CAA4B;IAEhD,OAAO,KAAK,sBAAsB,GAEjC;gBAEW,UAAU,GAAE,OAAO,CAAC,WAAW,CAAM;IASjD,aAAa,IAAI,QAAQ;IAIzB,OAAO,IAAI,IAAI;IAIf,qCAAqC;IACrC,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI;IAc5E,SAAS,CAAC,MAAM,EAAE,UAAU;IAI5B;;OAEG;IACH,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,QAAQ;IA0B3D,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,iBAAiB;IA0BlE,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,KAAK;IAyBrD,OAAO,CAAC,iBAAiB;IAmCzB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,qBAAqB;IAY7B,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,0BAA0B;CAMrC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Remove an item from an array.
3
+ * @param arr The array to remove item from.
4
+ * @param item The item to be removed.
5
+ * @returns Returns `true` if the item is removed successfully. Returns `false` if the item does not exist in the array.
6
+ */
7
+ export declare function remove<T>(arr: T[], item: T): boolean;
8
+ /**
9
+ * Deduplicate an array.
10
+ * @param arr The array to be dedupe.
11
+ * @returns Return the deduplicated array.
12
+ */
13
+ export declare function dedupe<T>(arr: T[]): T[];
14
+ export declare function findLast<T>(arr: T[], callback: (item: T, index: number) => boolean): T | null;
15
+ //# sourceMappingURL=array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/common/array.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAOpD;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAUvC;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,CAAC,GAAG,IAAI,CAS7F"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=color-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-builder.d.ts","sourceRoot":"","sources":["../../../../src/common/color/color-builder.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare const DOCS_NORMAL_EDITOR_UNIT_ID_KEY = "__defaultDocumentNormalEditorSpecialUnitId_20231006__";
2
+ export declare const DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__";
3
+ export declare const DEFAULT_EMPTY_DOCUMENT_VALUE = "\r\n";
4
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/common/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,0DAA0D,CAAC;AAEtG,eAAO,MAAM,mCAAmC,8DAA8D,CAAC;AAE/G,eAAO,MAAM,4BAA4B,SAAS,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { Nullable } from './type-utils';
2
+ export type InterceptorHandler<M = unknown, C = unknown> = (value: Nullable<M>, context: C, next: (value: Nullable<M>) => Nullable<M>) => Nullable<M>;
3
+ export interface IInterceptor<M, C> {
4
+ priority?: number;
5
+ handler: InterceptorHandler<M, C>;
6
+ }
7
+ export declare const createInterceptorKey: <T = any, C = any>(key: string) => IInterceptor<T, C>;
8
+ export type IComposeInterceptors<T = any, C = any> = (interceptors: Array<IInterceptor<T, C>>) => (initValue: Nullable<T>, initContext: C) => Nullable<T>;
9
+ /**
10
+ * A helper to compose a certain type of interceptors.
11
+ */
12
+ export declare const composeInterceptors: <T, C>(interceptors: IInterceptor<T, C>[]) => (initValue: Nullable<T>, initContext: C) => Nullable<T>;
13
+ export declare class InterceptorManager<P extends Record<string, IInterceptor<any, any>>> {
14
+ private _interceptorsByName;
15
+ private _interceptorPoints;
16
+ constructor(interceptorPoints: P);
17
+ fetchThroughInterceptors<T, C>(name: IInterceptor<T, C>): (initValue: Nullable<T>, initContext: C) => Nullable<T>;
18
+ intercept<T extends IInterceptor<any, any>>(name: T, interceptor: T): () => boolean;
19
+ getInterceptPoints(): P;
20
+ }
21
+ //# sourceMappingURL=interceptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interceptor.d.ts","sourceRoot":"","sources":["../../../src/common/interceptor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,CACvD,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAClB,OAAO,EAAE,CAAC,EACV,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,KACxC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAEjB,MAAM,WAAW,YAAY,CAAC,CAAC,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,oBAAoB,0BAA2B,MAAM,uBAGjE,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,CACjD,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KACtC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,mBAAmB,uGAwBe,CAAC;AAEhD,qBAAa,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5E,OAAO,CAAC,mBAAmB,CAAiE;IAC5F,OAAO,CAAC,kBAAkB,CAAI;gBAElB,iBAAiB,EAAE,CAAC;IAIhC,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC;IAMvD,SAAS,CAAC,CAAC,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC;IAenE,kBAAkB;CAGrB"}
@@ -0,0 +1,6 @@
1
+ export declare class MemoryCursor {
2
+ cursor: number;
3
+ reset(): this;
4
+ moveCursor(pos: number): void;
5
+ }
6
+ //# sourceMappingURL=memory-cursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-cursor.d.ts","sourceRoot":"","sources":["../../../src/common/memory-cursor.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACrB,MAAM,EAAE,MAAM,CAAK;IAEnB,KAAK;IAKL,UAAU,CAAC,GAAG,EAAE,MAAM;CAGzB"}
@@ -0,0 +1,18 @@
1
+ export interface ISequenceExecuteResult {
2
+ index: number;
3
+ result: boolean;
4
+ error?: unknown;
5
+ }
6
+ /**
7
+ * Execute promise tasks in sequence, if one of the tasks return false, the sequence will be stopped.
8
+ * @param tasks All promise tasks that need to be triggered.
9
+ * @returns Returns `true` if all tasks are executed successfully, otherwise `false` and index of the task that returns false.
10
+ */
11
+ export declare function sequenceAsync(tasks: Array<() => Promise<boolean> | boolean>): Promise<ISequenceExecuteResult>;
12
+ /**
13
+ * Execute tasks in sequence, if one of the tasks return false, the sequence will be stopped.
14
+ * @param tasks All tasks that need to be triggered.
15
+ * @returns Returns `true` if all tasks are executed successfully, otherwise `false` and index of the task that returns false.
16
+ */
17
+ export declare function sequence(tasks: Array<() => boolean>): ISequenceExecuteResult;
18
+ //# sourceMappingURL=sequence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sequence.d.ts","sourceRoot":"","sources":["../../../src/common/sequence.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAuBnH;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,GAAG,sBAAsB,CAuB5E"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Alias type for value that can be null
3
+ */
4
+ export type Nullable<T> = T | null | undefined | void;
5
+ //# sourceMappingURL=type-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-utils.d.ts","sourceRoot":"","sources":["../../../src/common/type-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=apply-utils.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-utils.spec.d.ts","sourceRoot":"","sources":["../../../../../src/docs/data-model/__tests__/apply-utils.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import type { ICustomBlock, ICustomRange, IDocumentBody, IParagraph, ISectionBreak, ITable, ITextRun } from '../../../types/interfaces';
2
+ export declare function normalizeTextRuns(textRuns: ITextRun[]): ITextRun[];
3
+ /**
4
+ * Inserting styled text content into the current document model.
5
+ * @param body The current content object of the document model.
6
+ * @param insertBody The newly added content object that includes complete text and textRun style information.
7
+ * @param textLength The length of the inserted content text.
8
+ * @param currentIndex Determining the index where the content will be inserted into the current content.
9
+ */
10
+ export declare function insertTextRuns(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
11
+ /**
12
+ * Based on the insertBody parameter, which includes a paragraph object,
13
+ * you can add and adjust the position of paragraphs.
14
+ * @param body The current content object of the document model.
15
+ * @param insertBody The newly added content object that includes paragraph information.
16
+ * @param textLength The length of the inserted content text.
17
+ * @param currentIndex Determining the index where the content will be inserted into the current content.
18
+ */
19
+ export declare function insertParagraphs(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
20
+ export declare function insertSectionBreaks(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
21
+ export declare function insertCustomBlocks(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
22
+ export declare function insertTables(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
23
+ export declare function insertCustomRanges(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
24
+ export declare function deleteTextRuns(body: IDocumentBody, textLength: number, currentIndex: number): ITextRun[];
25
+ export declare function deleteParagraphs(body: IDocumentBody, textLength: number, currentIndex: number): IParagraph[];
26
+ export declare function deleteSectionBreaks(body: IDocumentBody, textLength: number, currentIndex: number): ISectionBreak[];
27
+ export declare function deleteCustomBlocks(body: IDocumentBody, textLength: number, currentIndex: number): ICustomBlock[];
28
+ export declare function deleteTables(body: IDocumentBody, textLength: number, currentIndex: number): ITable[];
29
+ export declare function deleteCustomRanges(body: IDocumentBody, textLength: number, currentIndex: number): ICustomRange[];
30
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/docs/data-model/apply-utils/common.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,YAAY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,YAAY,EAAE,MAAM,mBA2BhG;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBA2B/F;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,YAiCzF;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAiC/F"}
@@ -0,0 +1,3 @@
1
+ import type { IDocumentBody } from '../../../types/interfaces';
2
+ export declare function updateAttributeByDelete(body: IDocumentBody, textLength: number, currentIndex: number): IDocumentBody;
3
+ //# sourceMappingURL=delete-apply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-apply.d.ts","sourceRoot":"","sources":["../../../../../src/docs/data-model/apply-utils/delete-apply.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAU/D,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,aAAa,CAmCpH"}
@@ -0,0 +1,3 @@
1
+ import type { IDocumentBody } from '../../../types/interfaces';
2
+ export declare function updateAttributeByInsert(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
3
+ //# sourceMappingURL=insert-apply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-apply.d.ts","sourceRoot":"","sources":["../../../../../src/docs/data-model/apply-utils/insert-apply.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAU/D,wBAAgB,uBAAuB,CACnC,IAAI,EAAE,aAAa,EACnB,UAAU,EAAE,aAAa,EACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,QAevB"}
@@ -0,0 +1,5 @@
1
+ import { UpdateDocsAttributeType } from '../../../shared';
2
+ import type { IDocumentBody, ITextRun } from '../../../types/interfaces';
3
+ export declare function updateAttribute(body: IDocumentBody, updateBody: IDocumentBody, textLength: number, currentIndex: number, coverType: UpdateDocsAttributeType): IDocumentBody;
4
+ export declare function coverTextRuns(updateDataTextRuns: ITextRun[], removeTextRuns: ITextRun[], coverType: UpdateDocsAttributeType): ITextRun[];
5
+ //# sourceMappingURL=update-apply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-apply.d.ts","sourceRoot":"","sources":["../../../../../src/docs/data-model/apply-utils/update-apply.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAGR,aAAa,EAIb,QAAQ,EACX,MAAM,2BAA2B,CAAC;AAenC,wBAAgB,eAAe,CAC3B,IAAI,EAAE,aAAa,EACnB,UAAU,EAAE,aAAa,EACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,uBAAuB,GACnC,aAAa,CAsBf;AA6BD,wBAAgB,aAAa,CACzB,kBAAkB,EAAE,QAAQ,EAAE,EAC9B,cAAc,EAAE,QAAQ,EAAE,EAC1B,SAAS,EAAE,uBAAuB,cAiGrC"}
@@ -0,0 +1,57 @@
1
+ import type { IDocumentBody, IDocumentData, IDocumentRenderConfig } from '../../types/interfaces/i-document-data';
2
+ import { type IPaddingData } from '../../types/interfaces/i-style-data';
3
+ import { type DocMutationParams } from './mutation-types';
4
+ export declare const DEFAULT_DOC: {
5
+ id: string;
6
+ documentStyle: {};
7
+ };
8
+ interface IDrawingUpdateConfig {
9
+ left: number;
10
+ top: number;
11
+ height: number;
12
+ width: number;
13
+ }
14
+ declare class DocumentDataModelSimple {
15
+ snapshot: IDocumentData;
16
+ constructor(snapshot: Partial<IDocumentData>);
17
+ get drawings(): import("../../types/interfaces/i-document-data").IDrawings | undefined;
18
+ get documentStyle(): import("../../types/interfaces/i-document-data").IDocumentStyle;
19
+ get lists(): import("../../types/interfaces/i-document-data").ILists | undefined;
20
+ /**
21
+ * @deprecated use getBody to instead.
22
+ */
23
+ get body(): IDocumentBody | undefined;
24
+ get zoomRatio(): number;
25
+ getBody(): IDocumentBody | undefined;
26
+ getShouldRenderLoopImmediately(): boolean;
27
+ getContainer(): string | undefined;
28
+ getParentRenderUnitId(): string | undefined;
29
+ getSnapshot(): IDocumentData;
30
+ updateDocumentId(unitId: string): void;
31
+ updateDocumentRenderConfig(config: IDocumentRenderConfig): void;
32
+ updateDocumentDataMargin(data: IPaddingData): void;
33
+ updateDocumentDataPageSize(width?: number, height?: number): void;
34
+ updateDrawing(id: string, config: IDrawingUpdateConfig): void;
35
+ setZoomRatio(zoomRatio?: number): void;
36
+ }
37
+ export declare class DocumentDataModel extends DocumentDataModelSimple {
38
+ private _unitId;
39
+ headerModelMap: Map<string, DocumentDataModel>;
40
+ footerModelMap: Map<string, DocumentDataModel>;
41
+ constructor(snapshot: Partial<IDocumentData>);
42
+ dispose(): void;
43
+ getRev(): number;
44
+ incrementRev(): void;
45
+ getSettings(): import("../../types/interfaces/i-document-data").IDocumentSettings | undefined;
46
+ reset(snapshot: Partial<IDocumentData>): void;
47
+ getSelfOrHeaderFooterModel(segmentId?: string): DocumentDataModel;
48
+ getUnitId(): string;
49
+ apply(mutations: DocMutationParams[]): DocMutationParams[];
50
+ private _updateApply;
51
+ private _deleteApply;
52
+ private _insertApply;
53
+ private _initializeHeaderFooterModel;
54
+ updateDocumentId(unitId: string): void;
55
+ }
56
+ export {};
57
+ //# sourceMappingURL=document-data-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-data-model.d.ts","sourceRoot":"","sources":["../../../../src/docs/data-model/document-data-model.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAClH,OAAO,EAAE,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EAAE,OAAO,CAAC,aAAa,CAAC;IAStC,0BAA0B,CAAC,SAAS,CAAC,EAAE,MAAM;IAc7C,SAAS,IAAI,MAAM;IAInB,KAAK,CAAC,SAAS,EAAE,iBAAiB,EAAE;IA6DpC,OAAO,CAAC,YAAY;IAsBpB,OAAO,CAAC,YAAY;IAqBpB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,4BAA4B;IAkB3B,gBAAgB,CAAC,MAAM,EAAE,MAAM;CAK3C"}
@@ -0,0 +1,3 @@
1
+ export * from './document-data-model';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/docs/data-model/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { UpdateDocsAttributeType } from '../../shared/command-enum';
2
+ import type { IDocumentBody } from '../../types/interfaces/i-document-data';
3
+ /**
4
+ * Retain mutation is used to move the cursor or to update properties of the text in the given range.
5
+ */
6
+ export interface IRetainMutationParams {
7
+ t: 'r';
8
+ len: number;
9
+ body?: IDocumentBody;
10
+ coverType?: UpdateDocsAttributeType;
11
+ segmentId?: string;
12
+ }
13
+ /**
14
+ * Insert mutation is used to insert text (maybe with rich text properties) at the given position.
15
+ */
16
+ export interface IInsertMutationParams {
17
+ t: 'i';
18
+ body: IDocumentBody;
19
+ len: number;
20
+ line: number;
21
+ segmentId?: string;
22
+ }
23
+ /**
24
+ * Delete mutation is used to delete text at the given position.
25
+ */
26
+ export interface IDeleteMutationParams {
27
+ t: 'd';
28
+ line: number;
29
+ len: number;
30
+ segmentId?: string;
31
+ }
32
+ export type DocMutationParams = IRetainMutationParams | IInsertMutationParams | IDeleteMutationParams;
33
+ //# sourceMappingURL=mutation-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-types.d.ts","sourceRoot":"","sources":["../../../../src/docs/data-model/mutation-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,CAAC,EAAE,GAAG,CAAC;IACP,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,CAAC,EAAE,GAAG,CAAC;IACP,IAAI,EAAE,aAAa,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,CAAC,EAAE,GAAG,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,qBAAqB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare enum DataStreamTreeNodeType {
2
+ PARAGRAPH = 0,// \r 段落
3
+ SECTION_BREAK = 1,// \n 章节
4
+ TABLE = 2,
5
+ TABLE_ROW = 3,
6
+ TABLE_CELL = 4
7
+ }
8
+ export declare enum DataStreamTreeTokenType {
9
+ PARAGRAPH = "\r",// 段落
10
+ SECTION_BREAK = "\n",// 章节
11
+ TABLE_START = "\u001A",// 表格开始
12
+ TABLE_ROW_START = "\u001B",// 表格开始
13
+ TABLE_CELL_START = "\u001C",// 表格开始
14
+ TABLE_CELL_END = "\u001D",// 表格开始
15
+ TABLE_ROW_END = "\u001E",// 表格开始
16
+ TABLE_END = "\u001F",// 表格结束
17
+ CUSTOM_RANGE_START = "\u001F",// 自定义范围开始
18
+ CUSTOM_RANGE_END = "\u001E",// 自定义范围结束
19
+ COLUMN_BREAK = "\v",// 换列
20
+ PAGE_BREAK = "\f",// 换页
21
+ DOCS_END = "\0",// 文档结尾
22
+ TAB = "\t",// 制表符
23
+ CUSTOM_BLOCK = "\b",// 图片 mention等不参与文档流的场景
24
+ LETTER = "",
25
+ SPACE = " "
26
+ }
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/docs/data-model/types.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAK9B,SAAS,IAAA,CAAE,SAAS;IACpB,aAAa,IAAA,CAAE,SAAS;IACxB,KAAK,IAAA;IACL,SAAS,IAAA;IACT,UAAU,IAAA;CAUb;AAED,oBAAY,uBAAuB;IAC/B,SAAS,OAAO,CAAE,KAAK;IACvB,aAAa,OAAO,CAAE,KAAK;IAC3B,WAAW,WAAS,CAAE,OAAO;IAC7B,eAAe,WAAS,CAAE,OAAO;IACjC,gBAAgB,WAAS,CAAE,OAAO;IAClC,cAAc,WAAS,CAAE,OAAO;IAChC,aAAa,WAAS,CAAE,OAAO;IAC/B,SAAS,WAAS,CAAE,OAAO;IAC3B,kBAAkB,WAAS,CAAE,UAAU;IACvC,gBAAgB,WAAS,CAAE,UAAU;IAErC,YAAY,OAAO,CAAE,KAAK;IAC1B,UAAU,OAAO,CAAE,KAAK;IACxB,QAAQ,OAAO,CAAE,OAAO;IACxB,GAAG,OAAO,CAAE,MAAM;IAClB,YAAY,OAAO,CAAE,uBAAuB;IAE5C,MAAM,KAAK;IAEX,KAAK,MAAM;CACd"}
@@ -0,0 +1,2 @@
1
+ export * from './data-model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/docs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,42 @@
1
+ export * from './basics';
2
+ export { dedupe, remove } from './common/array';
3
+ export { DEFAULT_EMPTY_DOCUMENT_VALUE, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, } from './common/const';
4
+ export { MemoryCursor } from './common/memory-cursor';
5
+ export { type ISequenceExecuteResult, sequence, sequenceAsync } from './common/sequence';
6
+ export * from './docs/data-model';
7
+ export { type DocMutationParams, type IDeleteMutationParams, type IInsertMutationParams, type IRetainMutationParams, } from './docs/data-model/mutation-types';
8
+ export * from './observer';
9
+ export { Plugin, PluginType } from './plugin/plugin';
10
+ export { type CommandListener, CommandService, CommandType, type ICommand, type ICommandInfo, ICommandService, type IExecutionOptions, type IMultiCommand, type IMutation, type IMutationCommonParams, type IMutationInfo, type IOperation, type IOperationInfo, sequenceExecute, sequenceExecuteAsync, } from './services/command/command.service';
11
+ export { IConfigService } from './services/config/config.service';
12
+ export * from './services/context/context';
13
+ export { ContextService, IContextService } from './services/context/context.service';
14
+ export { ErrorService, type IError } from './services/error/error.service';
15
+ export type { IOffset, IScale, ISize, ITransformState } from './services/floating-object/floating-object-interfaces';
16
+ export { DEFAULT_DOCUMENT_SUB_COMPONENT_ID, FloatingObjectManagerService, type IFloatingObjectManagerParam, type IFloatingObjectManagerSearchItemParam, IFloatingObjectManagerService, } from './services/floating-object/floating-object-manager.service';
17
+ export { DocumentType, IUniverInstanceService } from './services/instance/instance.service';
18
+ export { LifecycleStages, OnLifecycle, runOnLifecycle } from './services/lifecycle/lifecycle';
19
+ export { LifecycleService } from './services/lifecycle/lifecycle.service';
20
+ export { ILocalStorageService } from './services/local-storage/local-storage.service';
21
+ export { LocaleService } from './services/locale/locale.service';
22
+ export { DesktopLogService, ILogService } from './services/log/log.service';
23
+ export { IPermissionService, PermissionService, UniverEditablePermission, UniverEditablePermissionPoint, UniverPermissionService, } from './services/permission';
24
+ export { ResourceManagerService } from './services/resource-manager/resource-manager.service';
25
+ export type { IResourceHook } from './services/resource-manager/type';
26
+ export { IResourceManagerService } from './services/resource-manager/type';
27
+ export { type IStyleSheet, ThemeService } from './services/theme/theme.service';
28
+ export { type IUndoRedoCommandInfos, type IUndoRedoItem, IUndoRedoService, type IUndoRedoStatus, LocalUndoRedoService, RedoCommand, UndoCommand, } from './services/undoredo/undoredo.service';
29
+ export * from './shared';
30
+ export type { IComposeInterceptors, IInterceptor, InterceptorHandler } from './common/interceptor';
31
+ export { composeInterceptors, createInterceptorKey, InterceptorManager } from './common/interceptor';
32
+ export { Range } from './sheets/range';
33
+ export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, } from './sheets/reference';
34
+ export { Styles } from './sheets/styles';
35
+ export { SheetViewModel } from './sheets/view-model';
36
+ export { getWorksheetUID, Workbook } from './sheets/workbook';
37
+ export { Worksheet } from './sheets/worksheet';
38
+ export * from './slides/domain';
39
+ export * from './types/const';
40
+ export * from './types/enum';
41
+ export * from './types/interfaces';
42
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EACH,4BAA4B,EAC5B,mCAAmC,EACnC,8BAA8B,GACjC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,KAAK,sBAAsB,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACzF,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,E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.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observer/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { Nullable } from '../shared/types';
2
+ import type { EventState } from './observable';
3
+ import { Observable, Observer } from './observable';
4
+ /**
5
+ * Observable Hooks
6
+ */
7
+ export declare class ObservableHooks<T> extends Observable<T> {
8
+ /**
9
+ * Create a new WorkBookObserver with the specified callback
10
+ * @param callback the callback that will be executed for that WorkBookObserver
11
+ * @param insertFirst if true the callback will be inserted at the first position, hence executed before the others ones. If false (default behavior) the callback will be inserted at the last position, executed after all the others already present.
12
+ * @param unregisterOnFirstCall defines if the observer as to be unregistered after the next notification
13
+ * @returns the new observer created for the callback
14
+ */
15
+ add(callback: (eventData: T, eventState: EventState) => void): Nullable<Observer<T>>;
16
+ makeObserverTopPriority(): void;
17
+ makeObserverBottomPriority(): void;
18
+ }
19
+ //# sourceMappingURL=observable-hooks.d.ts.map