@trebco/treb 23.5.1 → 23.6.2
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/package.json +1 -1
- package/treb-bundle.css +2 -2
- package/treb-bundle.mjs +9 -9
- package/treb.d.ts +33 -28
package/treb.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! API v23.
|
|
1
|
+
/*! API v23.6. Copyright 2018-2023 trebco, llc. All rights reserved. LGPL: https://treb.app/license */
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Global instance. In the base script, this object will be created as an
|
|
@@ -193,6 +193,7 @@ export declare class EmbeddedSpreadsheet {
|
|
|
193
193
|
*/
|
|
194
194
|
InsertTable(range?: RangeReference, options?: InsertTableOptions): void;
|
|
195
195
|
RemoveTable(range?: RangeReference): void;
|
|
196
|
+
UpdateTableStyle(range?: RangeReference, theme?: TableTheme | number): void;
|
|
196
197
|
|
|
197
198
|
/**
|
|
198
199
|
* Add a sheet, optionally named.
|
|
@@ -947,6 +948,33 @@ export interface DimensionedQuantity {
|
|
|
947
948
|
unit: string;
|
|
948
949
|
}
|
|
949
950
|
|
|
951
|
+
/**
|
|
952
|
+
* composite styling for tables.
|
|
953
|
+
*
|
|
954
|
+
**/
|
|
955
|
+
export interface TableTheme {
|
|
956
|
+
|
|
957
|
+
/** the first row in a table, showing column titles. */
|
|
958
|
+
header?: Style.Properties;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* odd rows in the table. we count the title row as zero, so
|
|
962
|
+
* the first row in the table containing data is 1, hence odd.
|
|
963
|
+
*/
|
|
964
|
+
odd?: Style.Properties;
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* even rows in the table.
|
|
968
|
+
*/
|
|
969
|
+
even?: Style.Properties;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* styling for the totals row, if included. this will be the last
|
|
973
|
+
* row in the table.
|
|
974
|
+
*/
|
|
975
|
+
total?: Style.Properties;
|
|
976
|
+
}
|
|
977
|
+
|
|
950
978
|
/**
|
|
951
979
|
* type represents a reference passed in to API functions. it can be an
|
|
952
980
|
* address object, or a string.
|
|
@@ -994,6 +1022,7 @@ export interface InsertTableOptions {
|
|
|
994
1022
|
/**
|
|
995
1023
|
* include a totals/summation row. this impacts the layout and styling:
|
|
996
1024
|
* totals row have a unique style and are not included when sorting.
|
|
1025
|
+
* defaults to true.
|
|
997
1026
|
*/
|
|
998
1027
|
totals_row?: boolean;
|
|
999
1028
|
|
|
@@ -1057,33 +1086,6 @@ export interface SelectionEvent {
|
|
|
1057
1086
|
type: 'selection';
|
|
1058
1087
|
}
|
|
1059
1088
|
|
|
1060
|
-
/**
|
|
1061
|
-
* composite styling for tables.
|
|
1062
|
-
*
|
|
1063
|
-
**/
|
|
1064
|
-
export interface TableTheme {
|
|
1065
|
-
|
|
1066
|
-
/** the first row in a table, showing column titles. */
|
|
1067
|
-
header?: Style.Properties;
|
|
1068
|
-
|
|
1069
|
-
/**
|
|
1070
|
-
* odd rows in the table. we count the title row as zero, so
|
|
1071
|
-
* the first row in the table containing data is 1, hence odd.
|
|
1072
|
-
*/
|
|
1073
|
-
odd?: Style.Properties;
|
|
1074
|
-
|
|
1075
|
-
/**
|
|
1076
|
-
* even rows in the table.
|
|
1077
|
-
*/
|
|
1078
|
-
even?: Style.Properties;
|
|
1079
|
-
|
|
1080
|
-
/**
|
|
1081
|
-
* styling for the totals row, if included. this will be the last
|
|
1082
|
-
* row in the table.
|
|
1083
|
-
*/
|
|
1084
|
-
total?: Style.Properties;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
1089
|
/**
|
|
1088
1090
|
* options for exporting CSV/TSV
|
|
1089
1091
|
*/
|
|
@@ -1204,6 +1206,9 @@ export interface EmbeddedSpreadsheetOptions {
|
|
|
1204
1206
|
/** font size in the toolbar */
|
|
1205
1207
|
font_scale?: boolean;
|
|
1206
1208
|
|
|
1209
|
+
/** show insert/remove table button in toolbar */
|
|
1210
|
+
table_button?: boolean;
|
|
1211
|
+
|
|
1207
1212
|
/** chart menu in the toolbar */
|
|
1208
1213
|
chart_menu?: boolean;
|
|
1209
1214
|
|