@trebco/treb 23.4.0 → 23.6.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.
- package/package.json +1 -1
- package/treb-bundle.css +2 -2478
- package/treb-bundle.mjs +15 -28215
- package/treb.d.ts +39 -1
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
|
|
|
@@ -1001,6 +1030,12 @@ export interface InsertTableOptions {
|
|
|
1001
1030
|
* show a sort button in table headers. defaults to true.
|
|
1002
1031
|
*/
|
|
1003
1032
|
sortable?: boolean;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* base theme color, or a set of styles for the table. useful values for
|
|
1036
|
+
* theme color are accent colors 4 (the default), 5, 7 and 9.
|
|
1037
|
+
*/
|
|
1038
|
+
theme?: number | TableTheme;
|
|
1004
1039
|
}
|
|
1005
1040
|
export interface ResizeEvent {
|
|
1006
1041
|
type: 'resize';
|
|
@@ -1171,6 +1206,9 @@ export interface EmbeddedSpreadsheetOptions {
|
|
|
1171
1206
|
/** font size in the toolbar */
|
|
1172
1207
|
font_scale?: boolean;
|
|
1173
1208
|
|
|
1209
|
+
/** show insert/remove table button in toolbar */
|
|
1210
|
+
table_button?: boolean;
|
|
1211
|
+
|
|
1174
1212
|
/** chart menu in the toolbar */
|
|
1175
1213
|
chart_menu?: boolean;
|
|
1176
1214
|
|