@mescius/spread-sheets 18.0.2 → 18.0.3

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.
@@ -389,6 +389,29 @@ declare module GC{
389
389
  }
390
390
 
391
391
 
392
+ /**
393
+ * @typedef GC.Data.CornerFold
394
+ * @property {number} size - The size of the corner fold.
395
+ * @property {string} position - The corner fold's position, which supports "leftTop", "rightTop", "leftBottom", "rightBottom".
396
+ * @property {string} color - The color of the corner fold.
397
+ */
398
+ export type CornerFold =
399
+ {
400
+ /**
401
+ * The size of the corner fold.
402
+ */
403
+ size?: number;
404
+ /**
405
+ * The corner fold's position, which supports "leftTop", "rightTop", "leftBottom", "rightBottom".
406
+ */
407
+ position?: "leftTop" | "rightTop" | "leftBottom" | "rightBottom";
408
+ /**
409
+ * The color of the corner fold.
410
+ */
411
+ color?: string;
412
+ }
413
+
414
+
392
415
  /**
393
416
  * @typedef GC.Data.DataBarAxisPosition
394
417
  * @type {"automatic"|"cellMidPoint"|"none"}
@@ -666,6 +689,7 @@ declare module GC{
666
689
  /**
667
690
  * @typedef GC.Data.Decoration
668
691
  * @property {GC.Data.Icon[]} icons - The icons of the decoration in the style.
692
+ * @property {GC.Data.CornerFold} cornerFold - The corner fold of the decoration in the style.
669
693
  */
670
694
  export type Decoration =
671
695
  {
@@ -673,6 +697,10 @@ declare module GC{
673
697
  * The icons of the decoration in the style.
674
698
  */
675
699
  icons?: GC.Data.Icon[];
700
+ /**
701
+ * The corner fold of the decoration in the style.
702
+ */
703
+ cornerFold?: GC.Data.CornerFold;
676
704
  }
677
705
 
678
706
 
@@ -1089,6 +1117,7 @@ declare module GC{
1089
1117
  * @property {GC.Data.LabelOptions} labelOptions - The cell label options.
1090
1118
  * @property {boolean} isVerticalText - Whether to set the cell's text vertical.
1091
1119
  * @property {boolean} showEllipsis - Whether the text out of bounds shows ellipsis.
1120
+ * @property {GC.Data.Decoration} decoration - The decoration.
1092
1121
  */
1093
1122
  export type HeaderStyleOptions =
1094
1123
  {
@@ -1200,6 +1229,10 @@ declare module GC{
1200
1229
  * Whether the text out of bounds shows ellipsis.
1201
1230
  */
1202
1231
  showEllipsis?: boolean;
1232
+ /**
1233
+ * The decoration.
1234
+ */
1235
+ decoration?: GC.Data.Decoration;
1203
1236
  }
1204
1237
 
1205
1238
 
@@ -14308,7 +14341,7 @@ declare module GC{
14308
14341
  */
14309
14342
  autoFitType: GC.Spread.Sheets.AutoFitType;
14310
14343
  /**
14311
- * The style for cell and range references in cell formulas on this sheet.
14344
+ * the style for cell and range references in cell formulas on the workbook.
14312
14345
  */
14313
14346
  referenceStyle: GC.Spread.Sheets.ReferenceStyle;
14314
14347
  /**
@@ -16436,8 +16469,8 @@ declare module GC{
16436
16469
  * @enum {number}
16437
16470
  * @example
16438
16471
  * ```
16439
- * //This example sets the reference style for the active sheet.
16440
- * activeSheet.options.referenceStyle = GC.Spread.Sheets.ReferenceStyle.r1c1;
16472
+ * //This example sets the reference style for the workbook.
16473
+ * workbook.options.referenceStyle = GC.Spread.Sheets.ReferenceStyle.r1c1;
16441
16474
  * ```
16442
16475
  */
16443
16476
  export enum ReferenceStyle{
@@ -22592,7 +22625,7 @@ declare module GC{
22592
22625
  * @param {boolean} [options.allowUserEditFormula] - Whether the user can edit formulas in a cell in the spreadsheet.
22593
22626
  * @param {boolean} [options.enableFormulaTextbox] - Whether to enable the formula text box in the spreadsheet.
22594
22627
  * @param {GC.Spread.Sheets.AutoFitType} [options.autoFitType] - Whether content will be formatted to fit in cells or in cells and headers.
22595
- * @param {GC.Spread.Sheets.ReferenceStyle} [options.referenceStyle] - the style for cell and range references in cell formulas on this sheet.
22628
+ * @param {GC.Spread.Sheets.ReferenceStyle} [options.referenceStyle] - the style for cell and range references in cell formulas on the workbook.
22596
22629
  * @param {boolean} [options.calcOnDemand] - Whether to calculate formulas only when they are demanded.
22597
22630
  * @param {boolean} [options.incrementalCalculation] - Whether to incremental calculate formulas without blocking UI.
22598
22631
  * @param {boolean} [options.allowCopyPasteExcelStyle] - Whether the user can copy style from Spread Sheets then paste to Excel, or copy style from Excel then paste to Spread Sheets.
@@ -22714,7 +22747,7 @@ declare module GC{
22714
22747
  * @property {boolean} allowUserEditFormula - Whether the user can edit formulas in a cell in the spreadsheet.
22715
22748
  * @property {boolean} enableFormulaTextbox - Whether to enable the formula text box in the spreadsheet.
22716
22749
  * @property {GC.Spread.Sheets.AutoFitType} autoFitType - Whether content will be formatted to fit in cells or in cells and headers.
22717
- * @property {GC.Spread.Sheets.ReferenceStyle} referenceStyle - the style for cell and range references in cell formulas on this sheet.
22750
+ * @property {GC.Spread.Sheets.ReferenceStyle} referenceStyle - the style for cell and range references in cell formulas on the workbook.
22718
22751
  * @property {boolean} allowDynamicArray - Whether to enable dynamic array.
22719
22752
  * @property {boolean} iterativeCalculation - Whether to enable the iterative calculation.
22720
22753
  * @property {number} iterativeCalculationMaximumIterations - The Maximum Iterations when iterative calculation.
@@ -32534,6 +32567,162 @@ declare module GC{
32534
32567
  * ```
32535
32568
  */
32536
32569
  var renameSheet: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, name: string}, isUndo: boolean): any};
32570
+ /**
32571
+ * Represents the command used to change the report chart preview visible in reportSheet cell binding chart.
32572
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32573
+ * @property {function} execute - performs an execute or undo operation.
32574
+ * The arguments of the execute method are as follows.
32575
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32576
+ * @param {Object} options The options of the operation.
32577
+ * @param {string} options.sheetName The sheet name.
32578
+ * @param {number} options.row The data chart row number.
32579
+ * @param {number} options.col The data chart column number.
32580
+ * @param {boolean} options.visible The data chart visible.
32581
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32582
+ * @example
32583
+ * ```
32584
+ * // change the data chart preview visible in reportSheet while in Design mode with invoking command.
32585
+ * spread.commandManager().execute({cmd: "ReportChartPreviewVisible", sheetName: "Report1", row: 1, col: 1, visible: true});
32586
+ * ```
32587
+ */
32588
+ var ReportChartPreviewVisible: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, row: number, col: number, visible: boolean}, isUndo: boolean): boolean};
32589
+ /**
32590
+ * Represents the command used to toggle one collapse button in reportSheet.
32591
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32592
+ * @property {function} execute - performs an execute or undo operation.
32593
+ * The arguments of the execute method are as follows.
32594
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32595
+ * @param {Object} options The options of the operation.
32596
+ * @param {string} options.sheetName The sheet name.
32597
+ * @param {number} options.row The collapse button row.
32598
+ * @param {number} options.col The collapse button col.
32599
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32600
+ * @example
32601
+ * ```
32602
+ * // toggle one collapse button with invoking command.
32603
+ * spread.commandManager().execute({cmd: "ReportCollapseButtonToggle", sheetName: "Report1", row: 1, col: 1});
32604
+ * ```
32605
+ */
32606
+ var ReportCollapseButtonToggle: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, row: number, col: number}, isUndo: boolean): boolean};
32607
+ /**
32608
+ * Represents the command used to add record in reportSheet.
32609
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32610
+ * @property {function} execute - performs an execute or undo operation.
32611
+ * The arguments of the execute method are as follows.
32612
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32613
+ * @param {Object} options The options of the operation.
32614
+ * @param {string} options.sheetName The sheet name.
32615
+ * @param {number} options.activeRow The add record active row number.
32616
+ * @param {number} options.activeCol The add record active column number.
32617
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32618
+ * @example
32619
+ * ```
32620
+ * // add record in reportSheet while in DataEntry mode with invoking command.
32621
+ * spread.commandManager().execute({cmd: "reportSheetAddRecord", sheetName: "Report1", activeRow: 1, activeCol: 1});
32622
+ * ```
32623
+ */
32624
+ var reportSheetAddRecord: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, activeRow: number, activeCol: number}, isUndo: boolean): boolean};
32625
+ /**
32626
+ * Represents the command used to collapse all collapse button in reportSheet.
32627
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32628
+ * @property {function} execute - performs an execute or undo operation.
32629
+ * The arguments of the execute method are as follows.
32630
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32631
+ * @param {Object} options The options of the operation.
32632
+ * @param {string} options.sheetName The sheet name.
32633
+ * @param {GC.Spread.Sheets.Range[]} options.selections The collapse button selections.
32634
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32635
+ * @example
32636
+ * ```
32637
+ * // collapse all collapse button while in DataEntry mode with invoking command.
32638
+ * spread.commandManager().execute({cmd: "reportSheetCollapseAll", sheetName: "Report1", selections: [new GC.Spread.Sheets.Range(1, 1, 1, 1)]});
32639
+ * ```
32640
+ */
32641
+ var reportSheetCollapseAll: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, selections: GC.Spread.Sheets.Range[]}, isUndo: boolean): boolean};
32642
+ /**
32643
+ * Represents the command used to delete record in reportSheet.
32644
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32645
+ * @property {function} execute - performs an execute or undo operation.
32646
+ * The arguments of the execute method are as follows.
32647
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32648
+ * @param {Object} options The options of the operation.
32649
+ * @param {string} options.sheetName The sheet name.
32650
+ * @param {number} options.activeRow The deleted record active row number.
32651
+ * @param {number} options.activeCol The deleted record active column number.
32652
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32653
+ * @example
32654
+ * ```
32655
+ * // delete record in reportSheet while in DataEntry mode with invoking command.
32656
+ * spread.commandManager().execute({cmd: "reportSheetDeleteRecord", sheetName: "Report1", activeRow: 2, activeCol: 1});
32657
+ * ```
32658
+ */
32659
+ var reportSheetDeleteRecord: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, activeRow: number, activeCol: number}, isUndo: boolean): boolean};
32660
+ /**
32661
+ * Represents the command used to expand all collapse button in reportSheet.
32662
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32663
+ * @property {function} execute - performs an execute or undo operation.
32664
+ * The arguments of the execute method are as follows.
32665
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32666
+ * @param {Object} options The options of the operation.
32667
+ * @param {string} options.sheetName The sheet name.
32668
+ * @param {GC.Spread.Sheets.Range[]} options.selections The collapse button selections.
32669
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32670
+ * @example
32671
+ * ```
32672
+ * // expand all collapse button while in DataEntry mode with invoking command.
32673
+ * spread.commandManager().execute({cmd: "reportSheetExpandAll", sheetName: "Report1", selections: [new GC.Spread.Sheets.Range(1, 1, 1, 1)]});
32674
+ * ```
32675
+ */
32676
+ var reportSheetExpandAll: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, selections: GC.Spread.Sheets.Range[]}, isUndo: boolean): boolean};
32677
+ /**
32678
+ * Represents the command used to regenerate reportSheet.
32679
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32680
+ * @property {function} execute - performs an execute or undo operation.
32681
+ * The arguments of the execute method are as follows.
32682
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32683
+ * @param {Object} options The options of the operation.
32684
+ * @param {string} options.sheetName The sheet name.
32685
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32686
+ * @example
32687
+ * ```
32688
+ * // regenerate reportSheet with invoking command.
32689
+ * spread.commandManager().execute({cmd: "reportSheetRegenerateReport", sheetName: "Report1"});
32690
+ * ```
32691
+ */
32692
+ var reportSheetRegenerateReport: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string}, isUndo: boolean): boolean};
32693
+ /**
32694
+ * Represents the command used to reset all selected cells value in reportSheet.
32695
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32696
+ * @property {function} execute - performs an execute or undo operation.
32697
+ * The arguments of the execute method are as follows.
32698
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32699
+ * @param {Object} options The options of the operation.
32700
+ * @param {string} options.sheetName The sheet name.
32701
+ * @param {GC.Spread.Sheets.Range[]} options.selections The reset value selections.
32702
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32703
+ * @example
32704
+ * ```
32705
+ * // reset all selected cells value while in DataEntry mode with invoking command.
32706
+ * spread.commandManager().execute({cmd: "reportSheetResetCellValue", sheetName: "Report1", selections: [new GC.Spread.Sheets.Range(1, 1, 1, 1)]});
32707
+ * ```
32708
+ */
32709
+ var reportSheetResetCellValue: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string, selections: GC.Spread.Sheets.Range[]}, isUndo: boolean): boolean};
32710
+ /**
32711
+ * Represents the command used to submit the data entry changes in reportSheet.
32712
+ * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
32713
+ * @property {function} execute - performs an execute or undo operation.
32714
+ * The arguments of the execute method are as follows.
32715
+ * @param {GC.Spread.Sheets.Workbook} context The context of the operation.
32716
+ * @param {Object} options The options of the operation.
32717
+ * @param {string} options.sheetName The sheet name.
32718
+ * @param {boolean} isUndo `true` if this is an undo operation; otherwise, `false`.
32719
+ * @example
32720
+ * ```
32721
+ * // submit the data entry changes with invoking command.
32722
+ * spread.commandManager().execute({cmd: "reportSheetSubmit", sheetName: "Report1"});
32723
+ * ```
32724
+ */
32725
+ var reportSheetSubmit: { canUndo: boolean, execute(context: GC.Spread.Sheets.Workbook, options: {sheetName: string}, isUndo: boolean): boolean};
32537
32726
  /**
32538
32727
  * Represents the command used to resize the column on a worksheet.
32539
32728
  * @property {boolean} canUndo - indicates whether the command supports undo and redo operations.
@@ -38634,7 +38823,7 @@ declare module GC{
38634
38823
  }
38635
38824
 
38636
38825
  /**
38637
- * Specifies the datachart plot Orientation.
38826
+ * Specifies the datachart plot ValueOptionType.
38638
38827
  * @enum {string}
38639
38828
  */
38640
38829
  export enum ValueOptionType{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mescius/spread-sheets",
3
- "version": "18.0.2",
3
+ "version": "18.0.3",
4
4
  "main": "index.js",
5
5
  "description":"A Complete Microsoft Excel-like JavaScript Spreadsheet for Enterprise Applications",
6
6
  "scripts": {},