@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,130 @@
1
+ import { Injector } from '@wendellhu/redi';
2
+ import type { Nullable } from '../shared';
3
+ import { GenName } from '../shared';
4
+ import { Disposable } from '../shared/lifecycle';
5
+ import type { IGridRange, IRangeType, IWorkbookData, IWorksheetData } from '../types/interfaces';
6
+ import { Styles } from './styles';
7
+ import { Worksheet } from './worksheet';
8
+ export declare function getWorksheetUID(workbook: Workbook, worksheet: Worksheet): string;
9
+ /**
10
+ * Access and create Univer Sheets files
11
+ */
12
+ export declare class Workbook extends Disposable {
13
+ private readonly _genName;
14
+ readonly _injector: Injector;
15
+ private readonly _sheetCreated$;
16
+ readonly sheetCreated$: import("rxjs").Observable<Worksheet>;
17
+ private readonly _sheetDisposed$;
18
+ readonly sheetDisposed$: import("rxjs").Observable<Worksheet>;
19
+ /**
20
+ * sheets list
21
+ * @private
22
+ */
23
+ private _worksheets;
24
+ /**
25
+ * Common style
26
+ * @private
27
+ */
28
+ private _styles;
29
+ /**
30
+ * number format
31
+ * @private
32
+ */
33
+ private _snapshot;
34
+ private _unitId;
35
+ constructor(workbookData: Partial<IWorkbookData> | undefined, _genName: GenName, _injector: Injector);
36
+ dispose(): void;
37
+ save(): IWorkbookData;
38
+ static isIRangeType(range: IRangeType | IRangeType[]): Boolean;
39
+ getSnapshot(): IWorkbookData;
40
+ getUnitId(): string;
41
+ getRev(): number;
42
+ incrementRev(): void;
43
+ getShouldRenderLoopImmediately(): boolean;
44
+ getContainer(): string | undefined;
45
+ /**
46
+ * Add a Worksheet into Workbook.
47
+ */
48
+ addWorksheet(id: string, index: number, worksheetSnapshot: Partial<IWorksheetData>): boolean;
49
+ getParentRenderUnitId(): string | undefined;
50
+ getWorksheets(): Map<string, Worksheet>;
51
+ getActiveSpreadsheet(): Workbook;
52
+ getStyles(): Styles;
53
+ getConfig(): IWorkbookData;
54
+ getIndexBySheetId(sheetId: string): number;
55
+ getActiveSheet(): Worksheet;
56
+ getActiveSheetIndex(): number;
57
+ getSheetSize(): number;
58
+ /**
59
+ * Applies all pending Sheets changes.
60
+ *
61
+ * @returns void
62
+ */
63
+ flush(): void;
64
+ getSheets(): Worksheet[];
65
+ getSheetIndex(sheet: Worksheet): number;
66
+ getSheetBySheetName(name: string): Nullable<Worksheet>;
67
+ getSheetBySheetId(sheetId: string): Nullable<Worksheet>;
68
+ getHiddenWorksheets(): string[];
69
+ /**
70
+ * Creates a builder for a conditional formatting rule.
71
+ */
72
+ /**
73
+ * transform any range type to range data
74
+ *
75
+ * @remarks
76
+ * e.g.,
77
+ * "A1:B1", "Sheet2!A1:B1"
78
+ *
79
+ * or
80
+ *
81
+ * {
82
+ * row:[0,1],
83
+ * column:[0,1]
84
+ * }
85
+ *
86
+ * or
87
+ *
88
+ * {
89
+ * startRow:0 ,
90
+ * startColumn:0,
91
+ * endRow:1,
92
+ * endColumn:1,
93
+ * }
94
+ *
95
+ * to
96
+ *
97
+ * {
98
+ * startRow:0 ,
99
+ * startColumn:0,
100
+ * endRow:1,
101
+ * endColumn:1,
102
+ * }
103
+ *
104
+ * IRangeType[] is to prevent type detection
105
+ *
106
+ * @param range support all range types
107
+ *
108
+ * @returns range data
109
+ */
110
+ transformRangeType(range: IRangeType | IRangeType[]): IGridRange;
111
+ load(config: IWorkbookData): void;
112
+ /**
113
+ * Get the range array based on the range string and sheet id
114
+ *
115
+ * @privateRemarks
116
+ * zh: 根据范围字符串和sheet id取得范围数组
117
+ *
118
+ * @param txt - range string
119
+ * @returns
120
+ *
121
+ * @internal
122
+ */
123
+ private _getCellRange;
124
+ /**
125
+ * Get Default Sheet
126
+ * @private
127
+ */
128
+ private _getDefaultWorkSheet;
129
+ }
130
+ //# sourceMappingURL=workbook.d.ts.map
@@ -0,0 +1 @@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WAAW,IAAI,aAAa;IAI5B,SAAS;IAIT,MAAM,IAAI,MAAM;IAIhB,YAAY,IAAI,IAAI;IAIpB,8BAA8B;IAK9B,YAAY;IAIZ;;OAEG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO;IAe5F,qBAAqB;IAIrB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC;IAIvC,oBAAoB,IAAI,QAAQ;IAIhC,SAAS,IAAI,MAAM;IAInB,SAAS,IAAI,aAAa;IAI1B,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAK1C,cAAc,IAAI,SAAS;IAY3B,mBAAmB,IAAI,MAAM;IAW7B,YAAY,IAAI,MAAM;IAItB;;;;OAIG;IACH,KAAK,IAAI,IAAI;IAIb,SAAS,IAAI,SAAS,EAAE;IAMxB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM;IAWvC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC;IAStD,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC;IAIvD,mBAAmB,IAAI,MAAM,EAAE;IAiB/B;;OAEG;IASH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,UAAU;IAwBhE,IAAI,CAAC,MAAM,EAAE,aAAa;IAK1B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,aAAa;IA8ErB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;CA0B/B"}
@@ -0,0 +1,180 @@
1
+ import type { Nullable } from '../shared';
2
+ import { ObjectMatrix } from '../shared';
3
+ import type { SheetTypes } from '../types/enum';
4
+ import { BooleanNumber } from '../types/enum';
5
+ import type { ICellData, IFreeze, IRange, IWorksheetData } from '../types/interfaces';
6
+ import { ColumnManager } from './column-manager';
7
+ import { Range } from './range';
8
+ import { RowManager } from './row-manager';
9
+ import type { Styles } from './styles';
10
+ import { SheetViewModel } from './view-model';
11
+ /**
12
+ * Worksheet instance represents a single sheet in a workbook.
13
+ */
14
+ export declare class Worksheet {
15
+ private readonly _styles;
16
+ protected _initialized: boolean;
17
+ protected _sheetId: string;
18
+ protected _snapshot: IWorksheetData;
19
+ protected _cellData: ObjectMatrix<ICellData>;
20
+ protected _rowManager: RowManager;
21
+ protected _columnManager: ColumnManager;
22
+ protected readonly _viewModel: SheetViewModel;
23
+ constructor(snapshot: Partial<IWorksheetData>, _styles: Styles);
24
+ /**
25
+ * @internal
26
+ * @param callback
27
+ */
28
+ __interceptViewModel(callback: (viewModel: SheetViewModel) => void): void;
29
+ /**
30
+ * Returns WorkSheet Cell Data Matrix
31
+ * @returns
32
+ */
33
+ getCellMatrix(): ObjectMatrix<ICellData>;
34
+ /**
35
+ * Returns Row Manager
36
+ * @returns Row Manager
37
+ */
38
+ getRowManager(): RowManager;
39
+ /**
40
+ * Returns the ID of the sheet represented by this object.
41
+ * @returns ID of the sheet
42
+ */
43
+ getSheetId(): string;
44
+ /**
45
+ * Returns Column Manager
46
+ * @returns Column Manager
47
+ */
48
+ getColumnManager(): ColumnManager;
49
+ /**
50
+ * Returns the name of the sheet.
51
+ * @returns name of the sheet
52
+ */
53
+ getName(): string;
54
+ /**
55
+ * Returns WorkSheet Clone Object
56
+ * @returns WorkSheet Clone Object
57
+ * @deprecated
58
+ */
59
+ clone(): Worksheet;
60
+ getMergeData(): IRange[];
61
+ /**
62
+ * @deprecated use `getMergedCell` instead
63
+ * @param row
64
+ * @param col
65
+ * @returns
66
+ */
67
+ getMergedCells(row: number, col: number): Nullable<IRange[]>;
68
+ getMergedCell(row: number, col: number): Nullable<IRange>;
69
+ getCell(row: number, col: number): Nullable<ICellData>;
70
+ getCellRaw(row: number, col: number): Nullable<ICellData>;
71
+ /**
72
+ * Get cell matrix from a given range and pick out non-first cells of merged cells.
73
+ */
74
+ getMatrixWithMergedCells(row: number, col: number, endRow: number, endCol: number): ObjectMatrix<ICellData & {
75
+ rowSpan?: number;
76
+ colSpan?: number;
77
+ }>;
78
+ getRange(range: IRange): Range;
79
+ getRange(startRow: number, startColumn: number): Range;
80
+ getRange(startRow: number, startColumn: number, endRow: number, endColumn: number): Range;
81
+ /**
82
+ * Returns WorkSheet Status
83
+ * @returns WorkSheet Status
84
+ */
85
+ getStatus(): BooleanNumber;
86
+ /**
87
+ * Return WorkSheetZoomRatio
88
+ * @return zoomRatio
89
+ */
90
+ getZoomRatio(): number;
91
+ /**
92
+ * Returns WorkSheet Configures
93
+ * @returns WorkSheet Configures
94
+ */
95
+ getConfig(): IWorksheetData;
96
+ /**
97
+ * Returns frozen.
98
+ * @returns frozen
99
+ */
100
+ getFreeze(): IFreeze;
101
+ /**
102
+ * Returns the current number of columns in the sheet, regardless of content.
103
+ * @returns the current number of columns in the sheet, regardless of content
104
+ */
105
+ getMaxColumns(): number;
106
+ /**
107
+ * Returns the current number of rows in the sheet, regardless of content.
108
+ * @returns the current number of rows in the sheet, regardless of content
109
+ */
110
+ getMaxRows(): number;
111
+ /**
112
+ * Returns the type of the sheet.
113
+ * @returns the type of the sheet
114
+ */
115
+ getType(): SheetTypes;
116
+ getRowCount(): number;
117
+ setRowCount(count: number): void;
118
+ getColumnCount(): number;
119
+ setColumnCount(count: number): void;
120
+ /**
121
+ * isSheetHidden
122
+ * @returns hidden status of sheet
123
+ */
124
+ isSheetHidden(): BooleanNumber;
125
+ /**
126
+ * Returns true if the sheet's gridlines are hidden; otherwise returns false. Gridlines are visible by default.
127
+ * @returns Gridlines Hidden Status
128
+ */
129
+ hasHiddenGridlines(): Boolean;
130
+ /**
131
+ * Gets the sheet tab color, or null if the sheet tab has no color.
132
+ * @returns the sheet tab color or null
133
+ */
134
+ getTabColor(): Nullable<string>;
135
+ /**
136
+ * Gets the width in pixels of the given column.
137
+ * @param columnPosition column index
138
+ * @returns Gets the width in pixels of the given column.
139
+ */
140
+ getColumnWidth(columnPosition: number): number;
141
+ /**
142
+ * Gets the height in pixels of the given row.
143
+ * @param rowPosition row index
144
+ * @returns Gets the height in pixels of the given row.
145
+ */
146
+ getRowHeight(rowPosition: number): number;
147
+ getRowVisible(row: number): boolean;
148
+ getHiddenRows(start?: number, end?: number): IRange[];
149
+ getColVisible(col: number): boolean;
150
+ getHiddenCols(start?: number, end?: number): IRange[];
151
+ /**
152
+ * Returns true if this sheet layout is right-to-left. Returns false if the sheet uses the default left-to-right layout.
153
+ * @returns true if this sheet layout is right-to-left. Returns false if the sheet uses the default left-to-right layout.
154
+ */
155
+ isRightToLeft(): BooleanNumber;
156
+ /**
157
+ * @typeParam T - plugin data structure
158
+ * @param name - plugin name
159
+ * @returns information stored by the plugin
160
+ */
161
+ getPluginMeta<T>(name: string): T;
162
+ /**
163
+ * @typeParam T - plugin data structure
164
+ * @param name - plugin name
165
+ * @param value - plugin value
166
+ * @returns
167
+ */
168
+ setPluginMeta<T>(name: string, value: T): void;
169
+ /**
170
+ * Returns the position of the last row that has content.
171
+ * @returns the position of the last row that has content.
172
+ */
173
+ getLastRowWithContent(): number;
174
+ /**
175
+ * Returns the position of the last column that has content.
176
+ * @returns the position of the last column that has content.
177
+ */
178
+ getLastColumnWithContent(): number;
179
+ }
180
+ //# sourceMappingURL=worksheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worksheet.d.ts","sourceRoot":"","sources":["../../../src/sheets/worksheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAoB,MAAM,WAAW,CAAC;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,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I9B;;;OAGG;IACH,kBAAkB,IAAI,OAAO;IAU7B;;;OAGG;IACH,WAAW,IAAI,QAAQ,CAAC,MAAM,CAAC;IAO/B;;;;OAIG;IACH,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM;IAI9C;;;;OAIG;IACH,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAIzC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAInC,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE;IAQrD,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAInC,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE;IAQrD;;;OAGG;IACH,aAAa,IAAI,aAAa;IAO9B;;;;OAIG;IACH,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;IAIjC;;;;;OAKG;IACH,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAIvC;;;OAGG;IACH,qBAAqB,IAAI,MAAM;IAI/B;;;OAGG;IACH,wBAAwB,IAAI,MAAM;CAGrC"}
@@ -0,0 +1,2 @@
1
+ export * from './slide-model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slides/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { ISlideData, ISlidePage } from '../../types/interfaces';
2
+ export declare class Slide {
3
+ private _snapshot;
4
+ private _unitId;
5
+ constructor(snapshot: Partial<ISlideData>);
6
+ getSnapshot(): ISlideData;
7
+ getUnitId(): string;
8
+ getPages(): {
9
+ [id: string]: ISlidePage;
10
+ } | undefined;
11
+ getPageOrder(): string[] | undefined;
12
+ getPage(pageId: string): ISlidePage | undefined;
13
+ getElementsByPage(pageId: string): {
14
+ [elementId: string]: import("../../types/interfaces").IPageElement;
15
+ } | undefined;
16
+ getElement(pageId: string, elementId: string): import("../../types/interfaces").IPageElement | undefined;
17
+ getPageSize(): import("../..").ISize;
18
+ addPage(): ISlidePage;
19
+ }
20
+ //# sourceMappingURL=slide-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slide-model.d.ts","sourceRoot":"","sources":["../../../../src/slides/domain/slide-model.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGrE,qBAAa,KAAK;IACd,OAAO,CAAC,SAAS,CAAa;IAE9B,OAAO,CAAC,OAAO,CAAS;gBAEZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC;IAKzC,WAAW;IAIX,SAAS,IAAI,MAAM;IAInB,QAAQ;;;IAIR,YAAY;IAIZ,OAAO,CAAC,MAAM,EAAE,MAAM;IAKtB,iBAAiB,CAAC,MAAM,EAAE,MAAM;;;IAIhC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAI5C,WAAW;IAIX,OAAO,IAAI,UAAU;CAaxB"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Name set of all action
3
+ */
4
+ export declare enum ACTION_NAMES {
5
+ /** @see src/Command/Action/InsertDataRowAction */
6
+ INSERT_ROW_DATA_ACTION = "InsertRowDataAction",
7
+ REMOVE_ROW_DATA_ACTION = "RemoveRowDataAction",
8
+ INSERT_ROW_ACTION = "InsertRowAction",
9
+ REMOVE_ROW_ACTION = "RemoveRowAction",
10
+ SET_RANGE_STYLE_ACTION = "SetRangeStyleAction",
11
+ SET_SELECTION_ACTION = "SetSelectionActivateAction",
12
+ SET_RANGE_DATA_ACTION = "SetRangeDataAction",
13
+ SET_RANGE_FORMATTED_VALUE_ACTION = "SetRangeFormattedValueAction",
14
+ SET_RANGE_NOTE_ACTION = "SetRangeNoteAction",
15
+ DELETE_RANGE_ACTION = "DeleteRangeAction",
16
+ INSERT_SHEET_ACTION = "InsertSheetAction",
17
+ REMOVE_SHEET_ACTION = "RemoveSheetAction",
18
+ CLEAR_RANGE_ACTION = "ClearRangeAction",
19
+ INSERT_RANGE_ACTION = "InsertRangeAction",
20
+ SET_TAB_COLOR_ACTION = "SetTabColorAction",
21
+ HIDE_SHEET_ACTION = "SetWorkSheetHideAction",
22
+ SET_WORKSHEET_ACTIVATE_ACTION = "SetWorkSheetActivateAction",
23
+ INSERT_COLUMN_ACTION = "InsertColumnAction",
24
+ INSERT_COLUMN_DATA_ACTION = "InsertColumnDataAction",
25
+ REMOVE_COLUMN_ACTION = "RemoveColumnAction",
26
+ REMOVE_COLUMN_DATA_ACTION = "RemoveColumnDataAction",
27
+ SET_HIDE_ROW_ACTION = "SetRowHideAction",
28
+ SET_HIDE_COLUMN_ACTION = "SetColumnHideAction",
29
+ SET_SHOW_ROW_ACTION = "SetRowShowAction",
30
+ SET_SHOW_COLUMN_ACTION = "SetColumnShowAction",
31
+ ADD_MERGE_ACTION = "AddMergeAction",
32
+ REMOVE_MERGE_ACTION = "RemoveMergeAction",
33
+ SET_WORKSHEET_NAME_ACTION = "SetWorkSheetNameAction",
34
+ SET_WORKSHEET_STATUS_ACTION = "SetWorkSheetStatusAction",
35
+ SET_BORDER_ACTION = "SetBorderAction",
36
+ SET_COLUMN_WIDTH_ACTION = "SetColumnWidthAction",
37
+ SET_ROW_HEIGHT_ACTION = "SetRowHeightAction",
38
+ SET_HIDDEN_GRIDLINES_ACTION = "SetHiddenGridlinesAction",
39
+ SET_RIGHT_TO_LEFT_ACTION = "SetRightToLeftAction",
40
+ DELETE_BANDING_ACTION = "DeleteBandingAction",
41
+ SET_BANDING_ACTION = "SetBandingAction",
42
+ ADD_BANDING_ACTION = "AddBandingAction",
43
+ DELETE_NAMED_RANGE_ACTION = "DeleteNamedRangeAction",
44
+ SET_NAMED_RANGE_ACTION = "SetNamedRangeAction",
45
+ ADD_NAMED_RANGE_ACTION = "AddNamedRangeAction",
46
+ SET_SHEET_ORDER_ACTION = "SetSheetOrderAction",
47
+ SET_ZOOM_RATIO_ACTION = "SetZoomRatioAction",
48
+ SET_FROZEN_COLUMNS_ACTION = "SetFrozenColumnsAction",
49
+ SET_FROZEN_ROWS_ACTION = "SetFrozenRowsAction"
50
+ }
51
+ //# sourceMappingURL=action-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-names.d.ts","sourceRoot":"","sources":["../../../../src/types/const/action-names.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY;IACpB,kDAAkD;IAClD,sBAAsB,wBAAwB;IAC9C,sBAAsB,wBAAwB;IAC9C,iBAAiB,oBAAoB;IACrC,iBAAiB,oBAAoB;IACrC,sBAAsB,wBAAwB;IAC9C,oBAAoB,+BAA+B;IACnD,qBAAqB,uBAAuB;IAC5C,gCAAgC,iCAAiC;IACjE,qBAAqB,uBAAuB;IAC5C,mBAAmB,sBAAsB;IACzC,mBAAmB,sBAAsB;IACzC,mBAAmB,sBAAsB;IACzC,kBAAkB,qBAAqB;IACvC,mBAAmB,sBAAsB;IACzC,oBAAoB,sBAAsB;IAC1C,iBAAiB,2BAA2B;IAC5C,6BAA6B,+BAA+B;IAC5D,oBAAoB,uBAAuB;IAC3C,yBAAyB,2BAA2B;IACpD,oBAAoB,uBAAuB;IAC3C,yBAAyB,2BAA2B;IACpD,mBAAmB,qBAAqB;IACxC,sBAAsB,wBAAwB;IAC9C,mBAAmB,qBAAqB;IACxC,sBAAsB,wBAAwB;IAC9C,gBAAgB,mBAAmB;IACnC,mBAAmB,sBAAsB;IACzC,yBAAyB,2BAA2B;IACpD,2BAA2B,6BAA6B;IACxD,iBAAiB,oBAAoB;IACrC,uBAAuB,yBAAyB;IAChD,qBAAqB,uBAAuB;IAC5C,2BAA2B,6BAA6B;IACxD,wBAAwB,yBAAyB;IACjD,qBAAqB,wBAAwB;IAC7C,kBAAkB,qBAAqB;IACvC,kBAAkB,qBAAqB;IACvC,yBAAyB,2BAA2B;IACpD,sBAAsB,wBAAwB;IAC9C,sBAAsB,wBAAwB;IAC9C,sBAAsB,wBAAwB;IAC9C,qBAAqB,uBAAuB;IAC5C,yBAAyB,2BAA2B;IACpD,sBAAsB,wBAAwB;CACjD"}
@@ -0,0 +1,153 @@
1
+ import { BooleanNumber, HorizontalAlign, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
2
+ import type { IWorkbookData, IWorksheetData } from '../interfaces';
3
+ /**
4
+ * Used as an illegal range array return value
5
+ */
6
+ export declare const DEFAULT_RANGE_ARRAY: {
7
+ sheetId: string;
8
+ range: {
9
+ startRow: number;
10
+ endRow: number;
11
+ startColumn: number;
12
+ endColumn: number;
13
+ };
14
+ };
15
+ /**
16
+ * Used as an illegal range return value
17
+ */
18
+ export declare const DEFAULT_RANGE: {
19
+ startRow: number;
20
+ startColumn: number;
21
+ endRow: number;
22
+ endColumn: number;
23
+ };
24
+ /**
25
+ * Used as an init selection return value
26
+ */
27
+ export declare const DEFAULT_SELECTION: {
28
+ startRow: number;
29
+ startColumn: number;
30
+ endRow: number;
31
+ endColumn: number;
32
+ };
33
+ /**
34
+ * Used as an init cell return value
35
+ */
36
+ export declare const DEFAULT_CELL: {
37
+ row: number;
38
+ column: number;
39
+ };
40
+ /**
41
+ * Used as an init workbook return value
42
+ */
43
+ export declare const DEFAULT_WORKBOOK: IWorkbookData;
44
+ export declare const DEFAULT_WORKSHEET_ROW_COUNT = 1000;
45
+ export declare const DEFAULT_WORKSHEET_COLUMN_COUNT = 20;
46
+ export declare const DEFAULT_WORKSHEET_ROW_HEIGHT = 19;
47
+ export declare const DEFAULT_WORKSHEET_COLUMN_WIDTH = 73;
48
+ export declare const DEFAULT_WORKSHEET_ROW_TITLE_WIDTH = 46;
49
+ export declare const DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT = 20;
50
+ /**
51
+ * Used as an init worksheet return value
52
+ */
53
+ export declare const DEFAULT_WORKSHEET: IWorksheetData;
54
+ /**
55
+ * Default styles
56
+ */
57
+ export declare const DEFAULT_STYLES: {
58
+ /**
59
+ * fontFamily
60
+ */
61
+ ff: string;
62
+ /**
63
+ * fontSize
64
+ */
65
+ fs: number;
66
+ /**
67
+ * italic
68
+ * 0: false
69
+ * 1: true
70
+ */
71
+ it: BooleanNumber;
72
+ /**
73
+ * bold
74
+ * 0: false
75
+ * 1: true
76
+ */
77
+ bl: BooleanNumber;
78
+ /**
79
+ * underline
80
+ */
81
+ ul: {
82
+ s: BooleanNumber;
83
+ };
84
+ /**
85
+ * strikethrough
86
+ */
87
+ st: {
88
+ s: BooleanNumber;
89
+ };
90
+ /**
91
+ * overline
92
+ */
93
+ ol: {
94
+ s: BooleanNumber;
95
+ };
96
+ /**
97
+ * textRotation
98
+ */
99
+ tr: {
100
+ a: number;
101
+ /**
102
+ * true : 1
103
+ * false : 0
104
+ */
105
+ v: BooleanNumber;
106
+ };
107
+ /** *
108
+ * textDirection
109
+ */
110
+ td: TextDirection;
111
+ /**
112
+ * color
113
+ */
114
+ cl: {
115
+ rgb: string;
116
+ };
117
+ /**
118
+ * background
119
+ */
120
+ bg: {
121
+ rgb: string;
122
+ };
123
+ /**
124
+ * horizontalAlignment
125
+ */
126
+ ht: HorizontalAlign;
127
+ /**
128
+ * verticalAlignment
129
+ */
130
+ vt: VerticalAlign;
131
+ /**
132
+ * wrapStrategy
133
+ */
134
+ tb: WrapStrategy;
135
+ /**
136
+ * padding
137
+ */
138
+ pd: {
139
+ t: number;
140
+ r: number;
141
+ b: number;
142
+ l: number;
143
+ };
144
+ };
145
+ export declare const DEFAULT_SLIDE: {
146
+ id: string;
147
+ title: string;
148
+ pageSize: {
149
+ width: number;
150
+ height: number;
151
+ };
152
+ };
153
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../src/types/const/const.ts"],"names":[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Action",
5
+ UPDATE_DOCUMENT_ACTION_NAME = "UpdateDocumentAction"
6
+ }
7
+ //# sourceMappingURL=doc-action-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc-action-names.d.ts","sourceRoot":"","sources":["../../../../src/types/const/doc-action-names.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IACxB,kBAAkB,iBAAiB;IACnC,kBAAkB,iBAAiB;IACnC,kBAAkB,iBAAiB;IACnC,2BAA2B,yBAAyB;CACvD"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Set of extension names
3
+ */
4
+ export declare enum EXTENSION_NAMES {
5
+ ARRAY_CONVERTOR = "ARRAY_CONVERTOR",
6
+ MATRIX_CONVERTOR = "MATRIX_CONVERTOR"
7
+ }
8
+ //# sourceMappingURL=extension-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-names.d.ts","sourceRoot":"","sources":["../../../../src/types/const/extension-names.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,eAAe;IACvB,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;CACxC"}
@@ -0,0 +1,5 @@
1
+ export * from './action-names';
2
+ export * from './const';
3
+ export * from './extension-names';
4
+ export * from './theme-color-map';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/const/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface IThemeColors {
2
+ [key: string]: {
3
+ [key: number]: string;
4
+ };
5
+ }
6
+ export declare const THEME_COLORS: IThemeColors;
7
+ export {};
8
+ //# sourceMappingURL=theme-color-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-color-map.d.ts","sourceRoot":"","sources":["../../../../src/types/const/theme-color-map.ts"],"names":[],"mappings":"AAEA,UAAU,YAAY;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED,eAAO,MAAM,YAAY,EAAE,YAe1B,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Auto-fill series
3
+ *
4
+ * @remarks
5
+ * An enumeration of the types of series used to calculate auto-filled values. The manner in which these series affect calculated values differs depending on the type and amount of source data.
6
+ *
7
+ * Reference: {@link https://developers.google.com/apps-script/reference/spreadsheet/auto-fill-series | Google Sheets Enum AutoFillSeries}
8
+ */
9
+ export declare enum AutoFillSeries {
10
+ /**
11
+ * Default. Auto-filling with this setting results in the empty cells in the expanded range being filled with increments of the existing values.
12
+ */
13
+ DEFAULT_SERIES = 0,
14
+ /**
15
+ * Auto-filling with this setting results in the empty cells in the expanded range being filled with copies of the existing values.
16
+ */
17
+ ALTERNATE_SERIES = 1
18
+ }
19
+ //# sourceMappingURL=auto-fill-series.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-fill-series.d.ts","sourceRoot":"","sources":["../../../../src/types/enum/auto-fill-series.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oBAAY,cAAc;IACtB;;OAEG;IACH,cAAc,IAAA;IACd;;OAEG;IACH,gBAAgB,IAAA;CACnB"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Type set of border style
3
+ */
4
+ export declare enum BorderStyleTypes {
5
+ NONE = 0,
6
+ THIN = 1,
7
+ HAIR = 2,
8
+ DOTTED = 3,
9
+ DASHED = 4,
10
+ DASH_DOT = 5,
11
+ DASH_DOT_DOT = 6,
12
+ DOUBLE = 7,
13
+ MEDIUM = 8,
14
+ MEDIUM_DASHED = 9,
15
+ MEDIUM_DASH_DOT = 10,
16
+ MEDIUM_DASH_DOT_DOT = 11,
17
+ SLANT_DASH_DOT = 12,
18
+ THICK = 13
19
+ }
20
+ export declare enum BorderType {
21
+ TOP = "top",
22
+ BOTTOM = "bottom",
23
+ LEFT = "left",
24
+ RIGHT = "right",
25
+ NONE = "none",
26
+ ALL = "all",
27
+ OUTSIDE = "outside",
28
+ INSIDE = "inside",
29
+ HORIZONTAL = "horizontal",
30
+ VERTICAL = "vertical"
31
+ }
32
+ //# sourceMappingURL=border-style-types.d.ts.map