logisheets 1.12.1 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/src/api/workbook.d.ts +21 -1
  2. package/dist/src/api/workbook.js +24 -0
  3. package/dist/src/bindings/axis_scale_update.d.ts +30 -0
  4. package/dist/src/bindings/axis_scale_update.js +41 -0
  5. package/dist/src/bindings/block_actor.d.ts +4 -0
  6. package/dist/src/bindings/block_actor.js +2 -0
  7. package/dist/src/bindings/block_info.d.ts +6 -0
  8. package/dist/src/bindings/block_modify_info.d.ts +8 -0
  9. package/dist/src/bindings/block_modify_info.js +2 -0
  10. package/dist/src/bindings/block_op.d.ts +1 -0
  11. package/dist/src/bindings/block_op.js +2 -0
  12. package/dist/src/bindings/block_permissions.d.ts +31 -0
  13. package/dist/src/bindings/block_permissions.js +39 -0
  14. package/dist/src/bindings/chart_axis_scale_info.d.ts +8 -0
  15. package/dist/src/bindings/chart_axis_scale_info.js +2 -0
  16. package/dist/src/bindings/chart_block_source.d.ts +18 -0
  17. package/dist/src/bindings/chart_block_source.js +28 -0
  18. package/dist/src/bindings/chart_block_source_info.d.ts +5 -0
  19. package/dist/src/bindings/chart_block_source_info.js +2 -0
  20. package/dist/src/bindings/chart_data_labels_info.d.ts +9 -0
  21. package/dist/src/bindings/chart_data_labels_info.js +2 -0
  22. package/dist/src/bindings/chart_info.d.ts +13 -0
  23. package/dist/src/bindings/chart_of_pie_split_info.d.ts +5 -0
  24. package/dist/src/bindings/chart_of_pie_split_info.js +2 -0
  25. package/dist/src/bindings/chart_series_info.d.ts +6 -0
  26. package/dist/src/bindings/create_block.d.ts +9 -0
  27. package/dist/src/bindings/create_block.js +11 -1
  28. package/dist/src/bindings/create_chart.d.ts +5 -0
  29. package/dist/src/bindings/create_chart.js +6 -1
  30. package/dist/src/bindings/create_chart_series.d.ts +12 -0
  31. package/dist/src/bindings/create_chart_series.js +16 -1
  32. package/dist/src/bindings/edit_payload.d.ts +8 -0
  33. package/dist/src/bindings/get_block_modify_info_params.d.ts +4 -0
  34. package/dist/src/bindings/get_block_modify_info_params.js +2 -0
  35. package/dist/src/bindings/index.d.ts +15 -0
  36. package/dist/src/bindings/index.js +15 -0
  37. package/dist/src/bindings/may_modify_block_params.d.ts +8 -0
  38. package/dist/src/bindings/may_modify_block_params.js +2 -0
  39. package/dist/src/bindings/of_pie_split_update.d.ts +18 -0
  40. package/dist/src/bindings/of_pie_split_update.js +24 -0
  41. package/dist/src/bindings/rpc_workbook_methods.d.ts +5 -0
  42. package/dist/src/bindings/set_block_description.d.ts +18 -0
  43. package/dist/src/bindings/set_block_description.js +30 -0
  44. package/dist/src/bindings/set_block_permissions.d.ts +24 -0
  45. package/dist/src/bindings/set_block_permissions.js +35 -0
  46. package/dist/src/bindings/update_chart.d.ts +68 -0
  47. package/dist/src/bindings/update_chart.js +81 -1
  48. package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
  49. package/dist/wasm/package.json +1 -1
  50. package/package.json +1 -1
  51. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  52. package/wasm/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ActionEffect, BlockField, BlockInfo, BlockSortOrder, GetBlockSortOrderParams, FormulaDisplayInfo, ShadowCellInfo, SheetCellId, SheetInfo, SaveFileResult, AppData, CellInfo, CellCoordinateWithSheet, Transaction, GetBlockValuesParams, GetCellIdParams, GetShadowCellIdParams, GetShadowCellIdsParams, GetAvailableBlockIdParams, TempStatusDiff, BlockDataRow, CommentMention } from '../bindings';
1
+ import { ActionEffect, BlockField, BlockInfo, BlockSortOrder, GetBlockSortOrderParams, MayModifyBlockParams, GetBlockModifyInfoParams, BlockModifyInfo, FormulaDisplayInfo, ShadowCellInfo, SheetCellId, SheetInfo, SaveFileResult, AppData, CellInfo, CellCoordinateWithSheet, Transaction, GetBlockValuesParams, GetCellIdParams, GetShadowCellIdParams, GetShadowCellIdsParams, GetAvailableBlockIdParams, TempStatusDiff, BlockDataRow, CommentMention } from '../bindings';
2
2
  import { ColId, RowId } from '../types';
3
3
  import { Worksheet } from './worksheet';
4
4
  import { CustomFunc } from './calculator';
@@ -171,6 +171,26 @@ export declare class Workbook {
171
171
  * a sort order. Fails for random-schema blocks (no fields).
172
172
  */
173
173
  getBlockSortOrder(params: GetBlockSortOrderParams): Result<BlockSortOrder>;
174
+ /**
175
+ * Whether `actor` may perform `op` on this block.
176
+ *
177
+ * The engine cannot enforce a block's write policy on its own — a payload
178
+ * carries no trace of who prompted it — so a host that offers an
179
+ * operation should ask this first and refuse it itself. The decision lives
180
+ * in the core so this app, node, the desktop build and the craft runtime
181
+ * cannot drift apart on what a policy means.
182
+ *
183
+ * The block's `description`, `owner`, `modifyPolicy` and `permissions`
184
+ * come back on `getBlockInfo` if you need to explain the refusal.
185
+ */
186
+ mayModifyBlock(params: MayModifyBlockParams): Result<boolean>;
187
+ /**
188
+ * A block's governance metadata on its own — owner, default policy,
189
+ * per-operation overrides, description. `getBlockInfo` carries the same
190
+ * fields but drags every cell along with them, which is the wrong shape
191
+ * for a check that runs once per payload.
192
+ */
193
+ getBlockModifyInfo(params: GetBlockModifyInfoParams): Result<BlockModifyInfo>;
174
194
  /**
175
195
  * Sort a block's records by the named field and commit the reorder as a
176
196
  * single (undoable) transaction. The engine computes the type-aware order;
@@ -424,6 +424,30 @@ class Workbook {
424
424
  getBlockSortOrder(params) {
425
425
  return rpc('getBlockSortOrder', params, this._id);
426
426
  }
427
+ /**
428
+ * Whether `actor` may perform `op` on this block.
429
+ *
430
+ * The engine cannot enforce a block's write policy on its own — a payload
431
+ * carries no trace of who prompted it — so a host that offers an
432
+ * operation should ask this first and refuse it itself. The decision lives
433
+ * in the core so this app, node, the desktop build and the craft runtime
434
+ * cannot drift apart on what a policy means.
435
+ *
436
+ * The block's `description`, `owner`, `modifyPolicy` and `permissions`
437
+ * come back on `getBlockInfo` if you need to explain the refusal.
438
+ */
439
+ mayModifyBlock(params) {
440
+ return rpc('mayModifyBlock', params, this._id);
441
+ }
442
+ /**
443
+ * A block's governance metadata on its own — owner, default policy,
444
+ * per-operation overrides, description. `getBlockInfo` carries the same
445
+ * fields but drags every cell along with them, which is the wrong shape
446
+ * for a check that runs once per payload.
447
+ */
448
+ getBlockModifyInfo(params) {
449
+ return rpc('getBlockModifyInfo', params, this._id);
450
+ }
427
451
  /**
428
452
  * Sort a block's records by the named field and commit the reorder as a
429
453
  * single (undoable) transaction. The engine computes the type-aware order;
@@ -0,0 +1,30 @@
1
+ export interface AxisScaleUpdate {
2
+ min?: number;
3
+ max?: number;
4
+ logBase?: number;
5
+ reversed: boolean;
6
+ majorUnit?: number;
7
+ minorUnit?: number;
8
+ }
9
+ export declare class AxisScaleUpdateBuilder {
10
+ private _min?;
11
+ private _max?;
12
+ private _logBase?;
13
+ private _reversed;
14
+ private _majorUnit?;
15
+ private _minorUnit?;
16
+ min(value: number): this;
17
+ max(value: number): this;
18
+ logBase(value: number): this;
19
+ reversed(value: boolean): this;
20
+ majorUnit(value: number): this;
21
+ minorUnit(value: number): this;
22
+ build(): {
23
+ min: number | undefined;
24
+ max: number | undefined;
25
+ logBase: number | undefined;
26
+ reversed: boolean;
27
+ majorUnit: number | undefined;
28
+ minorUnit: number | undefined;
29
+ };
30
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AxisScaleUpdateBuilder = void 0;
4
+ class AxisScaleUpdateBuilder {
5
+ _min;
6
+ _max;
7
+ _logBase;
8
+ _reversed;
9
+ _majorUnit;
10
+ _minorUnit;
11
+ min(value) {
12
+ this._min = value;
13
+ return this;
14
+ }
15
+ max(value) {
16
+ this._max = value;
17
+ return this;
18
+ }
19
+ logBase(value) {
20
+ this._logBase = value;
21
+ return this;
22
+ }
23
+ reversed(value) {
24
+ this._reversed = value;
25
+ return this;
26
+ }
27
+ majorUnit(value) {
28
+ this._majorUnit = value;
29
+ return this;
30
+ }
31
+ minorUnit(value) {
32
+ this._minorUnit = value;
33
+ return this;
34
+ }
35
+ build() {
36
+ if (this._reversed === undefined)
37
+ throw new Error('missing reversed');
38
+ return { min: this._min, max: this._max, logBase: this._logBase, reversed: this._reversed, majorUnit: this._majorUnit, minorUnit: this._minorUnit };
39
+ }
40
+ }
41
+ exports.AxisScaleUpdateBuilder = AxisScaleUpdateBuilder;
@@ -0,0 +1,4 @@
1
+ export type BlockActor = 'user' | {
2
+ type: 'craft';
3
+ value: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,8 @@
1
1
  import { BlockCellInfo } from './block_cell_info';
2
+ import { BlockPermissions } from './block_permissions';
2
3
  import { BlockSchema } from './block_schema';
3
4
  import { FieldRenderEntry } from './field_render_entry';
5
+ import { ModifyPolicy } from './modify_policy';
4
6
  export interface BlockInfo {
5
7
  sheetIdx: number;
6
8
  sheetId: number;
@@ -12,4 +14,8 @@ export interface BlockInfo {
12
14
  schema?: BlockSchema;
13
15
  fieldRenders: readonly FieldRenderEntry[];
14
16
  cells: readonly BlockCellInfo[];
17
+ description: string;
18
+ owner: string;
19
+ modifyPolicy: ModifyPolicy;
20
+ permissions: BlockPermissions;
15
21
  }
@@ -0,0 +1,8 @@
1
+ import { BlockPermissions } from './block_permissions';
2
+ import { ModifyPolicy } from './modify_policy';
3
+ export interface BlockModifyInfo {
4
+ owner: string;
5
+ modifyPolicy: ModifyPolicy;
6
+ permissions: BlockPermissions;
7
+ description: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type BlockOp = 'insertDeleteLines' | 'removeBlock' | 'modifySchema' | 'cellInput' | 'sortByField' | 'modifyDescription';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import { ModifyPolicy } from './modify_policy';
2
+ export interface BlockPermissions {
3
+ insertDeleteLines?: ModifyPolicy;
4
+ removeBlock?: ModifyPolicy;
5
+ modifySchema?: ModifyPolicy;
6
+ cellInput?: ModifyPolicy;
7
+ sortByField?: ModifyPolicy;
8
+ modifyDescription?: ModifyPolicy;
9
+ }
10
+ export declare class BlockPermissionsBuilder {
11
+ private _insertDeleteLines?;
12
+ private _removeBlock?;
13
+ private _modifySchema?;
14
+ private _cellInput?;
15
+ private _sortByField?;
16
+ private _modifyDescription?;
17
+ insertDeleteLines(value: ModifyPolicy): this;
18
+ removeBlock(value: ModifyPolicy): this;
19
+ modifySchema(value: ModifyPolicy): this;
20
+ cellInput(value: ModifyPolicy): this;
21
+ sortByField(value: ModifyPolicy): this;
22
+ modifyDescription(value: ModifyPolicy): this;
23
+ build(): {
24
+ insertDeleteLines: ModifyPolicy | undefined;
25
+ removeBlock: ModifyPolicy | undefined;
26
+ modifySchema: ModifyPolicy | undefined;
27
+ cellInput: ModifyPolicy | undefined;
28
+ sortByField: ModifyPolicy | undefined;
29
+ modifyDescription: ModifyPolicy | undefined;
30
+ };
31
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlockPermissionsBuilder = void 0;
4
+ class BlockPermissionsBuilder {
5
+ _insertDeleteLines;
6
+ _removeBlock;
7
+ _modifySchema;
8
+ _cellInput;
9
+ _sortByField;
10
+ _modifyDescription;
11
+ insertDeleteLines(value) {
12
+ this._insertDeleteLines = value;
13
+ return this;
14
+ }
15
+ removeBlock(value) {
16
+ this._removeBlock = value;
17
+ return this;
18
+ }
19
+ modifySchema(value) {
20
+ this._modifySchema = value;
21
+ return this;
22
+ }
23
+ cellInput(value) {
24
+ this._cellInput = value;
25
+ return this;
26
+ }
27
+ sortByField(value) {
28
+ this._sortByField = value;
29
+ return this;
30
+ }
31
+ modifyDescription(value) {
32
+ this._modifyDescription = value;
33
+ return this;
34
+ }
35
+ build() {
36
+ return { insertDeleteLines: this._insertDeleteLines, removeBlock: this._removeBlock, modifySchema: this._modifySchema, cellInput: this._cellInput, sortByField: this._sortByField, modifyDescription: this._modifyDescription };
37
+ }
38
+ }
39
+ exports.BlockPermissionsBuilder = BlockPermissionsBuilder;
@@ -0,0 +1,8 @@
1
+ export interface ChartAxisScaleInfo {
2
+ min?: number;
3
+ max?: number;
4
+ logBase?: number;
5
+ reversed: boolean;
6
+ majorUnit?: number;
7
+ minorUnit?: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export interface ChartBlockSource {
2
+ blockId: number;
3
+ categoryField?: string;
4
+ valueFields: readonly string[];
5
+ }
6
+ export declare class ChartBlockSourceBuilder {
7
+ private _blockId;
8
+ private _categoryField?;
9
+ private _valueFields;
10
+ blockId(value: number): this;
11
+ categoryField(value: string): this;
12
+ valueFields(value: readonly string[]): this;
13
+ build(): {
14
+ blockId: number;
15
+ categoryField: string | undefined;
16
+ valueFields: readonly string[];
17
+ };
18
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChartBlockSourceBuilder = void 0;
4
+ class ChartBlockSourceBuilder {
5
+ _blockId;
6
+ _categoryField;
7
+ _valueFields;
8
+ blockId(value) {
9
+ this._blockId = value;
10
+ return this;
11
+ }
12
+ categoryField(value) {
13
+ this._categoryField = value;
14
+ return this;
15
+ }
16
+ valueFields(value) {
17
+ this._valueFields = value;
18
+ return this;
19
+ }
20
+ build() {
21
+ if (this._blockId === undefined)
22
+ throw new Error('missing blockId');
23
+ if (this._valueFields === undefined)
24
+ throw new Error('missing valueFields');
25
+ return { blockId: this._blockId, categoryField: this._categoryField, valueFields: this._valueFields };
26
+ }
27
+ }
28
+ exports.ChartBlockSourceBuilder = ChartBlockSourceBuilder;
@@ -0,0 +1,5 @@
1
+ export interface ChartBlockSourceInfo {
2
+ blockId: number;
3
+ categoryField?: string;
4
+ valueFields: readonly string[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface ChartDataLabelsInfo {
2
+ showValue: boolean;
3
+ showCategory: boolean;
4
+ showSeries: boolean;
5
+ showPercent: boolean;
6
+ showLegendKey: boolean;
7
+ position?: string;
8
+ numFmt?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,7 @@
1
+ import { ChartAxisScaleInfo } from './chart_axis_scale_info';
2
+ import { ChartBlockSourceInfo } from './chart_block_source_info';
3
+ import { ChartDataLabelsInfo } from './chart_data_labels_info';
4
+ import { ChartOfPieSplitInfo } from './chart_of_pie_split_info';
1
5
  import { ChartSeriesInfo } from './chart_series_info';
2
6
  export interface ChartInfo {
3
7
  chartId: string;
@@ -9,12 +13,21 @@ export interface ChartInfo {
9
13
  toCol: number;
10
14
  toColOff: number;
11
15
  toRowOff: number;
16
+ extCx?: number;
17
+ extCy?: number;
12
18
  chartType: string;
13
19
  stacked: boolean;
14
20
  title?: string;
15
21
  legendPos?: string;
16
22
  categories: readonly string[];
23
+ catRef?: string;
17
24
  series: readonly ChartSeriesInfo[];
18
25
  catAxisTitle?: string;
19
26
  valAxisTitle?: string;
27
+ dataLabels: ChartDataLabelsInfo;
28
+ ofPieSplit: ChartOfPieSplitInfo;
29
+ valAxisScale: ChartAxisScaleInfo;
30
+ catAxisScale: ChartAxisScaleInfo;
31
+ valAxisNumFmt?: string;
32
+ blockSource?: ChartBlockSourceInfo;
20
33
  }
@@ -0,0 +1,5 @@
1
+ export interface ChartOfPieSplitInfo {
2
+ by?: string;
3
+ pos?: number;
4
+ secondSize?: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,10 @@ export interface ChartSeriesInfo {
2
2
  name?: string;
3
3
  values: readonly number[];
4
4
  color?: string;
5
+ formattedValues: readonly string[];
6
+ sizes: readonly number[];
7
+ sizeRef?: string;
8
+ seriesType?: string;
9
+ valRef?: string;
10
+ numFmt?: string;
5
11
  }
@@ -1,3 +1,4 @@
1
+ import { BlockPermissions } from './block_permissions';
1
2
  import { ModifyPolicy } from './modify_policy';
2
3
  export interface CreateBlock {
3
4
  sheetIdx: number;
@@ -8,6 +9,8 @@ export interface CreateBlock {
8
9
  colCnt: number;
9
10
  owner?: string;
10
11
  modifyPolicy?: ModifyPolicy;
12
+ permissions?: BlockPermissions;
13
+ description?: string;
11
14
  }
12
15
  export declare class CreateBlockBuilder {
13
16
  private _sheetIdx;
@@ -18,6 +21,8 @@ export declare class CreateBlockBuilder {
18
21
  private _colCnt;
19
22
  private _owner?;
20
23
  private _modifyPolicy?;
24
+ private _permissions?;
25
+ private _description?;
21
26
  sheetIdx(value: number): this;
22
27
  id(value: number): this;
23
28
  masterRow(value: number): this;
@@ -26,6 +31,8 @@ export declare class CreateBlockBuilder {
26
31
  colCnt(value: number): this;
27
32
  owner(value: string): this;
28
33
  modifyPolicy(value: ModifyPolicy): this;
34
+ permissions(value: BlockPermissions): this;
35
+ description(value: string): this;
29
36
  build(): {
30
37
  sheetIdx: number;
31
38
  id: number;
@@ -35,5 +42,7 @@ export declare class CreateBlockBuilder {
35
42
  colCnt: number;
36
43
  owner: string | undefined;
37
44
  modifyPolicy: ModifyPolicy | undefined;
45
+ permissions: BlockPermissions | undefined;
46
+ description: string | undefined;
38
47
  };
39
48
  }
@@ -10,6 +10,8 @@ class CreateBlockBuilder {
10
10
  _colCnt;
11
11
  _owner;
12
12
  _modifyPolicy;
13
+ _permissions;
14
+ _description;
13
15
  sheetIdx(value) {
14
16
  this._sheetIdx = value;
15
17
  return this;
@@ -42,6 +44,14 @@ class CreateBlockBuilder {
42
44
  this._modifyPolicy = value;
43
45
  return this;
44
46
  }
47
+ permissions(value) {
48
+ this._permissions = value;
49
+ return this;
50
+ }
51
+ description(value) {
52
+ this._description = value;
53
+ return this;
54
+ }
45
55
  build() {
46
56
  if (this._sheetIdx === undefined)
47
57
  throw new Error('missing sheetIdx');
@@ -55,7 +65,7 @@ class CreateBlockBuilder {
55
65
  throw new Error('missing rowCnt');
56
66
  if (this._colCnt === undefined)
57
67
  throw new Error('missing colCnt');
58
- return { sheetIdx: this._sheetIdx, id: this._id, masterRow: this._masterRow, masterCol: this._masterCol, rowCnt: this._rowCnt, colCnt: this._colCnt, owner: this._owner, modifyPolicy: this._modifyPolicy };
68
+ return { sheetIdx: this._sheetIdx, id: this._id, masterRow: this._masterRow, masterCol: this._masterCol, rowCnt: this._rowCnt, colCnt: this._colCnt, owner: this._owner, modifyPolicy: this._modifyPolicy, permissions: this._permissions, description: this._description };
59
69
  }
60
70
  }
61
71
  exports.CreateBlockBuilder = CreateBlockBuilder;
@@ -1,3 +1,4 @@
1
+ import { ChartBlockSource } from './chart_block_source';
1
2
  import { CreateChartSeries } from './create_chart_series';
2
3
  export interface CreateChart {
3
4
  sheetIdx: number;
@@ -14,6 +15,7 @@ export interface CreateChart {
14
15
  title?: string;
15
16
  categoriesRef?: string;
16
17
  series: readonly CreateChartSeries[];
18
+ blockSource?: ChartBlockSource;
17
19
  }
18
20
  export declare class CreateChartBuilder {
19
21
  private _sheetIdx;
@@ -30,6 +32,7 @@ export declare class CreateChartBuilder {
30
32
  private _title?;
31
33
  private _categoriesRef?;
32
34
  private _series;
35
+ private _blockSource?;
33
36
  sheetIdx(value: number): this;
34
37
  chartId(value: string): this;
35
38
  chartType(value: string): this;
@@ -44,6 +47,7 @@ export declare class CreateChartBuilder {
44
47
  title(value: string): this;
45
48
  categoriesRef(value: string): this;
46
49
  series(value: readonly CreateChartSeries[]): this;
50
+ blockSource(value: ChartBlockSource): this;
47
51
  build(): {
48
52
  sheetIdx: number;
49
53
  chartId: string;
@@ -59,5 +63,6 @@ export declare class CreateChartBuilder {
59
63
  title: string | undefined;
60
64
  categoriesRef: string | undefined;
61
65
  series: readonly CreateChartSeries[];
66
+ blockSource: ChartBlockSource | undefined;
62
67
  };
63
68
  }
@@ -16,6 +16,7 @@ class CreateChartBuilder {
16
16
  _title;
17
17
  _categoriesRef;
18
18
  _series;
19
+ _blockSource;
19
20
  sheetIdx(value) {
20
21
  this._sheetIdx = value;
21
22
  return this;
@@ -72,6 +73,10 @@ class CreateChartBuilder {
72
73
  this._series = value;
73
74
  return this;
74
75
  }
76
+ blockSource(value) {
77
+ this._blockSource = value;
78
+ return this;
79
+ }
75
80
  build() {
76
81
  if (this._sheetIdx === undefined)
77
82
  throw new Error('missing sheetIdx');
@@ -97,7 +102,7 @@ class CreateChartBuilder {
97
102
  throw new Error('missing toRowOff');
98
103
  if (this._series === undefined)
99
104
  throw new Error('missing series');
100
- return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, fromRow: this._fromRow, fromCol: this._fromCol, fromColOff: this._fromColOff, fromRowOff: this._fromRowOff, toRow: this._toRow, toCol: this._toCol, toColOff: this._toColOff, toRowOff: this._toRowOff, title: this._title, categoriesRef: this._categoriesRef, series: this._series };
105
+ return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, fromRow: this._fromRow, fromCol: this._fromCol, fromColOff: this._fromColOff, fromRowOff: this._fromRowOff, toRow: this._toRow, toCol: this._toCol, toColOff: this._toColOff, toRowOff: this._toRowOff, title: this._title, categoriesRef: this._categoriesRef, series: this._series, blockSource: this._blockSource };
101
106
  }
102
107
  }
103
108
  exports.CreateChartBuilder = CreateChartBuilder;
@@ -1,14 +1,26 @@
1
1
  export interface CreateChartSeries {
2
2
  name?: string;
3
3
  valueRef: string;
4
+ color?: string;
5
+ sizeRef?: string;
6
+ seriesType?: string;
4
7
  }
5
8
  export declare class CreateChartSeriesBuilder {
6
9
  private _name?;
7
10
  private _valueRef;
11
+ private _color?;
12
+ private _sizeRef?;
13
+ private _seriesType?;
8
14
  name(value: string): this;
9
15
  valueRef(value: string): this;
16
+ color(value: string): this;
17
+ sizeRef(value: string): this;
18
+ seriesType(value: string): this;
10
19
  build(): {
11
20
  name: string | undefined;
12
21
  valueRef: string;
22
+ color: string | undefined;
23
+ sizeRef: string | undefined;
24
+ seriesType: string | undefined;
13
25
  };
14
26
  }
@@ -4,6 +4,9 @@ exports.CreateChartSeriesBuilder = void 0;
4
4
  class CreateChartSeriesBuilder {
5
5
  _name;
6
6
  _valueRef;
7
+ _color;
8
+ _sizeRef;
9
+ _seriesType;
7
10
  name(value) {
8
11
  this._name = value;
9
12
  return this;
@@ -12,10 +15,22 @@ class CreateChartSeriesBuilder {
12
15
  this._valueRef = value;
13
16
  return this;
14
17
  }
18
+ color(value) {
19
+ this._color = value;
20
+ return this;
21
+ }
22
+ sizeRef(value) {
23
+ this._sizeRef = value;
24
+ return this;
25
+ }
26
+ seriesType(value) {
27
+ this._seriesType = value;
28
+ return this;
29
+ }
15
30
  build() {
16
31
  if (this._valueRef === undefined)
17
32
  throw new Error('missing valueRef');
18
- return { name: this._name, valueRef: this._valueRef };
33
+ return { name: this._name, valueRef: this._valueRef, color: this._color, sizeRef: this._sizeRef, seriesType: this._seriesType };
19
34
  }
20
35
  }
21
36
  exports.CreateChartSeriesBuilder = CreateChartSeriesBuilder;
@@ -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;
@@ -0,0 +1,4 @@
1
+ export interface GetBlockModifyInfoParams {
2
+ sheetIdx: number;
3
+ blockId: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,7 +50,12 @@ 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';
50
60
  export * from './checkpoint_meta';
51
61
  export * from './col_info';
@@ -102,6 +112,7 @@ export * from './font_name';
102
112
  export * from './font_scheme';
103
113
  export * from './font_size';
104
114
  export * from './formula_display_info';
115
+ export * from './get_block_modify_info_params';
105
116
  export * from './gradient_fill';
106
117
  export * from './gradient_stop';
107
118
  export * from './horizontal_alignment';
@@ -113,6 +124,7 @@ export * from './int_property';
113
124
  export * from './line_format_brush';
114
125
  export * from './line_style_update';
115
126
  export * from './link_info';
127
+ export * from './may_modify_block_params';
116
128
  export * from './merge_cell';
117
129
  export * from './merge_cells';
118
130
  export * from './modify_policy';
@@ -128,6 +140,7 @@ export * from './msg_sequencer_init_workbook';
128
140
  export * from './msg_sequencer_message';
129
141
  export * from './msg_user_message';
130
142
  export * from './normal_cell_id';
143
+ export * from './of_pie_split_update';
131
144
  export * from './pattern_fill';
132
145
  export * from './payloads_action';
133
146
  export * from './random_schema_unit';
@@ -203,6 +216,8 @@ export * from './rpc_toggle_status_params';
203
216
  export * from './rpc_transaction';
204
217
  export * from './rpc_workbook_methods';
205
218
  export * from './save_file_result';
219
+ export * from './set_block_description';
220
+ export * from './set_block_permissions';
206
221
  export * from './set_cell_image';
207
222
  export * from './set_col_width';
208
223
  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,7 +67,12 @@ __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);
67
77
  __exportStar(require("./checkpoint_meta"), exports);
68
78
  __exportStar(require("./col_info"), exports);
@@ -119,6 +129,7 @@ __exportStar(require("./font_name"), exports);
119
129
  __exportStar(require("./font_scheme"), exports);
120
130
  __exportStar(require("./font_size"), exports);
121
131
  __exportStar(require("./formula_display_info"), exports);
132
+ __exportStar(require("./get_block_modify_info_params"), exports);
122
133
  __exportStar(require("./gradient_fill"), exports);
123
134
  __exportStar(require("./gradient_stop"), exports);
124
135
  __exportStar(require("./horizontal_alignment"), exports);
@@ -130,6 +141,7 @@ __exportStar(require("./int_property"), exports);
130
141
  __exportStar(require("./line_format_brush"), exports);
131
142
  __exportStar(require("./line_style_update"), exports);
132
143
  __exportStar(require("./link_info"), exports);
144
+ __exportStar(require("./may_modify_block_params"), exports);
133
145
  __exportStar(require("./merge_cell"), exports);
134
146
  __exportStar(require("./merge_cells"), exports);
135
147
  __exportStar(require("./modify_policy"), exports);
@@ -145,6 +157,7 @@ __exportStar(require("./msg_sequencer_init_workbook"), exports);
145
157
  __exportStar(require("./msg_sequencer_message"), exports);
146
158
  __exportStar(require("./msg_user_message"), exports);
147
159
  __exportStar(require("./normal_cell_id"), exports);
160
+ __exportStar(require("./of_pie_split_update"), exports);
148
161
  __exportStar(require("./pattern_fill"), exports);
149
162
  __exportStar(require("./payloads_action"), exports);
150
163
  __exportStar(require("./random_schema_unit"), exports);
@@ -220,6 +233,8 @@ __exportStar(require("./rpc_toggle_status_params"), exports);
220
233
  __exportStar(require("./rpc_transaction"), exports);
221
234
  __exportStar(require("./rpc_workbook_methods"), exports);
222
235
  __exportStar(require("./save_file_result"), exports);
236
+ __exportStar(require("./set_block_description"), exports);
237
+ __exportStar(require("./set_block_permissions"), exports);
223
238
  __exportStar(require("./set_cell_image"), exports);
224
239
  __exportStar(require("./set_col_width"), exports);
225
240
  __exportStar(require("./set_row_height"), exports);
@@ -0,0 +1,8 @@
1
+ import { BlockActor } from './block_actor';
2
+ import { BlockOp } from './block_op';
3
+ export interface MayModifyBlockParams {
4
+ sheetIdx: number;
5
+ blockId: number;
6
+ op: BlockOp;
7
+ actor: BlockActor;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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';
@@ -31,6 +32,7 @@ import { GetAvailableBlockIdParams } from './rpc_get_available_block_id_params';
31
32
  import { GetBlockColIdParams } from './rpc_get_block_col_id_params';
32
33
  import { GetBlockDisplayWindowParams } from './rpc_get_block_display_window_params';
33
34
  import { GetBlockInfoParams } from './rpc_get_block_info_params';
35
+ import { GetBlockModifyInfoParams } from './get_block_modify_info_params';
34
36
  import { GetBlockRowIdParams } from './rpc_get_block_row_id_params';
35
37
  import { GetBlockSortOrderParams } from './rpc_get_block_sort_order_params';
36
38
  import { GetBlockValuesParams } from './rpc_get_block_values_params';
@@ -72,6 +74,7 @@ import { HandleTransactionParams } from './rpc_handle_transaction_params';
72
74
  import { LinkInfo } from './link_info';
73
75
  import { LoadWorkbookParams } from './rpc_load_workbook_params';
74
76
  import { LookupAppendixUpwardParams } from './rpc_lookup_appendix_upward_params';
77
+ import { MayModifyBlockParams } from './may_modify_block_params';
75
78
  import { MergeCell } from './merge_cell';
76
79
  import { PredictFillParams } from './rpc_predict_fill_params';
77
80
  import { ReproducibleCell } from './reproducible_cell';
@@ -122,6 +125,8 @@ export interface WorkbookMethods {
122
125
  getBlockColId(params: GetBlockColIdParams, bookId?: number): Promise<number | ErrorMessage>;
123
126
  getBlockValues(params: GetBlockValuesParams, bookId?: number): Promise<readonly string[] | ErrorMessage>;
124
127
  getBlockSortOrder(params: GetBlockSortOrderParams, bookId?: number): Promise<BlockSortOrder | ErrorMessage>;
128
+ mayModifyBlock(params: MayModifyBlockParams, bookId?: number): Promise<boolean | ErrorMessage>;
129
+ getBlockModifyInfo(params: GetBlockModifyInfoParams, bookId?: number): Promise<BlockModifyInfo | ErrorMessage>;
125
130
  getAvailableBlockId(params: GetAvailableBlockIdParams, bookId?: number): Promise<number | ErrorMessage>;
126
131
  getAllBlockFields(bookId?: number): Promise<readonly BlockField[] | ErrorMessage>;
127
132
  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;
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.12.1",
6
+ "version": "1.14.0",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logisheets",
3
- "version": "1.12.1",
3
+ "version": "1.14.0",
4
4
  "description": "Node.js bindings for LogiSheets — a Rust + WebAssembly spreadsheet engine that reads, edits, and writes real .xlsx (Excel) files (formulas, styles, and structure preserved) with no browser required.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
Binary file
package/wasm/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.12.1",
6
+ "version": "1.14.0",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",