logisheets 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/src/api/index.d.ts +2 -0
  4. package/dist/src/api/index.js +2 -0
  5. package/dist/src/api/utils.d.ts +3 -0
  6. package/dist/src/api/utils.js +4 -0
  7. package/dist/src/api/workbook.d.ts +18 -0
  8. package/dist/src/api/workbook.js +87 -0
  9. package/dist/src/api/worksheet.d.ts +16 -0
  10. package/dist/src/api/worksheet.js +33 -0
  11. package/dist/src/bindings/action_effect.d.ts +7 -0
  12. package/dist/src/bindings/action_effect.js +1 -0
  13. package/dist/src/bindings/async_func_result.d.ts +5 -0
  14. package/dist/src/bindings/async_func_result.js +1 -0
  15. package/dist/src/bindings/block_cell_id.d.ts +5 -0
  16. package/dist/src/bindings/block_cell_id.js +2 -0
  17. package/dist/src/bindings/block_info.d.ts +7 -0
  18. package/dist/src/bindings/block_info.js +2 -0
  19. package/dist/src/bindings/block_input.d.ts +7 -0
  20. package/dist/src/bindings/block_input.js +2 -0
  21. package/dist/src/bindings/block_style_update.d.ts +8 -0
  22. package/dist/src/bindings/block_style_update.js +1 -0
  23. package/dist/src/bindings/border.d.ts +13 -0
  24. package/dist/src/bindings/border.js +1 -0
  25. package/dist/src/bindings/border_pr.d.ts +6 -0
  26. package/dist/src/bindings/border_pr.js +1 -0
  27. package/dist/src/bindings/cell_alignment.d.ts +13 -0
  28. package/dist/src/bindings/cell_alignment.js +1 -0
  29. package/dist/src/bindings/cell_formula_value.d.ts +7 -0
  30. package/dist/src/bindings/cell_formula_value.js +1 -0
  31. package/dist/src/bindings/cell_id.d.ts +7 -0
  32. package/dist/src/bindings/cell_id.js +1 -0
  33. package/dist/src/bindings/cell_info.d.ts +7 -0
  34. package/dist/src/bindings/cell_info.js +1 -0
  35. package/dist/src/bindings/cell_input.d.ts +6 -0
  36. package/dist/src/bindings/cell_input.js +2 -0
  37. package/dist/src/bindings/cell_protection.d.ts +4 -0
  38. package/dist/src/bindings/cell_protection.js +2 -0
  39. package/dist/src/bindings/cell_style.d.ts +6 -0
  40. package/dist/src/bindings/cell_style.js +1 -0
  41. package/dist/src/bindings/col_info.d.ts +5 -0
  42. package/dist/src/bindings/col_info.js +2 -0
  43. package/dist/src/bindings/color.d.ts +6 -0
  44. package/dist/src/bindings/color.js +2 -0
  45. package/dist/src/bindings/comment.d.ts +6 -0
  46. package/dist/src/bindings/comment.js +2 -0
  47. package/dist/src/bindings/create_block.d.ts +8 -0
  48. package/dist/src/bindings/create_block.js +2 -0
  49. package/dist/src/bindings/create_sheet.d.ts +4 -0
  50. package/dist/src/bindings/create_sheet.js +2 -0
  51. package/dist/src/bindings/delete_cols.d.ts +5 -0
  52. package/dist/src/bindings/delete_cols.js +2 -0
  53. package/dist/src/bindings/delete_cols_in_block.d.ts +6 -0
  54. package/dist/src/bindings/delete_cols_in_block.js +2 -0
  55. package/dist/src/bindings/delete_rows.d.ts +5 -0
  56. package/dist/src/bindings/delete_rows.js +2 -0
  57. package/dist/src/bindings/delete_rows_in_block.d.ts +6 -0
  58. package/dist/src/bindings/delete_rows_in_block.js +2 -0
  59. package/dist/src/bindings/delete_sheet.d.ts +3 -0
  60. package/dist/src/bindings/delete_sheet.js +2 -0
  61. package/dist/src/bindings/display_patch.d.ts +25 -0
  62. package/dist/src/bindings/display_patch.js +1 -0
  63. package/dist/src/bindings/display_request.d.ts +4 -0
  64. package/dist/src/bindings/display_request.js +2 -0
  65. package/dist/src/bindings/display_response.d.ts +5 -0
  66. package/dist/src/bindings/display_response.js +1 -0
  67. package/dist/src/bindings/edit_action.d.ts +7 -0
  68. package/dist/src/bindings/edit_action.js +1 -0
  69. package/dist/src/bindings/edit_payload.d.ts +64 -0
  70. package/dist/src/bindings/edit_payload.js +1 -0
  71. package/dist/src/bindings/error_message.d.ts +4 -0
  72. package/dist/src/bindings/error_message.js +2 -0
  73. package/dist/src/bindings/fill.d.ts +7 -0
  74. package/dist/src/bindings/fill.js +1 -0
  75. package/dist/src/bindings/font.d.ts +23 -0
  76. package/dist/src/bindings/font.js +1 -0
  77. package/dist/src/bindings/font_family.d.ts +3 -0
  78. package/dist/src/bindings/font_family.js +2 -0
  79. package/dist/src/bindings/font_name.d.ts +3 -0
  80. package/dist/src/bindings/font_name.js +2 -0
  81. package/dist/src/bindings/font_scheme.d.ts +4 -0
  82. package/dist/src/bindings/font_scheme.js +1 -0
  83. package/dist/src/bindings/gradient_fill.d.ts +11 -0
  84. package/dist/src/bindings/gradient_fill.js +1 -0
  85. package/dist/src/bindings/gradient_stop.d.ts +5 -0
  86. package/dist/src/bindings/gradient_stop.js +1 -0
  87. package/dist/src/bindings/index.d.ts +86 -0
  88. package/dist/src/bindings/index.js +87 -0
  89. package/dist/src/bindings/insert_cols.d.ts +5 -0
  90. package/dist/src/bindings/insert_cols.js +2 -0
  91. package/dist/src/bindings/insert_cols_in_block.d.ts +6 -0
  92. package/dist/src/bindings/insert_cols_in_block.js +2 -0
  93. package/dist/src/bindings/insert_rows.d.ts +5 -0
  94. package/dist/src/bindings/insert_rows.js +2 -0
  95. package/dist/src/bindings/insert_rows_in_block.d.ts +6 -0
  96. package/dist/src/bindings/insert_rows_in_block.js +2 -0
  97. package/dist/src/bindings/merge_cell.d.ts +6 -0
  98. package/dist/src/bindings/merge_cell.js +2 -0
  99. package/dist/src/bindings/move_block.d.ts +6 -0
  100. package/dist/src/bindings/move_block.js +2 -0
  101. package/dist/src/bindings/msg_edit.d.ts +7 -0
  102. package/dist/src/bindings/msg_edit.js +1 -0
  103. package/dist/src/bindings/msg_join.d.ts +6 -0
  104. package/dist/src/bindings/msg_join.js +1 -0
  105. package/dist/src/bindings/msg_sequencer_action_invalid_message.d.ts +6 -0
  106. package/dist/src/bindings/msg_sequencer_action_invalid_message.js +2 -0
  107. package/dist/src/bindings/msg_sequencer_action_message.d.ts +7 -0
  108. package/dist/src/bindings/msg_sequencer_action_message.js +1 -0
  109. package/dist/src/bindings/msg_sequencer_init_workbook.d.ts +5 -0
  110. package/dist/src/bindings/msg_sequencer_init_workbook.js +2 -0
  111. package/dist/src/bindings/msg_sequencer_message.d.ts +10 -0
  112. package/dist/src/bindings/msg_sequencer_message.js +1 -0
  113. package/dist/src/bindings/msg_user_message.d.ts +7 -0
  114. package/dist/src/bindings/msg_user_message.js +1 -0
  115. package/dist/src/bindings/normal_cell_id.d.ts +4 -0
  116. package/dist/src/bindings/normal_cell_id.js +2 -0
  117. package/dist/src/bindings/pattern_fill.d.ts +7 -0
  118. package/dist/src/bindings/pattern_fill.js +1 -0
  119. package/dist/src/bindings/payloads_action.d.ts +5 -0
  120. package/dist/src/bindings/payloads_action.js +1 -0
  121. package/dist/src/bindings/recalc_cell.d.ts +5 -0
  122. package/dist/src/bindings/recalc_cell.js +1 -0
  123. package/dist/src/bindings/remove_block.d.ts +4 -0
  124. package/dist/src/bindings/remove_block.js +2 -0
  125. package/dist/src/bindings/row_info.d.ts +5 -0
  126. package/dist/src/bindings/row_info.js +2 -0
  127. package/dist/src/bindings/set_col_width.d.ts +5 -0
  128. package/dist/src/bindings/set_col_width.js +2 -0
  129. package/dist/src/bindings/set_row_height.d.ts +5 -0
  130. package/dist/src/bindings/set_row_height.js +2 -0
  131. package/dist/src/bindings/set_visible.d.ts +6 -0
  132. package/dist/src/bindings/set_visible.js +2 -0
  133. package/dist/src/bindings/sheet_blocks.d.ts +5 -0
  134. package/dist/src/bindings/sheet_blocks.js +1 -0
  135. package/dist/src/bindings/sheet_col_info.d.ts +6 -0
  136. package/dist/src/bindings/sheet_col_info.js +1 -0
  137. package/dist/src/bindings/sheet_comments.d.ts +5 -0
  138. package/dist/src/bindings/sheet_comments.js +1 -0
  139. package/dist/src/bindings/sheet_merge_cells.d.ts +5 -0
  140. package/dist/src/bindings/sheet_merge_cells.js +1 -0
  141. package/dist/src/bindings/sheet_names.d.ts +3 -0
  142. package/dist/src/bindings/sheet_names.js +2 -0
  143. package/dist/src/bindings/sheet_rename.d.ts +5 -0
  144. package/dist/src/bindings/sheet_rename.js +2 -0
  145. package/dist/src/bindings/sheet_row_info.d.ts +6 -0
  146. package/dist/src/bindings/sheet_row_info.js +1 -0
  147. package/dist/src/bindings/sheet_styles.d.ts +5 -0
  148. package/dist/src/bindings/sheet_styles.js +1 -0
  149. package/dist/src/bindings/sheet_values.d.ts +5 -0
  150. package/dist/src/bindings/sheet_values.js +1 -0
  151. package/dist/src/bindings/st_border_style.d.ts +1 -0
  152. package/dist/src/bindings/st_border_style.js +2 -0
  153. package/dist/src/bindings/st_font_scheme.d.ts +1 -0
  154. package/dist/src/bindings/st_font_scheme.js +2 -0
  155. package/dist/src/bindings/st_gradient_type.d.ts +1 -0
  156. package/dist/src/bindings/st_gradient_type.js +2 -0
  157. package/dist/src/bindings/st_horizontal_alignment.d.ts +1 -0
  158. package/dist/src/bindings/st_horizontal_alignment.js +2 -0
  159. package/dist/src/bindings/st_pattern_type.d.ts +1 -0
  160. package/dist/src/bindings/st_pattern_type.js +2 -0
  161. package/dist/src/bindings/st_underline_values.d.ts +1 -0
  162. package/dist/src/bindings/st_underline_values.js +2 -0
  163. package/dist/src/bindings/st_vertical_align_run.d.ts +1 -0
  164. package/dist/src/bindings/st_vertical_align_run.js +2 -0
  165. package/dist/src/bindings/st_vertical_alignment.d.ts +1 -0
  166. package/dist/src/bindings/st_vertical_alignment.js +2 -0
  167. package/dist/src/bindings/status_code.d.ts +5 -0
  168. package/dist/src/bindings/status_code.js +2 -0
  169. package/dist/src/bindings/style.d.ts +13 -0
  170. package/dist/src/bindings/style.js +1 -0
  171. package/dist/src/bindings/style_update.d.ts +7 -0
  172. package/dist/src/bindings/style_update.js +1 -0
  173. package/dist/src/bindings/style_update_type.d.ts +27 -0
  174. package/dist/src/bindings/style_update_type.js +1 -0
  175. package/dist/src/bindings/task.d.ts +4 -0
  176. package/dist/src/bindings/task.js +2 -0
  177. package/dist/src/bindings/underline_property.d.ts +4 -0
  178. package/dist/src/bindings/underline_property.js +1 -0
  179. package/dist/src/bindings/value.d.ts +9 -0
  180. package/dist/src/bindings/value.js +2 -0
  181. package/dist/src/bindings/vertical_align_font_property.d.ts +4 -0
  182. package/dist/src/bindings/vertical_align_font_property.js +1 -0
  183. package/dist/src/bindings/workbook_file.d.ts +4 -0
  184. package/dist/src/bindings/workbook_file.js +2 -0
  185. package/dist/src/index.d.ts +4 -0
  186. package/dist/src/index.js +3 -0
  187. package/dist/src/payloads/block_input.d.ts +21 -0
  188. package/dist/src/payloads/block_input.js +47 -0
  189. package/dist/src/payloads/cell_input.d.ts +18 -0
  190. package/dist/src/payloads/cell_input.js +39 -0
  191. package/dist/src/payloads/create_block.d.ts +24 -0
  192. package/dist/src/payloads/create_block.js +61 -0
  193. package/dist/src/payloads/delete_block_cols.d.ts +18 -0
  194. package/dist/src/payloads/delete_block_cols.js +39 -0
  195. package/dist/src/payloads/delete_block_rows.d.ts +18 -0
  196. package/dist/src/payloads/delete_block_rows.js +39 -0
  197. package/dist/src/payloads/delete_cols.d.ts +15 -0
  198. package/dist/src/payloads/delete_cols.js +31 -0
  199. package/dist/src/payloads/delete_rows.d.ts +15 -0
  200. package/dist/src/payloads/delete_rows.js +31 -0
  201. package/dist/src/payloads/delete_sheet.d.ts +9 -0
  202. package/dist/src/payloads/delete_sheet.js +15 -0
  203. package/dist/src/payloads/index.d.ts +43 -0
  204. package/dist/src/payloads/index.js +21 -0
  205. package/dist/src/payloads/insert_block_cols.d.ts +18 -0
  206. package/dist/src/payloads/insert_block_cols.js +39 -0
  207. package/dist/src/payloads/insert_block_rows.d.ts +18 -0
  208. package/dist/src/payloads/insert_block_rows.js +39 -0
  209. package/dist/src/payloads/insert_cols.d.ts +15 -0
  210. package/dist/src/payloads/insert_cols.js +31 -0
  211. package/dist/src/payloads/insert_rows.d.ts +15 -0
  212. package/dist/src/payloads/insert_rows.js +31 -0
  213. package/dist/src/payloads/insert_sheet.d.ts +12 -0
  214. package/dist/src/payloads/insert_sheet.js +23 -0
  215. package/dist/src/payloads/move_block.d.ts +18 -0
  216. package/dist/src/payloads/move_block.js +39 -0
  217. package/dist/src/payloads/set_border.d.ts +49 -0
  218. package/dist/src/payloads/set_border.js +97 -0
  219. package/dist/src/payloads/set_col_visible.d.ts +15 -0
  220. package/dist/src/payloads/set_col_visible.js +31 -0
  221. package/dist/src/payloads/set_col_width.d.ts +15 -0
  222. package/dist/src/payloads/set_col_width.js +31 -0
  223. package/dist/src/payloads/set_font.d.ts +46 -0
  224. package/dist/src/payloads/set_font.js +91 -0
  225. package/dist/src/payloads/set_row_height.d.ts +15 -0
  226. package/dist/src/payloads/set_row_height.js +31 -0
  227. package/dist/src/payloads/set_row_visible.d.ts +15 -0
  228. package/dist/src/payloads/set_row_visible.js +31 -0
  229. package/dist/src/payloads/sheet_rename.d.ts +15 -0
  230. package/dist/src/payloads/sheet_rename.js +29 -0
  231. package/dist/src/transactions.d.ts +7 -0
  232. package/dist/src/transactions.js +12 -0
  233. package/package.json +6 -5
  234. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  235. package/index.ts +0 -1
  236. package/src/api/index.ts +0 -1
  237. package/src/api/workbook.ts +0 -201
  238. package/src/bindings/action_effect.ts +0 -17
  239. package/src/bindings/async_func_result.ts +0 -12
  240. package/src/bindings/block_cell_id.ts +0 -7
  241. package/src/bindings/block_info.ts +0 -9
  242. package/src/bindings/block_input.ts +0 -9
  243. package/src/bindings/block_style_update.ts +0 -10
  244. package/src/bindings/border.ts +0 -15
  245. package/src/bindings/border_pr.ts +0 -8
  246. package/src/bindings/cell_alignment.ts +0 -15
  247. package/src/bindings/cell_formula_value.ts +0 -9
  248. package/src/bindings/cell_id.ts +0 -7
  249. package/src/bindings/cell_input.ts +0 -9
  250. package/src/bindings/cell_protection.ts +0 -6
  251. package/src/bindings/cell_style.ts +0 -8
  252. package/src/bindings/col_info.ts +0 -7
  253. package/src/bindings/color.ts +0 -8
  254. package/src/bindings/comment.ts +0 -8
  255. package/src/bindings/create_block.ts +0 -15
  256. package/src/bindings/create_sheet.ts +0 -6
  257. package/src/bindings/delete_cols.ts +0 -7
  258. package/src/bindings/delete_cols_in_block.ts +0 -8
  259. package/src/bindings/delete_rows.ts +0 -7
  260. package/src/bindings/delete_rows_in_block.ts +0 -8
  261. package/src/bindings/delete_sheet.ts +0 -5
  262. package/src/bindings/display_patch.ts +0 -19
  263. package/src/bindings/display_request.ts +0 -6
  264. package/src/bindings/display_response.ts +0 -7
  265. package/src/bindings/edit_action.ts +0 -10
  266. package/src/bindings/edit_payload.ts +0 -47
  267. package/src/bindings/fill.ts +0 -7
  268. package/src/bindings/font.ts +0 -25
  269. package/src/bindings/font_family.ts +0 -5
  270. package/src/bindings/font_name.ts +0 -5
  271. package/src/bindings/font_scheme.ts +0 -6
  272. package/src/bindings/gradient_fill.ts +0 -13
  273. package/src/bindings/gradient_stop.ts +0 -7
  274. package/src/bindings/index.ts +0 -85
  275. package/src/bindings/insert_cols.ts +0 -7
  276. package/src/bindings/insert_cols_in_block.ts +0 -8
  277. package/src/bindings/insert_rows.ts +0 -7
  278. package/src/bindings/insert_rows_in_block.ts +0 -8
  279. package/src/bindings/merge_cell.ts +0 -8
  280. package/src/bindings/move_block.ts +0 -8
  281. package/src/bindings/msg_edit.ts +0 -9
  282. package/src/bindings/msg_join.ts +0 -9
  283. package/src/bindings/msg_sequencer_action_invalid_message.ts +0 -10
  284. package/src/bindings/msg_sequencer_action_message.ts +0 -10
  285. package/src/bindings/msg_sequencer_init_workbook.ts +0 -8
  286. package/src/bindings/msg_sequencer_message.ts +0 -9
  287. package/src/bindings/msg_user_message.ts +0 -7
  288. package/src/bindings/normal_cell_id.ts +0 -6
  289. package/src/bindings/pattern_fill.ts +0 -9
  290. package/src/bindings/payloads_action.ts +0 -15
  291. package/src/bindings/recalc_cell.ts +0 -7
  292. package/src/bindings/remove_block.ts +0 -6
  293. package/src/bindings/row_info.ts +0 -7
  294. package/src/bindings/set_col_width.ts +0 -7
  295. package/src/bindings/set_row_height.ts +0 -7
  296. package/src/bindings/set_visible.ts +0 -8
  297. package/src/bindings/sheet_blocks.ts +0 -7
  298. package/src/bindings/sheet_col_info.ts +0 -8
  299. package/src/bindings/sheet_comments.ts +0 -7
  300. package/src/bindings/sheet_merge_cells.ts +0 -7
  301. package/src/bindings/sheet_names.ts +0 -5
  302. package/src/bindings/sheet_rename.ts +0 -8
  303. package/src/bindings/sheet_row_info.ts +0 -8
  304. package/src/bindings/sheet_styles.ts +0 -7
  305. package/src/bindings/sheet_values.ts +0 -7
  306. package/src/bindings/st_border_style.ts +0 -17
  307. package/src/bindings/st_font_scheme.ts +0 -6
  308. package/src/bindings/st_gradient_type.ts +0 -6
  309. package/src/bindings/st_horizontal_alignment.ts +0 -12
  310. package/src/bindings/st_pattern_type.ts +0 -23
  311. package/src/bindings/st_underline_values.ts +0 -9
  312. package/src/bindings/st_vertical_align_run.ts +0 -7
  313. package/src/bindings/st_vertical_alignment.ts +0 -9
  314. package/src/bindings/status_code.ts +0 -5
  315. package/src/bindings/style.ts +0 -15
  316. package/src/bindings/style_update.ts +0 -9
  317. package/src/bindings/style_update_type.ts +0 -29
  318. package/src/bindings/task.ts +0 -6
  319. package/src/bindings/underline_property.ts +0 -6
  320. package/src/bindings/value.ts +0 -8
  321. package/src/bindings/vertical_align_font_property.ts +0 -6
  322. package/src/bindings/workbook_file.ts +0 -6
  323. package/src/index.ts +0 -42
  324. package/src/payloads/block_input.ts +0 -54
  325. package/src/payloads/cell_input.ts +0 -44
  326. package/src/payloads/create_block.ts +0 -78
  327. package/src/payloads/delete_block_cols.ts +0 -44
  328. package/src/payloads/delete_block_rows.ts +0 -44
  329. package/src/payloads/delete_cols.ts +0 -37
  330. package/src/payloads/delete_rows.ts +0 -37
  331. package/src/payloads/delete_sheet.ts +0 -19
  332. package/src/payloads/index.ts +0 -66
  333. package/src/payloads/insert_block_cols.ts +0 -44
  334. package/src/payloads/insert_block_rows.ts +0 -44
  335. package/src/payloads/insert_cols.ts +0 -35
  336. package/src/payloads/insert_rows.ts +0 -36
  337. package/src/payloads/insert_sheet.ts +0 -27
  338. package/src/payloads/move_block.ts +0 -45
  339. package/src/payloads/set_border.ts +0 -113
  340. package/src/payloads/set_col_visible.ts +0 -35
  341. package/src/payloads/set_col_width.ts +0 -35
  342. package/src/payloads/set_font.ts +0 -107
  343. package/src/payloads/set_row_height.ts +0 -35
  344. package/src/payloads/set_row_visible.ts +0 -35
  345. package/src/payloads/sheet_rename.ts +0 -35
  346. package/src/transactions.ts +0 -14
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface Comment {
4
- row: number
5
- col: number
6
- author: string
7
- content: string
8
- }
@@ -1,15 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- // Create a new block.
4
- //
5
- // Note that the block id is assigned by you. You are supposed to
6
- // manage all your blocks. If the `block id` is already existed, engines
7
- // will remove the old one.
8
- export interface CreateBlock {
9
- sheetIdx: number
10
- id: number
11
- masterRow: number
12
- masterCol: number
13
- rowCnt: number
14
- colCnt: number
15
- }
@@ -1,6 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface CreateSheet {
4
- idx: number
5
- newName: string
6
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface DeleteCols {
4
- sheetIdx: number
5
- start: number
6
- count: number
7
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface DeleteColsInBlock {
4
- sheetIdx: number
5
- blockId: number
6
- start: number
7
- cnt: number
8
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface DeleteRows {
4
- sheetIdx: number
5
- start: number
6
- count: number
7
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface DeleteRowsInBlock {
4
- sheetIdx: number
5
- blockId: number
6
- start: number
7
- cnt: number
8
- }
@@ -1,5 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface DeleteSheet {
4
- idx: number
5
- }
@@ -1,19 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {SheetBlocks} from './sheet_blocks'
3
- import {SheetColInfo} from './sheet_col_info'
4
- import {SheetComments} from './sheet_comments'
5
- import {SheetMergeCells} from './sheet_merge_cells'
6
- import {SheetNames} from './sheet_names'
7
- import {SheetRowInfo} from './sheet_row_info'
8
- import {SheetStyles} from './sheet_styles'
9
- import {SheetValues} from './sheet_values'
10
-
11
- export type DisplayPatch =
12
- | {values: SheetValues}
13
- | {styles: SheetStyles}
14
- | {rowInfo: SheetRowInfo}
15
- | {colInfo: SheetColInfo}
16
- | {mergeCells: SheetMergeCells}
17
- | {comments: SheetComments}
18
- | {blocks: SheetBlocks}
19
- | {sheetNames: SheetNames}
@@ -1,6 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface DisplayRequest {
4
- sheetIdx: number
5
- version: number
6
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {DisplayPatch} from './display_patch'
3
-
4
- export interface DisplayResponse {
5
- incremental: boolean
6
- patches: readonly DisplayPatch[]
7
- }
@@ -1,10 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {PayloadsAction} from './payloads_action'
3
- import {RecalcCell} from './recalc_cell'
4
-
5
- // `EditAction` represents your update behavior to the workbook.
6
- export type EditAction =
7
- | 'undo'
8
- | 'redo'
9
- | {payloads: PayloadsAction}
10
- | {recalc: readonly RecalcCell[]}
@@ -1,47 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {BlockInput} from './block_input'
3
- import {BlockStyleUpdate} from './block_style_update'
4
- import {CellInput} from './cell_input'
5
- import {CreateBlock} from './create_block'
6
- import {CreateSheet} from './create_sheet'
7
- import {DeleteColsInBlock} from './delete_cols_in_block'
8
- import {DeleteCols} from './delete_cols'
9
- import {DeleteRowsInBlock} from './delete_rows_in_block'
10
- import {DeleteRows} from './delete_rows'
11
- import {DeleteSheet} from './delete_sheet'
12
- import {InsertColsInBlock} from './insert_cols_in_block'
13
- import {InsertCols} from './insert_cols'
14
- import {InsertRowsInBlock} from './insert_rows_in_block'
15
- import {InsertRows} from './insert_rows'
16
- import {MoveBlock} from './move_block'
17
- import {RemoveBlock} from './remove_block'
18
- import {SetColWidth} from './set_col_width'
19
- import {SetRowHeight} from './set_row_height'
20
- import {SetVisible} from './set_visible'
21
- import {SheetRename} from './sheet_rename'
22
- import {StyleUpdate} from './style_update'
23
-
24
- // `EditPayload` is the basic update unit of the Workbook. Developers can config their own
25
- // `EditAction` (e.g. setting a button to create a table) to facilitate their users.
26
- export type EditPayload =
27
- | {blockInput: BlockInput}
28
- | {moveBlock: MoveBlock}
29
- | {removeBlock: RemoveBlock}
30
- | {createBlock: CreateBlock}
31
- | {styleUpdate: StyleUpdate}
32
- | {blockStyleUpdate: BlockStyleUpdate}
33
- | {cellInput: CellInput}
34
- | {setColWidth: SetColWidth}
35
- | {setRowHeight: SetRowHeight}
36
- | {setVisible: SetVisible}
37
- | {sheetRename: SheetRename}
38
- | {createSheet: CreateSheet}
39
- | {deleteSheet: DeleteSheet}
40
- | {insertCols: InsertCols}
41
- | {deleteCols: DeleteCols}
42
- | {insertRows: InsertRows}
43
- | {deleteRows: DeleteRows}
44
- | {insertColsInBlock: InsertColsInBlock}
45
- | {deleteColsInBlock: DeleteColsInBlock}
46
- | {insertRowsInBlock: InsertRowsInBlock}
47
- | {deleteRowsInBlock: DeleteRowsInBlock}
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {GradientFill} from './gradient_fill'
3
- import {PatternFill} from './pattern_fill'
4
-
5
- export type Fill =
6
- | {patternFill: PatternFill}
7
- | {gradientFill: GradientFill}
@@ -1,25 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {Color} from './color'
3
- import {CtFontFamily} from './font_family'
4
- import {CtFontName} from './font_name'
5
- import {CtFontScheme} from './font_scheme'
6
- import {CtUnderlineProperty} from './underline_property'
7
- import {CtVerticalAlignFontProperty} from './vertical_align_font_property'
8
-
9
- export interface Font {
10
- bold: boolean
11
- italic: boolean
12
- underline?: CtUnderlineProperty
13
- color?: Color
14
- sz?: number
15
- name?: CtFontName
16
- charset?: number
17
- family?: CtFontFamily
18
- strike: boolean
19
- outline: boolean
20
- shadow: boolean
21
- condense: boolean
22
- extend: boolean
23
- vertAlign?: CtVerticalAlignFontProperty
24
- scheme?: CtFontScheme
25
- }
@@ -1,5 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface CtFontFamily {
4
- val: number
5
- }
@@ -1,5 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface CtFontName {
4
- val: string
5
- }
@@ -1,6 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {StFontScheme} from './st_font_scheme'
3
-
4
- export interface CtFontScheme {
5
- val: StFontScheme
6
- }
@@ -1,13 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {GradientStop} from './gradient_stop'
3
- import {StGradientType} from './st_gradient_type'
4
-
5
- export interface GradientFill {
6
- stops: readonly GradientStop[]
7
- ty: StGradientType
8
- degree: number
9
- left: number
10
- right: number
11
- top: number
12
- bottom: number
13
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {Color} from './color'
3
-
4
- export interface GradientStop {
5
- color: Color
6
- position: number
7
- }
@@ -1,85 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- export * from './action_effect'
3
- export * from './async_func_result'
4
- export * from './block_cell_id'
5
- export * from './block_info'
6
- export * from './block_input'
7
- export * from './block_style_update'
8
- export * from './border'
9
- export * from './border_pr'
10
- export * from './cell_alignment'
11
- export * from './cell_formula_value'
12
- export * from './cell_id'
13
- export * from './cell_input'
14
- export * from './cell_protection'
15
- export * from './cell_style'
16
- export * from './col_info'
17
- export * from './color'
18
- export * from './comment'
19
- export * from './create_block'
20
- export * from './create_sheet'
21
- export * from './delete_cols'
22
- export * from './delete_cols_in_block'
23
- export * from './delete_rows'
24
- export * from './delete_rows_in_block'
25
- export * from './delete_sheet'
26
- export * from './display_patch'
27
- export * from './display_request'
28
- export * from './display_response'
29
- export * from './edit_action'
30
- export * from './edit_payload'
31
- export * from './fill'
32
- export * from './font'
33
- export * from './font_family'
34
- export * from './font_name'
35
- export * from './font_scheme'
36
- export * from './gradient_fill'
37
- export * from './gradient_stop'
38
- export * from './insert_cols'
39
- export * from './insert_cols_in_block'
40
- export * from './insert_rows'
41
- export * from './insert_rows_in_block'
42
- export * from './merge_cell'
43
- export * from './move_block'
44
- export * from './msg_edit'
45
- export * from './msg_join'
46
- export * from './msg_sequencer_action_invalid_message'
47
- export * from './msg_sequencer_action_message'
48
- export * from './msg_sequencer_init_workbook'
49
- export * from './msg_sequencer_message'
50
- export * from './msg_user_message'
51
- export * from './normal_cell_id'
52
- export * from './pattern_fill'
53
- export * from './payloads_action'
54
- export * from './recalc_cell'
55
- export * from './remove_block'
56
- export * from './row_info'
57
- export * from './set_col_width'
58
- export * from './set_row_height'
59
- export * from './set_visible'
60
- export * from './sheet_blocks'
61
- export * from './sheet_col_info'
62
- export * from './sheet_comments'
63
- export * from './sheet_merge_cells'
64
- export * from './sheet_names'
65
- export * from './sheet_rename'
66
- export * from './sheet_row_info'
67
- export * from './sheet_styles'
68
- export * from './sheet_values'
69
- export * from './st_border_style'
70
- export * from './st_font_scheme'
71
- export * from './st_gradient_type'
72
- export * from './st_horizontal_alignment'
73
- export * from './st_pattern_type'
74
- export * from './st_underline_values'
75
- export * from './st_vertical_align_run'
76
- export * from './st_vertical_alignment'
77
- export * from './status_code'
78
- export * from './style'
79
- export * from './style_update'
80
- export * from './style_update_type'
81
- export * from './task'
82
- export * from './underline_property'
83
- export * from './value'
84
- export * from './vertical_align_font_property'
85
- export * from './workbook_file'
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface InsertCols {
4
- sheetIdx: number
5
- start: number
6
- count: number
7
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface InsertColsInBlock {
4
- sheetIdx: number
5
- blockId: number
6
- start: number
7
- cnt: number
8
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface InsertRows {
4
- sheetIdx: number
5
- start: number
6
- count: number
7
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface InsertRowsInBlock {
4
- sheetIdx: number
5
- blockId: number
6
- start: number
7
- cnt: number
8
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface MergeCell {
4
- rowStart: number
5
- colStart: number
6
- rowEnd: number
7
- colEnd: number
8
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface MoveBlock {
4
- sheetIdx: number
5
- id: number
6
- newMasterRow: number
7
- newMasterCol: number
8
- }
@@ -1,9 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {EditAction} from './edit_action'
3
-
4
- export interface Edit {
5
- version: number
6
- file: string
7
- user: string
8
- action: EditAction
9
- }
@@ -1,9 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {WorkbookFile} from './workbook_file'
3
-
4
- // Join to edit the file.
5
- export interface Join {
6
- file: string
7
- user: string
8
- wbFile?: WorkbookFile
9
- }
@@ -1,10 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- // If users' action is conflicted with others', this action will not be executed
4
- // and this message will be sent to this user only.
5
- export interface SequencerActionInvalidMessage {
6
- version: number
7
- userId: string
8
- fileId: string
9
- reason: string
10
- }
@@ -1,10 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {EditAction} from './edit_action'
3
-
4
- // Users will receive this message to update its local file.
5
- export interface SequencerActionMessage {
6
- version: number
7
- userId: string
8
- fileId: string
9
- action: EditAction
10
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- // The reponse message for users' `Join` message.
4
- export interface SequencerInitWorkbook {
5
- version: number
6
- fileId: string
7
- data?: Uint8Array
8
- }
@@ -1,9 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {SequencerActionInvalidMessage} from './msg_sequencer_action_invalid_message'
3
- import {SequencerActionMessage} from './msg_sequencer_action_message'
4
- import {SequencerInitWorkbook} from './msg_sequencer_init_workbook'
5
-
6
- export type SequencerMessage =
7
- | {invalidAction: SequencerActionInvalidMessage}
8
- | {action: SequencerActionMessage}
9
- | {join: SequencerInitWorkbook}
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {Edit} from './msg_edit'
3
- import {Join} from './msg_join'
4
-
5
- export type UserMessage =
6
- | {join: Join}
7
- | {edit: Edit}
@@ -1,6 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface NormalCellId {
4
- row: number
5
- col: number
6
- }
@@ -1,9 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {Color} from './color'
3
- import {StPatternType} from './st_pattern_type'
4
-
5
- export interface PatternFill {
6
- fgColor?: Color
7
- bgColor?: Color
8
- patternType?: StPatternType
9
- }
@@ -1,15 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {EditPayload} from './edit_payload'
3
-
4
- // A `PayloadsAction` contains one or more `EditPayload`.
5
- // These `EditPayload`s will be withdrawn at the same time if user undo it.
6
- // And if one of the payload is failed to be executed, this `EditAction` will
7
- // not do anything at all.
8
- //
9
- // An `EditPayload` represents an atomic update of a workbook and they will be
10
- // executed in sequence. That means it is a totally different result between
11
- // updating a cell at B4 before inserting and after inserting.
12
- export interface PayloadsAction {
13
- payloads: readonly EditPayload[]
14
- undoable: boolean
15
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {CellId} from './cell_id'
3
-
4
- export interface RecalcCell {
5
- sheetId: number
6
- cellId: CellId
7
- }
@@ -1,6 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface RemoveBlock {
4
- sheetIdx: number
5
- id: number
6
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface RowInfo {
4
- idx: number
5
- height: number
6
- hidden: boolean
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface SetColWidth {
4
- sheetIdx: number
5
- col: number
6
- width: number
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface SetRowHeight {
4
- sheetIdx: number
5
- row: number
6
- height: number
7
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface SetVisible {
4
- isRow: boolean
5
- sheetIdx: number
6
- start: number
7
- visible: boolean
8
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {BlockInfo} from './block_info'
3
-
4
- export interface SheetBlocks {
5
- sheetIdx: number
6
- blocks: readonly BlockInfo[]
7
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {ColInfo} from './col_info'
3
-
4
- export interface SheetColInfo {
5
- sheetIdx: number
6
- info: readonly ColInfo[]
7
- defaultWidth: number
8
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {Comment} from './comment'
3
-
4
- export interface SheetComments {
5
- sheetIdx: number
6
- comments: readonly Comment[]
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {MergeCell} from './merge_cell'
3
-
4
- export interface SheetMergeCells {
5
- sheetIdx: number
6
- mergeCells: readonly MergeCell[]
7
- }
@@ -1,5 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- export interface SheetNames {
4
- names: readonly string[]
5
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
-
3
- // Find a sheet by its name and rename it. If no sheet is found, do nothing.
4
- export interface SheetRename {
5
- oldName?: string
6
- idx?: number
7
- newName: string
8
- }
@@ -1,8 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {RowInfo} from './row_info'
3
-
4
- export interface SheetRowInfo {
5
- sheetIdx: number
6
- info: readonly RowInfo[]
7
- defaultHeight: number
8
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {CellStyle} from './cell_style'
3
-
4
- export interface SheetStyles {
5
- sheetIdx: number
6
- styles: readonly CellStyle[]
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
- import {CellFormulaValue} from './cell_formula_value'
3
-
4
- export interface SheetValues {
5
- sheetIdx: number
6
- values: readonly CellFormulaValue[]
7
- }