logisheets 1.13.0 → 1.14.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/src/api/workbook.d.ts +35 -1
- package/dist/src/api/workbook.js +40 -0
- package/dist/src/bindings/axis_scale_update.d.ts +30 -0
- package/dist/src/bindings/axis_scale_update.js +41 -0
- package/dist/src/bindings/block_actor.d.ts +4 -0
- package/dist/src/bindings/block_actor.js +2 -0
- package/dist/src/bindings/block_info.d.ts +6 -0
- package/dist/src/bindings/block_modify_info.d.ts +8 -0
- package/dist/src/bindings/block_modify_info.js +2 -0
- package/dist/src/bindings/block_op.d.ts +1 -0
- package/dist/src/bindings/block_op.js +2 -0
- package/dist/src/bindings/block_permissions.d.ts +35 -0
- package/dist/src/bindings/block_permissions.js +44 -0
- package/dist/src/bindings/chart_axis_scale_info.d.ts +8 -0
- package/dist/src/bindings/chart_axis_scale_info.js +2 -0
- package/dist/src/bindings/chart_block_source.d.ts +18 -0
- package/dist/src/bindings/chart_block_source.js +28 -0
- package/dist/src/bindings/chart_block_source_info.d.ts +5 -0
- package/dist/src/bindings/chart_block_source_info.js +2 -0
- package/dist/src/bindings/chart_data_labels_info.d.ts +9 -0
- package/dist/src/bindings/chart_data_labels_info.js +2 -0
- package/dist/src/bindings/chart_info.d.ts +13 -0
- package/dist/src/bindings/chart_of_pie_split_info.d.ts +5 -0
- package/dist/src/bindings/chart_of_pie_split_info.js +2 -0
- package/dist/src/bindings/chart_series_info.d.ts +6 -0
- package/dist/src/bindings/check_field_validation_params.d.ts +6 -0
- package/dist/src/bindings/check_field_validation_params.js +2 -0
- package/dist/src/bindings/create_block.d.ts +9 -0
- package/dist/src/bindings/create_block.js +11 -1
- package/dist/src/bindings/create_chart.d.ts +5 -0
- package/dist/src/bindings/create_chart.js +6 -1
- package/dist/src/bindings/create_chart_series.d.ts +12 -0
- package/dist/src/bindings/create_chart_series.js +16 -1
- package/dist/src/bindings/edit_payload.d.ts +8 -0
- package/dist/src/bindings/field_validation_verdict.d.ts +5 -0
- package/dist/src/bindings/field_validation_verdict.js +2 -0
- package/dist/src/bindings/get_block_modify_info_params.d.ts +4 -0
- package/dist/src/bindings/get_block_modify_info_params.js +2 -0
- package/dist/src/bindings/index.d.ts +17 -0
- package/dist/src/bindings/index.js +17 -0
- package/dist/src/bindings/may_modify_block_params.d.ts +8 -0
- package/dist/src/bindings/may_modify_block_params.js +2 -0
- package/dist/src/bindings/of_pie_split_update.d.ts +18 -0
- package/dist/src/bindings/of_pie_split_update.js +24 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +8 -0
- package/dist/src/bindings/set_block_description.d.ts +18 -0
- package/dist/src/bindings/set_block_description.js +30 -0
- package/dist/src/bindings/set_block_permissions.d.ts +24 -0
- package/dist/src/bindings/set_block_permissions.js +35 -0
- package/dist/src/bindings/update_chart.d.ts +68 -0
- package/dist/src/bindings/update_chart.js +81 -1
- package/dist/wasm/logisheets_wasm_server.d.ts +6 -6
- package/dist/wasm/logisheets_wasm_server.js +34 -34
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/logisheets_wasm_server_bg.wasm.d.ts +1 -1
- package/dist/wasm/package.json +1 -1
- package/package.json +1 -1
- package/wasm/logisheets_wasm_server.d.ts +6 -6
- package/wasm/logisheets_wasm_server.js +34 -34
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/logisheets_wasm_server_bg.wasm.d.ts +1 -1
- package/wasm/package.json +1 -1
|
@@ -51,6 +51,8 @@ import { ReproduceCells } from './reproduce_cells';
|
|
|
51
51
|
import { ResizeBlock } from './resize_block';
|
|
52
52
|
import { ResolveComment } from './resolve_comment';
|
|
53
53
|
import { RestoreCheckpoint } from './restore_checkpoint';
|
|
54
|
+
import { SetBlockDescription } from './set_block_description';
|
|
55
|
+
import { SetBlockPermissions } from './set_block_permissions';
|
|
54
56
|
import { SetCellImage } from './set_cell_image';
|
|
55
57
|
import { SetColWidth } from './set_col_width';
|
|
56
58
|
import { SetRowHeight } from './set_row_height';
|
|
@@ -139,6 +141,12 @@ export type EditPayload = {
|
|
|
139
141
|
} | {
|
|
140
142
|
type: 'blockLineNameFieldUpdate';
|
|
141
143
|
value: BlockLineNameFieldUpdate;
|
|
144
|
+
} | {
|
|
145
|
+
type: 'setBlockDescription';
|
|
146
|
+
value: SetBlockDescription;
|
|
147
|
+
} | {
|
|
148
|
+
type: 'setBlockPermissions';
|
|
149
|
+
value: SetBlockPermissions;
|
|
142
150
|
} | {
|
|
143
151
|
type: 'cellFormatBrush';
|
|
144
152
|
value: CellFormatBrush;
|
|
@@ -6,8 +6,10 @@ export * from './appendix';
|
|
|
6
6
|
export * from './appendix_with_cell';
|
|
7
7
|
export * from './async_func_result';
|
|
8
8
|
export * from './author_input';
|
|
9
|
+
export * from './axis_scale_update';
|
|
9
10
|
export * from './bind_form_schema';
|
|
10
11
|
export * from './bind_random_schema';
|
|
12
|
+
export * from './block_actor';
|
|
11
13
|
export * from './block_cell_id';
|
|
12
14
|
export * from './block_cell_info';
|
|
13
15
|
export * from './block_data_row';
|
|
@@ -17,6 +19,9 @@ export * from './block_info';
|
|
|
17
19
|
export * from './block_input';
|
|
18
20
|
export * from './block_line_name_field_update';
|
|
19
21
|
export * from './block_line_style_update';
|
|
22
|
+
export * from './block_modify_info';
|
|
23
|
+
export * from './block_op';
|
|
24
|
+
export * from './block_permissions';
|
|
20
25
|
export * from './block_schema';
|
|
21
26
|
export * from './block_schema_field_entry';
|
|
22
27
|
export * from './block_schema_key_entry';
|
|
@@ -45,8 +50,14 @@ export * from './cf_format_spec';
|
|
|
45
50
|
export * from './cf_icon';
|
|
46
51
|
export * from './cf_rule_info';
|
|
47
52
|
export * from './cf_rule_spec';
|
|
53
|
+
export * from './chart_axis_scale_info';
|
|
54
|
+
export * from './chart_block_source';
|
|
55
|
+
export * from './chart_block_source_info';
|
|
56
|
+
export * from './chart_data_labels_info';
|
|
48
57
|
export * from './chart_info';
|
|
58
|
+
export * from './chart_of_pie_split_info';
|
|
49
59
|
export * from './chart_series_info';
|
|
60
|
+
export * from './check_field_validation_params';
|
|
50
61
|
export * from './checkpoint_meta';
|
|
51
62
|
export * from './col_info';
|
|
52
63
|
export * from './color';
|
|
@@ -95,6 +106,7 @@ export * from './ephemeral_cell_remove';
|
|
|
95
106
|
export * from './ephemeral_cell_style_update';
|
|
96
107
|
export * from './error_message';
|
|
97
108
|
export * from './field_render_entry';
|
|
109
|
+
export * from './field_validation_verdict';
|
|
98
110
|
export * from './fill';
|
|
99
111
|
export * from './font';
|
|
100
112
|
export * from './font_family';
|
|
@@ -102,6 +114,7 @@ export * from './font_name';
|
|
|
102
114
|
export * from './font_scheme';
|
|
103
115
|
export * from './font_size';
|
|
104
116
|
export * from './formula_display_info';
|
|
117
|
+
export * from './get_block_modify_info_params';
|
|
105
118
|
export * from './gradient_fill';
|
|
106
119
|
export * from './gradient_stop';
|
|
107
120
|
export * from './horizontal_alignment';
|
|
@@ -113,6 +126,7 @@ export * from './int_property';
|
|
|
113
126
|
export * from './line_format_brush';
|
|
114
127
|
export * from './line_style_update';
|
|
115
128
|
export * from './link_info';
|
|
129
|
+
export * from './may_modify_block_params';
|
|
116
130
|
export * from './merge_cell';
|
|
117
131
|
export * from './merge_cells';
|
|
118
132
|
export * from './modify_policy';
|
|
@@ -128,6 +142,7 @@ export * from './msg_sequencer_init_workbook';
|
|
|
128
142
|
export * from './msg_sequencer_message';
|
|
129
143
|
export * from './msg_user_message';
|
|
130
144
|
export * from './normal_cell_id';
|
|
145
|
+
export * from './of_pie_split_update';
|
|
131
146
|
export * from './pattern_fill';
|
|
132
147
|
export * from './payloads_action';
|
|
133
148
|
export * from './random_schema_unit';
|
|
@@ -203,6 +218,8 @@ export * from './rpc_toggle_status_params';
|
|
|
203
218
|
export * from './rpc_transaction';
|
|
204
219
|
export * from './rpc_workbook_methods';
|
|
205
220
|
export * from './save_file_result';
|
|
221
|
+
export * from './set_block_description';
|
|
222
|
+
export * from './set_block_permissions';
|
|
206
223
|
export * from './set_cell_image';
|
|
207
224
|
export * from './set_col_width';
|
|
208
225
|
export * from './set_row_height';
|
|
@@ -23,8 +23,10 @@ __exportStar(require("./appendix"), exports);
|
|
|
23
23
|
__exportStar(require("./appendix_with_cell"), exports);
|
|
24
24
|
__exportStar(require("./async_func_result"), exports);
|
|
25
25
|
__exportStar(require("./author_input"), exports);
|
|
26
|
+
__exportStar(require("./axis_scale_update"), exports);
|
|
26
27
|
__exportStar(require("./bind_form_schema"), exports);
|
|
27
28
|
__exportStar(require("./bind_random_schema"), exports);
|
|
29
|
+
__exportStar(require("./block_actor"), exports);
|
|
28
30
|
__exportStar(require("./block_cell_id"), exports);
|
|
29
31
|
__exportStar(require("./block_cell_info"), exports);
|
|
30
32
|
__exportStar(require("./block_data_row"), exports);
|
|
@@ -34,6 +36,9 @@ __exportStar(require("./block_info"), exports);
|
|
|
34
36
|
__exportStar(require("./block_input"), exports);
|
|
35
37
|
__exportStar(require("./block_line_name_field_update"), exports);
|
|
36
38
|
__exportStar(require("./block_line_style_update"), exports);
|
|
39
|
+
__exportStar(require("./block_modify_info"), exports);
|
|
40
|
+
__exportStar(require("./block_op"), exports);
|
|
41
|
+
__exportStar(require("./block_permissions"), exports);
|
|
37
42
|
__exportStar(require("./block_schema"), exports);
|
|
38
43
|
__exportStar(require("./block_schema_field_entry"), exports);
|
|
39
44
|
__exportStar(require("./block_schema_key_entry"), exports);
|
|
@@ -62,8 +67,14 @@ __exportStar(require("./cf_format_spec"), exports);
|
|
|
62
67
|
__exportStar(require("./cf_icon"), exports);
|
|
63
68
|
__exportStar(require("./cf_rule_info"), exports);
|
|
64
69
|
__exportStar(require("./cf_rule_spec"), exports);
|
|
70
|
+
__exportStar(require("./chart_axis_scale_info"), exports);
|
|
71
|
+
__exportStar(require("./chart_block_source"), exports);
|
|
72
|
+
__exportStar(require("./chart_block_source_info"), exports);
|
|
73
|
+
__exportStar(require("./chart_data_labels_info"), exports);
|
|
65
74
|
__exportStar(require("./chart_info"), exports);
|
|
75
|
+
__exportStar(require("./chart_of_pie_split_info"), exports);
|
|
66
76
|
__exportStar(require("./chart_series_info"), exports);
|
|
77
|
+
__exportStar(require("./check_field_validation_params"), exports);
|
|
67
78
|
__exportStar(require("./checkpoint_meta"), exports);
|
|
68
79
|
__exportStar(require("./col_info"), exports);
|
|
69
80
|
__exportStar(require("./color"), exports);
|
|
@@ -112,6 +123,7 @@ __exportStar(require("./ephemeral_cell_remove"), exports);
|
|
|
112
123
|
__exportStar(require("./ephemeral_cell_style_update"), exports);
|
|
113
124
|
__exportStar(require("./error_message"), exports);
|
|
114
125
|
__exportStar(require("./field_render_entry"), exports);
|
|
126
|
+
__exportStar(require("./field_validation_verdict"), exports);
|
|
115
127
|
__exportStar(require("./fill"), exports);
|
|
116
128
|
__exportStar(require("./font"), exports);
|
|
117
129
|
__exportStar(require("./font_family"), exports);
|
|
@@ -119,6 +131,7 @@ __exportStar(require("./font_name"), exports);
|
|
|
119
131
|
__exportStar(require("./font_scheme"), exports);
|
|
120
132
|
__exportStar(require("./font_size"), exports);
|
|
121
133
|
__exportStar(require("./formula_display_info"), exports);
|
|
134
|
+
__exportStar(require("./get_block_modify_info_params"), exports);
|
|
122
135
|
__exportStar(require("./gradient_fill"), exports);
|
|
123
136
|
__exportStar(require("./gradient_stop"), exports);
|
|
124
137
|
__exportStar(require("./horizontal_alignment"), exports);
|
|
@@ -130,6 +143,7 @@ __exportStar(require("./int_property"), exports);
|
|
|
130
143
|
__exportStar(require("./line_format_brush"), exports);
|
|
131
144
|
__exportStar(require("./line_style_update"), exports);
|
|
132
145
|
__exportStar(require("./link_info"), exports);
|
|
146
|
+
__exportStar(require("./may_modify_block_params"), exports);
|
|
133
147
|
__exportStar(require("./merge_cell"), exports);
|
|
134
148
|
__exportStar(require("./merge_cells"), exports);
|
|
135
149
|
__exportStar(require("./modify_policy"), exports);
|
|
@@ -145,6 +159,7 @@ __exportStar(require("./msg_sequencer_init_workbook"), exports);
|
|
|
145
159
|
__exportStar(require("./msg_sequencer_message"), exports);
|
|
146
160
|
__exportStar(require("./msg_user_message"), exports);
|
|
147
161
|
__exportStar(require("./normal_cell_id"), exports);
|
|
162
|
+
__exportStar(require("./of_pie_split_update"), exports);
|
|
148
163
|
__exportStar(require("./pattern_fill"), exports);
|
|
149
164
|
__exportStar(require("./payloads_action"), exports);
|
|
150
165
|
__exportStar(require("./random_schema_unit"), exports);
|
|
@@ -220,6 +235,8 @@ __exportStar(require("./rpc_toggle_status_params"), exports);
|
|
|
220
235
|
__exportStar(require("./rpc_transaction"), exports);
|
|
221
236
|
__exportStar(require("./rpc_workbook_methods"), exports);
|
|
222
237
|
__exportStar(require("./save_file_result"), exports);
|
|
238
|
+
__exportStar(require("./set_block_description"), exports);
|
|
239
|
+
__exportStar(require("./set_block_permissions"), exports);
|
|
223
240
|
__exportStar(require("./set_cell_image"), exports);
|
|
224
241
|
__exportStar(require("./set_col_width"), exports);
|
|
225
242
|
__exportStar(require("./set_row_height"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface OfPieSplitUpdate {
|
|
2
|
+
by?: string;
|
|
3
|
+
pos?: number;
|
|
4
|
+
secondSize?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class OfPieSplitUpdateBuilder {
|
|
7
|
+
private _by?;
|
|
8
|
+
private _pos?;
|
|
9
|
+
private _secondSize?;
|
|
10
|
+
by(value: string): this;
|
|
11
|
+
pos(value: number): this;
|
|
12
|
+
secondSize(value: number): this;
|
|
13
|
+
build(): {
|
|
14
|
+
by: string | undefined;
|
|
15
|
+
pos: number | undefined;
|
|
16
|
+
secondSize: number | undefined;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfPieSplitUpdateBuilder = void 0;
|
|
4
|
+
class OfPieSplitUpdateBuilder {
|
|
5
|
+
_by;
|
|
6
|
+
_pos;
|
|
7
|
+
_secondSize;
|
|
8
|
+
by(value) {
|
|
9
|
+
this._by = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
pos(value) {
|
|
13
|
+
this._pos = value;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
secondSize(value) {
|
|
17
|
+
this._secondSize = value;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
build() {
|
|
21
|
+
return { by: this._by, pos: this._pos, secondSize: this._secondSize };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.OfPieSplitUpdateBuilder = OfPieSplitUpdateBuilder;
|
|
@@ -6,6 +6,7 @@ import { BatchGetCellInfoByIdParams } from './rpc_batch_get_cell_info_by_id_para
|
|
|
6
6
|
import { BlockDataRow } from './block_data_row';
|
|
7
7
|
import { BlockField } from './block_field';
|
|
8
8
|
import { BlockInfo } from './block_info';
|
|
9
|
+
import { BlockModifyInfo } from './block_modify_info';
|
|
9
10
|
import { BlockSortOrder } from './block_sort_order';
|
|
10
11
|
import { CalcConditionParams } from './rpc_calc_condition_params';
|
|
11
12
|
import { CellCoordinateWithSheet } from './cell_coordinate_with_sheet';
|
|
@@ -16,6 +17,7 @@ import { CellPosition } from './cell_position';
|
|
|
16
17
|
import { CellRefRange } from './cell_ref_range';
|
|
17
18
|
import { CfRuleInfo } from './cf_rule_info';
|
|
18
19
|
import { ChartInfo } from './chart_info';
|
|
20
|
+
import { CheckFieldValidationParams } from './check_field_validation_params';
|
|
19
21
|
import { CheckFormulaParams } from './rpc_check_formula_params';
|
|
20
22
|
import { CheckpointMetaDto } from './checkpoint_meta';
|
|
21
23
|
import { Comment } from './comment';
|
|
@@ -25,12 +27,14 @@ import { DisplayWindow } from './display_window';
|
|
|
25
27
|
import { DisplayWindowWithStartPoint } from './display_window_with_start_point';
|
|
26
28
|
import { ErrorMessage } from './error_message';
|
|
27
29
|
import { ExportBlockDataParams } from './rpc_export_block_data_params';
|
|
30
|
+
import { FieldValidationVerdict } from './field_validation_verdict';
|
|
28
31
|
import { FormulaDisplayInfo } from './formula_display_info';
|
|
29
32
|
import { GetAllBlocksParams } from './rpc_get_all_blocks_params';
|
|
30
33
|
import { GetAvailableBlockIdParams } from './rpc_get_available_block_id_params';
|
|
31
34
|
import { GetBlockColIdParams } from './rpc_get_block_col_id_params';
|
|
32
35
|
import { GetBlockDisplayWindowParams } from './rpc_get_block_display_window_params';
|
|
33
36
|
import { GetBlockInfoParams } from './rpc_get_block_info_params';
|
|
37
|
+
import { GetBlockModifyInfoParams } from './get_block_modify_info_params';
|
|
34
38
|
import { GetBlockRowIdParams } from './rpc_get_block_row_id_params';
|
|
35
39
|
import { GetBlockSortOrderParams } from './rpc_get_block_sort_order_params';
|
|
36
40
|
import { GetBlockValuesParams } from './rpc_get_block_values_params';
|
|
@@ -72,6 +76,7 @@ import { HandleTransactionParams } from './rpc_handle_transaction_params';
|
|
|
72
76
|
import { LinkInfo } from './link_info';
|
|
73
77
|
import { LoadWorkbookParams } from './rpc_load_workbook_params';
|
|
74
78
|
import { LookupAppendixUpwardParams } from './rpc_lookup_appendix_upward_params';
|
|
79
|
+
import { MayModifyBlockParams } from './may_modify_block_params';
|
|
75
80
|
import { MergeCell } from './merge_cell';
|
|
76
81
|
import { PredictFillParams } from './rpc_predict_fill_params';
|
|
77
82
|
import { ReproducibleCell } from './reproducible_cell';
|
|
@@ -122,6 +127,9 @@ export interface WorkbookMethods {
|
|
|
122
127
|
getBlockColId(params: GetBlockColIdParams, bookId?: number): Promise<number | ErrorMessage>;
|
|
123
128
|
getBlockValues(params: GetBlockValuesParams, bookId?: number): Promise<readonly string[] | ErrorMessage>;
|
|
124
129
|
getBlockSortOrder(params: GetBlockSortOrderParams, bookId?: number): Promise<BlockSortOrder | ErrorMessage>;
|
|
130
|
+
mayModifyBlock(params: MayModifyBlockParams, bookId?: number): Promise<boolean | ErrorMessage>;
|
|
131
|
+
checkFieldValidation(params: CheckFieldValidationParams, bookId?: number): Promise<FieldValidationVerdict | ErrorMessage>;
|
|
132
|
+
getBlockModifyInfo(params: GetBlockModifyInfoParams, bookId?: number): Promise<BlockModifyInfo | ErrorMessage>;
|
|
125
133
|
getAvailableBlockId(params: GetAvailableBlockIdParams, bookId?: number): Promise<number | ErrorMessage>;
|
|
126
134
|
getAllBlockFields(bookId?: number): Promise<readonly BlockField[] | ErrorMessage>;
|
|
127
135
|
getAllBlocks(params: GetAllBlocksParams, bookId?: number): Promise<readonly BlockInfo[] | ErrorMessage>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SetBlockDescription {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
blockId: number;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SetBlockDescriptionBuilder {
|
|
7
|
+
private _sheetIdx;
|
|
8
|
+
private _blockId;
|
|
9
|
+
private _description;
|
|
10
|
+
sheetIdx(value: number): this;
|
|
11
|
+
blockId(value: number): this;
|
|
12
|
+
description(value: string): this;
|
|
13
|
+
build(): {
|
|
14
|
+
sheetIdx: number;
|
|
15
|
+
blockId: number;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetBlockDescriptionBuilder = void 0;
|
|
4
|
+
class SetBlockDescriptionBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_blockId;
|
|
7
|
+
_description;
|
|
8
|
+
sheetIdx(value) {
|
|
9
|
+
this._sheetIdx = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
blockId(value) {
|
|
13
|
+
this._blockId = value;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
description(value) {
|
|
17
|
+
this._description = value;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
build() {
|
|
21
|
+
if (this._sheetIdx === undefined)
|
|
22
|
+
throw new Error('missing sheetIdx');
|
|
23
|
+
if (this._blockId === undefined)
|
|
24
|
+
throw new Error('missing blockId');
|
|
25
|
+
if (this._description === undefined)
|
|
26
|
+
throw new Error('missing description');
|
|
27
|
+
return { sheetIdx: this._sheetIdx, blockId: this._blockId, description: this._description };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.SetBlockDescriptionBuilder = SetBlockDescriptionBuilder;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BlockPermissions } from './block_permissions';
|
|
2
|
+
import { ModifyPolicy } from './modify_policy';
|
|
3
|
+
export interface SetBlockPermissions {
|
|
4
|
+
sheetIdx: number;
|
|
5
|
+
blockId: number;
|
|
6
|
+
permissions: BlockPermissions;
|
|
7
|
+
modifyPolicy?: ModifyPolicy;
|
|
8
|
+
}
|
|
9
|
+
export declare class SetBlockPermissionsBuilder {
|
|
10
|
+
private _sheetIdx;
|
|
11
|
+
private _blockId;
|
|
12
|
+
private _permissions;
|
|
13
|
+
private _modifyPolicy?;
|
|
14
|
+
sheetIdx(value: number): this;
|
|
15
|
+
blockId(value: number): this;
|
|
16
|
+
permissions(value: BlockPermissions): this;
|
|
17
|
+
modifyPolicy(value: ModifyPolicy): this;
|
|
18
|
+
build(): {
|
|
19
|
+
sheetIdx: number;
|
|
20
|
+
blockId: number;
|
|
21
|
+
permissions: BlockPermissions;
|
|
22
|
+
modifyPolicy: ModifyPolicy | undefined;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetBlockPermissionsBuilder = void 0;
|
|
4
|
+
class SetBlockPermissionsBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_blockId;
|
|
7
|
+
_permissions;
|
|
8
|
+
_modifyPolicy;
|
|
9
|
+
sheetIdx(value) {
|
|
10
|
+
this._sheetIdx = value;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
blockId(value) {
|
|
14
|
+
this._blockId = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
permissions(value) {
|
|
18
|
+
this._permissions = value;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
modifyPolicy(value) {
|
|
22
|
+
this._modifyPolicy = value;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
build() {
|
|
26
|
+
if (this._sheetIdx === undefined)
|
|
27
|
+
throw new Error('missing sheetIdx');
|
|
28
|
+
if (this._blockId === undefined)
|
|
29
|
+
throw new Error('missing blockId');
|
|
30
|
+
if (this._permissions === undefined)
|
|
31
|
+
throw new Error('missing permissions');
|
|
32
|
+
return { sheetIdx: this._sheetIdx, blockId: this._blockId, permissions: this._permissions, modifyPolicy: this._modifyPolicy };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.SetBlockPermissionsBuilder = SetBlockPermissionsBuilder;
|
|
@@ -1,22 +1,90 @@
|
|
|
1
|
+
import { AxisScaleUpdate } from './axis_scale_update';
|
|
2
|
+
import { ChartBlockSource } from './chart_block_source';
|
|
3
|
+
import { CreateChartSeries } from './create_chart_series';
|
|
4
|
+
import { OfPieSplitUpdate } from './of_pie_split_update';
|
|
1
5
|
export interface UpdateChart {
|
|
2
6
|
sheetIdx: number;
|
|
3
7
|
chartId: string;
|
|
4
8
|
chartType?: string;
|
|
5
9
|
title?: string;
|
|
10
|
+
legendPos?: string;
|
|
11
|
+
stacked?: boolean;
|
|
12
|
+
catAxisTitle?: string;
|
|
13
|
+
valAxisTitle?: string;
|
|
14
|
+
showDataLabels?: boolean;
|
|
15
|
+
showCategoryLabels?: boolean;
|
|
16
|
+
showSeriesLabels?: boolean;
|
|
17
|
+
showPercentLabels?: boolean;
|
|
18
|
+
dataLabelPosition?: string;
|
|
19
|
+
numFmt?: string;
|
|
20
|
+
categoriesRef?: string;
|
|
21
|
+
series?: readonly CreateChartSeries[];
|
|
22
|
+
valAxisScale?: AxisScaleUpdate;
|
|
23
|
+
catAxisScale?: AxisScaleUpdate;
|
|
24
|
+
ofPieSplit?: OfPieSplitUpdate;
|
|
25
|
+
blockSource?: ChartBlockSource;
|
|
6
26
|
}
|
|
7
27
|
export declare class UpdateChartBuilder {
|
|
8
28
|
private _sheetIdx;
|
|
9
29
|
private _chartId;
|
|
10
30
|
private _chartType?;
|
|
11
31
|
private _title?;
|
|
32
|
+
private _legendPos?;
|
|
33
|
+
private _stacked?;
|
|
34
|
+
private _catAxisTitle?;
|
|
35
|
+
private _valAxisTitle?;
|
|
36
|
+
private _showDataLabels?;
|
|
37
|
+
private _showCategoryLabels?;
|
|
38
|
+
private _showSeriesLabels?;
|
|
39
|
+
private _showPercentLabels?;
|
|
40
|
+
private _dataLabelPosition?;
|
|
41
|
+
private _numFmt?;
|
|
42
|
+
private _categoriesRef?;
|
|
43
|
+
private _series?;
|
|
44
|
+
private _valAxisScale?;
|
|
45
|
+
private _catAxisScale?;
|
|
46
|
+
private _ofPieSplit?;
|
|
47
|
+
private _blockSource?;
|
|
12
48
|
sheetIdx(value: number): this;
|
|
13
49
|
chartId(value: string): this;
|
|
14
50
|
chartType(value: string): this;
|
|
15
51
|
title(value: string): this;
|
|
52
|
+
legendPos(value: string): this;
|
|
53
|
+
stacked(value: boolean): this;
|
|
54
|
+
catAxisTitle(value: string): this;
|
|
55
|
+
valAxisTitle(value: string): this;
|
|
56
|
+
showDataLabels(value: boolean): this;
|
|
57
|
+
showCategoryLabels(value: boolean): this;
|
|
58
|
+
showSeriesLabels(value: boolean): this;
|
|
59
|
+
showPercentLabels(value: boolean): this;
|
|
60
|
+
dataLabelPosition(value: string): this;
|
|
61
|
+
numFmt(value: string): this;
|
|
62
|
+
categoriesRef(value: string): this;
|
|
63
|
+
series(value: readonly CreateChartSeries[]): this;
|
|
64
|
+
valAxisScale(value: AxisScaleUpdate): this;
|
|
65
|
+
catAxisScale(value: AxisScaleUpdate): this;
|
|
66
|
+
ofPieSplit(value: OfPieSplitUpdate): this;
|
|
67
|
+
blockSource(value: ChartBlockSource): this;
|
|
16
68
|
build(): {
|
|
17
69
|
sheetIdx: number;
|
|
18
70
|
chartId: string;
|
|
19
71
|
chartType: string | undefined;
|
|
20
72
|
title: string | undefined;
|
|
73
|
+
legendPos: string | undefined;
|
|
74
|
+
stacked: boolean | undefined;
|
|
75
|
+
catAxisTitle: string | undefined;
|
|
76
|
+
valAxisTitle: string | undefined;
|
|
77
|
+
showDataLabels: boolean | undefined;
|
|
78
|
+
showCategoryLabels: boolean | undefined;
|
|
79
|
+
showSeriesLabels: boolean | undefined;
|
|
80
|
+
showPercentLabels: boolean | undefined;
|
|
81
|
+
dataLabelPosition: string | undefined;
|
|
82
|
+
numFmt: string | undefined;
|
|
83
|
+
categoriesRef: string | undefined;
|
|
84
|
+
series: readonly CreateChartSeries[] | undefined;
|
|
85
|
+
valAxisScale: AxisScaleUpdate | undefined;
|
|
86
|
+
catAxisScale: AxisScaleUpdate | undefined;
|
|
87
|
+
ofPieSplit: OfPieSplitUpdate | undefined;
|
|
88
|
+
blockSource: ChartBlockSource | undefined;
|
|
21
89
|
};
|
|
22
90
|
}
|
|
@@ -6,6 +6,22 @@ class UpdateChartBuilder {
|
|
|
6
6
|
_chartId;
|
|
7
7
|
_chartType;
|
|
8
8
|
_title;
|
|
9
|
+
_legendPos;
|
|
10
|
+
_stacked;
|
|
11
|
+
_catAxisTitle;
|
|
12
|
+
_valAxisTitle;
|
|
13
|
+
_showDataLabels;
|
|
14
|
+
_showCategoryLabels;
|
|
15
|
+
_showSeriesLabels;
|
|
16
|
+
_showPercentLabels;
|
|
17
|
+
_dataLabelPosition;
|
|
18
|
+
_numFmt;
|
|
19
|
+
_categoriesRef;
|
|
20
|
+
_series;
|
|
21
|
+
_valAxisScale;
|
|
22
|
+
_catAxisScale;
|
|
23
|
+
_ofPieSplit;
|
|
24
|
+
_blockSource;
|
|
9
25
|
sheetIdx(value) {
|
|
10
26
|
this._sheetIdx = value;
|
|
11
27
|
return this;
|
|
@@ -22,12 +38,76 @@ class UpdateChartBuilder {
|
|
|
22
38
|
this._title = value;
|
|
23
39
|
return this;
|
|
24
40
|
}
|
|
41
|
+
legendPos(value) {
|
|
42
|
+
this._legendPos = value;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
stacked(value) {
|
|
46
|
+
this._stacked = value;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
catAxisTitle(value) {
|
|
50
|
+
this._catAxisTitle = value;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
valAxisTitle(value) {
|
|
54
|
+
this._valAxisTitle = value;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
showDataLabels(value) {
|
|
58
|
+
this._showDataLabels = value;
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
showCategoryLabels(value) {
|
|
62
|
+
this._showCategoryLabels = value;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
showSeriesLabels(value) {
|
|
66
|
+
this._showSeriesLabels = value;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
showPercentLabels(value) {
|
|
70
|
+
this._showPercentLabels = value;
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
dataLabelPosition(value) {
|
|
74
|
+
this._dataLabelPosition = value;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
numFmt(value) {
|
|
78
|
+
this._numFmt = value;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
categoriesRef(value) {
|
|
82
|
+
this._categoriesRef = value;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
series(value) {
|
|
86
|
+
this._series = value;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
valAxisScale(value) {
|
|
90
|
+
this._valAxisScale = value;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
catAxisScale(value) {
|
|
94
|
+
this._catAxisScale = value;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
ofPieSplit(value) {
|
|
98
|
+
this._ofPieSplit = value;
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
blockSource(value) {
|
|
102
|
+
this._blockSource = value;
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
25
105
|
build() {
|
|
26
106
|
if (this._sheetIdx === undefined)
|
|
27
107
|
throw new Error('missing sheetIdx');
|
|
28
108
|
if (this._chartId === undefined)
|
|
29
109
|
throw new Error('missing chartId');
|
|
30
|
-
return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, title: this._title };
|
|
110
|
+
return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, title: this._title, legendPos: this._legendPos, stacked: this._stacked, catAxisTitle: this._catAxisTitle, valAxisTitle: this._valAxisTitle, showDataLabels: this._showDataLabels, showCategoryLabels: this._showCategoryLabels, showSeriesLabels: this._showSeriesLabels, showPercentLabels: this._showPercentLabels, dataLabelPosition: this._dataLabelPosition, numFmt: this._numFmt, categoriesRef: this._categoriesRef, series: this._series, valAxisScale: this._valAxisScale, catAxisScale: this._catAxisScale, ofPieSplit: this._ofPieSplit, blockSource: this._blockSource };
|
|
31
111
|
}
|
|
32
112
|
}
|
|
33
113
|
exports.UpdateChartBuilder = UpdateChartBuilder;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function handle(msg: any, book_id?: number | null): any;
|
|
4
|
+
/**
|
|
5
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
6
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
7
|
+
*/
|
|
8
|
+
export function format_text(fmt: string, text: string): string;
|
|
3
9
|
/**
|
|
4
10
|
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
5
11
|
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
@@ -12,9 +18,3 @@ export function format_number(fmt: string, value: number): string;
|
|
|
12
18
|
* Output: ActionAffect
|
|
13
19
|
*/
|
|
14
20
|
export function input_async_result(id: number, result: any): any;
|
|
15
|
-
/**
|
|
16
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
17
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
18
|
-
*/
|
|
19
|
-
export function format_text(fmt: string, text: string): string;
|
|
20
|
-
export function handle(msg: any, book_id?: number | null): any;
|