@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 @@
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/shared/color/color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,KAAK;IACd,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;gBAErB,OAAO,EAAE,YAAY;IAIjC,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM;IAMlD,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ;IAcrD,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAepD,UAAU,IAAI,QAAQ;IAItB,YAAY,IAAI,UAAU;IAI1B,YAAY,IAAI,SAAS;IAIzB,KAAK,IAAI,KAAK;IAId,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;CAGhC;AAED,qBAAa,QAAQ;IACjB,OAAO,CAAC,WAAW,CAAa;IAEhC,OAAO,CAAC,IAAI,CAAa;IAEzB,OAAO,CAAC,UAAU,CAAa;IAE/B,OAAO,CAAC,MAAM,CAAa;gBAEf,QAAQ,EAAE,QAAQ;IA8C9B,UAAU,IAAI,QAAQ;IAgCtB,YAAY;IAIZ,MAAM;IAIN,aAAa;IAIb,QAAQ;IAIR,QAAQ,CAAC,EAAE,EAAE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iBAAiB,IAAI,cAAc;CAGtC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=color-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-builder.d.ts","sourceRoot":"","sources":["../../../src/shared/color-builder.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export declare enum UpdateDocsAttributeType {
2
+ COVER = 0,// Default, if not present, add; if present, overwrite, while retaining the original properties.
3
+ REPLACE = 1,// Replace the original properties entirely.
4
+ INTERSECTION = 2
5
+ }
6
+ //# sourceMappingURL=command-enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-enum.d.ts","sourceRoot":"","sources":["../../../src/shared/command-enum.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB;IAC/B,KAAK,IAAA,CAAE,gGAAgG;IACvG,OAAO,IAAA,CAAE,4CAA4C;IACrD,YAAY,IAAA;CACf"}
@@ -0,0 +1,29 @@
1
+ import type { IRange } from '../types/interfaces';
2
+ import type { ICellData } from '../types/interfaces/i-cell-data';
3
+ import type { IDocumentData } from '../types/interfaces/i-document-data';
4
+ import type { IRangeWithCoord, ISelectionCell, ISelectionCellWithCoord } from '../types/interfaces/i-selection-data';
5
+ import type { IColorStyle, IStyleData } from '../types/interfaces/i-style-data';
6
+ import type { Nullable } from './types';
7
+ export declare function makeCellToSelection(cellInfo: Nullable<ISelectionCellWithCoord>): Nullable<IRangeWithCoord>;
8
+ export declare function makeCellRangeToRangeData(cellInfo: Nullable<ISelectionCell>): Nullable<IRange>;
9
+ export declare function isEmptyCell(cell: Nullable<ICellData>): boolean;
10
+ export declare function getColorStyle(color: Nullable<IColorStyle>): Nullable<string>;
11
+ export declare function isFormulaString(value: any): boolean;
12
+ export declare function isFormulaId(value: any): boolean;
13
+ /**
14
+ * move to Styles.getStyleByCell
15
+ */
16
+ /**
17
+ * Convert rich text json to DOM
18
+ * @param p
19
+ */
20
+ export declare function handleJsonToDom(p: IDocumentData): string;
21
+ /**
22
+ * transform style object to string
23
+ * @param style
24
+ * @returns
25
+ */
26
+ export declare function handleStyleToString(style: IStyleData, isCell?: boolean): string;
27
+ export declare function getBorderStyleType(type: string): number;
28
+ export declare function getDocsUpdateBody(model: IDocumentData, segmentId?: string): import("../types/interfaces").IDocumentBody | undefined;
29
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/shared/common.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACrH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAGhF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,QAAQ,CAAC,eAAe,CAAC,CAsD1G;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CA+B7F;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,WAUpD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAU5E;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAEnD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAE/C;AAED;;GAEG;AAeH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,CAqCxD;AAED;;;;GAIG;AAEH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,GAAE,OAAe,UA8O7E;AAoCD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,UAyB9C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,CAAC,EAAE,MAAM,2DAczE"}
@@ -0,0 +1,8 @@
1
+ import type { ITextRun } from '../types/interfaces/i-document-data';
2
+ interface AnyObject {
3
+ [key: number | string]: AnyObject | AnyObject[] | Array<[number | string]> | any;
4
+ }
5
+ export declare function deepCompare(arg1: AnyObject, arg2: AnyObject): boolean;
6
+ export declare function isSameStyleTextRun(tr1: ITextRun, tr2: ITextRun): boolean;
7
+ export {};
8
+ //# sourceMappingURL=compare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../src/shared/compare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,UAAU,SAAS;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC;CACpF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAcrE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,WAS9D"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Date Tool
3
+ */
4
+ export declare class DateTime {
5
+ }
6
+ //# sourceMappingURL=date-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time.d.ts","sourceRoot":"","sources":["../../../src/shared/date-time.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,QAAQ;CAAG"}
@@ -0,0 +1,8 @@
1
+ import type { IParagraph, IParagraphStyle } from '../types/interfaces/i-document-data';
2
+ export declare function horizontalLineSegmentsSubtraction(A1: number, A2: number, B1: number, B2: number): number[];
3
+ export declare function checkParagraphHasBullet(paragraph: IParagraph): boolean;
4
+ export declare function checkParagraphHasIndent(paragraph: IParagraph): boolean;
5
+ export declare function checkParagraphHasIndentByStyle(paragraphStyle?: IParagraphStyle): boolean;
6
+ export declare function insertTextToContent(content: string, start: number, text: string): string;
7
+ export declare function deleteContent(content: string, start: number, end: number): string;
8
+ //# sourceMappingURL=doc-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc-tool.d.ts","sourceRoot":"","sources":["../../../src/shared/doc-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEvF,wBAAgB,iCAAiC,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,YAoC/F;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,UAAU,WAO5D;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,UAAU,WAO5D;AAED,wBAAgB,8BAA8B,CAAC,cAAc,CAAC,EAAE,eAAe,WAa9E;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAE/E;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAMxE"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=drop-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drop-cell.d.ts","sourceRoot":"","sources":["../../../src/shared/drop-cell.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Date Tool
3
+ */
4
+ export declare class ExcelDateTime {
5
+ }
6
+ //# sourceMappingURL=excel-date-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excel-date-time.d.ts","sourceRoot":"","sources":["../../../src/shared/excel-date-time.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,aAAa;CAAG"}
@@ -0,0 +1,9 @@
1
+ export declare class GenName {
2
+ private _include;
3
+ private _count;
4
+ constructor();
5
+ checked(name: string): boolean;
6
+ onlyName(name: string): string;
7
+ sheetName(name?: string): string;
8
+ }
9
+ //# sourceMappingURL=gen-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gen-name.d.ts","sourceRoot":"","sources":["../../../src/shared/gen-name.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO;IAChB,OAAO,CAAC,QAAQ,CAAW;IAE3B,OAAO,CAAC,MAAM,CAAS;;IAOvB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAW9B,SAAS,CAAC,IAAI,GAAE,MAAiB,GAAG,MAAM;CAS7C"}
@@ -0,0 +1,7 @@
1
+ import type { IKeyType } from './types';
2
+ export declare const error: IKeyType<string>;
3
+ export declare function isRealNum(val: string | number): boolean;
4
+ export declare function datenum_local(v: Date, date1904?: number): number;
5
+ export declare function generate(value: string): any;
6
+ export declare const update: (a: any, b: any) => any;
7
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/shared/generate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,CASlC,CAAC;AAgBF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,WAa7C;AA2ED,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,UAOvD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAiN3C;AAMD,eAAO,MAAM,MAAM,MAAO,GAAG,KAAK,GAAG,KAAG,GAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface GroupModel<T> {
2
+ getGroupModel(): T;
3
+ }
4
+ //# sourceMappingURL=group-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-model.d.ts","sourceRoot":"","sources":["../../../src/shared/group-model.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU,CAAC,CAAC;IACzB,aAAa,IAAI,CAAC,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export declare function hashAlgorithm(str: string): number;
2
+ //# sourceMappingURL=hash-algorithm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash-algorithm.d.ts","sourceRoot":"","sources":["../../../src/shared/hash-algorithm.ts"],"names":[],"mappings":"AACA,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASjD"}
@@ -0,0 +1,35 @@
1
+ export * from './array-search';
2
+ export * from './color/color';
3
+ export * from './color/color-builder';
4
+ export * from './command-enum';
5
+ export * from './common';
6
+ export * from './compare';
7
+ export * from './date-time';
8
+ export * from './doc-tool';
9
+ export * from './excel-date-time';
10
+ export * from './gen-name';
11
+ export * from './generate';
12
+ export * from './group-model';
13
+ export * from './hash-algorithm';
14
+ export * from './io-http';
15
+ export * from './io-socket';
16
+ export * from './lifecycle';
17
+ export * from './locale';
18
+ export * from './logger';
19
+ export * from './lru/index';
20
+ export * from './migrate/index';
21
+ export * from './object-array';
22
+ export * from './object-matrix';
23
+ export * from './permission';
24
+ export * from './random';
25
+ export * from './rectangle';
26
+ export { RefAlias } from './ref-alias';
27
+ export * from './row-col-iter';
28
+ export * from './sequence';
29
+ export * from './serialize/index';
30
+ export * from './sort-rules';
31
+ export * from './tools';
32
+ export * from './tuples';
33
+ export * from './type-store';
34
+ export * from './types';
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Types of Io Http Request
3
+ */
4
+ export declare enum IOHttpRequestType {
5
+ POST = "POST",
6
+ GET = "GET",
7
+ PUT = "PUT",
8
+ DELETE = "DELETE"
9
+ }
10
+ /**
11
+ * Status of Io Http Ready
12
+ */
13
+ export declare enum IOHttpReadyState {
14
+ UNSENT = 0,
15
+ OPENED = 1,
16
+ HEADERS_RECEIVED = 2,
17
+ LOADING = 3,
18
+ DONE = 4
19
+ }
20
+ /**
21
+ * Types of Io Http Response
22
+ */
23
+ export declare enum IOHttpResponseType {
24
+ ARRAY_BUFFER = "arraybuffer",
25
+ BLOB = "blob",
26
+ TEXT = "text",
27
+ DOCUMENT = "document",
28
+ JSON = "json",
29
+ STREAM = "stream"
30
+ }
31
+ /**
32
+ * IOHTTP header type
33
+ */
34
+ export interface IOHttpHeaderType {
35
+ [key: string]: string;
36
+ }
37
+ /**
38
+ * IOHTTP request body type
39
+ */
40
+ export type IOHttpRequestBodyType = string | {} | [] | FormData;
41
+ /**
42
+ * Config of http communication
43
+ */
44
+ export interface IOHttpConfig {
45
+ type: keyof typeof IOHttpRequestType;
46
+ url: string;
47
+ dataType?: IOHttpResponseType;
48
+ async?: boolean;
49
+ header?: IOHttpHeaderType;
50
+ contentType?: string;
51
+ data?: IOHttpRequestBodyType;
52
+ timeout?: number;
53
+ username?: string;
54
+ password?: string;
55
+ beforeSend?: Function;
56
+ dataFilter?: Function;
57
+ error?: Function;
58
+ success?: Function;
59
+ complete?: Function;
60
+ }
61
+ /**
62
+ * HTTP request
63
+ *
64
+ * @param config The available config options for making requests
65
+ * @returns
66
+ */
67
+ export declare function IOHttp<T = void>(config: IOHttpConfig): Promise<T>;
68
+ /**
69
+ * Send a POST request
70
+ *
71
+ * @param url The server URL that will be used for the request
72
+ * @param data The data to be sent as the request body
73
+ * @param success Successful callback
74
+ */
75
+ export declare function Post<T = void>(url: string, data?: object, success?: Function): Promise<T>;
76
+ /**
77
+ * Send a Get request
78
+ *
79
+ * @param url The server URL that will be used for the request
80
+ * @param data The data to be sent as the request body
81
+ * @param success Successful callback
82
+ */
83
+ export declare function Get<T = void>(url: string, data?: object, success?: Function): Promise<T>;
84
+ //# sourceMappingURL=io-http.d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AAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACvB;AAoBD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,CAgEjE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,EAAE,OAAO,GAAE,QAAe,GAAG,OAAO,CAAC,CAAC,CAAC,CAEnG;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,EAAE,OAAO,GAAE,QAAe,GAAG,OAAO,CAAC,CAAC,CAAC,CAGlG"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Properties of socket config
3
+ */
4
+ export interface IOSocketConfig {
5
+ url: string;
6
+ heartbeatTime?: number;
7
+ }
8
+ /**
9
+ * Types if Io Socket Listen
10
+ */
11
+ export declare enum IOSocketListenType {
12
+ MESSAGE = "message",
13
+ OPEN = "open",
14
+ CLOSE = "close",
15
+ ERROR = "error",
16
+ RETRY = "retry",
17
+ DESTROY = "destroy"
18
+ }
19
+ export declare const HEART_BEAT_MESSAGE = "heart_beat_message";
20
+ /**
21
+ * IOSocket send body
22
+ */
23
+ export type IOSocketSendBody = string | ArrayBufferLike | Blob | ArrayBufferView;
24
+ /**
25
+ * IOSocket type
26
+ */
27
+ export declare class IOSocket {
28
+ private _config;
29
+ private _listens;
30
+ private _timer;
31
+ private _socket;
32
+ constructor(config: IOSocketConfig);
33
+ link(): void;
34
+ send(body: IOSocketSendBody): void;
35
+ destroy(): void;
36
+ on(type: IOSocketListenType, listen: Function): void;
37
+ close(): void;
38
+ private _create;
39
+ private _bind;
40
+ private _message;
41
+ private _open;
42
+ private _error;
43
+ private _close;
44
+ private _clear;
45
+ private _heartbeat;
46
+ private _retry;
47
+ }
48
+ //# sourceMappingURL=io-socket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"io-socket.d.ts","sourceRoot":"","sources":["../../../src/shared/io-socket.ts"],"names":[],"mappings":"AA8BA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC1B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAOD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,eAAe,GAAG,IAAI,GAAG,eAAe,CAAC;AAEjF;;GAEG;AACH,qBAAa,QAAQ;IACjB,OAAO,CAAC,OAAO,CAAiB;IAEhC,OAAO,CAAC,QAAQ,CAAoC;IAEpD,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,OAAO,CAAsB;gBAEzB,MAAM,EAAE,cAAc;IAelC,IAAI,IAAI,IAAI;IAKZ,IAAI,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAIlC,OAAO,IAAI,IAAI;IASf,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI;IAIpD,KAAK,IAAI,IAAI;IAIb,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,KAAK;IAmBb,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,MAAM;CASjB"}
@@ -0,0 +1,28 @@
1
+ import type { IDisposable } from '@wendellhu/redi';
2
+ import type { Subscription, SubscriptionLike } from 'rxjs';
3
+ import { Subject } from 'rxjs';
4
+ import type { Nullable } from '../common/type-utils';
5
+ import type { Observer } from '../observer/observable';
6
+ export declare function toDisposable(observer: Nullable<Observer<any>>): IDisposable;
7
+ export declare function toDisposable(subscription: SubscriptionLike): IDisposable;
8
+ export declare function toDisposable(callback: () => void): IDisposable;
9
+ /**
10
+ * @deprecated use toDisposable instead
11
+ */
12
+ export declare function fromObservable(subscription: Subscription): IDisposable;
13
+ export declare class DisposableCollection implements IDisposable {
14
+ private readonly _disposables;
15
+ add(disposable: IDisposable): IDisposable;
16
+ dispose(): void;
17
+ }
18
+ export declare class Disposable implements IDisposable {
19
+ protected _disposed: boolean;
20
+ private readonly _collection;
21
+ protected disposeWithMe(disposable: IDisposable): IDisposable;
22
+ dispose(): void;
23
+ }
24
+ export declare class RxDisposable extends Disposable implements IDisposable {
25
+ protected dispose$: Subject<void>;
26
+ dispose(): void;
27
+ }
28
+ //# sourceMappingURL=lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/shared/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGvD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,WAAW,CAAC;AAC7E,wBAAgB,YAAY,CAAC,YAAY,EAAE,gBAAgB,GAAG,WAAW,CAAC;AAC1E,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,WAAW,CAAC;AAgDhE;;GAEG;AACH,wBAAgB,cAAc,CAAC,YAAY,EAAE,YAAY,eAIxD;AAED,qBAAa,oBAAqB,YAAW,WAAW;IACpD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0B;IAEvD,GAAG,CAAC,UAAU,EAAE,WAAW,GAAG,WAAW;IAUzC,OAAO,IAAI,IAAI;CAMlB;AAED,qBAAa,UAAW,YAAW,WAAW;IAC1C,SAAS,CAAC,SAAS,UAAS;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAE1D,SAAS,CAAC,aAAa,CAAC,UAAU,EAAE,WAAW,GAAG,WAAW;IAI7D,OAAO,IAAI,IAAI;CAQlB;AAED,qBAAa,YAAa,SAAQ,UAAW,YAAW,WAAW;IAC/D,SAAS,CAAC,QAAQ,gBAAuB;IAEhC,OAAO,IAAI,IAAI;CAK3B"}
@@ -0,0 +1,10 @@
1
+ export interface ILanguagePack {
2
+ [key: string]: string | Array<{
3
+ name: string;
4
+ value: string;
5
+ }> | ILanguagePack;
6
+ }
7
+ export interface ILocales {
8
+ [key: string]: ILanguagePack;
9
+ }
10
+ //# sourceMappingURL=locale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/shared/locale.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,aAAa,CAAC;CAClF;AAED,MAAM,WAAW,QAAQ;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Logging tool
3
+ */
4
+ export declare class Logger {
5
+ static log(...value: unknown[]): void;
6
+ static info(...value: unknown[]): void;
7
+ static error(...value: unknown[]): void;
8
+ static warn(...value: unknown[]): void;
9
+ static br(): void;
10
+ static capsule(env: string, version: string, prefix?: string, suffix?: string): void;
11
+ }
12
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/shared/logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,MAAM;IACf,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI;IAMrC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI;IAMtC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI;IAMvC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI;IAMtC,MAAM,CAAC,EAAE,IAAI,IAAI;IAIjB,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAW,EAAE,MAAM,SAAK,GAAG,IAAI;CAWvF"}
@@ -0,0 +1,3 @@
1
+ export * from './lru-helper';
2
+ export * from './lru-map';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/lru/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare class LRUHelper {
2
+ static hasLength(array: unknown[], size: number): boolean;
3
+ static getValueType(value: any): string;
4
+ static isObject<T = object>(value?: any): value is T;
5
+ static isIterable<T>(value?: any): value is Iterable<T>;
6
+ static isNumber(value?: any): value is number;
7
+ }
8
+ //# sourceMappingURL=lru-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lru-helper.d.ts","sourceRoot":"","sources":["../../../../src/shared/lru/lru-helper.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS;IAClB,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM;IAI/C,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM;IAIvC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC;IAIpD,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC;IAIvD,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,KAAK,IAAI,MAAM;CAGhD"}
@@ -0,0 +1,66 @@
1
+ import type { IDisposable } from '@wendellhu/redi';
2
+ declare const NEWER: unique symbol;
3
+ declare const OLDER: unique symbol;
4
+ export declare class KeyIterator<K, V> implements IterableIterator<K> {
5
+ entry: Entry<K, V> | undefined;
6
+ constructor(oldestEntry: Entry<K, V> | undefined);
7
+ [Symbol.iterator](): IterableIterator<K>;
8
+ next(): IteratorResult<K, K | undefined>;
9
+ }
10
+ export declare class ValueIterator<K, V> implements IterableIterator<V> {
11
+ entry: Entry<K, V> | undefined;
12
+ constructor(oldestEntry: Entry<K, V> | undefined);
13
+ [Symbol.iterator](): IterableIterator<V>;
14
+ next(): IteratorResult<V, V | undefined>;
15
+ }
16
+ export declare class EntryIterator<K, V> implements IterableIterator<[K, V]> {
17
+ entry: Entry<K, V> | undefined;
18
+ constructor(oldestEntry: Entry<K, V> | undefined);
19
+ [Symbol.iterator](): IterableIterator<[K, V]>;
20
+ next(): IteratorResult<[K, V], [K, V] | undefined>;
21
+ }
22
+ export declare class Entry<K, V> {
23
+ key: K;
24
+ value: V;
25
+ [NEWER]: Entry<K, V> | undefined;
26
+ [OLDER]: Entry<K, V> | undefined;
27
+ constructor(key: K, value: V);
28
+ toJSON(): {
29
+ key: K;
30
+ value: V;
31
+ };
32
+ }
33
+ export declare class LRUMap<K, V> {
34
+ private _keymap;
35
+ size: number;
36
+ limit: number;
37
+ oldest: Entry<K, V> | undefined;
38
+ newest: Entry<K, V> | undefined;
39
+ private readonly _onShiftListeners;
40
+ onShift(callback: (entry: Entry<K, V>) => void): IDisposable;
41
+ constructor(entries: Iterable<[K, V]>);
42
+ constructor(limit: number);
43
+ constructor(limit: number, entries: Iterable<[K, V]>);
44
+ _initialize(limit: number, entries: Iterable<[K, V]> | undefined): void;
45
+ _markEntryAsUsed(entry: Entry<K, V>): void;
46
+ assign(entries: Iterable<[K, V]>): void;
47
+ set(key: K, value: V): LRUMap<K, V>;
48
+ shift(): [K, V] | undefined;
49
+ get(key: K): V | undefined;
50
+ has(key: K): boolean;
51
+ find(key: K): V | undefined;
52
+ delete(key: K): V | undefined;
53
+ clear(): void;
54
+ keys(): Iterator<K, K | undefined>;
55
+ values(): Iterator<V, V | undefined>;
56
+ entries(): Iterator<[K, V], [K, V] | undefined>;
57
+ [Symbol.iterator](): Iterator<[K, V], [K, V] | undefined>;
58
+ forEach(fun: (value: V, key: K, m: LRUMap<K, V>) => void, thisObj?: any): void;
59
+ toJSON(): Array<{
60
+ key: K;
61
+ value: V;
62
+ }>;
63
+ toString(): string;
64
+ }
65
+ export {};
66
+ //# sourceMappingURL=lru-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lru-map.d.ts","sourceRoot":"","sources":["../../../../src/shared/lru/lru-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMnD,QAAA,MAAM,KAAK,eAAkB,CAAC;AAC9B,QAAA,MAAM,KAAK,eAAkB,CAAC;AAE9B,qBAAa,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,YAAW,gBAAgB,CAAC,CAAC,CAAC;IACzD,KAAK,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;gBAEnB,WAAW,EAAE,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;IAiCnC,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS;IAuB3B,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAS1B,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO;IAIpB,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAK3B,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IA4B7B,KAAK,IAAI,IAAI;IAQb,IAAI,IAAI,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IAIlC,MAAM,IAAI,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IAIpC,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IAI/C,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IAIzD,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI;IAW9E,MAAM,IAAI,KAAK,CAAC;QAAE,GAAG,EAAE,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC;IAWrC,QAAQ,IAAI,MAAM;CAYrB"}
@@ -0,0 +1,3 @@
1
+ import type { IWorksheetData } from '../../types/interfaces';
2
+ export declare function border(newSheet: Partial<IWorksheetData>, sheet: any): void;
3
+ //# sourceMappingURL=border.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../src/shared/migrate/border.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2B,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEtF,wBAAgB,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,QA+oBnE"}
@@ -0,0 +1,2 @@
1
+ export * from './migrate';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/migrate/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IWorkbookData } from '../../types/interfaces';
2
+ export declare function migrate(config: any): Partial<IWorkbookData>;
3
+ //# sourceMappingURL=migrate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../../src/shared/migrate/migrate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAOR,aAAa,EAEhB,MAAM,wBAAwB,CAAC;AAMhC,wBAAgB,OAAO,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,CA4a3D"}
@@ -0,0 +1,96 @@
1
+ import type { Nullable } from './types';
2
+ /**
3
+ * Predicate Function type
4
+ */
5
+ export type PredicateFunction<T> = (index: number, value: T) => Nullable<boolean>;
6
+ /**
7
+ * Function type
8
+ */
9
+ export type Function<T, S> = (value: Nullable<T>) => S;
10
+ /**
11
+ * Unary Operator Function type
12
+ */
13
+ export type UnaryOperatorFunction<T> = (value: T) => T;
14
+ /**
15
+ * Object Array Primitive Type
16
+ */
17
+ export interface ObjectArrayPrimitiveType<T> {
18
+ [key: number]: T;
19
+ length?: number;
20
+ }
21
+ /**
22
+ * Object Array Type
23
+ * @deprecated
24
+ */
25
+ export type ObjectArrayType<T> = ObjectArray<T> | ObjectArrayPrimitiveType<T>;
26
+ /**
27
+ * Arrays in object form and provide an array-like API
28
+ * @beta
29
+ */
30
+ export declare class ObjectArray<T> {
31
+ private _objectArray;
32
+ private _length;
33
+ constructor();
34
+ constructor(array: ObjectArrayPrimitiveType<T>);
35
+ constructor(size: number);
36
+ constructor(array: ObjectArrayPrimitiveType<T>, size: number);
37
+ static objectKeys<T>(array: Nullable<ObjectArrayPrimitiveType<T>>): string[];
38
+ static getMaxLength<T>(array: Nullable<ObjectArrayPrimitiveType<T>>): number;
39
+ obtain(index: number, defaultValue: T): T;
40
+ getKeys(): string[];
41
+ get(index: number): Nullable<T>;
42
+ set(index: number, value: T): void;
43
+ pop(): Nullable<T>;
44
+ push(value: T): void;
45
+ first(): Nullable<T>;
46
+ last(): Nullable<T>;
47
+ shift(): Nullable<T>;
48
+ unshift(topValue: T): void;
49
+ clear(): void;
50
+ getLength(): number;
51
+ getSizeOf(): number;
52
+ toJSON(): ObjectArrayPrimitiveType<T>;
53
+ toArray(): T[];
54
+ forEach(callback: PredicateFunction<T>): ObjectArray<T>;
55
+ clone(callback: Nullable<UnaryOperatorFunction<T>>): ObjectArray<T>;
56
+ isEmpty(): boolean;
57
+ /**
58
+ * @deprecated use `realDelete` or `splice`
59
+ * @param index
60
+ */
61
+ delete(index: number): void;
62
+ realDelete(index: number): void;
63
+ includes(target: T): boolean;
64
+ slice(start: number, end: number): ObjectArray<T>;
65
+ concat(target: ObjectArray<T>): ObjectArray<T>;
66
+ find(callback: PredicateFunction<T>): Nullable<T>;
67
+ splice(start: number, count: number): ObjectArray<T>;
68
+ findIndex(callback: PredicateFunction<T>): number;
69
+ map<S>(callback: Function<T, S>): ObjectArray<S>;
70
+ filter(callback: PredicateFunction<T>): ObjectArray<T>;
71
+ insert(index: number, value: T): this;
72
+ /**
73
+ * Move some items some to another position
74
+ * @param fromIndex index to move from, fromIndex is not necessary lesser than toIndex
75
+ * @param count numbers of items to move
76
+ * @param toIndex index moving to
77
+ * @returns this
78
+ */
79
+ move(fromIndex: number, count: number, toIndex: number): this;
80
+ private _moveBackward;
81
+ private _moveForward;
82
+ inserts(index: number, target: ObjectArray<T>): ObjectArray<T>;
83
+ [Symbol.iterator](): IterableIterator<T>;
84
+ }
85
+ /**
86
+ * Iterator with ObjectArray
87
+ */
88
+ export declare class ObjectArrayIterableIterator<T> implements IterableIterator<T> {
89
+ private _array;
90
+ private _keys;
91
+ private _cursor;
92
+ constructor(objectArray: ObjectArray<T>);
93
+ next(): IteratorResult<T, null>;
94
+ [Symbol.iterator](): IterableIterator<T>;
95
+ }
96
+ //# sourceMappingURL=object-array.d.ts.map