@mescius/spread-sheets 18.2.2 → 18.2.4
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 +17 -0
- package/styles/gc.spread.sheets.excel2013darkGray.css +14 -0
- package/styles/gc.spread.sheets.excel2013lightGray.css +14 -0
- package/styles/gc.spread.sheets.excel2013white.css +14 -0
- package/styles/gc.spread.sheets.excel2016black.css +14 -0
- package/styles/gc.spread.sheets.excel2016colorful.css +14 -0
- package/styles/gc.spread.sheets.excel2016darkGray.css +14 -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
|
@@ -1288,6 +1288,17 @@ div.gc-search-outer-div input::-ms-clear {
|
|
|
1288
1288
|
white-space: pre;
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
|
+
.gc-ui-contextmenu-sheet-tab-text {
|
|
1292
|
+
display: inline-block;
|
|
1293
|
+
box-sizing: border-box;
|
|
1294
|
+
width: 164px;
|
|
1295
|
+
padding-left: 0;
|
|
1296
|
+
padding-right: 2px;
|
|
1297
|
+
white-space: nowrap;
|
|
1298
|
+
overflow: hidden;
|
|
1299
|
+
text-overflow: ellipsis;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1291
1302
|
.gc-ui-contextmenu-disable {
|
|
1292
1303
|
color: #b1b1b1 !important;
|
|
1293
1304
|
}
|
|
@@ -2034,6 +2045,9 @@ input.gc-checkbox-cell-type-input[type=checkbox]:after {
|
|
|
2034
2045
|
font-size: 12px;
|
|
2035
2046
|
padding: 1px 4px;
|
|
2036
2047
|
border: 1px solid #000;
|
|
2048
|
+
overflow: hidden;
|
|
2049
|
+
text-overflow: ellipsis;
|
|
2050
|
+
white-space: nowrap;
|
|
2037
2051
|
}
|
|
2038
2052
|
.gc-sjs-paste-special-dialog-container .gc-sjs-paste-special-dialog-content .gc-sjs-transform-formula-editor-input:focus-visible {
|
|
2039
2053
|
border-width: 1px;
|
|
@@ -7710,6 +7724,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div {
|
|
|
7710
7724
|
.gc-ui-none-icon-contextmenu-container .gc-ui-contextmenu-icon {
|
|
7711
7725
|
margin-right: 12px;
|
|
7712
7726
|
}
|
|
7727
|
+
.gc-ui-none-icon-contextmenu-container .gc-ui-contextmenu-sheet-tab-text {
|
|
7728
|
+
width: 152px;
|
|
7729
|
+
}
|
|
7713
7730
|
|
|
7714
7731
|
.gc-ui-contextmenu-search-label {
|
|
7715
7732
|
margin-left: 30px;
|
|
@@ -1329,6 +1329,17 @@ div.gc-search-outer-div input::-ms-clear {
|
|
|
1329
1329
|
white-space: pre;
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
+
.gc-ui-contextmenu-sheet-tab-text {
|
|
1333
|
+
display: inline-block;
|
|
1334
|
+
box-sizing: border-box;
|
|
1335
|
+
width: 164px;
|
|
1336
|
+
padding-left: 0;
|
|
1337
|
+
padding-right: 2px;
|
|
1338
|
+
white-space: nowrap;
|
|
1339
|
+
overflow: hidden;
|
|
1340
|
+
text-overflow: ellipsis;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1332
1343
|
.gc-ui-contextmenu-disable {
|
|
1333
1344
|
color: #b1b1b1 !important;
|
|
1334
1345
|
}
|
|
@@ -2074,6 +2085,9 @@ input.gc-checkbox-cell-type-input[type=checkbox]:after {
|
|
|
2074
2085
|
font-size: 12px;
|
|
2075
2086
|
padding: 1px 4px;
|
|
2076
2087
|
border: 1px solid #000;
|
|
2088
|
+
overflow: hidden;
|
|
2089
|
+
text-overflow: ellipsis;
|
|
2090
|
+
white-space: nowrap;
|
|
2077
2091
|
}
|
|
2078
2092
|
.gc-sjs-paste-special-dialog-container .gc-sjs-paste-special-dialog-content .gc-sjs-transform-formula-editor-input:focus-visible {
|
|
2079
2093
|
border-width: 1px;
|
|
@@ -1329,6 +1329,17 @@ div.gc-search-outer-div input::-ms-clear {
|
|
|
1329
1329
|
white-space: pre;
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
+
.gc-ui-contextmenu-sheet-tab-text {
|
|
1333
|
+
display: inline-block;
|
|
1334
|
+
box-sizing: border-box;
|
|
1335
|
+
width: 164px;
|
|
1336
|
+
padding-left: 0;
|
|
1337
|
+
padding-right: 2px;
|
|
1338
|
+
white-space: nowrap;
|
|
1339
|
+
overflow: hidden;
|
|
1340
|
+
text-overflow: ellipsis;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1332
1343
|
.gc-ui-contextmenu-disable {
|
|
1333
1344
|
color: #b1b1b1 !important;
|
|
1334
1345
|
}
|
|
@@ -2079,6 +2090,9 @@ input.gc-checkbox-cell-type-input[type=checkbox]:after {
|
|
|
2079
2090
|
font-size: 12px;
|
|
2080
2091
|
padding: 1px 4px;
|
|
2081
2092
|
border: 1px solid #000;
|
|
2093
|
+
overflow: hidden;
|
|
2094
|
+
text-overflow: ellipsis;
|
|
2095
|
+
white-space: nowrap;
|
|
2082
2096
|
}
|
|
2083
2097
|
.gc-sjs-paste-special-dialog-container .gc-sjs-paste-special-dialog-content .gc-sjs-transform-formula-editor-input:focus-visible {
|
|
2084
2098
|
border-width: 1px;
|
|
@@ -1320,6 +1320,17 @@ div.gc-search-outer-div input::-ms-clear {
|
|
|
1320
1320
|
white-space: pre;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
.gc-ui-contextmenu-sheet-tab-text {
|
|
1324
|
+
display: inline-block;
|
|
1325
|
+
box-sizing: border-box;
|
|
1326
|
+
width: 164px;
|
|
1327
|
+
padding-left: 0;
|
|
1328
|
+
padding-right: 2px;
|
|
1329
|
+
white-space: nowrap;
|
|
1330
|
+
overflow: hidden;
|
|
1331
|
+
text-overflow: ellipsis;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1323
1334
|
.gc-ui-contextmenu-disable {
|
|
1324
1335
|
color: #b1b1b1 !important;
|
|
1325
1336
|
}
|
|
@@ -2066,6 +2077,9 @@ input.gc-checkbox-cell-type-input[type=checkbox]:after {
|
|
|
2066
2077
|
font-size: 12px;
|
|
2067
2078
|
padding: 1px 4px;
|
|
2068
2079
|
border: 1px solid #000;
|
|
2080
|
+
overflow: hidden;
|
|
2081
|
+
text-overflow: ellipsis;
|
|
2082
|
+
white-space: nowrap;
|
|
2069
2083
|
}
|
|
2070
2084
|
.gc-sjs-paste-special-dialog-container .gc-sjs-paste-special-dialog-content .gc-sjs-transform-formula-editor-input:focus-visible {
|
|
2071
2085
|
border-width: 1px;
|
|
@@ -1331,6 +1331,17 @@ div.gc-search-outer-div input::-ms-clear {
|
|
|
1331
1331
|
white-space: pre;
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
|
+
.gc-ui-contextmenu-sheet-tab-text {
|
|
1335
|
+
display: inline-block;
|
|
1336
|
+
box-sizing: border-box;
|
|
1337
|
+
width: 164px;
|
|
1338
|
+
padding-left: 0;
|
|
1339
|
+
padding-right: 2px;
|
|
1340
|
+
white-space: nowrap;
|
|
1341
|
+
overflow: hidden;
|
|
1342
|
+
text-overflow: ellipsis;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1334
1345
|
.gc-ui-contextmenu-disable {
|
|
1335
1346
|
color: #b1b1b1 !important;
|
|
1336
1347
|
}
|
|
@@ -2077,6 +2088,9 @@ input.gc-checkbox-cell-type-input[type=checkbox]:after {
|
|
|
2077
2088
|
font-size: 12px;
|
|
2078
2089
|
padding: 1px 4px;
|
|
2079
2090
|
border: 1px solid #000;
|
|
2091
|
+
overflow: hidden;
|
|
2092
|
+
text-overflow: ellipsis;
|
|
2093
|
+
white-space: nowrap;
|
|
2080
2094
|
}
|
|
2081
2095
|
.gc-sjs-paste-special-dialog-container .gc-sjs-paste-special-dialog-content .gc-sjs-transform-formula-editor-input:focus-visible {
|
|
2082
2096
|
border-width: 1px;
|
|
@@ -1325,6 +1325,17 @@ div.gc-search-outer-div input::-ms-clear {
|
|
|
1325
1325
|
white-space: pre;
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
|
+
.gc-ui-contextmenu-sheet-tab-text {
|
|
1329
|
+
display: inline-block;
|
|
1330
|
+
box-sizing: border-box;
|
|
1331
|
+
width: 164px;
|
|
1332
|
+
padding-left: 0;
|
|
1333
|
+
padding-right: 2px;
|
|
1334
|
+
white-space: nowrap;
|
|
1335
|
+
overflow: hidden;
|
|
1336
|
+
text-overflow: ellipsis;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1328
1339
|
.gc-ui-contextmenu-disable {
|
|
1329
1340
|
color: #b1b1b1 !important;
|
|
1330
1341
|
}
|
|
@@ -2070,6 +2081,9 @@ input.gc-checkbox-cell-type-input[type=checkbox]:after {
|
|
|
2070
2081
|
font-size: 12px;
|
|
2071
2082
|
padding: 1px 4px;
|
|
2072
2083
|
border: 1px solid #000;
|
|
2084
|
+
overflow: hidden;
|
|
2085
|
+
text-overflow: ellipsis;
|
|
2086
|
+
white-space: nowrap;
|
|
2073
2087
|
}
|
|
2074
2088
|
.gc-sjs-paste-special-dialog-container .gc-sjs-paste-special-dialog-content .gc-sjs-transform-formula-editor-input:focus-visible {
|
|
2075
2089
|
border-width: 1px;
|
|
@@ -1321,6 +1321,17 @@ div.gc-search-outer-div input::-ms-clear {
|
|
|
1321
1321
|
white-space: pre;
|
|
1322
1322
|
}
|
|
1323
1323
|
|
|
1324
|
+
.gc-ui-contextmenu-sheet-tab-text {
|
|
1325
|
+
display: inline-block;
|
|
1326
|
+
box-sizing: border-box;
|
|
1327
|
+
width: 164px;
|
|
1328
|
+
padding-left: 0;
|
|
1329
|
+
padding-right: 2px;
|
|
1330
|
+
white-space: nowrap;
|
|
1331
|
+
overflow: hidden;
|
|
1332
|
+
text-overflow: ellipsis;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1324
1335
|
.gc-ui-contextmenu-disable {
|
|
1325
1336
|
color: #b1b1b1 !important;
|
|
1326
1337
|
}
|
|
@@ -2066,6 +2077,9 @@ input.gc-checkbox-cell-type-input[type=checkbox]:after {
|
|
|
2066
2077
|
font-size: 12px;
|
|
2067
2078
|
padding: 1px 4px;
|
|
2068
2079
|
border: 1px solid #000;
|
|
2080
|
+
overflow: hidden;
|
|
2081
|
+
text-overflow: ellipsis;
|
|
2082
|
+
white-space: nowrap;
|
|
2069
2083
|
}
|
|
2070
2084
|
.gc-sjs-paste-special-dialog-container .gc-sjs-paste-special-dialog-content .gc-sjs-transform-formula-editor-input:focus-visible {
|
|
2071
2085
|
border-width: 1px;
|