@mescius/spread-sheets 18.2.1 → 18.2.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.
- package/dist/gc.spread.sheets.all.min.js +2 -2
- package/dist/gc.spread.sheets.d.ts +48 -23
- package/package.json +1 -1
- package/styles/gc.spread.sheets.css +5 -0
- package/styles/gc.spread.sheets.excel2013darkGray.css +5 -0
- package/styles/gc.spread.sheets.excel2013lightGray.css +5 -0
- package/styles/gc.spread.sheets.excel2013white.css +5 -0
- package/styles/gc.spread.sheets.excel2016black.css +5 -0
- package/styles/gc.spread.sheets.excel2016colorful.css +5 -0
- package/styles/gc.spread.sheets.excel2016darkGray.css +5 -0
@@ -25693,23 +25693,30 @@ declare module GC{
|
|
25693
25693
|
*/
|
25694
25694
|
getSparkline(row: number, column: number): GC.Spread.Sheets.Sparklines.Sparkline;
|
25695
25695
|
/**
|
25696
|
-
* Gets the style information for a
|
25697
|
-
*
|
25698
|
-
*
|
25696
|
+
* Gets the style information for a cell, row, column, or the sheet default based on the provided indices.
|
25697
|
+
* Special Index Behavior:
|
25698
|
+
* - When rowIndex is -1 and columnIndex is a valid column index (>= 0), returns the style at the **column level** for the specified column.
|
25699
|
+
* - When columnIndex is -1 and rowIndex is a valid row index (>= 0), returns the style at the **row level** for the specified row.
|
25700
|
+
* - When both rowIndex and columnIndex are -1, returns the **sheet's default style** (not associated with any specific cell, row, or column).
|
25701
|
+
* - When both rowIndex and columnIndex are >= 0 (default case), returns the **cell's style** at the specified (row, column), which is resolved based on the priority: Cell > Row > Column > Default.
|
25702
|
+
* @param {number} row The row index. Use -1 to query column-level or default style.
|
25703
|
+
* @param {number} column The column index. Use -1 to query row-level or default style.
|
25699
25704
|
* @param {GC.Spread.Sheets.SheetArea} [sheetArea] The sheet area. If this parameter is not provided, it defaults to `viewport`.
|
25700
|
-
* @returns {GC.Spread.Sheets.Style}
|
25705
|
+
* @returns {GC.Spread.Sheets.Style} The resolved Style object based on the index combination.
|
25706
|
+
*
|
25701
25707
|
* @example
|
25702
25708
|
* ```javascript
|
25703
|
-
* //
|
25704
|
-
* var
|
25705
|
-
*
|
25706
|
-
*
|
25707
|
-
*
|
25708
|
-
*
|
25709
|
-
*
|
25710
|
-
* activeSheet.
|
25711
|
-
*
|
25712
|
-
*
|
25709
|
+
* // 1. Get the style of a specific cell (original usage)
|
25710
|
+
* var cellStyle = activeSheet.getStyle(1, 1, GC.Spread.Sheets.SheetArea.viewport);
|
25711
|
+
*
|
25712
|
+
* // 2. Get the column-level style for column index 1 (column B)
|
25713
|
+
* var columnStyle = activeSheet.getStyle(-1, 1, GC.Spread.Sheets.SheetArea.viewport);
|
25714
|
+
*
|
25715
|
+
* // 3. Get the row-level style for row index 2 (row 3)
|
25716
|
+
* var rowStyle = activeSheet.getStyle(2, -1, GC.Spread.Sheets.SheetArea.viewport);
|
25717
|
+
*
|
25718
|
+
* // 4. Get the sheet's default style
|
25719
|
+
* var defaultStyle = activeSheet.getStyle(-1, -1, GC.Spread.Sheets.SheetArea.viewport);
|
25713
25720
|
* ```
|
25714
25721
|
*/
|
25715
25722
|
getStyle(row: number, column: number, sheetArea?: GC.Spread.Sheets.SheetArea): GC.Spread.Sheets.Style;
|
@@ -26798,18 +26805,36 @@ declare module GC{
|
|
26798
26805
|
*/
|
26799
26806
|
setSparkline(row: number, col: number, dataRange: GC.Spread.Sheets.Range | string, dataOrientation: GC.Spread.Sheets.Sparklines.DataOrientation, sparklineType: GC.Spread.Sheets.Sparklines.SparklineType, sparklineSetting: GC.Spread.Sheets.Sparklines.SparklineSetting, dateAxisRange?: GC.Spread.Sheets.Range | string, dateAxisOrientation?: GC.Spread.Sheets.Sparklines.DataOrientation): GC.Spread.Sheets.Sparklines.Sparkline;
|
26800
26807
|
/**
|
26801
|
-
* Sets the style information for a
|
26802
|
-
*
|
26803
|
-
*
|
26804
|
-
*
|
26808
|
+
* Sets the style information for a cell, row, column, or the worksheet default based on the provided indices.
|
26809
|
+
*
|
26810
|
+
* Special Index Behavior:
|
26811
|
+
* - When rowIndex is -1 and columnIndex is a valid column index (>= 0), sets the **column-level style** for the specified column.
|
26812
|
+
* - When columnIndex is -1 and rowIndex is a valid row index (>= 0), sets the **row-level style** for the specified row.
|
26813
|
+
* - When both rowIndex and columnIndex are -1, sets the **worksheet's default style** (applies to all cells unless overridden).
|
26814
|
+
* - When both rowIndex and columnIndex are >= 0 (default case), sets the **cell style** for the specified (row, column) in the given sheet area.
|
26815
|
+
*
|
26816
|
+
* @param {number} row The zero-based row index. Use -1 to target column-level or default style.
|
26817
|
+
* @param {number} col The zero-based column index. Use -1 to target row-level or default style.
|
26818
|
+
* @param {GC.Spread.Sheets.Style} value The Style object containing the style properties to apply.
|
26805
26819
|
* @param {GC.Spread.Sheets.SheetArea} [sheetArea] The sheet area. If this parameter is not provided, it defaults to `viewport`.
|
26820
|
+
*
|
26806
26821
|
* @example
|
26807
26822
|
* ```javascript
|
26808
|
-
*
|
26809
|
-
*
|
26810
|
-
* style.
|
26811
|
-
*
|
26812
|
-
*
|
26823
|
+
* var style = new GC.Spread.Sheets.Style();
|
26824
|
+
* style.backColor = "lightgreen";
|
26825
|
+
* sheet.setStyle(1, 1, style, GC.Spread.Sheets.SheetArea.viewport);
|
26826
|
+
* // 2. Set the column-level style for column index 2 (column C)
|
26827
|
+
* var columnStyle = new GC.Spread.Sheets.Style();
|
26828
|
+
* columnStyle.backColor = "yellow";
|
26829
|
+
* sheet.setStyle(-1, 2, columnStyle, GC.Spread.Sheets.SheetArea.viewport);
|
26830
|
+
* // 3. Set the row-level style for row index 3 (row 4)
|
26831
|
+
* var rowStyle = new GC.Spread.Sheets.Style();
|
26832
|
+
* rowStyle.backColor = "lightcoral";
|
26833
|
+
* sheet.setStyle(3, -1, rowStyle, GC.Spread.Sheets.SheetArea.viewport);
|
26834
|
+
* // 4. Set the worksheet's default style
|
26835
|
+
* var defaultStyle = new GC.Spread.Sheets.Style();
|
26836
|
+
* defaultStyle.backColor = "lightblue";
|
26837
|
+
* sheet.setStyle(-1, -1, defaultStyle, GC.Spread.Sheets.SheetArea.viewport);
|
26813
26838
|
* ```
|
26814
26839
|
*/
|
26815
26840
|
setStyle(row: number, col: number, value: GC.Spread.Sheets.Style, sheetArea?: GC.Spread.Sheets.SheetArea): void;
|
package/package.json
CHANGED
@@ -3665,6 +3665,8 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
3665
3665
|
background-color: transparent;
|
3666
3666
|
color: black;
|
3667
3667
|
width: 60px;
|
3668
|
+
padding: 1px 0px;
|
3669
|
+
text-align: center;
|
3668
3670
|
}
|
3669
3671
|
.gc-panel-defer-layout-right-button:disabled {
|
3670
3672
|
color: #c6bfbe;
|
@@ -5431,6 +5433,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
5431
5433
|
.gc-sort-dialog-body > .confirm-class {
|
5432
5434
|
margin-bottom: 2px;
|
5433
5435
|
}
|
5436
|
+
.gc-sort-dialog-body input.selectable-item {
|
5437
|
+
margin-top: 0px;
|
5438
|
+
}
|
5434
5439
|
|
5435
5440
|
.gc-sort-more-options {
|
5436
5441
|
position: absolute;
|
@@ -3705,6 +3705,8 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
3705
3705
|
background-color: #d4d4d4;
|
3706
3706
|
color: black;
|
3707
3707
|
width: 60px;
|
3708
|
+
padding: 1px 0px;
|
3709
|
+
text-align: center;
|
3708
3710
|
}
|
3709
3711
|
.gc-panel-defer-layout-right-button:disabled {
|
3710
3712
|
color: #c6bfbe;
|
@@ -5475,6 +5477,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
5475
5477
|
.gc-sort-dialog-body > .confirm-class {
|
5476
5478
|
margin-bottom: 2px;
|
5477
5479
|
}
|
5480
|
+
.gc-sort-dialog-body input.selectable-item {
|
5481
|
+
margin-top: 0px;
|
5482
|
+
}
|
5478
5483
|
|
5479
5484
|
.gc-sort-more-options {
|
5480
5485
|
position: absolute;
|
@@ -3710,6 +3710,8 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
3710
3710
|
background-color: transparent;
|
3711
3711
|
color: black;
|
3712
3712
|
width: 60px;
|
3713
|
+
padding: 1px 0px;
|
3714
|
+
text-align: center;
|
3713
3715
|
}
|
3714
3716
|
.gc-panel-defer-layout-right-button:disabled {
|
3715
3717
|
color: #c6bfbe;
|
@@ -5480,6 +5482,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
5480
5482
|
.gc-sort-dialog-body > .confirm-class {
|
5481
5483
|
margin-bottom: 2px;
|
5482
5484
|
}
|
5485
|
+
.gc-sort-dialog-body input.selectable-item {
|
5486
|
+
margin-top: 0px;
|
5487
|
+
}
|
5483
5488
|
|
5484
5489
|
.gc-sort-more-options {
|
5485
5490
|
position: absolute;
|
@@ -3697,6 +3697,8 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
3697
3697
|
background-color: white;
|
3698
3698
|
color: black;
|
3699
3699
|
width: 60px;
|
3700
|
+
padding: 1px 0px;
|
3701
|
+
text-align: center;
|
3700
3702
|
}
|
3701
3703
|
.gc-panel-defer-layout-right-button:disabled {
|
3702
3704
|
color: #c6bfbe;
|
@@ -5467,6 +5469,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
5467
5469
|
.gc-sort-dialog-body > .confirm-class {
|
5468
5470
|
margin-bottom: 2px;
|
5469
5471
|
}
|
5472
|
+
.gc-sort-dialog-body input.selectable-item {
|
5473
|
+
margin-top: 0px;
|
5474
|
+
}
|
5470
5475
|
|
5471
5476
|
.gc-sort-more-options {
|
5472
5477
|
position: absolute;
|
@@ -3708,6 +3708,8 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
3708
3708
|
background-color: transparent;
|
3709
3709
|
color: #D7D5CD;
|
3710
3710
|
width: 60px;
|
3711
|
+
padding: 1px 0px;
|
3712
|
+
text-align: center;
|
3711
3713
|
}
|
3712
3714
|
.gc-panel-defer-layout-right-button:disabled {
|
3713
3715
|
color: #575555;
|
@@ -5478,6 +5480,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
5478
5480
|
.gc-sort-dialog-body > .confirm-class {
|
5479
5481
|
margin-bottom: 2px;
|
5480
5482
|
}
|
5483
|
+
.gc-sort-dialog-body input.selectable-item {
|
5484
|
+
margin-top: 0px;
|
5485
|
+
}
|
5481
5486
|
|
5482
5487
|
.gc-sort-more-options {
|
5483
5488
|
position: absolute;
|
@@ -3701,6 +3701,8 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
3701
3701
|
background-color: white;
|
3702
3702
|
color: black;
|
3703
3703
|
width: 60px;
|
3704
|
+
padding: 1px 0px;
|
3705
|
+
text-align: center;
|
3704
3706
|
}
|
3705
3707
|
.gc-panel-defer-layout-right-button:disabled {
|
3706
3708
|
color: #c6bfbe;
|
@@ -5471,6 +5473,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
5471
5473
|
.gc-sort-dialog-body > .confirm-class {
|
5472
5474
|
margin-bottom: 2px;
|
5473
5475
|
}
|
5476
|
+
.gc-sort-dialog-body input.selectable-item {
|
5477
|
+
margin-top: 0px;
|
5478
|
+
}
|
5474
5479
|
|
5475
5480
|
.gc-sort-more-options {
|
5476
5481
|
position: absolute;
|
@@ -3697,6 +3697,8 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
3697
3697
|
background-color: #d4d4d4;
|
3698
3698
|
color: black;
|
3699
3699
|
width: 60px;
|
3700
|
+
padding: 1px 0px;
|
3701
|
+
text-align: center;
|
3700
3702
|
}
|
3701
3703
|
.gc-panel-defer-layout-right-button:disabled {
|
3702
3704
|
color: #a7a1a1;
|
@@ -5467,6 +5469,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
5467
5469
|
.gc-sort-dialog-body > .confirm-class {
|
5468
5470
|
margin-bottom: 2px;
|
5469
5471
|
}
|
5472
|
+
.gc-sort-dialog-body input.selectable-item {
|
5473
|
+
margin-top: 0px;
|
5474
|
+
}
|
5470
5475
|
|
5471
5476
|
.gc-sort-more-options {
|
5472
5477
|
position: absolute;
|