logisheets 0.8.0 → 1.1.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.
- package/dist/src/api/cell.d.ts +3 -2
- package/dist/src/api/cell.js +20 -17
- package/dist/src/api/craft-calc.d.ts +83 -0
- package/dist/src/api/craft-calc.js +223 -0
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +1 -0
- package/dist/src/api/utils.js +4 -2
- package/dist/src/api/workbook.d.ts +105 -4
- package/dist/src/api/workbook.js +250 -105
- package/dist/src/api/worksheet.d.ts +39 -1
- package/dist/src/api/worksheet.js +161 -20
- package/dist/src/bindings/action_effect.d.ts +56 -0
- package/dist/src/bindings/action_effect.js +96 -1
- package/dist/src/bindings/alignment.d.ts +1 -0
- package/dist/src/bindings/app_data.d.ts +4 -0
- package/dist/src/bindings/appendix.d.ts +5 -0
- package/dist/src/bindings/appendix_with_cell.d.ts +8 -0
- package/dist/src/bindings/async_func_result.d.ts +10 -0
- package/dist/src/bindings/async_func_result.js +19 -1
- package/dist/src/bindings/bind_form_schema.d.ts +50 -0
- package/dist/src/bindings/bind_form_schema.js +82 -0
- package/dist/src/bindings/bind_random_schema.d.ts +23 -0
- package/dist/src/bindings/bind_random_schema.js +33 -0
- package/dist/src/bindings/block_cell_id.js +0 -1
- package/dist/src/bindings/block_cell_info.d.ts +5 -0
- package/dist/src/bindings/block_data_row.d.ts +4 -0
- package/dist/src/bindings/block_display_info.d.ts +7 -0
- package/dist/src/bindings/block_field.d.ts +5 -0
- package/dist/src/bindings/block_info.d.ts +8 -0
- package/dist/src/bindings/block_info.js +0 -1
- package/dist/src/bindings/block_input.d.ts +19 -0
- package/dist/src/bindings/block_input.js +40 -2
- package/dist/src/bindings/block_line_name_field_update.d.ts +34 -0
- package/dist/src/bindings/block_line_name_field_update.js +50 -0
- package/dist/src/bindings/block_line_style_update.d.ts +31 -0
- package/dist/src/bindings/block_line_style_update.js +47 -0
- package/dist/src/bindings/block_schema.d.ts +11 -0
- package/dist/src/bindings/block_schema_field_entry.d.ts +8 -0
- package/dist/src/bindings/block_schema_key_entry.d.ts +4 -0
- package/dist/src/bindings/block_schema_random_entry.d.ts +6 -0
- package/dist/src/bindings/block_schema_type.d.ts +1 -0
- package/dist/src/bindings/block_style_update.d.ts +19 -0
- package/dist/src/bindings/block_style_update.js +40 -1
- package/dist/src/bindings/cell_alignment.d.ts +6 -6
- package/dist/src/bindings/cell_clear.d.ts +13 -0
- package/dist/src/bindings/cell_clear.js +26 -2
- package/dist/src/bindings/cell_coordinate.d.ts +4 -0
- package/dist/src/bindings/cell_coordinate.js +1 -0
- package/dist/src/bindings/cell_coordinate_with_sheet.d.ts +5 -0
- package/dist/src/bindings/cell_coordinate_with_sheet.js +1 -0
- package/dist/src/bindings/cell_format_brush.d.ts +28 -0
- package/dist/src/bindings/cell_format_brush.js +61 -2
- package/dist/src/bindings/cell_id.d.ts +6 -3
- package/dist/src/bindings/cell_info.d.ts +1 -0
- package/dist/src/bindings/cell_input.d.ts +16 -0
- package/dist/src/bindings/cell_input.js +33 -2
- package/dist/src/bindings/cell_position.js +0 -1
- package/dist/src/bindings/cell_protection.js +0 -1
- package/dist/src/bindings/cell_ref.d.ts +9 -0
- package/dist/src/bindings/cell_ref.js +1 -0
- package/dist/src/bindings/cell_style_update.d.ts +16 -0
- package/dist/src/bindings/cell_style_update.js +33 -1
- package/dist/src/bindings/checkpoint_meta.d.ts +4 -0
- package/dist/src/bindings/checkpoint_meta.js +1 -0
- package/dist/src/bindings/col_info.js +0 -1
- package/dist/src/bindings/color.js +0 -1
- package/dist/src/bindings/comment.js +0 -1
- package/dist/src/bindings/convert_block.d.ts +30 -0
- package/dist/src/bindings/convert_block.js +47 -0
- package/dist/src/bindings/create_appendix.d.ts +38 -0
- package/dist/src/bindings/create_appendix.js +57 -0
- package/dist/src/bindings/create_block.d.ts +31 -0
- package/dist/src/bindings/create_block.js +57 -2
- package/dist/src/bindings/create_diy_cell.d.ts +18 -0
- package/dist/src/bindings/create_diy_cell.js +26 -0
- package/dist/src/bindings/create_diy_cell_by_id.d.ts +22 -0
- package/dist/src/bindings/create_diy_cell_by_id.js +33 -0
- package/dist/src/bindings/create_sheet.d.ts +10 -0
- package/dist/src/bindings/create_sheet.js +19 -2
- package/dist/src/bindings/ct_border.d.ts +13 -0
- package/dist/src/bindings/ct_border.js +1 -0
- package/dist/src/bindings/ct_border_pr.d.ts +6 -0
- package/dist/src/bindings/ct_border_pr.js +1 -0
- package/dist/src/bindings/ct_color.d.ts +7 -0
- package/dist/src/bindings/ct_color.js +1 -0
- package/dist/src/bindings/ct_fill.d.ts +9 -0
- package/dist/src/bindings/ct_fill.js +1 -0
- package/dist/src/bindings/ct_font.d.ts +25 -0
- package/dist/src/bindings/ct_font.js +1 -0
- package/dist/src/bindings/ct_gradient_fill.d.ts +11 -0
- package/dist/src/bindings/ct_gradient_fill.js +1 -0
- package/dist/src/bindings/ct_gradient_stop.d.ts +5 -0
- package/dist/src/bindings/ct_gradient_stop.js +1 -0
- package/dist/src/bindings/ct_pattern_fill.d.ts +7 -0
- package/dist/src/bindings/ct_pattern_fill.js +1 -0
- package/dist/src/bindings/delete_cols.d.ts +13 -0
- package/dist/src/bindings/delete_cols.js +26 -2
- package/dist/src/bindings/delete_cols_in_block.d.ts +16 -0
- package/dist/src/bindings/delete_cols_in_block.js +33 -2
- package/dist/src/bindings/delete_rows.d.ts +13 -0
- package/dist/src/bindings/delete_rows.js +26 -2
- package/dist/src/bindings/delete_rows_in_block.d.ts +16 -0
- package/dist/src/bindings/delete_rows_in_block.js +33 -2
- package/dist/src/bindings/delete_sheet.d.ts +7 -0
- package/dist/src/bindings/delete_sheet.js +12 -2
- package/dist/src/bindings/display_window.d.ts +2 -2
- package/dist/src/bindings/display_window_request.js +0 -1
- package/dist/src/bindings/edit_action.d.ts +4 -2
- package/dist/src/bindings/edit_payload.d.ts +146 -33
- package/dist/src/bindings/ephemeral_cell_input.d.ts +13 -0
- package/dist/src/bindings/ephemeral_cell_input.js +26 -2
- package/dist/src/bindings/ephemeral_cell_remove.d.ts +14 -0
- package/dist/src/bindings/ephemeral_cell_remove.js +19 -0
- package/dist/src/bindings/ephemeral_cell_style_update.d.ts +13 -0
- package/dist/src/bindings/ephemeral_cell_style_update.js +26 -1
- package/dist/src/bindings/error_message.js +0 -1
- package/dist/src/bindings/field_render_entry.d.ts +6 -0
- package/dist/src/bindings/field_render_entry.js +1 -0
- package/dist/src/bindings/fill.d.ts +4 -2
- package/dist/src/bindings/font_family.js +0 -1
- package/dist/src/bindings/font_name.js +0 -1
- package/dist/src/bindings/font_size.d.ts +3 -0
- package/dist/src/bindings/font_size.js +1 -0
- package/dist/src/bindings/formula_display_info.d.ts +6 -0
- package/dist/src/bindings/formula_display_info.js +1 -0
- package/dist/src/bindings/horizontal_alignment.js +0 -1
- package/dist/src/bindings/index.d.ts +116 -0
- package/dist/src/bindings/index.js +116 -0
- package/dist/src/bindings/insert_cols.d.ts +13 -0
- package/dist/src/bindings/insert_cols.js +26 -2
- package/dist/src/bindings/insert_cols_in_block.d.ts +16 -0
- package/dist/src/bindings/insert_cols_in_block.js +33 -2
- package/dist/src/bindings/insert_rows.d.ts +13 -0
- package/dist/src/bindings/insert_rows.js +26 -2
- package/dist/src/bindings/insert_rows_in_block.d.ts +16 -0
- package/dist/src/bindings/insert_rows_in_block.js +33 -2
- package/dist/src/bindings/int_property.d.ts +3 -0
- package/dist/src/bindings/int_property.js +1 -0
- package/dist/src/bindings/line_format_brush.d.ts +25 -0
- package/dist/src/bindings/line_format_brush.js +54 -2
- package/dist/src/bindings/line_style_update.d.ts +19 -0
- package/dist/src/bindings/line_style_update.js +40 -1
- package/dist/src/bindings/merge_cell.js +0 -1
- package/dist/src/bindings/merge_cells.d.ts +19 -0
- package/dist/src/bindings/merge_cells.js +40 -2
- package/dist/src/bindings/modify_policy.d.ts +1 -0
- package/dist/src/bindings/modify_policy.js +1 -0
- package/dist/src/bindings/move_block.d.ts +16 -0
- package/dist/src/bindings/move_block.js +33 -2
- package/dist/src/bindings/move_block_line.d.ts +26 -0
- package/dist/src/bindings/move_block_line.js +40 -0
- package/dist/src/bindings/msg_sequencer_action_invalid_message.js +0 -1
- package/dist/src/bindings/msg_sequencer_init_workbook.js +0 -1
- package/dist/src/bindings/msg_sequencer_message.d.ts +6 -3
- package/dist/src/bindings/msg_user_message.d.ts +4 -2
- package/dist/src/bindings/normal_cell_id.js +0 -1
- package/dist/src/bindings/random_schema_unit.d.ts +22 -0
- package/dist/src/bindings/random_schema_unit.js +33 -0
- package/dist/src/bindings/raw_style.d.ts +13 -0
- package/dist/src/bindings/raw_style.js +1 -0
- package/dist/src/bindings/remove_appendix.d.ts +26 -0
- package/dist/src/bindings/remove_appendix.js +36 -0
- package/dist/src/bindings/remove_block.d.ts +10 -0
- package/dist/src/bindings/remove_block.js +19 -2
- package/dist/src/bindings/remove_diy_cell.d.ts +18 -0
- package/dist/src/bindings/remove_diy_cell.js +26 -0
- package/dist/src/bindings/remove_diy_cell_by_id.d.ts +22 -0
- package/dist/src/bindings/remove_diy_cell_by_id.js +33 -0
- package/dist/src/bindings/reorder_block_lines.d.ts +6 -0
- package/dist/src/bindings/reorder_block_lines.js +1 -0
- package/dist/src/bindings/reproduce_cells.d.ts +23 -0
- package/dist/src/bindings/reproduce_cells.js +33 -0
- package/dist/src/bindings/reproducible_cell.d.ts +10 -0
- package/dist/src/bindings/reproducible_cell.js +1 -0
- package/dist/src/bindings/resize_block.d.ts +22 -0
- package/dist/src/bindings/resize_block.js +29 -0
- package/dist/src/bindings/restore_checkpoint.d.ts +10 -0
- package/dist/src/bindings/restore_checkpoint.js +12 -0
- package/dist/src/bindings/row_info.js +0 -1
- package/dist/src/bindings/rpc_batch_get_cell_coordinate_with_sheet_by_id_params.d.ts +4 -0
- package/dist/src/bindings/rpc_batch_get_cell_coordinate_with_sheet_by_id_params.js +1 -0
- package/dist/src/bindings/rpc_batch_get_cell_info_by_id_params.d.ts +4 -0
- package/dist/src/bindings/rpc_batch_get_cell_info_by_id_params.js +1 -0
- package/dist/src/bindings/rpc_calc_condition_params.d.ts +4 -0
- package/dist/src/bindings/rpc_calc_condition_params.js +1 -0
- package/dist/src/bindings/rpc_check_formula_params.d.ts +3 -0
- package/dist/src/bindings/rpc_check_formula_params.js +1 -0
- package/dist/src/bindings/rpc_delete_checkpoint_params.d.ts +3 -0
- package/dist/src/bindings/rpc_delete_checkpoint_params.js +1 -0
- package/dist/src/bindings/rpc_direction.d.ts +1 -0
- package/dist/src/bindings/rpc_direction.js +1 -0
- package/dist/src/bindings/rpc_export_block_data_params.d.ts +5 -0
- package/dist/src/bindings/rpc_export_block_data_params.js +1 -0
- package/dist/src/bindings/rpc_get_all_blocks_params.d.ts +4 -0
- package/dist/src/bindings/rpc_get_all_blocks_params.js +1 -0
- package/dist/src/bindings/rpc_get_available_block_id_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_available_block_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_block_col_id_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_block_col_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_block_display_window_params.d.ts +4 -0
- package/dist/src/bindings/rpc_get_block_display_window_params.js +1 -0
- package/dist/src/bindings/rpc_get_block_info_params.d.ts +4 -0
- package/dist/src/bindings/rpc_get_block_info_params.js +1 -0
- package/dist/src/bindings/rpc_get_block_row_id_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_block_row_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_block_values_params.d.ts +6 -0
- package/dist/src/bindings/rpc_get_block_values_params.js +1 -0
- package/dist/src/bindings/rpc_get_cell_id_by_block_ref_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_cell_id_by_block_ref_params.js +1 -0
- package/dist/src/bindings/rpc_get_cell_id_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_cell_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_cell_infos_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_cell_infos_params.js +1 -0
- package/dist/src/bindings/rpc_get_cell_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_cell_params.js +1 -0
- package/dist/src/bindings/rpc_get_cell_position_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_cell_position_params.js +1 -0
- package/dist/src/bindings/rpc_get_cells_except_window_params.d.ts +11 -0
- package/dist/src/bindings/rpc_get_cells_except_window_params.js +1 -0
- package/dist/src/bindings/rpc_get_cells_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_cells_params.js +1 -0
- package/dist/src/bindings/rpc_get_col_width_params.d.ts +4 -0
- package/dist/src/bindings/rpc_get_col_width_params.js +1 -0
- package/dist/src/bindings/rpc_get_data_boundary_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_data_boundary_params.js +1 -0
- package/dist/src/bindings/rpc_get_display_units_of_formula_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_display_units_of_formula_params.js +1 -0
- package/dist/src/bindings/rpc_get_display_window_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_display_window_params.js +1 -0
- package/dist/src/bindings/rpc_get_display_window_with_start_point_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_display_window_with_start_point_params.js +1 -0
- package/dist/src/bindings/rpc_get_display_window_within_cell_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_display_window_within_cell_params.js +1 -0
- package/dist/src/bindings/rpc_get_diy_cell_id_with_block_id_params.d.ts +6 -0
- package/dist/src/bindings/rpc_get_diy_cell_id_with_block_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_merged_cells_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_merged_cells_params.js +1 -0
- package/dist/src/bindings/rpc_get_next_visible_cell_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_next_visible_cell_params.js +1 -0
- package/dist/src/bindings/rpc_get_reproducible_cell_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_reproducible_cell_params.js +1 -0
- package/dist/src/bindings/rpc_get_reproducible_cells_params.d.ts +5 -0
- package/dist/src/bindings/rpc_get_reproducible_cells_params.js +1 -0
- package/dist/src/bindings/rpc_get_row_height_params.d.ts +4 -0
- package/dist/src/bindings/rpc_get_row_height_params.js +1 -0
- package/dist/src/bindings/rpc_get_row_info_params.d.ts +4 -0
- package/dist/src/bindings/rpc_get_row_info_params.js +1 -0
- package/dist/src/bindings/rpc_get_shadow_cell_id_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_shadow_cell_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_shadow_cell_ids_params.d.ts +7 -0
- package/dist/src/bindings/rpc_get_shadow_cell_ids_params.js +1 -0
- package/dist/src/bindings/rpc_get_shadow_info_by_id_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_shadow_info_by_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_sheet_dimension_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_sheet_dimension_params.js +1 -0
- package/dist/src/bindings/rpc_get_sheet_id_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_sheet_id_params.js +1 -0
- package/dist/src/bindings/rpc_get_sheet_idx_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_sheet_idx_params.js +1 -0
- package/dist/src/bindings/rpc_get_sheet_name_by_idx_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_sheet_name_by_idx_params.js +1 -0
- package/dist/src/bindings/rpc_handle_transaction_params.d.ts +4 -0
- package/dist/src/bindings/rpc_handle_transaction_params.js +1 -0
- package/dist/src/bindings/rpc_load_workbook_params.d.ts +4 -0
- package/dist/src/bindings/rpc_load_workbook_params.js +1 -0
- package/dist/src/bindings/rpc_lookup_appendix_upward_params.d.ts +8 -0
- package/dist/src/bindings/rpc_lookup_appendix_upward_params.js +1 -0
- package/dist/src/bindings/rpc_predict_fill_params.d.ts +11 -0
- package/dist/src/bindings/rpc_predict_fill_params.js +1 -0
- package/dist/src/bindings/rpc_save_checkpoint_params.d.ts +4 -0
- package/dist/src/bindings/rpc_save_checkpoint_params.js +1 -0
- package/dist/src/bindings/rpc_save_params.d.ts +3 -0
- package/dist/src/bindings/rpc_save_params.js +1 -0
- package/dist/src/bindings/rpc_toggle_status_params.d.ts +3 -0
- package/dist/src/bindings/rpc_toggle_status_params.js +1 -0
- package/dist/src/bindings/rpc_transaction.d.ts +6 -0
- package/dist/src/bindings/rpc_transaction.js +1 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +134 -0
- package/dist/src/bindings/rpc_workbook_methods.js +1 -0
- package/dist/src/bindings/save_file_result.d.ts +4 -0
- package/dist/src/bindings/save_file_result.js +1 -0
- package/dist/src/bindings/set_col_width.d.ts +13 -0
- package/dist/src/bindings/set_col_width.js +26 -2
- package/dist/src/bindings/set_row_height.d.ts +13 -0
- package/dist/src/bindings/set_row_height.js +26 -2
- package/dist/src/bindings/set_sheet_color.d.ts +14 -0
- package/dist/src/bindings/set_sheet_color.js +19 -0
- package/dist/src/bindings/set_sheet_visible.d.ts +14 -0
- package/dist/src/bindings/set_sheet_visible.js +19 -0
- package/dist/src/bindings/set_visible.d.ts +16 -0
- package/dist/src/bindings/set_visible.js +33 -2
- package/dist/src/bindings/shadow_cell_info.d.ts +7 -0
- package/dist/src/bindings/shadow_cell_info.js +1 -0
- package/dist/src/bindings/shadow_kind.d.ts +1 -0
- package/dist/src/bindings/shadow_kind.js +1 -0
- package/dist/src/bindings/sheet_cell_id.d.ts +15 -0
- package/dist/src/bindings/sheet_cell_id.js +19 -0
- package/dist/src/bindings/sheet_col_id.d.ts +14 -0
- package/dist/src/bindings/sheet_col_id.js +19 -0
- package/dist/src/bindings/sheet_coordinate.d.ts +4 -0
- package/dist/src/bindings/sheet_coordinate.js +1 -0
- package/dist/src/bindings/sheet_dimension.js +0 -1
- package/dist/src/bindings/sheet_info.js +0 -1
- package/dist/src/bindings/sheet_rename.d.ts +13 -0
- package/dist/src/bindings/sheet_rename.js +22 -2
- package/dist/src/bindings/sheet_row_id.d.ts +14 -0
- package/dist/src/bindings/sheet_row_id.js +19 -0
- package/dist/src/bindings/split_merged_cells.d.ts +13 -0
- package/dist/src/bindings/split_merged_cells.js +26 -2
- package/dist/src/bindings/st_border_style.js +0 -1
- package/dist/src/bindings/st_font_scheme.js +0 -1
- package/dist/src/bindings/st_gradient_type.js +0 -1
- package/dist/src/bindings/st_horizontal_alignment.d.ts +1 -1
- package/dist/src/bindings/st_horizontal_alignment.js +0 -1
- package/dist/src/bindings/st_pattern_type.js +0 -1
- package/dist/src/bindings/st_underline_values.js +0 -1
- package/dist/src/bindings/st_vertical_align_run.js +0 -1
- package/dist/src/bindings/st_vertical_alignment.d.ts +1 -1
- package/dist/src/bindings/st_vertical_alignment.js +0 -1
- package/dist/src/bindings/status_code.d.ts +4 -2
- package/dist/src/bindings/style_update_type.d.ts +77 -0
- package/dist/src/bindings/style_update_type.js +125 -1
- package/dist/src/bindings/task.js +0 -1
- package/dist/src/bindings/temp_cell_change.d.ts +8 -0
- package/dist/src/bindings/temp_cell_change.js +1 -0
- package/dist/src/bindings/temp_status_diff.d.ts +4 -0
- package/dist/src/bindings/temp_status_diff.js +1 -0
- package/dist/src/bindings/token_type.d.ts +1 -0
- package/dist/src/bindings/token_type.js +1 -0
- package/dist/src/bindings/token_unit.d.ts +6 -0
- package/dist/src/bindings/token_unit.js +1 -0
- package/dist/src/bindings/upsert_field_formulas.d.ts +26 -0
- package/dist/src/bindings/upsert_field_formulas.js +40 -0
- package/dist/src/bindings/upsert_field_render_info.d.ts +19 -0
- package/dist/src/bindings/upsert_field_render_info.js +26 -0
- package/dist/src/bindings/value.d.ts +8 -4
- package/dist/src/bindings/value.js +0 -1
- package/dist/src/bindings/vertical_alignment.js +0 -1
- package/dist/src/bindings/workbook_file.js +0 -1
- package/dist/src/bindings/workbook_update_type.js +0 -1
- package/dist/src/client.d.ts +18 -75
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.js +4 -1
- package/dist/src/layout.d.ts +7 -0
- package/dist/src/layout.js +1 -0
- package/dist/src/payloads/index.d.ts +1 -65
- package/dist/src/payloads/index.js +1 -32
- package/dist/src/payloads/set_block_line_name_field.d.ts +34 -0
- package/dist/src/payloads/set_block_line_name_field.js +62 -0
- package/dist/src/payloads/set_block_line_num_fmt.d.ts +23 -0
- package/dist/src/payloads/set_block_line_num_fmt.js +54 -0
- package/dist/src/payloads/set_cell_alignment.d.ts +0 -1
- package/dist/src/payloads/set_cell_alignment.js +0 -1
- package/dist/src/payloads/set_cell_border.d.ts +0 -1
- package/dist/src/payloads/set_cell_border.js +0 -1
- package/dist/src/payloads/set_cell_font.d.ts +0 -1
- package/dist/src/payloads/set_cell_font.js +0 -1
- package/dist/src/payloads/{cell_clear.d.ts → set_cell_num_fmt.d.ts} +6 -4
- package/dist/src/payloads/{cell_input.js → set_cell_num_fmt.js} +7 -8
- package/dist/src/payloads/set_cell_pattern_fill.d.ts +0 -1
- package/dist/src/payloads/set_cell_pattern_fill.js +0 -1
- package/dist/src/payloads/{split_merged_cells.d.ts → set_cell_wrap_text.d.ts} +6 -4
- package/dist/src/payloads/{cell_clear.js → set_cell_wrap_text.js} +9 -2
- package/dist/src/payloads/set_field_num_fmt.d.ts +14 -0
- package/dist/src/payloads/set_field_num_fmt.js +30 -0
- package/dist/src/payloads/set_line_alignment.d.ts +0 -1
- package/dist/src/payloads/set_line_alignment.js +0 -1
- package/dist/src/payloads/set_line_border.d.ts +0 -1
- package/dist/src/payloads/set_line_border.js +0 -1
- package/dist/src/payloads/set_line_font.d.ts +0 -1
- package/dist/src/payloads/set_line_font.js +0 -1
- package/dist/src/payloads/set_line_num_fmt.d.ts +20 -0
- package/dist/src/payloads/set_line_num_fmt.js +46 -0
- package/dist/src/payloads/set_line_pattern_fill.d.ts +0 -1
- package/dist/src/payloads/set_line_pattern_fill.js +0 -1
- package/dist/src/payloads/set_line_wrap_text.d.ts +20 -0
- package/dist/src/payloads/set_line_wrap_text.js +46 -0
- package/dist/src/pure.d.ts +9 -0
- package/dist/src/pure.js +20 -0
- package/dist/src/types.d.ts +31 -0
- package/dist/src/types.js +21 -0
- package/dist/src/utils.d.ts +1 -0
- package/dist/src/utils.js +22 -0
- package/package.json +3 -2
- package/dist/src/bindings/cell_formula_value.d.ts +0 -7
- package/dist/src/bindings/cell_style.d.ts +0 -6
- package/dist/src/bindings/display_patch.d.ts +0 -25
- package/dist/src/bindings/display_request.d.ts +0 -4
- package/dist/src/bindings/display_request.js +0 -2
- package/dist/src/bindings/display_response.d.ts +0 -5
- package/dist/src/bindings/sheet_blocks.d.ts +0 -5
- package/dist/src/bindings/sheet_col_info.d.ts +0 -6
- package/dist/src/bindings/sheet_comments.d.ts +0 -5
- package/dist/src/bindings/sheet_merge_cells.d.ts +0 -5
- package/dist/src/bindings/sheet_names.d.ts +0 -3
- package/dist/src/bindings/sheet_names.js +0 -2
- package/dist/src/bindings/sheet_row_info.d.ts +0 -6
- package/dist/src/bindings/sheet_styles.d.ts +0 -5
- package/dist/src/bindings/sheet_values.d.ts +0 -5
- package/dist/src/bindings/style_update.d.ts +0 -7
- package/dist/src/payloads/block_input.d.ts +0 -21
- package/dist/src/payloads/block_input.js +0 -47
- package/dist/src/payloads/cell_format_brush.d.ts +0 -30
- package/dist/src/payloads/cell_format_brush.js +0 -71
- package/dist/src/payloads/cell_input.d.ts +0 -18
- package/dist/src/payloads/create_block.d.ts +0 -24
- package/dist/src/payloads/create_block.js +0 -61
- package/dist/src/payloads/delete_block_cols.d.ts +0 -18
- package/dist/src/payloads/delete_block_cols.js +0 -39
- package/dist/src/payloads/delete_block_rows.d.ts +0 -18
- package/dist/src/payloads/delete_block_rows.js +0 -39
- package/dist/src/payloads/delete_cols.d.ts +0 -15
- package/dist/src/payloads/delete_cols.js +0 -31
- package/dist/src/payloads/delete_rows.d.ts +0 -15
- package/dist/src/payloads/delete_rows.js +0 -31
- package/dist/src/payloads/delete_sheet.d.ts +0 -9
- package/dist/src/payloads/delete_sheet.js +0 -15
- package/dist/src/payloads/insert_block_cols.d.ts +0 -18
- package/dist/src/payloads/insert_block_cols.js +0 -39
- package/dist/src/payloads/insert_block_rows.d.ts +0 -18
- package/dist/src/payloads/insert_block_rows.js +0 -39
- package/dist/src/payloads/insert_cols.d.ts +0 -15
- package/dist/src/payloads/insert_cols.js +0 -31
- package/dist/src/payloads/insert_rows.d.ts +0 -15
- package/dist/src/payloads/insert_rows.js +0 -31
- package/dist/src/payloads/insert_sheet.d.ts +0 -12
- package/dist/src/payloads/insert_sheet.js +0 -23
- package/dist/src/payloads/line_format_brush.d.ts +0 -27
- package/dist/src/payloads/line_format_brush.js +0 -63
- package/dist/src/payloads/merge_cells.d.ts +0 -21
- package/dist/src/payloads/merge_cells.js +0 -47
- package/dist/src/payloads/move_block.d.ts +0 -18
- package/dist/src/payloads/move_block.js +0 -39
- package/dist/src/payloads/set_border.d.ts +0 -49
- package/dist/src/payloads/set_border.js +0 -97
- package/dist/src/payloads/set_col_visible.d.ts +0 -15
- package/dist/src/payloads/set_col_visible.js +0 -31
- package/dist/src/payloads/set_col_width.d.ts +0 -15
- package/dist/src/payloads/set_col_width.js +0 -31
- package/dist/src/payloads/set_font.d.ts +0 -46
- package/dist/src/payloads/set_font.js +0 -91
- package/dist/src/payloads/set_row_height.d.ts +0 -15
- package/dist/src/payloads/set_row_height.js +0 -31
- package/dist/src/payloads/set_row_visible.d.ts +0 -15
- package/dist/src/payloads/set_row_visible.js +0 -31
- package/dist/src/payloads/sheet_rename.d.ts +0 -15
- package/dist/src/payloads/sheet_rename.js +0 -29
- package/dist/src/payloads/split_merged_cells.js +0 -31
- package/dist/src/transactions.d.ts +0 -13
- package/dist/src/transactions.js +0 -23
- /package/dist/src/bindings/{cell_formula_value.js → app_data.js} +0 -0
- /package/dist/src/bindings/{cell_style.js → appendix.js} +0 -0
- /package/dist/src/bindings/{display_patch.js → appendix_with_cell.js} +0 -0
- /package/dist/src/bindings/{display_response.js → block_cell_info.js} +0 -0
- /package/dist/src/bindings/{sheet_blocks.js → block_data_row.js} +0 -0
- /package/dist/src/bindings/{sheet_col_info.js → block_display_info.js} +0 -0
- /package/dist/src/bindings/{sheet_comments.js → block_field.js} +0 -0
- /package/dist/src/bindings/{sheet_merge_cells.js → block_schema.js} +0 -0
- /package/dist/src/bindings/{sheet_row_info.js → block_schema_field_entry.js} +0 -0
- /package/dist/src/bindings/{sheet_styles.js → block_schema_key_entry.js} +0 -0
- /package/dist/src/bindings/{sheet_values.js → block_schema_random_entry.js} +0 -0
- /package/dist/src/bindings/{style_update.js → block_schema_type.js} +0 -0
|
@@ -1,51 +1,168 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { get_merged_cells } from '../../wasm/logisheets_wasm_server';
|
|
1
|
+
import { handle } from '../../wasm/logisheets_wasm_server';
|
|
3
2
|
import { Cell } from './cell';
|
|
4
3
|
import { isErrorMessage } from './utils';
|
|
4
|
+
function rpc(method, params, bookId
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
) {
|
|
7
|
+
const msg = params === undefined ? method : { method, value: params };
|
|
8
|
+
return handle(msg, bookId ?? null);
|
|
9
|
+
}
|
|
5
10
|
export class Worksheet {
|
|
6
11
|
constructor(id, sheetIdxOrId, isSheetIdx = true) {
|
|
7
12
|
this._id = id;
|
|
8
13
|
if (isSheetIdx) {
|
|
9
|
-
this.
|
|
14
|
+
this._sheetIdx = sheetIdxOrId;
|
|
15
|
+
this._sheetId = rpc('getSheetId', { sheetIdx: sheetIdxOrId }, id);
|
|
10
16
|
}
|
|
11
17
|
else {
|
|
12
18
|
this._sheetId = sheetIdxOrId;
|
|
19
|
+
this._sheetIdx = rpc('getSheetIdx', { sheetId: sheetIdxOrId }, id);
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
22
|
getSheetDimension() {
|
|
16
|
-
return
|
|
23
|
+
return rpc('getSheetDimension', { sheetId: this._sheetId }, this._id);
|
|
17
24
|
}
|
|
18
25
|
getDisplayWindow(startRow, endRow, startCol, endCol) {
|
|
19
|
-
return
|
|
26
|
+
return rpc('getDisplayWindow', { sheetIdx: this._sheetIdx, startRow, endRow, startCol, endCol }, this._id);
|
|
20
27
|
}
|
|
21
28
|
getDisplayWindowWithStartPoint(startX, startY, height, width) {
|
|
22
|
-
return
|
|
29
|
+
return rpc('getDisplayWindowWithStartPoint', { sheetIdx: this._sheetIdx, startX, startY, height, width }, this._id);
|
|
23
30
|
}
|
|
24
31
|
getCellPosition(row, col) {
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
return rpc('getCellPosition', { sheetIdx: this._sheetIdx, row, col }, this._id);
|
|
33
|
+
}
|
|
34
|
+
getNextUpwardVisibleCell(row, col) {
|
|
35
|
+
return rpc('getNextVisibleCell', {
|
|
36
|
+
sheetIdx: this._sheetIdx,
|
|
37
|
+
rowIdx: row,
|
|
38
|
+
colIdx: col,
|
|
39
|
+
direction: 'up',
|
|
40
|
+
}, this._id);
|
|
41
|
+
}
|
|
42
|
+
getNextDownwardVisibleCell(row, col) {
|
|
43
|
+
return rpc('getNextVisibleCell', {
|
|
44
|
+
sheetIdx: this._sheetIdx,
|
|
45
|
+
rowIdx: row,
|
|
46
|
+
colIdx: col,
|
|
47
|
+
direction: 'down',
|
|
48
|
+
}, this._id);
|
|
49
|
+
}
|
|
50
|
+
getNextLeftwardVisibleCell(row, col) {
|
|
51
|
+
return rpc('getNextVisibleCell', {
|
|
52
|
+
sheetIdx: this._sheetIdx,
|
|
53
|
+
rowIdx: row,
|
|
54
|
+
colIdx: col,
|
|
55
|
+
direction: 'left',
|
|
56
|
+
}, this._id);
|
|
57
|
+
}
|
|
58
|
+
getNextRightwardVisibleCell(row, col) {
|
|
59
|
+
return rpc('getNextVisibleCell', {
|
|
60
|
+
sheetIdx: this._sheetIdx,
|
|
61
|
+
rowIdx: row,
|
|
62
|
+
colIdx: col,
|
|
63
|
+
direction: 'right',
|
|
64
|
+
}, this._id);
|
|
65
|
+
}
|
|
66
|
+
// Ctrl+Arrow: jump to the next data/block boundary. Returns an
|
|
67
|
+
// ErrorMessage when there is no boundary ahead (caller shows a hint).
|
|
68
|
+
getUpwardDataBoundary(row, col) {
|
|
69
|
+
return rpc('getDataBoundary', { sheetIdx: this._sheetIdx, rowIdx: row, colIdx: col, direction: 'up' }, this._id);
|
|
70
|
+
}
|
|
71
|
+
getDownwardDataBoundary(row, col) {
|
|
72
|
+
return rpc('getDataBoundary', {
|
|
73
|
+
sheetIdx: this._sheetIdx,
|
|
74
|
+
rowIdx: row,
|
|
75
|
+
colIdx: col,
|
|
76
|
+
direction: 'down',
|
|
77
|
+
}, this._id);
|
|
78
|
+
}
|
|
79
|
+
getLeftwardDataBoundary(row, col) {
|
|
80
|
+
return rpc('getDataBoundary', {
|
|
81
|
+
sheetIdx: this._sheetIdx,
|
|
82
|
+
rowIdx: row,
|
|
83
|
+
colIdx: col,
|
|
84
|
+
direction: 'left',
|
|
85
|
+
}, this._id);
|
|
86
|
+
}
|
|
87
|
+
getRightwardDataBoundary(row, col) {
|
|
88
|
+
return rpc('getDataBoundary', {
|
|
89
|
+
sheetIdx: this._sheetIdx,
|
|
90
|
+
rowIdx: row,
|
|
91
|
+
colIdx: col,
|
|
92
|
+
direction: 'right',
|
|
93
|
+
}, this._id);
|
|
27
94
|
}
|
|
28
95
|
getDisplayWindowWithCellPosition(row, col, height, width) {
|
|
29
|
-
return
|
|
96
|
+
return rpc('getDisplayWindowWithinCell', { sheetIdx: this._sheetIdx, row, col, height, width }, this._id);
|
|
97
|
+
}
|
|
98
|
+
getBlockDisplayWindow(blockId) {
|
|
99
|
+
return rpc('getBlockDisplayWindow', { sheetId: this._sheetId, blockId }, this._id);
|
|
30
100
|
}
|
|
31
101
|
getRowHeight(rowIdx) {
|
|
32
|
-
return
|
|
102
|
+
return rpc('getRowHeight', { sheetId: this._sheetId, rowIdx }, this._id);
|
|
33
103
|
}
|
|
34
104
|
getColWidth(colIdx) {
|
|
35
|
-
return
|
|
105
|
+
return rpc('getColWidth', { sheetId: this._sheetId, colIdx }, this._id);
|
|
36
106
|
}
|
|
37
107
|
getRowInfo(rowIdx) {
|
|
38
|
-
return
|
|
108
|
+
return rpc('getRowInfo', { sheetIdx: this._sheetIdx, rowIdx }, this._id);
|
|
39
109
|
}
|
|
40
110
|
getColInfo(colIdx) {
|
|
41
|
-
return
|
|
111
|
+
return rpc('getColInfo', { sheetIdx: this._sheetIdx, colIdx }, this._id);
|
|
42
112
|
}
|
|
43
113
|
getCellInfo(rowIdx, colIdx) {
|
|
44
|
-
|
|
45
|
-
|
|
114
|
+
return rpc('getCell', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
115
|
+
}
|
|
116
|
+
getReproducibleCell(rowIdx, colIdx) {
|
|
117
|
+
return rpc('getReproducibleCell', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
118
|
+
}
|
|
119
|
+
getReproducibleCells(coordinates) {
|
|
120
|
+
return rpc('getReproducibleCells', { sheetIdx: this._sheetIdx, coordinates }, this._id);
|
|
121
|
+
}
|
|
122
|
+
getCellInfos(startRow, startCol, endRow, endCol) {
|
|
123
|
+
return rpc('getCellInfos', { sheetIdx: this._sheetIdx, startRow, startCol, endRow, endCol }, this._id);
|
|
124
|
+
}
|
|
125
|
+
getCellInfosExceptWindow(startRow, startCol, endRow, endCol, windowStartRow, windowStartCol, windowEndRow, windowEndCol) {
|
|
126
|
+
return rpc('getCellsExceptWindow', {
|
|
127
|
+
sheetIdx: this._sheetIdx,
|
|
128
|
+
startRow,
|
|
129
|
+
startCol,
|
|
130
|
+
endRow,
|
|
131
|
+
endCol,
|
|
132
|
+
windowStartRow,
|
|
133
|
+
windowStartCol,
|
|
134
|
+
windowEndRow,
|
|
135
|
+
windowEndCol,
|
|
136
|
+
}, this._id);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Predict the fill-handle result: given a source block and the target
|
|
140
|
+
* block the user dragged over, returns one `CellInput` per target cell
|
|
141
|
+
* (formula relative-reference shift, arithmetic series, or value copy).
|
|
142
|
+
*
|
|
143
|
+
* This is a pure read-only query — it does not mutate the workbook. The
|
|
144
|
+
* caller wraps the returned inputs in a single transaction (see
|
|
145
|
+
* `Workbook.fill`) so the fill is one undo step. `src` and `dst` must
|
|
146
|
+
* align on a single axis (a pure vertical or horizontal drag).
|
|
147
|
+
*/
|
|
148
|
+
predictFill(src, dst) {
|
|
149
|
+
return rpc('predictFill', {
|
|
150
|
+
sheetIdx: this._sheetIdx,
|
|
151
|
+
srcStartRow: src.startRow,
|
|
152
|
+
srcStartCol: src.startCol,
|
|
153
|
+
srcEndRow: src.endRow,
|
|
154
|
+
srcEndCol: src.endCol,
|
|
155
|
+
dstStartRow: dst.startRow,
|
|
156
|
+
dstStartCol: dst.startCol,
|
|
157
|
+
dstEndRow: dst.endRow,
|
|
158
|
+
dstEndCol: dst.endCol,
|
|
159
|
+
}, this._id);
|
|
160
|
+
}
|
|
161
|
+
getBlockInfo(blockId) {
|
|
162
|
+
return rpc('getBlockInfo', { sheetId: this._sheetId, blockId }, this._id);
|
|
46
163
|
}
|
|
47
164
|
getMergedCells(startRow, startCol, endRow, endCol) {
|
|
48
|
-
return
|
|
165
|
+
return rpc('getMergedCells', { sheetIdx: this._sheetIdx, startRow, startCol, endRow, endCol }, this._id);
|
|
49
166
|
}
|
|
50
167
|
getCell(rowIdx, colIdx) {
|
|
51
168
|
const cellInfo = this.getCellInfo(rowIdx, colIdx);
|
|
@@ -55,17 +172,41 @@ export class Worksheet {
|
|
|
55
172
|
return new Cell(cellInfo);
|
|
56
173
|
}
|
|
57
174
|
getFormula(rowIdx, colIdx) {
|
|
58
|
-
return
|
|
175
|
+
return rpc('getFormula', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
59
176
|
}
|
|
60
177
|
getStyle(rowIdx, colIdx) {
|
|
61
|
-
return
|
|
178
|
+
return rpc('getStyle', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
62
179
|
}
|
|
63
180
|
getValue(rowIdx, colIdx) {
|
|
64
|
-
return
|
|
181
|
+
return rpc('getValue', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
182
|
+
}
|
|
183
|
+
getDiyCellIdWithBlockId(blockId, row, col) {
|
|
184
|
+
const cellId = rpc('getDiyCellIdWithBlockId', { sheetId: this._sheetId, blockId, row, col }, this._id);
|
|
185
|
+
if (cellId === undefined) {
|
|
186
|
+
return { msg: 'Cell not found', ty: 0 };
|
|
187
|
+
}
|
|
188
|
+
return cellId;
|
|
189
|
+
}
|
|
190
|
+
lookupAppendixUpward(blockId, row, col, craftId, tag) {
|
|
191
|
+
return rpc('lookupAppendixUpward', {
|
|
192
|
+
sheetId: this._sheetId,
|
|
193
|
+
blockId,
|
|
194
|
+
row,
|
|
195
|
+
col,
|
|
196
|
+
craftId,
|
|
197
|
+
tag,
|
|
198
|
+
}, this._id);
|
|
65
199
|
}
|
|
66
200
|
getFullyCoveredBlocks(rowIdx, colIdx, rowCnt, colCnt) {
|
|
67
|
-
return
|
|
201
|
+
return rpc('getFullyCoveredBlocks', {
|
|
202
|
+
sheetId: this._sheetId,
|
|
203
|
+
row: rowIdx,
|
|
204
|
+
col: colIdx,
|
|
205
|
+
rowCnt,
|
|
206
|
+
colCnt,
|
|
207
|
+
}, this._id);
|
|
68
208
|
}
|
|
69
209
|
_id;
|
|
70
210
|
_sheetId;
|
|
211
|
+
_sheetIdx;
|
|
71
212
|
}
|
|
@@ -1,7 +1,63 @@
|
|
|
1
|
+
import { SheetCellId } from './sheet_cell_id';
|
|
2
|
+
import { SheetColId } from './sheet_col_id';
|
|
3
|
+
import { SheetRowId } from './sheet_row_id';
|
|
1
4
|
import { StatusCode } from './status_code';
|
|
2
5
|
import { Task } from './task';
|
|
3
6
|
export interface ActionEffect {
|
|
4
7
|
version: number;
|
|
5
8
|
asyncTasks: readonly Task[];
|
|
6
9
|
status: StatusCode;
|
|
10
|
+
valueChanged: readonly SheetCellId[];
|
|
11
|
+
cellRemoved: readonly SheetCellId[];
|
|
12
|
+
styleChanged: readonly SheetCellId[];
|
|
13
|
+
rowInserted: readonly SheetRowId[];
|
|
14
|
+
rowRemoved: readonly SheetRowId[];
|
|
15
|
+
rowUpdated: readonly SheetRowId[];
|
|
16
|
+
colInserted: readonly SheetColId[];
|
|
17
|
+
colRemoved: readonly SheetColId[];
|
|
18
|
+
colUpdated: readonly SheetColId[];
|
|
19
|
+
headerUpdated: readonly number[];
|
|
20
|
+
}
|
|
21
|
+
export declare class ActionEffectBuilder {
|
|
22
|
+
private _version;
|
|
23
|
+
private _asyncTasks;
|
|
24
|
+
private _status;
|
|
25
|
+
private _valueChanged;
|
|
26
|
+
private _cellRemoved;
|
|
27
|
+
private _styleChanged;
|
|
28
|
+
private _rowInserted;
|
|
29
|
+
private _rowRemoved;
|
|
30
|
+
private _rowUpdated;
|
|
31
|
+
private _colInserted;
|
|
32
|
+
private _colRemoved;
|
|
33
|
+
private _colUpdated;
|
|
34
|
+
private _headerUpdated;
|
|
35
|
+
version(value: number): this;
|
|
36
|
+
asyncTasks(value: readonly Task[]): this;
|
|
37
|
+
status(value: StatusCode): this;
|
|
38
|
+
valueChanged(value: readonly SheetCellId[]): this;
|
|
39
|
+
cellRemoved(value: readonly SheetCellId[]): this;
|
|
40
|
+
styleChanged(value: readonly SheetCellId[]): this;
|
|
41
|
+
rowInserted(value: readonly SheetRowId[]): this;
|
|
42
|
+
rowRemoved(value: readonly SheetRowId[]): this;
|
|
43
|
+
rowUpdated(value: readonly SheetRowId[]): this;
|
|
44
|
+
colInserted(value: readonly SheetColId[]): this;
|
|
45
|
+
colRemoved(value: readonly SheetColId[]): this;
|
|
46
|
+
colUpdated(value: readonly SheetColId[]): this;
|
|
47
|
+
headerUpdated(value: readonly number[]): this;
|
|
48
|
+
build(): {
|
|
49
|
+
version: number;
|
|
50
|
+
asyncTasks: readonly Task[];
|
|
51
|
+
status: StatusCode;
|
|
52
|
+
valueChanged: readonly SheetCellId[];
|
|
53
|
+
cellRemoved: readonly SheetCellId[];
|
|
54
|
+
styleChanged: readonly SheetCellId[];
|
|
55
|
+
rowInserted: readonly SheetRowId[];
|
|
56
|
+
rowRemoved: readonly SheetRowId[];
|
|
57
|
+
rowUpdated: readonly SheetRowId[];
|
|
58
|
+
colInserted: readonly SheetColId[];
|
|
59
|
+
colRemoved: readonly SheetColId[];
|
|
60
|
+
colUpdated: readonly SheetColId[];
|
|
61
|
+
headerUpdated: readonly number[];
|
|
62
|
+
};
|
|
7
63
|
}
|
|
@@ -1 +1,96 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export class ActionEffectBuilder {
|
|
2
|
+
_version;
|
|
3
|
+
_asyncTasks;
|
|
4
|
+
_status;
|
|
5
|
+
_valueChanged;
|
|
6
|
+
_cellRemoved;
|
|
7
|
+
_styleChanged;
|
|
8
|
+
_rowInserted;
|
|
9
|
+
_rowRemoved;
|
|
10
|
+
_rowUpdated;
|
|
11
|
+
_colInserted;
|
|
12
|
+
_colRemoved;
|
|
13
|
+
_colUpdated;
|
|
14
|
+
_headerUpdated;
|
|
15
|
+
version(value) {
|
|
16
|
+
this._version = value;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
asyncTasks(value) {
|
|
20
|
+
this._asyncTasks = value;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
status(value) {
|
|
24
|
+
this._status = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
valueChanged(value) {
|
|
28
|
+
this._valueChanged = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
cellRemoved(value) {
|
|
32
|
+
this._cellRemoved = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
styleChanged(value) {
|
|
36
|
+
this._styleChanged = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
rowInserted(value) {
|
|
40
|
+
this._rowInserted = value;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
rowRemoved(value) {
|
|
44
|
+
this._rowRemoved = value;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
rowUpdated(value) {
|
|
48
|
+
this._rowUpdated = value;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
colInserted(value) {
|
|
52
|
+
this._colInserted = value;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
colRemoved(value) {
|
|
56
|
+
this._colRemoved = value;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
colUpdated(value) {
|
|
60
|
+
this._colUpdated = value;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
headerUpdated(value) {
|
|
64
|
+
this._headerUpdated = value;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
build() {
|
|
68
|
+
if (this._version === undefined)
|
|
69
|
+
throw new Error('missing version');
|
|
70
|
+
if (this._asyncTasks === undefined)
|
|
71
|
+
throw new Error('missing asyncTasks');
|
|
72
|
+
if (this._status === undefined)
|
|
73
|
+
throw new Error('missing status');
|
|
74
|
+
if (this._valueChanged === undefined)
|
|
75
|
+
throw new Error('missing valueChanged');
|
|
76
|
+
if (this._cellRemoved === undefined)
|
|
77
|
+
throw new Error('missing cellRemoved');
|
|
78
|
+
if (this._styleChanged === undefined)
|
|
79
|
+
throw new Error('missing styleChanged');
|
|
80
|
+
if (this._rowInserted === undefined)
|
|
81
|
+
throw new Error('missing rowInserted');
|
|
82
|
+
if (this._rowRemoved === undefined)
|
|
83
|
+
throw new Error('missing rowRemoved');
|
|
84
|
+
if (this._rowUpdated === undefined)
|
|
85
|
+
throw new Error('missing rowUpdated');
|
|
86
|
+
if (this._colInserted === undefined)
|
|
87
|
+
throw new Error('missing colInserted');
|
|
88
|
+
if (this._colRemoved === undefined)
|
|
89
|
+
throw new Error('missing colRemoved');
|
|
90
|
+
if (this._colUpdated === undefined)
|
|
91
|
+
throw new Error('missing colUpdated');
|
|
92
|
+
if (this._headerUpdated === undefined)
|
|
93
|
+
throw new Error('missing headerUpdated');
|
|
94
|
+
return { version: this._version, asyncTasks: this._asyncTasks, status: this._status, valueChanged: this._valueChanged, cellRemoved: this._cellRemoved, styleChanged: this._styleChanged, rowInserted: this._rowInserted, rowRemoved: this._rowRemoved, rowUpdated: this._rowUpdated, colInserted: this._colInserted, colRemoved: this._colRemoved, colUpdated: this._colUpdated, headerUpdated: this._headerUpdated };
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -3,3 +3,13 @@ export interface AsyncFuncResult {
|
|
|
3
3
|
tasks: readonly Task[];
|
|
4
4
|
values: readonly string[];
|
|
5
5
|
}
|
|
6
|
+
export declare class AsyncFuncResultBuilder {
|
|
7
|
+
private _tasks;
|
|
8
|
+
private _values;
|
|
9
|
+
tasks(value: readonly Task[]): this;
|
|
10
|
+
values(value: readonly string[]): this;
|
|
11
|
+
build(): {
|
|
12
|
+
tasks: readonly Task[];
|
|
13
|
+
values: readonly string[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export class AsyncFuncResultBuilder {
|
|
2
|
+
_tasks;
|
|
3
|
+
_values;
|
|
4
|
+
tasks(value) {
|
|
5
|
+
this._tasks = value;
|
|
6
|
+
return this;
|
|
7
|
+
}
|
|
8
|
+
values(value) {
|
|
9
|
+
this._values = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
build() {
|
|
13
|
+
if (this._tasks === undefined)
|
|
14
|
+
throw new Error('missing tasks');
|
|
15
|
+
if (this._values === undefined)
|
|
16
|
+
throw new Error('missing values');
|
|
17
|
+
return { tasks: this._tasks, values: this._values };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface BindFormSchema {
|
|
2
|
+
refName: string;
|
|
3
|
+
sheetIdx: number;
|
|
4
|
+
blockId: number;
|
|
5
|
+
fieldFrom: number;
|
|
6
|
+
keyIdx: number;
|
|
7
|
+
fields: readonly string[];
|
|
8
|
+
renderIds: readonly string[];
|
|
9
|
+
row: boolean;
|
|
10
|
+
fieldFormulas: readonly string[];
|
|
11
|
+
validationFormulas: readonly string[];
|
|
12
|
+
editabilityFormulas: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
export declare class BindFormSchemaBuilder {
|
|
15
|
+
private _refName;
|
|
16
|
+
private _sheetIdx;
|
|
17
|
+
private _blockId;
|
|
18
|
+
private _fieldFrom;
|
|
19
|
+
private _keyIdx;
|
|
20
|
+
private _fields;
|
|
21
|
+
private _renderIds;
|
|
22
|
+
private _row;
|
|
23
|
+
private _fieldFormulas;
|
|
24
|
+
private _validationFormulas;
|
|
25
|
+
private _editabilityFormulas;
|
|
26
|
+
refName(value: string): this;
|
|
27
|
+
sheetIdx(value: number): this;
|
|
28
|
+
blockId(value: number): this;
|
|
29
|
+
fieldFrom(value: number): this;
|
|
30
|
+
keyIdx(value: number): this;
|
|
31
|
+
fields(value: readonly string[]): this;
|
|
32
|
+
renderIds(value: readonly string[]): this;
|
|
33
|
+
row(value: boolean): this;
|
|
34
|
+
fieldFormulas(value: readonly string[]): this;
|
|
35
|
+
validationFormulas(value: readonly string[]): this;
|
|
36
|
+
editabilityFormulas(value: readonly string[]): this;
|
|
37
|
+
build(): {
|
|
38
|
+
refName: string;
|
|
39
|
+
sheetIdx: number;
|
|
40
|
+
blockId: number;
|
|
41
|
+
fieldFrom: number;
|
|
42
|
+
keyIdx: number;
|
|
43
|
+
fields: readonly string[];
|
|
44
|
+
renderIds: readonly string[];
|
|
45
|
+
row: boolean;
|
|
46
|
+
fieldFormulas: readonly string[];
|
|
47
|
+
validationFormulas: readonly string[];
|
|
48
|
+
editabilityFormulas: readonly string[];
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export class BindFormSchemaBuilder {
|
|
2
|
+
_refName;
|
|
3
|
+
_sheetIdx;
|
|
4
|
+
_blockId;
|
|
5
|
+
_fieldFrom;
|
|
6
|
+
_keyIdx;
|
|
7
|
+
_fields;
|
|
8
|
+
_renderIds;
|
|
9
|
+
_row;
|
|
10
|
+
_fieldFormulas;
|
|
11
|
+
_validationFormulas;
|
|
12
|
+
_editabilityFormulas;
|
|
13
|
+
refName(value) {
|
|
14
|
+
this._refName = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
sheetIdx(value) {
|
|
18
|
+
this._sheetIdx = value;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
blockId(value) {
|
|
22
|
+
this._blockId = value;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
fieldFrom(value) {
|
|
26
|
+
this._fieldFrom = value;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
keyIdx(value) {
|
|
30
|
+
this._keyIdx = value;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
fields(value) {
|
|
34
|
+
this._fields = value;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
renderIds(value) {
|
|
38
|
+
this._renderIds = value;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
row(value) {
|
|
42
|
+
this._row = value;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
fieldFormulas(value) {
|
|
46
|
+
this._fieldFormulas = value;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
validationFormulas(value) {
|
|
50
|
+
this._validationFormulas = value;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
editabilityFormulas(value) {
|
|
54
|
+
this._editabilityFormulas = value;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
build() {
|
|
58
|
+
if (this._refName === undefined)
|
|
59
|
+
throw new Error('missing refName');
|
|
60
|
+
if (this._sheetIdx === undefined)
|
|
61
|
+
throw new Error('missing sheetIdx');
|
|
62
|
+
if (this._blockId === undefined)
|
|
63
|
+
throw new Error('missing blockId');
|
|
64
|
+
if (this._fieldFrom === undefined)
|
|
65
|
+
throw new Error('missing fieldFrom');
|
|
66
|
+
if (this._keyIdx === undefined)
|
|
67
|
+
throw new Error('missing keyIdx');
|
|
68
|
+
if (this._fields === undefined)
|
|
69
|
+
throw new Error('missing fields');
|
|
70
|
+
if (this._renderIds === undefined)
|
|
71
|
+
throw new Error('missing renderIds');
|
|
72
|
+
if (this._row === undefined)
|
|
73
|
+
throw new Error('missing row');
|
|
74
|
+
if (this._fieldFormulas === undefined)
|
|
75
|
+
throw new Error('missing fieldFormulas');
|
|
76
|
+
if (this._validationFormulas === undefined)
|
|
77
|
+
throw new Error('missing validationFormulas');
|
|
78
|
+
if (this._editabilityFormulas === undefined)
|
|
79
|
+
throw new Error('missing editabilityFormulas');
|
|
80
|
+
return { refName: this._refName, sheetIdx: this._sheetIdx, blockId: this._blockId, fieldFrom: this._fieldFrom, keyIdx: this._keyIdx, fields: this._fields, renderIds: this._renderIds, row: this._row, fieldFormulas: this._fieldFormulas, validationFormulas: this._validationFormulas, editabilityFormulas: this._editabilityFormulas };
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RandomSchemaUnit } from './random_schema_unit';
|
|
2
|
+
export interface BindRandomSchema {
|
|
3
|
+
refName: string;
|
|
4
|
+
sheetIdx: number;
|
|
5
|
+
blockId: number;
|
|
6
|
+
units: readonly RandomSchemaUnit[];
|
|
7
|
+
}
|
|
8
|
+
export declare class BindRandomSchemaBuilder {
|
|
9
|
+
private _refName;
|
|
10
|
+
private _sheetIdx;
|
|
11
|
+
private _blockId;
|
|
12
|
+
private _units;
|
|
13
|
+
refName(value: string): this;
|
|
14
|
+
sheetIdx(value: number): this;
|
|
15
|
+
blockId(value: number): this;
|
|
16
|
+
units(value: readonly RandomSchemaUnit[]): this;
|
|
17
|
+
build(): {
|
|
18
|
+
refName: string;
|
|
19
|
+
sheetIdx: number;
|
|
20
|
+
blockId: number;
|
|
21
|
+
units: readonly RandomSchemaUnit[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export class BindRandomSchemaBuilder {
|
|
2
|
+
_refName;
|
|
3
|
+
_sheetIdx;
|
|
4
|
+
_blockId;
|
|
5
|
+
_units;
|
|
6
|
+
refName(value) {
|
|
7
|
+
this._refName = value;
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
sheetIdx(value) {
|
|
11
|
+
this._sheetIdx = value;
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
blockId(value) {
|
|
15
|
+
this._blockId = value;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
units(value) {
|
|
19
|
+
this._units = value;
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
build() {
|
|
23
|
+
if (this._refName === undefined)
|
|
24
|
+
throw new Error('missing refName');
|
|
25
|
+
if (this._sheetIdx === undefined)
|
|
26
|
+
throw new Error('missing sheetIdx');
|
|
27
|
+
if (this._blockId === undefined)
|
|
28
|
+
throw new Error('missing blockId');
|
|
29
|
+
if (this._units === undefined)
|
|
30
|
+
throw new Error('missing units');
|
|
31
|
+
return { refName: this._refName, sheetIdx: this._sheetIdx, blockId: this._blockId, units: this._units };
|
|
32
|
+
}
|
|
33
|
+
}
|