logisheets 0.7.0 → 1.0.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/block_manager.d.ts +21 -0
- package/dist/src/api/block_manager.js +35 -0
- package/dist/src/api/calculator.d.ts +19 -0
- package/dist/src/api/calculator.js +46 -0
- package/dist/src/api/cell.d.ts +29 -0
- package/dist/src/api/cell.js +55 -0
- 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 +6 -0
- package/dist/src/api/index.js +4 -0
- package/dist/src/api/utils.d.ts +3 -1
- package/dist/src/api/utils.js +7 -0
- package/dist/src/api/workbook.d.ts +82 -10
- package/dist/src/api/workbook.js +285 -64
- package/dist/src/api/worksheet.d.ts +32 -11
- package/dist/src/api/worksheet.js +146 -19
- 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 +7 -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 +42 -0
- package/dist/src/bindings/bind_form_schema.js +68 -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.d.ts +1 -1
- 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_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 +5 -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 +18 -0
- package/dist/src/bindings/cell_clear.js +26 -0
- 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 +38 -0
- package/dist/src/bindings/cell_format_brush.js +61 -0
- package/dist/src/bindings/cell_id.d.ts +8 -3
- package/dist/src/bindings/cell_info.d.ts +2 -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.d.ts +4 -0
- package/dist/src/bindings/cell_position.js +1 -0
- 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 +23 -0
- package/dist/src/bindings/cell_style_update.js +33 -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 +14 -0
- package/dist/src/bindings/display_window.js +1 -0
- package/dist/src/bindings/display_window_request.d.ts +7 -0
- package/dist/src/bindings/display_window_request.js +1 -0
- package/dist/src/bindings/display_window_with_start_point.d.ts +6 -0
- package/dist/src/bindings/display_window_with_start_point.js +1 -0
- package/dist/src/bindings/edit_action.d.ts +5 -3
- package/dist/src/bindings/edit_payload.d.ts +160 -27
- package/dist/src/bindings/ephemeral_cell_input.d.ts +18 -0
- package/dist/src/bindings/ephemeral_cell_input.js +26 -0
- 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 +19 -0
- package/dist/src/bindings/ephemeral_cell_style_update.js +26 -0
- 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 +5 -3
- 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.d.ts +1 -0
- package/dist/src/bindings/horizontal_alignment.js +1 -0
- package/dist/src/bindings/index.d.ts +123 -14
- package/dist/src/bindings/index.js +123 -14
- 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 +34 -0
- package/dist/src/bindings/line_format_brush.js +54 -0
- package/dist/src/bindings/line_style_update.d.ts +27 -0
- package/dist/src/bindings/line_style_update.js +40 -0
- package/dist/src/bindings/merge_cell.d.ts +4 -4
- package/dist/src/bindings/merge_cell.js +0 -1
- package/dist/src/bindings/merge_cells.d.ts +26 -0
- package/dist/src/bindings/merge_cells.js +40 -0
- 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 +7 -4
- package/dist/src/bindings/msg_user_message.d.ts +5 -3
- package/dist/src/bindings/normal_cell_id.js +0 -1
- package/dist/src/bindings/payloads_action.d.ts +1 -0
- 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/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_direction.d.ts +1 -0
- package/dist/src/bindings/rpc_direction.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_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_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 +116 -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.d.ts +6 -0
- package/dist/src/bindings/sheet_dimension.js +1 -0
- package/dist/src/bindings/sheet_info.d.ts +6 -0
- package/dist/src/bindings/sheet_info.js +1 -0
- 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 +18 -0
- package/dist/src/bindings/split_merged_cells.js +26 -0
- package/dist/src/bindings/st_border_style.d.ts +1 -1
- package/dist/src/bindings/st_border_style.js +0 -1
- package/dist/src/bindings/st_font_scheme.d.ts +1 -1
- package/dist/src/bindings/st_font_scheme.js +0 -1
- package/dist/src/bindings/st_gradient_type.d.ts +1 -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.d.ts +1 -1
- package/dist/src/bindings/st_pattern_type.js +0 -1
- package/dist/src/bindings/st_underline_values.d.ts +1 -1
- package/dist/src/bindings/st_underline_values.js +0 -1
- package/dist/src/bindings/st_vertical_align_run.d.ts +1 -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 +6 -3
- package/dist/src/bindings/status_code.js +0 -1
- package/dist/src/bindings/style.d.ts +2 -2
- package/dist/src/bindings/style_update_type.d.ts +79 -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 +18 -0
- package/dist/src/bindings/upsert_field_formulas.js +26 -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 +9 -5
- package/dist/src/bindings/value.js +0 -1
- package/dist/src/bindings/vertical_alignment.d.ts +1 -0
- package/dist/src/bindings/vertical_alignment.js +1 -0
- package/dist/src/bindings/workbook_file.js +0 -1
- package/dist/src/bindings/workbook_update_type.d.ts +1 -0
- package/dist/src/bindings/workbook_update_type.js +1 -0
- package/dist/src/client.d.ts +25 -0
- package/dist/src/client.js +1 -0
- package/dist/src/index.d.ts +5 -2
- package/dist/src/index.js +5 -1
- package/dist/src/layout.d.ts +7 -0
- package/dist/src/layout.js +1 -0
- package/dist/src/payloads/index.d.ts +1 -43
- package/dist/src/payloads/index.js +1 -21
- 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 +18 -0
- package/dist/src/payloads/{set_col_width.js → set_cell_alignment.js} +15 -8
- package/dist/src/payloads/{set_border.d.ts → set_cell_border.d.ts} +3 -4
- package/dist/src/payloads/{set_border.js → set_cell_border.js} +1 -2
- package/dist/src/payloads/{set_font.d.ts → set_cell_font.d.ts} +3 -4
- package/dist/src/payloads/{set_font.js → set_cell_font.js} +1 -2
- package/dist/src/payloads/{cell_input.d.ts → set_cell_num_fmt.d.ts} +6 -7
- package/dist/src/payloads/{cell_input.js → set_cell_num_fmt.js} +7 -8
- package/dist/src/payloads/set_cell_pattern_fill.d.ts +24 -0
- package/dist/src/payloads/{block_input.js → set_cell_pattern_fill.js} +15 -14
- package/dist/src/payloads/set_cell_wrap_text.d.ts +17 -0
- package/dist/src/payloads/{set_col_visible.js → set_cell_wrap_text.js} +15 -8
- 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 +21 -0
- package/dist/src/payloads/set_line_alignment.js +46 -0
- package/dist/src/payloads/set_line_border.d.ts +48 -0
- package/dist/src/payloads/set_line_border.js +96 -0
- package/dist/src/payloads/set_line_font.d.ts +48 -0
- package/dist/src/payloads/set_line_font.js +98 -0
- 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 +27 -0
- package/dist/src/payloads/set_line_pattern_fill.js +56 -0
- 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/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 +4 -3
- 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/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/move_block.d.ts +0 -18
- package/dist/src/payloads/move_block.js +0 -39
- package/dist/src/payloads/set_col_visible.d.ts +0 -15
- package/dist/src/payloads/set_col_width.d.ts +0 -15
- 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/transactions.d.ts +0 -7
- package/dist/src/transactions.js +0 -12
- package/wasm/.gitignore +0 -1
- package/wasm/logisheets_wasm_server.d.ts +0 -255
- package/wasm/logisheets_wasm_server.js +0 -946
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/logisheets_wasm_server_bg.wasm.d.ts +0 -40
- package/wasm/package.json +0 -14
- /package/dist/src/bindings/{cell_formula_value.js → alignment.js} +0 -0
- /package/dist/src/bindings/{cell_style.js → app_data.js} +0 -0
- /package/dist/src/bindings/{display_patch.js → appendix.js} +0 -0
- /package/dist/src/bindings/{display_response.js → appendix_with_cell.js} +0 -0
- /package/dist/src/bindings/{sheet_blocks.js → block_cell_info.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 +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,42 @@
|
|
|
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
|
+
}
|
|
12
|
+
export declare class BindFormSchemaBuilder {
|
|
13
|
+
private _refName;
|
|
14
|
+
private _sheetIdx;
|
|
15
|
+
private _blockId;
|
|
16
|
+
private _fieldFrom;
|
|
17
|
+
private _keyIdx;
|
|
18
|
+
private _fields;
|
|
19
|
+
private _renderIds;
|
|
20
|
+
private _row;
|
|
21
|
+
private _fieldFormulas;
|
|
22
|
+
refName(value: string): this;
|
|
23
|
+
sheetIdx(value: number): this;
|
|
24
|
+
blockId(value: number): this;
|
|
25
|
+
fieldFrom(value: number): this;
|
|
26
|
+
keyIdx(value: number): this;
|
|
27
|
+
fields(value: readonly string[]): this;
|
|
28
|
+
renderIds(value: readonly string[]): this;
|
|
29
|
+
row(value: boolean): this;
|
|
30
|
+
fieldFormulas(value: readonly string[]): this;
|
|
31
|
+
build(): {
|
|
32
|
+
refName: string;
|
|
33
|
+
sheetIdx: number;
|
|
34
|
+
blockId: number;
|
|
35
|
+
fieldFrom: number;
|
|
36
|
+
keyIdx: number;
|
|
37
|
+
fields: readonly string[];
|
|
38
|
+
renderIds: readonly string[];
|
|
39
|
+
row: boolean;
|
|
40
|
+
fieldFormulas: readonly string[];
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export class BindFormSchemaBuilder {
|
|
2
|
+
_refName;
|
|
3
|
+
_sheetIdx;
|
|
4
|
+
_blockId;
|
|
5
|
+
_fieldFrom;
|
|
6
|
+
_keyIdx;
|
|
7
|
+
_fields;
|
|
8
|
+
_renderIds;
|
|
9
|
+
_row;
|
|
10
|
+
_fieldFormulas;
|
|
11
|
+
refName(value) {
|
|
12
|
+
this._refName = value;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
sheetIdx(value) {
|
|
16
|
+
this._sheetIdx = value;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
blockId(value) {
|
|
20
|
+
this._blockId = value;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
fieldFrom(value) {
|
|
24
|
+
this._fieldFrom = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
keyIdx(value) {
|
|
28
|
+
this._keyIdx = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
fields(value) {
|
|
32
|
+
this._fields = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
renderIds(value) {
|
|
36
|
+
this._renderIds = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
row(value) {
|
|
40
|
+
this._row = value;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
fieldFormulas(value) {
|
|
44
|
+
this._fieldFormulas = value;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
build() {
|
|
48
|
+
if (this._refName === undefined)
|
|
49
|
+
throw new Error('missing refName');
|
|
50
|
+
if (this._sheetIdx === undefined)
|
|
51
|
+
throw new Error('missing sheetIdx');
|
|
52
|
+
if (this._blockId === undefined)
|
|
53
|
+
throw new Error('missing blockId');
|
|
54
|
+
if (this._fieldFrom === undefined)
|
|
55
|
+
throw new Error('missing fieldFrom');
|
|
56
|
+
if (this._keyIdx === undefined)
|
|
57
|
+
throw new Error('missing keyIdx');
|
|
58
|
+
if (this._fields === undefined)
|
|
59
|
+
throw new Error('missing fields');
|
|
60
|
+
if (this._renderIds === undefined)
|
|
61
|
+
throw new Error('missing renderIds');
|
|
62
|
+
if (this._row === undefined)
|
|
63
|
+
throw new Error('missing row');
|
|
64
|
+
if (this._fieldFormulas === undefined)
|
|
65
|
+
throw new Error('missing fieldFormulas');
|
|
66
|
+
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 };
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { BlockCellInfo } from './block_cell_info';
|
|
2
|
+
import { BlockSchema } from './block_schema';
|
|
3
|
+
import { FieldRenderEntry } from './field_render_entry';
|
|
1
4
|
export interface BlockInfo {
|
|
5
|
+
sheetIdx: number;
|
|
6
|
+
sheetId: number;
|
|
2
7
|
blockId: number;
|
|
3
8
|
rowStart: number;
|
|
4
9
|
rowCnt: number;
|
|
5
10
|
colStart: number;
|
|
6
11
|
colCnt: number;
|
|
12
|
+
schema?: BlockSchema;
|
|
13
|
+
fieldRenders: readonly FieldRenderEntry[];
|
|
14
|
+
cells: readonly BlockCellInfo[];
|
|
7
15
|
}
|
|
@@ -5,3 +5,22 @@ export interface BlockInput {
|
|
|
5
5
|
col: number;
|
|
6
6
|
input: string;
|
|
7
7
|
}
|
|
8
|
+
export declare class BlockInputBuilder {
|
|
9
|
+
private _sheetIdx;
|
|
10
|
+
private _blockId;
|
|
11
|
+
private _row;
|
|
12
|
+
private _col;
|
|
13
|
+
private _input;
|
|
14
|
+
sheetIdx(value: number): this;
|
|
15
|
+
blockId(value: number): this;
|
|
16
|
+
row(value: number): this;
|
|
17
|
+
col(value: number): this;
|
|
18
|
+
input(value: string): this;
|
|
19
|
+
build(): {
|
|
20
|
+
sheetIdx: number;
|
|
21
|
+
blockId: number;
|
|
22
|
+
row: number;
|
|
23
|
+
col: number;
|
|
24
|
+
input: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -1,2 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export class BlockInputBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_blockId;
|
|
4
|
+
_row;
|
|
5
|
+
_col;
|
|
6
|
+
_input;
|
|
7
|
+
sheetIdx(value) {
|
|
8
|
+
this._sheetIdx = value;
|
|
9
|
+
return this;
|
|
10
|
+
}
|
|
11
|
+
blockId(value) {
|
|
12
|
+
this._blockId = value;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
row(value) {
|
|
16
|
+
this._row = value;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
col(value) {
|
|
20
|
+
this._col = value;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
input(value) {
|
|
24
|
+
this._input = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
build() {
|
|
28
|
+
if (this._sheetIdx === undefined)
|
|
29
|
+
throw new Error('missing sheetIdx');
|
|
30
|
+
if (this._blockId === undefined)
|
|
31
|
+
throw new Error('missing blockId');
|
|
32
|
+
if (this._row === undefined)
|
|
33
|
+
throw new Error('missing row');
|
|
34
|
+
if (this._col === undefined)
|
|
35
|
+
throw new Error('missing col');
|
|
36
|
+
if (this._input === undefined)
|
|
37
|
+
throw new Error('missing input');
|
|
38
|
+
return { sheetIdx: this._sheetIdx, blockId: this._blockId, row: this._row, col: this._col, input: this._input };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface BlockLineNameFieldUpdate {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
blockId: number;
|
|
4
|
+
line: number;
|
|
5
|
+
row: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
fieldId: string;
|
|
8
|
+
diyRender?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class BlockLineNameFieldUpdateBuilder {
|
|
11
|
+
private _sheetIdx;
|
|
12
|
+
private _blockId;
|
|
13
|
+
private _line;
|
|
14
|
+
private _row;
|
|
15
|
+
private _name?;
|
|
16
|
+
private _fieldId;
|
|
17
|
+
private _diyRender?;
|
|
18
|
+
sheetIdx(value: number): this;
|
|
19
|
+
blockId(value: number): this;
|
|
20
|
+
line(value: number): this;
|
|
21
|
+
row(value: boolean): this;
|
|
22
|
+
name(value: string): this;
|
|
23
|
+
fieldId(value: string): this;
|
|
24
|
+
diyRender(value: boolean): this;
|
|
25
|
+
build(): {
|
|
26
|
+
sheetIdx: number;
|
|
27
|
+
blockId: number;
|
|
28
|
+
line: number;
|
|
29
|
+
row: boolean;
|
|
30
|
+
name: string | undefined;
|
|
31
|
+
fieldId: string;
|
|
32
|
+
diyRender: boolean | undefined;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export class BlockLineNameFieldUpdateBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_blockId;
|
|
4
|
+
_line;
|
|
5
|
+
_row;
|
|
6
|
+
_name;
|
|
7
|
+
_fieldId;
|
|
8
|
+
_diyRender;
|
|
9
|
+
sheetIdx(value) {
|
|
10
|
+
this._sheetIdx = value;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
blockId(value) {
|
|
14
|
+
this._blockId = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
line(value) {
|
|
18
|
+
this._line = value;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
row(value) {
|
|
22
|
+
this._row = value;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
name(value) {
|
|
26
|
+
this._name = value;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
fieldId(value) {
|
|
30
|
+
this._fieldId = value;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
diyRender(value) {
|
|
34
|
+
this._diyRender = value;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
build() {
|
|
38
|
+
if (this._sheetIdx === undefined)
|
|
39
|
+
throw new Error('missing sheetIdx');
|
|
40
|
+
if (this._blockId === undefined)
|
|
41
|
+
throw new Error('missing blockId');
|
|
42
|
+
if (this._line === undefined)
|
|
43
|
+
throw new Error('missing line');
|
|
44
|
+
if (this._row === undefined)
|
|
45
|
+
throw new Error('missing row');
|
|
46
|
+
if (this._fieldId === undefined)
|
|
47
|
+
throw new Error('missing fieldId');
|
|
48
|
+
return { sheetIdx: this._sheetIdx, blockId: this._blockId, line: this._line, row: this._row, name: this._name, fieldId: this._fieldId, diyRender: this._diyRender };
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StyleUpdateType } from './style_update_type';
|
|
2
|
+
export interface BlockLineStyleUpdate {
|
|
3
|
+
sheetIdx: number;
|
|
4
|
+
blockId: number;
|
|
5
|
+
from: number;
|
|
6
|
+
to: number;
|
|
7
|
+
ty: StyleUpdateType;
|
|
8
|
+
row: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class BlockLineStyleUpdateBuilder {
|
|
11
|
+
private _sheetIdx;
|
|
12
|
+
private _blockId;
|
|
13
|
+
private _from;
|
|
14
|
+
private _to;
|
|
15
|
+
private _ty;
|
|
16
|
+
private _row;
|
|
17
|
+
sheetIdx(value: number): this;
|
|
18
|
+
blockId(value: number): this;
|
|
19
|
+
from(value: number): this;
|
|
20
|
+
to(value: number): this;
|
|
21
|
+
ty(value: StyleUpdateType): this;
|
|
22
|
+
row(value: boolean): this;
|
|
23
|
+
build(): {
|
|
24
|
+
sheetIdx: number;
|
|
25
|
+
blockId: number;
|
|
26
|
+
from: number;
|
|
27
|
+
to: number;
|
|
28
|
+
ty: StyleUpdateType;
|
|
29
|
+
row: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export class BlockLineStyleUpdateBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_blockId;
|
|
4
|
+
_from;
|
|
5
|
+
_to;
|
|
6
|
+
_ty;
|
|
7
|
+
_row;
|
|
8
|
+
sheetIdx(value) {
|
|
9
|
+
this._sheetIdx = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
blockId(value) {
|
|
13
|
+
this._blockId = value;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
from(value) {
|
|
17
|
+
this._from = value;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
to(value) {
|
|
21
|
+
this._to = value;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
ty(value) {
|
|
25
|
+
this._ty = value;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
row(value) {
|
|
29
|
+
this._row = value;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
build() {
|
|
33
|
+
if (this._sheetIdx === undefined)
|
|
34
|
+
throw new Error('missing sheetIdx');
|
|
35
|
+
if (this._blockId === undefined)
|
|
36
|
+
throw new Error('missing blockId');
|
|
37
|
+
if (this._from === undefined)
|
|
38
|
+
throw new Error('missing from');
|
|
39
|
+
if (this._to === undefined)
|
|
40
|
+
throw new Error('missing to');
|
|
41
|
+
if (this._ty === undefined)
|
|
42
|
+
throw new Error('missing ty');
|
|
43
|
+
if (this._row === undefined)
|
|
44
|
+
throw new Error('missing row');
|
|
45
|
+
return { sheetIdx: this._sheetIdx, blockId: this._blockId, from: this._from, to: this._to, ty: this._ty, row: this._row };
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BlockSchemaFieldEntry } from './block_schema_field_entry';
|
|
2
|
+
import { BlockSchemaKeyEntry } from './block_schema_key_entry';
|
|
3
|
+
import { BlockSchemaRandomEntry } from './block_schema_random_entry';
|
|
4
|
+
import { BlockSchemaType } from './block_schema_type';
|
|
5
|
+
export interface BlockSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
schemaType: BlockSchemaType;
|
|
8
|
+
keys: readonly BlockSchemaKeyEntry[];
|
|
9
|
+
fields: readonly BlockSchemaFieldEntry[];
|
|
10
|
+
randomEntries: readonly BlockSchemaRandomEntry[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BlockSchemaType = 'row' | 'col' | 'random';
|
|
@@ -6,3 +6,22 @@ export interface BlockStyleUpdate {
|
|
|
6
6
|
col: number;
|
|
7
7
|
styleUpdate: StyleUpdateType;
|
|
8
8
|
}
|
|
9
|
+
export declare class BlockStyleUpdateBuilder {
|
|
10
|
+
private _sheetIdx;
|
|
11
|
+
private _blockId;
|
|
12
|
+
private _row;
|
|
13
|
+
private _col;
|
|
14
|
+
private _styleUpdate;
|
|
15
|
+
sheetIdx(value: number): this;
|
|
16
|
+
blockId(value: number): this;
|
|
17
|
+
row(value: number): this;
|
|
18
|
+
col(value: number): this;
|
|
19
|
+
styleUpdate(value: StyleUpdateType): this;
|
|
20
|
+
build(): {
|
|
21
|
+
sheetIdx: number;
|
|
22
|
+
blockId: number;
|
|
23
|
+
row: number;
|
|
24
|
+
col: number;
|
|
25
|
+
styleUpdate: StyleUpdateType;
|
|
26
|
+
};
|
|
27
|
+
}
|