logisheets 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -1
- package/dist/src/api/author.js +5 -1
- package/dist/src/api/block_manager.js +5 -1
- package/dist/src/api/calculator.js +7 -2
- package/dist/src/api/cell.js +7 -2
- package/dist/src/api/craft-calc.js +19 -14
- package/dist/src/api/index.js +31 -7
- package/dist/src/api/utils.js +6 -2
- package/dist/src/api/workbook.js +20 -16
- package/dist/src/api/worksheet.d.ts +8 -1
- package/dist/src/api/worksheet.js +20 -7
- package/dist/src/bindings/action_effect.js +5 -1
- package/dist/src/bindings/add_comment.js +5 -1
- package/dist/src/bindings/alignment.js +2 -1
- package/dist/src/bindings/app_data.js +2 -1
- package/dist/src/bindings/appendix.js +2 -1
- package/dist/src/bindings/appendix_with_cell.js +2 -1
- package/dist/src/bindings/async_func_result.js +5 -1
- package/dist/src/bindings/author_input.js +2 -1
- package/dist/src/bindings/bind_form_schema.js +5 -1
- package/dist/src/bindings/bind_random_schema.js +5 -1
- package/dist/src/bindings/block_cell_id.js +2 -1
- package/dist/src/bindings/block_cell_info.js +2 -1
- package/dist/src/bindings/block_data_row.js +2 -1
- package/dist/src/bindings/block_display_info.js +2 -1
- package/dist/src/bindings/block_field.js +2 -1
- package/dist/src/bindings/block_info.js +2 -1
- package/dist/src/bindings/block_input.js +5 -1
- package/dist/src/bindings/block_line_name_field_update.js +5 -1
- package/dist/src/bindings/block_line_style_update.js +5 -1
- package/dist/src/bindings/block_schema.js +2 -1
- package/dist/src/bindings/block_schema_field_entry.js +2 -1
- package/dist/src/bindings/block_schema_key_entry.js +2 -1
- package/dist/src/bindings/block_schema_random_entry.js +2 -1
- package/dist/src/bindings/block_schema_type.js +2 -1
- package/dist/src/bindings/block_style_update.js +5 -1
- package/dist/src/bindings/border.js +2 -1
- package/dist/src/bindings/border_pr.js +2 -1
- package/dist/src/bindings/cell_alignment.js +2 -1
- package/dist/src/bindings/cell_clear.js +5 -1
- package/dist/src/bindings/cell_coordinate.js +2 -1
- package/dist/src/bindings/cell_coordinate_with_sheet.js +2 -1
- package/dist/src/bindings/cell_format_brush.js +5 -1
- package/dist/src/bindings/cell_id.js +2 -1
- package/dist/src/bindings/cell_image_info.d.ts +7 -0
- package/dist/src/bindings/cell_image_info.js +2 -0
- package/dist/src/bindings/cell_info.js +2 -1
- package/dist/src/bindings/cell_input.js +5 -1
- package/dist/src/bindings/cell_position.js +2 -1
- package/dist/src/bindings/cell_protection.js +2 -1
- package/dist/src/bindings/cell_ref.js +2 -1
- package/dist/src/bindings/cell_style_update.js +5 -1
- package/dist/src/bindings/checkpoint_meta.js +2 -1
- package/dist/src/bindings/col_info.js +2 -1
- package/dist/src/bindings/color.js +2 -1
- package/dist/src/bindings/comment.js +2 -1
- package/dist/src/bindings/comment_mention.js +2 -1
- package/dist/src/bindings/comment_mention_info.js +2 -1
- package/dist/src/bindings/comment_note.js +2 -1
- package/dist/src/bindings/comment_person.js +2 -1
- package/dist/src/bindings/convert_block.js +5 -1
- package/dist/src/bindings/create_appendix.js +5 -1
- package/dist/src/bindings/create_block.js +5 -1
- package/dist/src/bindings/create_diy_cell.js +5 -1
- package/dist/src/bindings/create_diy_cell_by_id.js +5 -1
- package/dist/src/bindings/create_sheet.js +5 -1
- package/dist/src/bindings/ct_border.js +2 -1
- package/dist/src/bindings/ct_border_pr.js +2 -1
- package/dist/src/bindings/ct_color.js +2 -1
- package/dist/src/bindings/ct_fill.js +2 -1
- package/dist/src/bindings/ct_font.js +2 -1
- package/dist/src/bindings/ct_gradient_fill.js +2 -1
- package/dist/src/bindings/ct_gradient_stop.js +2 -1
- package/dist/src/bindings/ct_pattern_fill.js +2 -1
- package/dist/src/bindings/delete_cell_image.d.ts +18 -0
- package/dist/src/bindings/delete_cell_image.js +30 -0
- package/dist/src/bindings/delete_cols.js +5 -1
- package/dist/src/bindings/delete_cols_in_block.js +5 -1
- package/dist/src/bindings/delete_comment.js +5 -1
- package/dist/src/bindings/delete_rows.js +5 -1
- package/dist/src/bindings/delete_rows_in_block.js +5 -1
- package/dist/src/bindings/delete_sheet.js +5 -1
- package/dist/src/bindings/display_window.js +2 -1
- package/dist/src/bindings/display_window_request.js +2 -1
- package/dist/src/bindings/display_window_with_start_point.js +2 -1
- package/dist/src/bindings/edit_action.js +2 -1
- package/dist/src/bindings/edit_comment.js +5 -1
- package/dist/src/bindings/edit_payload.d.ts +8 -0
- package/dist/src/bindings/edit_payload.js +2 -1
- package/dist/src/bindings/ephemeral_cell_input.js +5 -1
- package/dist/src/bindings/ephemeral_cell_remove.js +5 -1
- package/dist/src/bindings/ephemeral_cell_style_update.js +5 -1
- package/dist/src/bindings/error_message.js +2 -1
- package/dist/src/bindings/field_render_entry.js +2 -1
- package/dist/src/bindings/fill.js +2 -1
- package/dist/src/bindings/font.js +2 -1
- package/dist/src/bindings/font_family.js +2 -1
- package/dist/src/bindings/font_name.js +2 -1
- package/dist/src/bindings/font_scheme.js +2 -1
- package/dist/src/bindings/font_size.js +2 -1
- package/dist/src/bindings/formula_display_info.js +2 -1
- package/dist/src/bindings/gradient_fill.js +2 -1
- package/dist/src/bindings/gradient_stop.js +2 -1
- package/dist/src/bindings/horizontal_alignment.js +2 -1
- package/dist/src/bindings/index.d.ts +4 -0
- package/dist/src/bindings/index.js +235 -215
- package/dist/src/bindings/insert_cols.js +5 -1
- package/dist/src/bindings/insert_cols_in_block.js +5 -1
- package/dist/src/bindings/insert_rows.js +5 -1
- package/dist/src/bindings/insert_rows_in_block.js +5 -1
- package/dist/src/bindings/int_property.js +2 -1
- package/dist/src/bindings/line_format_brush.js +5 -1
- package/dist/src/bindings/line_style_update.js +5 -1
- package/dist/src/bindings/merge_cell.js +2 -1
- package/dist/src/bindings/merge_cells.js +5 -1
- package/dist/src/bindings/modify_policy.js +2 -1
- package/dist/src/bindings/move_block.js +5 -1
- package/dist/src/bindings/move_block_line.js +5 -1
- package/dist/src/bindings/msg_edit.js +2 -1
- package/dist/src/bindings/msg_join.js +2 -1
- package/dist/src/bindings/msg_sequencer_action_invalid_message.js +2 -1
- package/dist/src/bindings/msg_sequencer_action_message.js +2 -1
- package/dist/src/bindings/msg_sequencer_init_workbook.js +2 -1
- package/dist/src/bindings/msg_sequencer_message.js +2 -1
- package/dist/src/bindings/msg_user_message.js +2 -1
- package/dist/src/bindings/normal_cell_id.js +2 -1
- package/dist/src/bindings/pattern_fill.js +2 -1
- package/dist/src/bindings/payloads_action.js +2 -1
- package/dist/src/bindings/random_schema_unit.js +5 -1
- package/dist/src/bindings/raw_style.js +2 -1
- package/dist/src/bindings/recalc_cell.js +2 -1
- package/dist/src/bindings/remove_appendix.js +5 -1
- package/dist/src/bindings/remove_block.js +5 -1
- package/dist/src/bindings/remove_diy_cell.js +5 -1
- package/dist/src/bindings/remove_diy_cell_by_id.js +5 -1
- package/dist/src/bindings/reorder_block_lines.js +2 -1
- package/dist/src/bindings/reproduce_cells.js +5 -1
- package/dist/src/bindings/reproducible_cell.js +2 -1
- package/dist/src/bindings/resize_block.js +5 -1
- package/dist/src/bindings/resolve_comment.js +5 -1
- package/dist/src/bindings/restore_checkpoint.js +5 -1
- package/dist/src/bindings/row_info.js +2 -1
- package/dist/src/bindings/rpc_batch_get_cell_coordinate_with_sheet_by_id_params.js +2 -1
- package/dist/src/bindings/rpc_batch_get_cell_info_by_id_params.js +2 -1
- package/dist/src/bindings/rpc_calc_condition_params.js +2 -1
- package/dist/src/bindings/rpc_check_formula_params.js +2 -1
- package/dist/src/bindings/rpc_delete_checkpoint_params.js +2 -1
- package/dist/src/bindings/rpc_direction.js +2 -1
- package/dist/src/bindings/rpc_export_block_data_params.js +2 -1
- package/dist/src/bindings/rpc_get_all_blocks_params.js +2 -1
- package/dist/src/bindings/rpc_get_available_block_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_col_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_display_window_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_info_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_row_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_values_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_id_by_block_ref_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_images_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_cell_images_params.js +2 -0
- package/dist/src/bindings/rpc_get_cell_infos_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_position_params.js +2 -1
- package/dist/src/bindings/rpc_get_cells_except_window_params.js +2 -1
- package/dist/src/bindings/rpc_get_cells_params.js +2 -1
- package/dist/src/bindings/rpc_get_col_width_params.js +2 -1
- package/dist/src/bindings/rpc_get_comments_params.js +2 -1
- package/dist/src/bindings/rpc_get_data_boundary_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_units_of_formula_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_window_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_window_with_start_point_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_window_within_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_diy_cell_id_with_block_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_merged_cells_params.js +2 -1
- package/dist/src/bindings/rpc_get_next_visible_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_reproducible_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_reproducible_cells_params.js +2 -1
- package/dist/src/bindings/rpc_get_row_height_params.js +2 -1
- package/dist/src/bindings/rpc_get_row_info_params.js +2 -1
- package/dist/src/bindings/rpc_get_shadow_cell_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_shadow_cell_ids_params.js +2 -1
- package/dist/src/bindings/rpc_get_shadow_info_by_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_dimension_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_idx_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_name_by_idx_params.js +2 -1
- package/dist/src/bindings/rpc_handle_transaction_params.js +2 -1
- package/dist/src/bindings/rpc_load_workbook_params.js +2 -1
- package/dist/src/bindings/rpc_lookup_appendix_upward_params.js +2 -1
- package/dist/src/bindings/rpc_predict_fill_params.js +2 -1
- package/dist/src/bindings/rpc_save_checkpoint_params.js +2 -1
- package/dist/src/bindings/rpc_save_params.js +2 -1
- package/dist/src/bindings/rpc_toggle_status_params.js +2 -1
- package/dist/src/bindings/rpc_transaction.js +2 -1
- package/dist/src/bindings/rpc_workbook_methods.d.ts +3 -0
- package/dist/src/bindings/rpc_workbook_methods.js +2 -1
- package/dist/src/bindings/save_file_result.js +2 -1
- package/dist/src/bindings/set_cell_image.d.ts +30 -0
- package/dist/src/bindings/set_cell_image.js +51 -0
- package/dist/src/bindings/set_col_width.js +5 -1
- package/dist/src/bindings/set_row_height.js +5 -1
- package/dist/src/bindings/set_sheet_color.js +5 -1
- package/dist/src/bindings/set_sheet_visible.js +5 -1
- package/dist/src/bindings/set_visible.js +5 -1
- package/dist/src/bindings/shadow_cell_info.js +2 -1
- package/dist/src/bindings/shadow_kind.js +2 -1
- package/dist/src/bindings/sheet_cell_id.js +5 -1
- package/dist/src/bindings/sheet_col_id.js +5 -1
- package/dist/src/bindings/sheet_coordinate.js +2 -1
- package/dist/src/bindings/sheet_dimension.js +2 -1
- package/dist/src/bindings/sheet_info.js +2 -1
- package/dist/src/bindings/sheet_rename.js +5 -1
- package/dist/src/bindings/sheet_row_id.js +5 -1
- package/dist/src/bindings/split_merged_cells.js +5 -1
- package/dist/src/bindings/st_border_style.js +2 -1
- package/dist/src/bindings/st_font_scheme.js +2 -1
- package/dist/src/bindings/st_gradient_type.js +2 -1
- package/dist/src/bindings/st_horizontal_alignment.js +2 -1
- package/dist/src/bindings/st_pattern_type.js +2 -1
- package/dist/src/bindings/st_underline_values.js +2 -1
- package/dist/src/bindings/st_vertical_align_run.js +2 -1
- package/dist/src/bindings/st_vertical_alignment.js +2 -1
- package/dist/src/bindings/status_code.js +2 -1
- package/dist/src/bindings/style.js +2 -1
- package/dist/src/bindings/style_update_type.js +5 -1
- package/dist/src/bindings/task.js +2 -1
- package/dist/src/bindings/temp_cell_change.js +2 -1
- package/dist/src/bindings/temp_status_diff.js +2 -1
- package/dist/src/bindings/token_type.js +2 -1
- package/dist/src/bindings/token_unit.js +2 -1
- package/dist/src/bindings/underline_property.js +2 -1
- package/dist/src/bindings/upsert_field_formulas.js +5 -1
- package/dist/src/bindings/upsert_field_render_info.js +5 -1
- package/dist/src/bindings/upsert_person.js +5 -1
- package/dist/src/bindings/value.js +2 -1
- package/dist/src/bindings/vertical_align_font_property.js +2 -1
- package/dist/src/bindings/vertical_alignment.js +2 -1
- package/dist/src/bindings/workbook_file.js +2 -1
- package/dist/src/bindings/workbook_update_type.js +2 -1
- package/dist/src/client.js +2 -1
- package/dist/src/index.js +23 -7
- package/dist/src/layout.js +2 -1
- package/dist/src/payloads/index.js +2 -1
- package/dist/src/pure.js +28 -7
- package/dist/src/types.js +8 -3
- package/dist/src/utils.js +4 -1
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/package.json +1 -1
- package/package.json +1 -1
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
- package/dist/src/payloads/set_block_line_name_field.d.ts +0 -34
- package/dist/src/payloads/set_block_line_name_field.js +0 -62
- package/dist/src/payloads/set_block_line_num_fmt.d.ts +0 -23
- package/dist/src/payloads/set_block_line_num_fmt.js +0 -54
- package/dist/src/payloads/set_cell_alignment.d.ts +0 -18
- package/dist/src/payloads/set_cell_alignment.js +0 -38
- package/dist/src/payloads/set_cell_border.d.ts +0 -48
- package/dist/src/payloads/set_cell_border.js +0 -96
- package/dist/src/payloads/set_cell_font.d.ts +0 -45
- package/dist/src/payloads/set_cell_font.js +0 -90
- package/dist/src/payloads/set_cell_num_fmt.d.ts +0 -17
- package/dist/src/payloads/set_cell_num_fmt.js +0 -38
- package/dist/src/payloads/set_cell_pattern_fill.d.ts +0 -24
- package/dist/src/payloads/set_cell_pattern_fill.js +0 -48
- package/dist/src/payloads/set_cell_wrap_text.d.ts +0 -17
- package/dist/src/payloads/set_cell_wrap_text.js +0 -38
- package/dist/src/payloads/set_field_num_fmt.d.ts +0 -14
- package/dist/src/payloads/set_field_num_fmt.js +0 -30
- package/dist/src/payloads/set_line_alignment.d.ts +0 -21
- package/dist/src/payloads/set_line_alignment.js +0 -46
- package/dist/src/payloads/set_line_border.d.ts +0 -48
- package/dist/src/payloads/set_line_border.js +0 -96
- package/dist/src/payloads/set_line_font.d.ts +0 -48
- package/dist/src/payloads/set_line_font.js +0 -98
- package/dist/src/payloads/set_line_num_fmt.d.ts +0 -20
- package/dist/src/payloads/set_line_num_fmt.js +0 -46
- package/dist/src/payloads/set_line_pattern_fill.d.ts +0 -27
- package/dist/src/payloads/set_line_pattern_fill.js +0 -56
- package/dist/src/payloads/set_line_wrap_text.d.ts +0 -20
- package/dist/src/payloads/set_line_wrap_text.js +0 -46
package/dist/index.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src"), exports);
|
package/dist/src/api/author.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DefaultAuthorService = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Default {@link AuthorService} for the open-source `src` app: the author types
|
|
3
6
|
* their own name and there is no directory to search. Enterprise builds inject
|
|
4
7
|
* their own implementation instead of using this.
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
class DefaultAuthorService {
|
|
7
10
|
constructor(author = { displayName: '' }) {
|
|
8
11
|
this._author = author;
|
|
9
12
|
}
|
|
@@ -20,3 +23,4 @@ export class DefaultAuthorService {
|
|
|
20
23
|
}
|
|
21
24
|
_author;
|
|
22
25
|
}
|
|
26
|
+
exports.DefaultAuthorService = DefaultAuthorService;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockManager = void 0;
|
|
4
|
+
class BlockManager {
|
|
2
5
|
constructor(checkBindBlock, getAvailableBlockId) {
|
|
3
6
|
this._checkBindBlock = checkBindBlock;
|
|
4
7
|
this._getAvailableBlockId = getAvailableBlockId;
|
|
@@ -33,3 +36,4 @@ export class BlockManager {
|
|
|
33
36
|
_checkBindBlock;
|
|
34
37
|
_getAvailableBlockId;
|
|
35
38
|
}
|
|
39
|
+
exports.BlockManager = BlockManager;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Calculator = exports.CustomFunc = void 0;
|
|
4
|
+
class CustomFunc {
|
|
2
5
|
funcName;
|
|
3
6
|
executor;
|
|
4
7
|
constructor(funcName, executor) {
|
|
@@ -6,7 +9,8 @@ export class CustomFunc {
|
|
|
6
9
|
this.executor = executor;
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
|
-
|
|
12
|
+
exports.CustomFunc = CustomFunc;
|
|
13
|
+
class Calculator {
|
|
10
14
|
async calc(tasks) {
|
|
11
15
|
const promises = tasks.map((t) => this._exec(t.asyncFunc, t.args));
|
|
12
16
|
return Promise.all(promises).then((values) => {
|
|
@@ -44,3 +48,4 @@ export class Calculator {
|
|
|
44
48
|
}
|
|
45
49
|
_registry = new Map();
|
|
46
50
|
}
|
|
51
|
+
exports.Calculator = Calculator;
|
package/dist/src/api/cell.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CellValue = exports.Cell = void 0;
|
|
4
|
+
class Cell {
|
|
2
5
|
constructor(cellInfo) {
|
|
3
6
|
this._value = CellValue.from(cellInfo.value);
|
|
4
7
|
this._info = cellInfo;
|
|
@@ -21,7 +24,8 @@ export class Cell {
|
|
|
21
24
|
_value;
|
|
22
25
|
_info;
|
|
23
26
|
}
|
|
24
|
-
|
|
27
|
+
exports.Cell = Cell;
|
|
28
|
+
class CellValue {
|
|
25
29
|
cellValueOneof;
|
|
26
30
|
get value() {
|
|
27
31
|
if (this.cellValueOneof?.$case === 'str')
|
|
@@ -53,3 +57,4 @@ export class CellValue {
|
|
|
53
57
|
return v;
|
|
54
58
|
}
|
|
55
59
|
}
|
|
60
|
+
exports.CellValue = CellValue;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CraftCalc = void 0;
|
|
4
|
+
exports.acquireCraftCalc = acquireCraftCalc;
|
|
5
|
+
const ephemeral_cell_input_1 = require("../bindings/ephemeral_cell_input");
|
|
6
|
+
const ephemeral_cell_remove_1 = require("../bindings/ephemeral_cell_remove");
|
|
7
|
+
const utils_1 = require("./utils");
|
|
4
8
|
// Ephemeral-cell-id partitioning:
|
|
5
9
|
//
|
|
6
10
|
// 0x0000_0000_0000_0000 .. 0x0000_0000_FFFF_FFFF engine-reserved
|
|
@@ -44,7 +48,7 @@ let nextCraftBase = ENGINE_RESERVED_END;
|
|
|
44
48
|
* payloads which free the container slot and detach the cell from the
|
|
45
49
|
* dependency graph.
|
|
46
50
|
*/
|
|
47
|
-
|
|
51
|
+
class CraftCalc {
|
|
48
52
|
_workbook;
|
|
49
53
|
// Host scratch sheet hosting all ephemeral calc cells. Sheet 0 is
|
|
50
54
|
// always present in any workbook this API targets. BLOCKREF and
|
|
@@ -100,7 +104,7 @@ export class CraftCalc {
|
|
|
100
104
|
},
|
|
101
105
|
],
|
|
102
106
|
});
|
|
103
|
-
if (isErrorMessage(infos))
|
|
107
|
+
if ((0, utils_1.isErrorMessage)(infos))
|
|
104
108
|
throw new Error(`getCalc(${localId}) failed: ${JSON.stringify(infos)}`);
|
|
105
109
|
return infos[0].value;
|
|
106
110
|
}
|
|
@@ -122,7 +126,7 @@ export class CraftCalc {
|
|
|
122
126
|
return;
|
|
123
127
|
const payloads = Array.from(this._live).map((engineId) => ({
|
|
124
128
|
type: 'ephemeralCellRemove',
|
|
125
|
-
value: new EphemeralCellRemoveBuilder()
|
|
129
|
+
value: new ephemeral_cell_remove_1.EphemeralCellRemoveBuilder()
|
|
126
130
|
.sheetIdx(CraftCalc.HOST_SHEET_IDX)
|
|
127
131
|
.id(engineId)
|
|
128
132
|
.build(),
|
|
@@ -131,7 +135,7 @@ export class CraftCalc {
|
|
|
131
135
|
const res = await this._workbook.handleTransaction({
|
|
132
136
|
transaction: { payloads, undoable: false, temp: false },
|
|
133
137
|
});
|
|
134
|
-
if (isErrorMessage(res))
|
|
138
|
+
if ((0, utils_1.isErrorMessage)(res))
|
|
135
139
|
throw new Error(`dropAll failed: ${JSON.stringify(res)}`);
|
|
136
140
|
}
|
|
137
141
|
// -- internals ------------------------------------------------------
|
|
@@ -152,7 +156,7 @@ export class CraftCalc {
|
|
|
152
156
|
const r = await this._workbook.getSheetId({
|
|
153
157
|
sheetIdx: CraftCalc.HOST_SHEET_IDX,
|
|
154
158
|
});
|
|
155
|
-
if (isErrorMessage(r))
|
|
159
|
+
if ((0, utils_1.isErrorMessage)(r))
|
|
156
160
|
throw new Error(`CraftCalc: getSheetId(0) failed: ${JSON.stringify(r)}`);
|
|
157
161
|
this._sheetId = r;
|
|
158
162
|
return r;
|
|
@@ -164,7 +168,7 @@ export class CraftCalc {
|
|
|
164
168
|
payloads: [
|
|
165
169
|
{
|
|
166
170
|
type: 'ephemeralCellRemove',
|
|
167
|
-
value: new EphemeralCellRemoveBuilder()
|
|
171
|
+
value: new ephemeral_cell_remove_1.EphemeralCellRemoveBuilder()
|
|
168
172
|
.sheetIdx(CraftCalc.HOST_SHEET_IDX)
|
|
169
173
|
.id(engineId)
|
|
170
174
|
.build(),
|
|
@@ -174,7 +178,7 @@ export class CraftCalc {
|
|
|
174
178
|
temp: false,
|
|
175
179
|
},
|
|
176
180
|
});
|
|
177
|
-
if (isErrorMessage(res))
|
|
181
|
+
if ((0, utils_1.isErrorMessage)(res))
|
|
178
182
|
throw new Error(`CraftCalc: drop failed: ${JSON.stringify(res)}`);
|
|
179
183
|
}
|
|
180
184
|
async _evaluate(engineId, formula) {
|
|
@@ -185,7 +189,7 @@ export class CraftCalc {
|
|
|
185
189
|
payloads: [
|
|
186
190
|
{
|
|
187
191
|
type: 'ephemeralCellInput',
|
|
188
|
-
value: new EphemeralCellInputBuilder()
|
|
192
|
+
value: new ephemeral_cell_input_1.EphemeralCellInputBuilder()
|
|
189
193
|
.sheetIdx(CraftCalc.HOST_SHEET_IDX)
|
|
190
194
|
.id(engineId)
|
|
191
195
|
.content(expr)
|
|
@@ -196,7 +200,7 @@ export class CraftCalc {
|
|
|
196
200
|
temp: false,
|
|
197
201
|
},
|
|
198
202
|
});
|
|
199
|
-
if (isErrorMessage(writeResult))
|
|
203
|
+
if ((0, utils_1.isErrorMessage)(writeResult))
|
|
200
204
|
throw new Error(`CraftCalc: formula evaluation failed: ${JSON.stringify(writeResult)}`);
|
|
201
205
|
const sheetId = await this._resolveSheetId();
|
|
202
206
|
const infos = await this._workbook.batchGetCellInfoById({
|
|
@@ -207,16 +211,17 @@ export class CraftCalc {
|
|
|
207
211
|
},
|
|
208
212
|
],
|
|
209
213
|
});
|
|
210
|
-
if (isErrorMessage(infos))
|
|
214
|
+
if ((0, utils_1.isErrorMessage)(infos))
|
|
211
215
|
throw new Error(`CraftCalc: read-back failed: ${JSON.stringify(infos)}`);
|
|
212
216
|
return infos[0].value;
|
|
213
217
|
}
|
|
214
218
|
}
|
|
219
|
+
exports.CraftCalc = CraftCalc;
|
|
215
220
|
/**
|
|
216
221
|
* Allocate a fresh ephemeral-id range and return a {@link CraftCalc}
|
|
217
222
|
* handle scoped to it. Call once per craft (or per host-UI context).
|
|
218
223
|
*/
|
|
219
|
-
|
|
224
|
+
function acquireCraftCalc(workbook) {
|
|
220
225
|
const base = nextCraftBase;
|
|
221
226
|
nextCraftBase += CRAFT_RANGE_SIZE;
|
|
222
227
|
return new CraftCalc(workbook, base);
|
package/dist/src/api/index.js
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getPatternFill = exports.isErrorMessage = exports.acquireCraftCalc = exports.CraftCalc = exports.Calculator = exports.CustomFunc = exports.DefaultAuthorService = void 0;
|
|
18
|
+
__exportStar(require("./workbook"), exports);
|
|
19
|
+
__exportStar(require("./worksheet"), exports);
|
|
20
|
+
var author_1 = require("./author");
|
|
21
|
+
Object.defineProperty(exports, "DefaultAuthorService", { enumerable: true, get: function () { return author_1.DefaultAuthorService; } });
|
|
22
|
+
var calculator_1 = require("./calculator");
|
|
23
|
+
Object.defineProperty(exports, "CustomFunc", { enumerable: true, get: function () { return calculator_1.CustomFunc; } });
|
|
24
|
+
Object.defineProperty(exports, "Calculator", { enumerable: true, get: function () { return calculator_1.Calculator; } });
|
|
25
|
+
__exportStar(require("./cell"), exports);
|
|
26
|
+
var craft_calc_1 = require("./craft-calc");
|
|
27
|
+
Object.defineProperty(exports, "CraftCalc", { enumerable: true, get: function () { return craft_calc_1.CraftCalc; } });
|
|
28
|
+
Object.defineProperty(exports, "acquireCraftCalc", { enumerable: true, get: function () { return craft_calc_1.acquireCraftCalc; } });
|
|
29
|
+
var utils_1 = require("./utils");
|
|
30
|
+
Object.defineProperty(exports, "isErrorMessage", { enumerable: true, get: function () { return utils_1.isErrorMessage; } });
|
|
31
|
+
Object.defineProperty(exports, "getPatternFill", { enumerable: true, get: function () { return utils_1.getPatternFill; } });
|
package/dist/src/api/utils.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isErrorMessage = isErrorMessage;
|
|
4
|
+
exports.getPatternFill = getPatternFill;
|
|
1
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2
|
-
|
|
6
|
+
function isErrorMessage(v) {
|
|
3
7
|
if (typeof v !== 'object' || v === null)
|
|
4
8
|
return false;
|
|
5
9
|
return 'msg' in v && 'ty' in v;
|
|
6
10
|
}
|
|
7
|
-
|
|
11
|
+
function getPatternFill(v) {
|
|
8
12
|
if (v.type === 'patternFill')
|
|
9
13
|
return v.value;
|
|
10
14
|
return null;
|
package/dist/src/api/workbook.js
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Workbook = void 0;
|
|
4
|
+
const logisheets_wasm_server_1 = require("../../wasm/logisheets_wasm_server");
|
|
5
|
+
const worksheet_1 = require("./worksheet");
|
|
6
|
+
const calculator_1 = require("./calculator");
|
|
7
|
+
const utils_1 = require("./utils");
|
|
8
|
+
const block_manager_1 = require("./block_manager");
|
|
6
9
|
function rpc(method, params, bookId
|
|
7
10
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
11
|
) {
|
|
9
12
|
const msg = params === undefined ? method : { method, value: params };
|
|
10
|
-
return handle(msg, bookId ?? null);
|
|
13
|
+
return (0, logisheets_wasm_server_1.handle)(msg, bookId ?? null);
|
|
11
14
|
}
|
|
12
15
|
// GUID for comment / thread ids, wrapped in braces to match the OOXML
|
|
13
16
|
// threaded-comment convention (`{XXXX-...}`).
|
|
14
17
|
function newGuid() {
|
|
15
18
|
return `{${crypto.randomUUID()}}`;
|
|
16
19
|
}
|
|
17
|
-
|
|
20
|
+
class Workbook {
|
|
18
21
|
constructor() {
|
|
19
22
|
this._id = rpc('newWorkbook');
|
|
20
|
-
this._blockManager = new BlockManager((sheetIdx, blockId, rowCount, colCount) => {
|
|
23
|
+
this._blockManager = new block_manager_1.BlockManager((sheetIdx, blockId, rowCount, colCount) => {
|
|
21
24
|
return rpc('checkBindBlock', { sheetIdx, blockId, rowCount, colCount }, this._id);
|
|
22
25
|
}, (sheetIdx) => {
|
|
23
26
|
return rpc('getAvailableBlockId', { sheetIdx }, this._id);
|
|
@@ -249,14 +252,14 @@ export class Workbook {
|
|
|
249
252
|
}
|
|
250
253
|
onCellValueChanged(sheetIdx, rowIdx, colIdx, callback) {
|
|
251
254
|
const cellId = this.getCellId({ sheetIdx, rowIdx, colIdx });
|
|
252
|
-
if (isErrorMessage(cellId)) {
|
|
255
|
+
if ((0, utils_1.isErrorMessage)(cellId)) {
|
|
253
256
|
return cellId;
|
|
254
257
|
}
|
|
255
258
|
this._registerCellValueChangedCallback(cellId, callback);
|
|
256
259
|
}
|
|
257
260
|
onCellRemoved(sheetIdx, rowIdx, colIdx, callback) {
|
|
258
261
|
const cellId = this.getCellId({ sheetIdx, rowIdx, colIdx });
|
|
259
|
-
if (isErrorMessage(cellId)) {
|
|
262
|
+
if ((0, utils_1.isErrorMessage)(cellId)) {
|
|
260
263
|
return cellId;
|
|
261
264
|
}
|
|
262
265
|
this._registerCellRemovedCallback(cellId, callback);
|
|
@@ -267,7 +270,7 @@ export class Workbook {
|
|
|
267
270
|
rowIdx,
|
|
268
271
|
colIdx,
|
|
269
272
|
});
|
|
270
|
-
if (isErrorMessage(shadowId)) {
|
|
273
|
+
if ((0, utils_1.isErrorMessage)(shadowId)) {
|
|
271
274
|
return shadowId;
|
|
272
275
|
}
|
|
273
276
|
this._registerCellValueChangedCallback(shadowId, callback);
|
|
@@ -369,7 +372,7 @@ export class Workbook {
|
|
|
369
372
|
getWorksheet(idx) {
|
|
370
373
|
if (idx >= this.getSheetCount())
|
|
371
374
|
throw Error(`invalid sheet index: ${idx}`);
|
|
372
|
-
return new Worksheet(this._id, idx);
|
|
375
|
+
return new worksheet_1.Worksheet(this._id, idx);
|
|
373
376
|
}
|
|
374
377
|
/**
|
|
375
378
|
* Fill-handle drag: predict the contents for `dst` from the source
|
|
@@ -381,7 +384,7 @@ export class Workbook {
|
|
|
381
384
|
*/
|
|
382
385
|
fill(sheetIdx, src, dst) {
|
|
383
386
|
const inputs = this.getWorksheet(sheetIdx).predictFill(src, dst);
|
|
384
|
-
if (isErrorMessage(inputs))
|
|
387
|
+
if ((0, utils_1.isErrorMessage)(inputs))
|
|
385
388
|
return inputs;
|
|
386
389
|
return this.execTransaction({
|
|
387
390
|
payloads: inputs.map((value) => ({ type: 'cellInput', value })),
|
|
@@ -390,7 +393,7 @@ export class Workbook {
|
|
|
390
393
|
});
|
|
391
394
|
}
|
|
392
395
|
getWorksheetById(id) {
|
|
393
|
-
return new Worksheet(this._id, id, false);
|
|
396
|
+
return new worksheet_1.Worksheet(this._id, id, false);
|
|
394
397
|
}
|
|
395
398
|
registryCustomFunc(customFunc) {
|
|
396
399
|
this._calculator.registry(customFunc);
|
|
@@ -447,7 +450,7 @@ export class Workbook {
|
|
|
447
450
|
return rpc('listCheckpoints', undefined, this._id);
|
|
448
451
|
}
|
|
449
452
|
_inputAsyncResult(r) {
|
|
450
|
-
return input_async_result(this._id, r);
|
|
453
|
+
return (0, logisheets_wasm_server_1.input_async_result)(this._id, r);
|
|
451
454
|
}
|
|
452
455
|
_onCellUpdate() {
|
|
453
456
|
this._cellUpdatedCallbacks.forEach((exec) => {
|
|
@@ -467,5 +470,6 @@ export class Workbook {
|
|
|
467
470
|
// The book id which is generated by `WASM`
|
|
468
471
|
_id;
|
|
469
472
|
_blockManager;
|
|
470
|
-
_calculator = new Calculator();
|
|
473
|
+
_calculator = new calculator_1.Calculator();
|
|
471
474
|
}
|
|
475
|
+
exports.Workbook = Workbook;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockInfo, CellPosition, ColInfo, DisplayWindow, DisplayWindowWithStartPoint, RowInfo, Style, Value, CellInfo, SheetDimension, MergeCell, AppendixWithCell, ReproducibleCell, SheetCoordinate, CellInput, Comment } from '../bindings';
|
|
1
|
+
import { BlockInfo, CellPosition, ColInfo, DisplayWindow, DisplayWindowWithStartPoint, RowInfo, Style, Value, CellInfo, SheetDimension, MergeCell, AppendixWithCell, ReproducibleCell, SheetCoordinate, CellInput, Comment, CellImageInfo } from '../bindings';
|
|
2
2
|
import { Cell } from './cell';
|
|
3
3
|
import { Result } from './utils';
|
|
4
4
|
export declare class Worksheet {
|
|
@@ -62,6 +62,13 @@ export declare class Worksheet {
|
|
|
62
62
|
* (`addComment` / `editComment` / `deleteComment` / `resolveComment`).
|
|
63
63
|
*/
|
|
64
64
|
getComments(): Result<Comment[]>;
|
|
65
|
+
/**
|
|
66
|
+
* All images placed in this sheet's cells. Each `CellImageInfo` carries the
|
|
67
|
+
* cell `(row, col)`, the image `format` (bare extension, e.g. `png`) and
|
|
68
|
+
* the base64-encoded image `data`. Mutations go through the workbook
|
|
69
|
+
* transaction API (`SetCellImage` / `DeleteCellImage`).
|
|
70
|
+
*/
|
|
71
|
+
getCellImages(): Result<CellImageInfo[]>;
|
|
65
72
|
getFullyCoveredBlocks(rowIdx: number, colIdx: number, rowCnt: number, colCnt: number): Result<BlockInfo[]>;
|
|
66
73
|
private _id;
|
|
67
74
|
private _sheetId;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Worksheet = void 0;
|
|
4
|
+
const logisheets_wasm_server_1 = require("../../wasm/logisheets_wasm_server");
|
|
5
|
+
const cell_1 = require("./cell");
|
|
6
|
+
const utils_1 = require("./utils");
|
|
4
7
|
function rpc(method, params, bookId
|
|
5
8
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
9
|
) {
|
|
7
10
|
const msg = params === undefined ? method : { method, value: params };
|
|
8
|
-
return handle(msg, bookId ?? null);
|
|
11
|
+
return (0, logisheets_wasm_server_1.handle)(msg, bookId ?? null);
|
|
9
12
|
}
|
|
10
|
-
|
|
13
|
+
class Worksheet {
|
|
11
14
|
constructor(id, sheetIdxOrId, isSheetIdx = true) {
|
|
12
15
|
this._id = id;
|
|
13
16
|
if (isSheetIdx) {
|
|
@@ -166,10 +169,10 @@ export class Worksheet {
|
|
|
166
169
|
}
|
|
167
170
|
getCell(rowIdx, colIdx) {
|
|
168
171
|
const cellInfo = this.getCellInfo(rowIdx, colIdx);
|
|
169
|
-
if (isErrorMessage(cellInfo)) {
|
|
172
|
+
if ((0, utils_1.isErrorMessage)(cellInfo)) {
|
|
170
173
|
return cellInfo;
|
|
171
174
|
}
|
|
172
|
-
return new Cell(cellInfo);
|
|
175
|
+
return new cell_1.Cell(cellInfo);
|
|
173
176
|
}
|
|
174
177
|
getFormula(rowIdx, colIdx) {
|
|
175
178
|
return rpc('getFormula', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
@@ -206,6 +209,15 @@ export class Worksheet {
|
|
|
206
209
|
getComments() {
|
|
207
210
|
return rpc('getComments', { sheetIdx: this._sheetIdx }, this._id);
|
|
208
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* All images placed in this sheet's cells. Each `CellImageInfo` carries the
|
|
214
|
+
* cell `(row, col)`, the image `format` (bare extension, e.g. `png`) and
|
|
215
|
+
* the base64-encoded image `data`. Mutations go through the workbook
|
|
216
|
+
* transaction API (`SetCellImage` / `DeleteCellImage`).
|
|
217
|
+
*/
|
|
218
|
+
getCellImages() {
|
|
219
|
+
return rpc('getCellImages', { sheetIdx: this._sheetIdx }, this._id);
|
|
220
|
+
}
|
|
209
221
|
getFullyCoveredBlocks(rowIdx, colIdx, rowCnt, colCnt) {
|
|
210
222
|
return rpc('getFullyCoveredBlocks', {
|
|
211
223
|
sheetId: this._sheetId,
|
|
@@ -219,3 +231,4 @@ export class Worksheet {
|
|
|
219
231
|
_sheetId;
|
|
220
232
|
_sheetIdx;
|
|
221
233
|
}
|
|
234
|
+
exports.Worksheet = Worksheet;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionEffectBuilder = void 0;
|
|
4
|
+
class ActionEffectBuilder {
|
|
2
5
|
_version;
|
|
3
6
|
_asyncTasks;
|
|
4
7
|
_status;
|
|
@@ -94,3 +97,4 @@ export class ActionEffectBuilder {
|
|
|
94
97
|
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
98
|
}
|
|
96
99
|
}
|
|
100
|
+
exports.ActionEffectBuilder = ActionEffectBuilder;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddCommentBuilder = void 0;
|
|
4
|
+
class AddCommentBuilder {
|
|
2
5
|
_sheetIdx;
|
|
3
6
|
_row;
|
|
4
7
|
_col;
|
|
@@ -64,3 +67,4 @@ export class AddCommentBuilder {
|
|
|
64
67
|
return { sheetIdx: this._sheetIdx, row: this._row, col: this._col, commentId: this._commentId, parentId: this._parentId, author: this._author, dt: this._dt, content: this._content, mentions: this._mentions };
|
|
65
68
|
}
|
|
66
69
|
}
|
|
70
|
+
exports.AddCommentBuilder = AddCommentBuilder;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AsyncFuncResultBuilder = void 0;
|
|
4
|
+
class AsyncFuncResultBuilder {
|
|
2
5
|
_tasks;
|
|
3
6
|
_values;
|
|
4
7
|
tasks(value) {
|
|
@@ -17,3 +20,4 @@ export class AsyncFuncResultBuilder {
|
|
|
17
20
|
return { tasks: this._tasks, values: this._values };
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
exports.AsyncFuncResultBuilder = AsyncFuncResultBuilder;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BindFormSchemaBuilder = void 0;
|
|
4
|
+
class BindFormSchemaBuilder {
|
|
2
5
|
_refName;
|
|
3
6
|
_sheetIdx;
|
|
4
7
|
_blockId;
|
|
@@ -80,3 +83,4 @@ export class BindFormSchemaBuilder {
|
|
|
80
83
|
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
84
|
}
|
|
82
85
|
}
|
|
86
|
+
exports.BindFormSchemaBuilder = BindFormSchemaBuilder;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BindRandomSchemaBuilder = void 0;
|
|
4
|
+
class BindRandomSchemaBuilder {
|
|
2
5
|
_refName;
|
|
3
6
|
_sheetIdx;
|
|
4
7
|
_blockId;
|
|
@@ -31,3 +34,4 @@ export class BindRandomSchemaBuilder {
|
|
|
31
34
|
return { refName: this._refName, sheetIdx: this._sheetIdx, blockId: this._blockId, units: this._units };
|
|
32
35
|
}
|
|
33
36
|
}
|
|
37
|
+
exports.BindRandomSchemaBuilder = BindRandomSchemaBuilder;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockInputBuilder = void 0;
|
|
4
|
+
class BlockInputBuilder {
|
|
2
5
|
_sheetIdx;
|
|
3
6
|
_blockId;
|
|
4
7
|
_row;
|
|
@@ -38,3 +41,4 @@ export class BlockInputBuilder {
|
|
|
38
41
|
return { sheetIdx: this._sheetIdx, blockId: this._blockId, row: this._row, col: this._col, input: this._input };
|
|
39
42
|
}
|
|
40
43
|
}
|
|
44
|
+
exports.BlockInputBuilder = BlockInputBuilder;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockLineNameFieldUpdateBuilder = void 0;
|
|
4
|
+
class BlockLineNameFieldUpdateBuilder {
|
|
2
5
|
_sheetIdx;
|
|
3
6
|
_blockId;
|
|
4
7
|
_line;
|
|
@@ -48,3 +51,4 @@ export class BlockLineNameFieldUpdateBuilder {
|
|
|
48
51
|
return { sheetIdx: this._sheetIdx, blockId: this._blockId, line: this._line, row: this._row, name: this._name, fieldId: this._fieldId, diyRender: this._diyRender };
|
|
49
52
|
}
|
|
50
53
|
}
|
|
54
|
+
exports.BlockLineNameFieldUpdateBuilder = BlockLineNameFieldUpdateBuilder;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockLineStyleUpdateBuilder = void 0;
|
|
4
|
+
class BlockLineStyleUpdateBuilder {
|
|
2
5
|
_sheetIdx;
|
|
3
6
|
_blockId;
|
|
4
7
|
_from;
|
|
@@ -45,3 +48,4 @@ export class BlockLineStyleUpdateBuilder {
|
|
|
45
48
|
return { sheetIdx: this._sheetIdx, blockId: this._blockId, from: this._from, to: this._to, ty: this._ty, row: this._row };
|
|
46
49
|
}
|
|
47
50
|
}
|
|
51
|
+
exports.BlockLineStyleUpdateBuilder = BlockLineStyleUpdateBuilder;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|