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
@@ -0,0 +1,43 @@
1
+ import { BlockInput } from './block_input';
2
+ import { CellInput } from './cell_input';
3
+ import { CreateBlock } from './create_block';
4
+ import { DeleteBlockCols } from './delete_block_cols';
5
+ import { DeleteBlockRows } from './delete_block_rows';
6
+ import { DeleteCols } from './delete_cols';
7
+ import { DeleteRows } from './delete_rows';
8
+ import { DeleteSheet } from './delete_sheet';
9
+ import { InsertBlockCols } from './insert_block_cols';
10
+ import { InsertBlockRows } from './insert_block_rows';
11
+ import { InsertCols } from './insert_cols';
12
+ import { InsertRows } from './insert_rows';
13
+ import { InsertSheet } from './insert_sheet';
14
+ import { MoveBlock } from './move_block';
15
+ import { SetBorder } from './set_border';
16
+ import { SetColVisible } from './set_col_visible';
17
+ import { SetColWidth } from './set_col_width';
18
+ import { SetFont } from './set_font';
19
+ import { SetRowHeight } from './set_row_height';
20
+ import { SetRowVisible } from './set_row_visible';
21
+ import { SheetRename } from './sheet_rename';
22
+ export * from './cell_input';
23
+ export * from './create_block';
24
+ export * from './delete_block_cols';
25
+ export * from './delete_block_rows';
26
+ export * from './delete_cols';
27
+ export * from './delete_rows';
28
+ export * from './delete_sheet';
29
+ export * from './insert_block_cols';
30
+ export * from './insert_block_rows';
31
+ export * from './insert_cols';
32
+ export * from './insert_rows';
33
+ export * from './insert_sheet';
34
+ export * from './move_block';
35
+ export * from './set_border';
36
+ export * from './set_col_visible';
37
+ export * from './set_col_width';
38
+ export * from './set_font';
39
+ export * from './set_row_height';
40
+ export * from './set_row_visible';
41
+ export * from './sheet_rename';
42
+ export * from './block_input';
43
+ export declare type Payload = BlockInput | CellInput | CreateBlock | DeleteBlockCols | DeleteBlockRows | DeleteCols | DeleteRows | DeleteSheet | InsertBlockCols | InsertBlockRows | InsertCols | InsertRows | InsertSheet | MoveBlock | SetBorder | SetColVisible | SetColWidth | SetFont | SetRowHeight | SetRowVisible | SheetRename;
@@ -0,0 +1,21 @@
1
+ export * from './cell_input';
2
+ export * from './create_block';
3
+ export * from './delete_block_cols';
4
+ export * from './delete_block_rows';
5
+ export * from './delete_cols';
6
+ export * from './delete_rows';
7
+ export * from './delete_sheet';
8
+ export * from './insert_block_cols';
9
+ export * from './insert_block_rows';
10
+ export * from './insert_cols';
11
+ export * from './insert_rows';
12
+ export * from './insert_sheet';
13
+ export * from './move_block';
14
+ export * from './set_border';
15
+ export * from './set_col_visible';
16
+ export * from './set_col_width';
17
+ export * from './set_font';
18
+ export * from './set_row_height';
19
+ export * from './set_row_visible';
20
+ export * from './sheet_rename';
21
+ export * from './block_input';
@@ -0,0 +1,18 @@
1
+ export interface InsertBlockCols {
2
+ readonly type: 'insertBlockCols';
3
+ readonly sheetIdx: number;
4
+ readonly blockId: number;
5
+ readonly colIdx: number;
6
+ readonly cnt: number;
7
+ }
8
+ export declare class InsertBlockColsBuilder {
9
+ private _sheetIdx?;
10
+ private _blockId?;
11
+ private _colIdx?;
12
+ private _cnt?;
13
+ sheetIdx(sheetIdx: number): this;
14
+ blockId(blockId: number): this;
15
+ colIdx(colIdx: number): this;
16
+ cnt(cnt: number): this;
17
+ build(): InsertBlockCols;
18
+ }
@@ -0,0 +1,39 @@
1
+ export class InsertBlockColsBuilder {
2
+ _sheetIdx;
3
+ _blockId;
4
+ _colIdx;
5
+ _cnt;
6
+ sheetIdx(sheetIdx) {
7
+ this._sheetIdx = sheetIdx;
8
+ return this;
9
+ }
10
+ blockId(blockId) {
11
+ this._blockId = blockId;
12
+ return this;
13
+ }
14
+ colIdx(colIdx) {
15
+ this._colIdx = colIdx;
16
+ return this;
17
+ }
18
+ cnt(cnt) {
19
+ this._cnt = cnt;
20
+ return this;
21
+ }
22
+ build() {
23
+ if (this._sheetIdx === undefined)
24
+ throw Error('sheetIdx is undefined!');
25
+ if (this._blockId === undefined)
26
+ throw Error('blockId is undefined!');
27
+ if (this._colIdx === undefined)
28
+ throw Error('colIdx is undefined!');
29
+ if (this._cnt === undefined)
30
+ throw Error('cnt is undefined!');
31
+ return {
32
+ type: 'insertBlockCols',
33
+ sheetIdx: this._sheetIdx,
34
+ blockId: this._blockId,
35
+ colIdx: this._colIdx,
36
+ cnt: this._cnt,
37
+ };
38
+ }
39
+ }
@@ -0,0 +1,18 @@
1
+ export interface InsertBlockRows {
2
+ readonly type: 'insertBlockRows';
3
+ readonly sheetIdx: number;
4
+ readonly blockId: number;
5
+ readonly rowIdx: number;
6
+ readonly cnt: number;
7
+ }
8
+ export declare class InsertBlockRowsBuilder {
9
+ private _sheetIdx?;
10
+ private _blockId?;
11
+ private _rowIdx?;
12
+ private _cnt?;
13
+ sheetIdx(sheetIdx: number): this;
14
+ blockId(blockId: number): this;
15
+ rowIdx(rowIdx: number): this;
16
+ cnt(cnt: number): this;
17
+ build(): InsertBlockRows;
18
+ }
@@ -0,0 +1,39 @@
1
+ export class InsertBlockRowsBuilder {
2
+ _sheetIdx;
3
+ _blockId;
4
+ _rowIdx;
5
+ _cnt;
6
+ sheetIdx(sheetIdx) {
7
+ this._sheetIdx = sheetIdx;
8
+ return this;
9
+ }
10
+ blockId(blockId) {
11
+ this._blockId = blockId;
12
+ return this;
13
+ }
14
+ rowIdx(rowIdx) {
15
+ this._rowIdx = rowIdx;
16
+ return this;
17
+ }
18
+ cnt(cnt) {
19
+ this._cnt = cnt;
20
+ return this;
21
+ }
22
+ build() {
23
+ if (this._sheetIdx === undefined)
24
+ throw Error('sheetIdx is undefined!');
25
+ if (this._blockId === undefined)
26
+ throw Error('blockId is undefined!');
27
+ if (this._rowIdx === undefined)
28
+ throw Error('rowIdx is undefined!');
29
+ if (this._cnt === undefined)
30
+ throw Error('cnt is undefined!');
31
+ return {
32
+ type: 'insertBlockRows',
33
+ sheetIdx: this._sheetIdx,
34
+ blockId: this._blockId,
35
+ rowIdx: this._rowIdx,
36
+ cnt: this._cnt,
37
+ };
38
+ }
39
+ }
@@ -0,0 +1,15 @@
1
+ export interface InsertCols {
2
+ readonly type: 'insertCols';
3
+ readonly sheetIdx: number;
4
+ readonly start: number;
5
+ readonly cnt: number;
6
+ }
7
+ export declare class InsertColsBuilder {
8
+ private _sheetIdx?;
9
+ private _start?;
10
+ private _cnt?;
11
+ sheetIdx(sheetIdx: number): this;
12
+ start(start: number): this;
13
+ cnt(cnt: number): this;
14
+ build(): InsertCols;
15
+ }
@@ -0,0 +1,31 @@
1
+ export class InsertColsBuilder {
2
+ _sheetIdx;
3
+ _start;
4
+ _cnt;
5
+ sheetIdx(sheetIdx) {
6
+ this._sheetIdx = sheetIdx;
7
+ return this;
8
+ }
9
+ start(start) {
10
+ this._start = start;
11
+ return this;
12
+ }
13
+ cnt(cnt) {
14
+ this._cnt = cnt;
15
+ return this;
16
+ }
17
+ build() {
18
+ if (this._sheetIdx === undefined)
19
+ throw Error('sheetIdx is undefined!');
20
+ if (this._start === undefined)
21
+ throw Error('colIdx is undefined!');
22
+ if (this._cnt === undefined)
23
+ throw Error('cnt is undefined!');
24
+ return {
25
+ type: 'insertCols',
26
+ sheetIdx: this._sheetIdx,
27
+ start: this._start,
28
+ cnt: this._cnt,
29
+ };
30
+ }
31
+ }
@@ -0,0 +1,15 @@
1
+ export interface InsertRows {
2
+ readonly type: 'insertRows';
3
+ readonly sheetIdx: number;
4
+ readonly start: number;
5
+ readonly cnt: number;
6
+ }
7
+ export declare class InsertRowsBuilder {
8
+ private _sheetIdx?;
9
+ private _start?;
10
+ private _cnt?;
11
+ sheetIdx(sheetIdx: number): this;
12
+ start(start: number): this;
13
+ cnt(cnt: number): this;
14
+ build(): InsertRows;
15
+ }
@@ -0,0 +1,31 @@
1
+ export class InsertRowsBuilder {
2
+ _sheetIdx;
3
+ _start;
4
+ _cnt;
5
+ sheetIdx(sheetIdx) {
6
+ this._sheetIdx = sheetIdx;
7
+ return this;
8
+ }
9
+ start(start) {
10
+ this._start = start;
11
+ return this;
12
+ }
13
+ cnt(cnt) {
14
+ this._cnt = cnt;
15
+ return this;
16
+ }
17
+ build() {
18
+ if (this._sheetIdx === undefined)
19
+ throw Error('sheetIdx is undefined!');
20
+ if (this._start === undefined)
21
+ throw Error('colIdx is undefined!');
22
+ if (this._cnt === undefined)
23
+ throw Error('cnt is undefined!');
24
+ return {
25
+ type: 'insertRows',
26
+ sheetIdx: this._sheetIdx,
27
+ start: this._start,
28
+ cnt: this._cnt,
29
+ };
30
+ }
31
+ }
@@ -0,0 +1,12 @@
1
+ export interface InsertSheet {
2
+ type: 'insertSheet';
3
+ sheetIdx: number;
4
+ name: string;
5
+ }
6
+ export declare class InsertSheetBuilder {
7
+ private _sheetIdx?;
8
+ private _name?;
9
+ sheetIdx(sheetIdx: number): this;
10
+ name(name: string): this;
11
+ build(): InsertSheet;
12
+ }
@@ -0,0 +1,23 @@
1
+ export class InsertSheetBuilder {
2
+ _sheetIdx;
3
+ _name;
4
+ sheetIdx(sheetIdx) {
5
+ this._sheetIdx = sheetIdx;
6
+ return this;
7
+ }
8
+ name(name) {
9
+ this._name = name;
10
+ return this;
11
+ }
12
+ build() {
13
+ if (this._sheetIdx === undefined)
14
+ throw Error('sheetIdx is undefined!');
15
+ if (this._name === undefined)
16
+ throw Error('name is undefined!');
17
+ return {
18
+ type: 'insertSheet',
19
+ sheetIdx: this._sheetIdx,
20
+ name: this._name,
21
+ };
22
+ }
23
+ }
@@ -0,0 +1,18 @@
1
+ export interface MoveBlock {
2
+ readonly type: 'moveBlock';
3
+ readonly sheetIdx: number;
4
+ readonly blockId: number;
5
+ readonly newMasterRow: number;
6
+ readonly newMasterCol: number;
7
+ }
8
+ export declare class MoveBlockBuilder {
9
+ private _sheetIdx?;
10
+ private _blockId?;
11
+ private _newMasterRow?;
12
+ private _newMasterCol?;
13
+ sheetIdx(sheetIdx: number): this;
14
+ blockId(blockId: number): this;
15
+ newMasterRow(newMasterRow: number): this;
16
+ newMasterCol(newMasterCol: number): this;
17
+ build(): MoveBlock;
18
+ }
@@ -0,0 +1,39 @@
1
+ export class MoveBlockBuilder {
2
+ _sheetIdx;
3
+ _blockId;
4
+ _newMasterRow;
5
+ _newMasterCol;
6
+ sheetIdx(sheetIdx) {
7
+ this._sheetIdx = sheetIdx;
8
+ return this;
9
+ }
10
+ blockId(blockId) {
11
+ this._blockId = blockId;
12
+ return this;
13
+ }
14
+ newMasterRow(newMasterRow) {
15
+ this._newMasterRow = newMasterRow;
16
+ return this;
17
+ }
18
+ newMasterCol(newMasterCol) {
19
+ this._newMasterCol = newMasterCol;
20
+ return this;
21
+ }
22
+ build() {
23
+ if (this._sheetIdx === undefined)
24
+ throw Error('sheetIdx is undefined!');
25
+ if (this._blockId === undefined)
26
+ throw Error('blockId is undefined!');
27
+ if (this._newMasterRow === undefined)
28
+ throw Error('newMasterRow is undefined!');
29
+ if (this._newMasterCol === undefined)
30
+ throw Error('newMasterCol is undefined!');
31
+ return {
32
+ type: 'moveBlock',
33
+ sheetIdx: this._sheetIdx,
34
+ blockId: this._blockId,
35
+ newMasterRow: this._newMasterRow,
36
+ newMasterCol: this._newMasterCol,
37
+ };
38
+ }
39
+ }
@@ -0,0 +1,49 @@
1
+ import { StBorderStyle } from '../bindings';
2
+ export interface SetBorder {
3
+ readonly type: 'setBorder';
4
+ readonly sheetIdx: number;
5
+ readonly row: number;
6
+ readonly col: number;
7
+ readonly leftColor?: string;
8
+ readonly rightColor?: string;
9
+ readonly topColor?: string;
10
+ readonly bottomColor?: string;
11
+ readonly leftBorderType?: StBorderStyle;
12
+ readonly rightBorderType?: StBorderStyle;
13
+ readonly topBorderType?: StBorderStyle;
14
+ readonly bottomBorderType?: StBorderStyle;
15
+ readonly outline?: boolean;
16
+ readonly diagonalUp?: boolean;
17
+ readonly diagonalDown?: boolean;
18
+ }
19
+ export declare class SetBorderBuilder {
20
+ private _sheetIdx?;
21
+ private _row?;
22
+ private _col?;
23
+ private _leftColor?;
24
+ private _rightColor?;
25
+ private _topColor?;
26
+ private _bottomColor?;
27
+ private _leftBorderType?;
28
+ private _rightBorderType?;
29
+ private _topBorderType?;
30
+ private _bottomBorderType?;
31
+ private _outline?;
32
+ private _diagonalUp?;
33
+ private _diagonalDown?;
34
+ sheetIdx(sheetIdx: number): this;
35
+ row(row: number): this;
36
+ col(col: number): this;
37
+ leftColor(leftColor: string): this;
38
+ rightColor(rightColor: string): this;
39
+ topColor(topColor: string): this;
40
+ bottomColor(bottomColor: string): this;
41
+ leftBorderType(leftBorderType: StBorderStyle): this;
42
+ rightBorderType(rightBorderType: StBorderStyle): this;
43
+ topBorderType(topBorderType: StBorderStyle): this;
44
+ bottomBorderType(bottomBorderType: StBorderStyle): this;
45
+ outline(outline: boolean): this;
46
+ diagonalUp(diagonalUp: boolean): this;
47
+ diagonalDown(diagonalDown: boolean): this;
48
+ build(): SetBorder;
49
+ }
@@ -0,0 +1,97 @@
1
+ export class SetBorderBuilder {
2
+ _sheetIdx;
3
+ _row;
4
+ _col;
5
+ _leftColor;
6
+ _rightColor;
7
+ _topColor;
8
+ _bottomColor;
9
+ _leftBorderType;
10
+ _rightBorderType;
11
+ _topBorderType;
12
+ _bottomBorderType;
13
+ _outline;
14
+ _diagonalUp;
15
+ _diagonalDown;
16
+ sheetIdx(sheetIdx) {
17
+ this._sheetIdx = sheetIdx;
18
+ return this;
19
+ }
20
+ row(row) {
21
+ this._row = row;
22
+ return this;
23
+ }
24
+ col(col) {
25
+ this._col = col;
26
+ return this;
27
+ }
28
+ leftColor(leftColor) {
29
+ this._leftColor = leftColor;
30
+ return this;
31
+ }
32
+ rightColor(rightColor) {
33
+ this._rightColor = rightColor;
34
+ return this;
35
+ }
36
+ topColor(topColor) {
37
+ this._topColor = topColor;
38
+ return this;
39
+ }
40
+ bottomColor(bottomColor) {
41
+ this._bottomColor = bottomColor;
42
+ return this;
43
+ }
44
+ leftBorderType(leftBorderType) {
45
+ this._leftBorderType = leftBorderType;
46
+ return this;
47
+ }
48
+ rightBorderType(rightBorderType) {
49
+ this._rightBorderType = rightBorderType;
50
+ return this;
51
+ }
52
+ topBorderType(topBorderType) {
53
+ this._topBorderType = topBorderType;
54
+ return this;
55
+ }
56
+ bottomBorderType(bottomBorderType) {
57
+ this._bottomBorderType = bottomBorderType;
58
+ return this;
59
+ }
60
+ outline(outline) {
61
+ this._outline = outline;
62
+ return this;
63
+ }
64
+ diagonalUp(diagonalUp) {
65
+ this._diagonalUp = diagonalUp;
66
+ return this;
67
+ }
68
+ diagonalDown(diagonalDown) {
69
+ this._diagonalDown = diagonalDown;
70
+ return this;
71
+ }
72
+ build() {
73
+ if (this._sheetIdx === undefined)
74
+ throw Error('sheetIdx is undefined');
75
+ if (this._row === undefined)
76
+ throw Error('row is undefined!');
77
+ if (this._col === undefined)
78
+ throw Error('col is undefined!');
79
+ return {
80
+ type: 'setBorder',
81
+ sheetIdx: this._sheetIdx,
82
+ row: this._row,
83
+ col: this._col,
84
+ leftColor: this._leftColor,
85
+ rightColor: this._rightColor,
86
+ topColor: this._topColor,
87
+ bottomColor: this._bottomColor,
88
+ leftBorderType: this._leftBorderType,
89
+ rightBorderType: this._rightBorderType,
90
+ topBorderType: this._topBorderType,
91
+ bottomBorderType: this._bottomBorderType,
92
+ outline: this._outline,
93
+ diagonalUp: this._diagonalUp,
94
+ diagonalDown: this._diagonalDown,
95
+ };
96
+ }
97
+ }
@@ -0,0 +1,15 @@
1
+ export interface SetColVisible {
2
+ readonly type: 'setColVisible';
3
+ readonly sheetIdx: number;
4
+ readonly col: number;
5
+ readonly visible: boolean;
6
+ }
7
+ export declare class SetColVisibleBuilder {
8
+ private _sheetIdx?;
9
+ private _col?;
10
+ private _visible?;
11
+ sheetIdx(sheetIdx: number): this;
12
+ col(col: number): this;
13
+ visible(visible: boolean): this;
14
+ build(): SetColVisible;
15
+ }
@@ -0,0 +1,31 @@
1
+ export class SetColVisibleBuilder {
2
+ _sheetIdx;
3
+ _col;
4
+ _visible;
5
+ sheetIdx(sheetIdx) {
6
+ this._sheetIdx = sheetIdx;
7
+ return this;
8
+ }
9
+ col(col) {
10
+ this._col = col;
11
+ return this;
12
+ }
13
+ visible(visible) {
14
+ this._visible = visible;
15
+ return this;
16
+ }
17
+ build() {
18
+ if (this._sheetIdx === undefined)
19
+ throw Error('sheetIdx is undefined!');
20
+ if (this._col === undefined)
21
+ throw Error('col is undefined!');
22
+ if (this._visible === undefined)
23
+ throw Error('visible is undefined!');
24
+ return {
25
+ type: 'setColVisible',
26
+ sheetIdx: this._sheetIdx,
27
+ col: this._col,
28
+ visible: this._visible,
29
+ };
30
+ }
31
+ }
@@ -0,0 +1,15 @@
1
+ export interface SetColWidth {
2
+ readonly type: 'setColWidth';
3
+ readonly sheetIdx: number;
4
+ readonly col: number;
5
+ readonly width: number;
6
+ }
7
+ export declare class SetColWidthBuilder {
8
+ private _sheetIdx?;
9
+ private _col?;
10
+ private _width?;
11
+ sheetIdx(sheetIdx: number): this;
12
+ col(col: number): this;
13
+ width(width: number): this;
14
+ build(): SetColWidth;
15
+ }
@@ -0,0 +1,31 @@
1
+ export class SetColWidthBuilder {
2
+ _sheetIdx;
3
+ _col;
4
+ _width;
5
+ sheetIdx(sheetIdx) {
6
+ this._sheetIdx = sheetIdx;
7
+ return this;
8
+ }
9
+ col(col) {
10
+ this._col = col;
11
+ return this;
12
+ }
13
+ width(width) {
14
+ this._width = width;
15
+ return this;
16
+ }
17
+ build() {
18
+ if (this._sheetIdx === undefined)
19
+ throw Error('sheetIdx is undefined!');
20
+ if (this._col === undefined)
21
+ throw Error('col is undefined!');
22
+ if (this._width === undefined)
23
+ throw Error('width is undefined!');
24
+ return {
25
+ type: 'setColWidth',
26
+ sheetIdx: this._sheetIdx,
27
+ col: this._col,
28
+ width: this._width,
29
+ };
30
+ }
31
+ }
@@ -0,0 +1,46 @@
1
+ import { StUnderlineValues as UnderlineType } from '../bindings';
2
+ export interface SetFont {
3
+ readonly type: 'setFont';
4
+ readonly sheetIdx: number;
5
+ readonly row: number;
6
+ readonly col: number;
7
+ readonly bold?: boolean;
8
+ readonly italic?: boolean;
9
+ readonly name?: string;
10
+ readonly underline?: UnderlineType;
11
+ readonly color?: string;
12
+ readonly size?: number;
13
+ readonly outline?: boolean;
14
+ readonly shadow?: boolean;
15
+ readonly strike?: boolean;
16
+ readonly condense?: boolean;
17
+ }
18
+ export declare class SetFontBuilder {
19
+ private _sheetIdx?;
20
+ private _row?;
21
+ private _col?;
22
+ private _bold?;
23
+ private _italic?;
24
+ private _name?;
25
+ private _underline?;
26
+ private _color?;
27
+ private _size?;
28
+ private _outline?;
29
+ private _shadow?;
30
+ private _strike?;
31
+ private _condense?;
32
+ sheetIdx(sheetIdx: number): this;
33
+ row(row: number): this;
34
+ col(col: number): this;
35
+ bold(bold: boolean): this;
36
+ italic(italic: boolean): this;
37
+ name(name: string): this;
38
+ underline(underline: UnderlineType): this;
39
+ color(color: string): this;
40
+ size(size: number): this;
41
+ outline(outline: boolean): this;
42
+ shadow(shadow: boolean): this;
43
+ strike(strike: boolean): this;
44
+ condense(condense: boolean): this;
45
+ build(): SetFont;
46
+ }