@trebco/treb 25.6.4 → 25.7.1
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/treb-spreadsheet.mjs +5 -5
- package/dist/treb.d.ts +8 -3
- package/package.json +2 -2
- package/treb-embed/src/custom-element/spreadsheet-constructor.ts +1 -1
- package/treb-embed/src/embedded-spreadsheet.ts +1 -1
- package/treb-embed/src/options.ts +8 -3
- package/treb-embed/style/dark-theme.scss +22 -4
- package/treb-embed/style/layout.scss +7 -0
- package/treb-grid/src/types/grid_options.ts +23 -23
package/dist/treb.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! API v25.
|
|
1
|
+
/*! API v25.7. Copyright 2018-2023 trebco, llc. All rights reserved. LGPL: https://treb.app/license */
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* add our tag to the map
|
|
@@ -112,10 +112,15 @@ export interface EmbeddedSpreadsheetOptions {
|
|
|
112
112
|
/** show tab bar (multi sheet) */
|
|
113
113
|
tab_bar?: boolean | 'auto';
|
|
114
114
|
|
|
115
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* allow add/delete tab
|
|
117
|
+
*/
|
|
116
118
|
add_tab?: boolean;
|
|
117
119
|
|
|
118
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* show delete tab
|
|
122
|
+
* @deprecated - implied by add_tab
|
|
123
|
+
*/
|
|
119
124
|
delete_tab?: boolean;
|
|
120
125
|
|
|
121
126
|
/** set a reference in global (self) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trebco/treb",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.7.1",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"homepage": "https://treb.app",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@typescript-eslint/eslint-plugin": "^5.30.4",
|
|
17
17
|
"@typescript-eslint/parser": "^5.30.4",
|
|
18
18
|
"archiver": "^5.3.0",
|
|
19
|
-
"cssnano": "^
|
|
19
|
+
"cssnano": "^6.0.0",
|
|
20
20
|
"esbuild": "^0.17.11",
|
|
21
21
|
"eslint": "^8.19.0",
|
|
22
22
|
"fast-xml-parser": "^4.0.7",
|
|
@@ -423,7 +423,7 @@ export class SpreadsheetConstructor {
|
|
|
423
423
|
// add-tab and delete-tab will still work for the menu
|
|
424
424
|
|
|
425
425
|
'add-tab': !!sheet.options.add_tab,
|
|
426
|
-
'delete-tab': !!sheet.options.delete_tab,
|
|
426
|
+
'delete-tab': (!!sheet.options.delete_tab || !!sheet.options.add_tab),
|
|
427
427
|
|
|
428
428
|
// we actually don't want to remove stats if it's not in use, because
|
|
429
429
|
// we need it for layout
|
|
@@ -571,7 +571,7 @@ export class EmbeddedSpreadsheet {
|
|
|
571
571
|
expand_formula_button: this.options.expand_formula_button,
|
|
572
572
|
tab_bar: this.options.tab_bar,
|
|
573
573
|
add_tab: this.options.add_tab,
|
|
574
|
-
delete_tab: this.options.delete_tab,
|
|
574
|
+
// delete_tab: this.options.delete_tab,
|
|
575
575
|
expand: this.options.expand,
|
|
576
576
|
|
|
577
577
|
};
|
|
@@ -132,10 +132,15 @@ export interface EmbeddedSpreadsheetOptions {
|
|
|
132
132
|
/** show tab bar (multi sheet) */
|
|
133
133
|
tab_bar?: boolean|'auto';
|
|
134
134
|
|
|
135
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* allow add/delete tab
|
|
137
|
+
*/
|
|
136
138
|
add_tab?: boolean;
|
|
137
139
|
|
|
138
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* show delete tab
|
|
142
|
+
* @deprecated - implied by add_tab
|
|
143
|
+
*/
|
|
139
144
|
delete_tab?: boolean;
|
|
140
145
|
|
|
141
146
|
/** set a reference in global (self) */
|
|
@@ -287,7 +292,7 @@ export const DefaultOptions: EmbeddedSpreadsheetOptions = {
|
|
|
287
292
|
dnd: false,
|
|
288
293
|
add_tab: false,
|
|
289
294
|
expand_formula_button: false,
|
|
290
|
-
delete_tab: false,
|
|
295
|
+
// delete_tab: false,
|
|
291
296
|
|
|
292
297
|
// changing default value for expand -> false, it might be
|
|
293
298
|
// useful to disable it but the common expectation is that
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
--treb-chart-grid-color: #976;
|
|
36
36
|
--treb-chart-text-color: #fff;
|
|
37
37
|
--treb-dialog-background: #000;
|
|
38
|
-
--treb-dialog-border-color: #fff;
|
|
39
38
|
--treb-dialog-color: #fff;
|
|
40
39
|
--treb-dropdown-background: #000;
|
|
41
40
|
--treb-dropdown-border-color: #fff;
|
|
@@ -51,14 +50,14 @@
|
|
|
51
50
|
--treb-grid-header-background: #444;
|
|
52
51
|
--treb-grid-header-grid-color: #000;
|
|
53
52
|
--treb-note-background: #333;
|
|
54
|
-
--treb-note-border-color: #
|
|
53
|
+
--treb-note-border-color: #aaa;
|
|
55
54
|
--treb-note-color: #fff;
|
|
56
55
|
--treb-note-marker-color: pink;
|
|
57
56
|
--treb-resize-tooltip-background: #fff;
|
|
58
57
|
--treb-resize-tooltip-color: #000;
|
|
59
58
|
--treb-scale-slider-accent-color: #fff;
|
|
60
59
|
--treb-scale-slider-background: #333;
|
|
61
|
-
--treb-scale-slider-border-color: #
|
|
60
|
+
--treb-scale-slider-border-color: #aaa;
|
|
62
61
|
--treb-selection-color: yellow;
|
|
63
62
|
--treb-selection-fill-opacity: .2;
|
|
64
63
|
--treb-sidebar-button-background: #000;
|
|
@@ -72,7 +71,6 @@
|
|
|
72
71
|
--treb-toolbar-active-button-background: #555;
|
|
73
72
|
--treb-toolbar-button-background: #000;
|
|
74
73
|
--treb-toolbar-hover-button-background: #444;
|
|
75
|
-
--treb-ui-border-color: #666;
|
|
76
74
|
--treb-ui-color: #fff;
|
|
77
75
|
--treb-table-header-background: #334; // DarkSlateGray;
|
|
78
76
|
--treb-table-odd-background: #122;
|
|
@@ -92,6 +90,26 @@
|
|
|
92
90
|
--treb-resize-handle-color: lightblue;
|
|
93
91
|
--treb-resize-frame-color: lightblue;
|
|
94
92
|
--treb-formula-bar-locked-background: #234;
|
|
93
|
+
|
|
94
|
+
// updates
|
|
95
|
+
|
|
96
|
+
--treb-grid-background: rgb(30,30,30);
|
|
97
|
+
--treb-grid-header-background: rgb(86,86,86);
|
|
98
|
+
--treb-grid-header-color: rgb(221,221,221);
|
|
99
|
+
--treb-tab-bar-active-tab-background: field;
|
|
100
|
+
--treb-tab-bar-tab-background: transparent;
|
|
101
|
+
--treb-tab-bar-tab-border-color: #444;
|
|
102
|
+
--treb-ui-border-color: #aaa;
|
|
103
|
+
|
|
104
|
+
// we should split toolbar buttons and menus
|
|
105
|
+
|
|
106
|
+
--treb-toolbar-button-background: rgb(86,86,86);
|
|
107
|
+
--treb-toolbar-button-background: rgb(33,33,33);
|
|
108
|
+
--treb-toolbar-border-color: rgb(67,67,67);
|
|
109
|
+
|
|
110
|
+
--treb-toolbar-color: rgb(221,221,221);
|
|
111
|
+
|
|
112
|
+
|
|
95
113
|
}
|
|
96
114
|
|
|
97
115
|
.treb-dark-theme {
|
|
@@ -53,6 +53,11 @@
|
|
|
53
53
|
|
|
54
54
|
text-align: start;
|
|
55
55
|
|
|
56
|
+
// set a default font, as well. we used to inherit but that
|
|
57
|
+
// does not necessarily make sense.
|
|
58
|
+
|
|
59
|
+
font-family: var(--treb-default-font, system-ui, $font-stack);
|
|
60
|
+
|
|
56
61
|
div, button, input, ul, ol, li, a, textarea {
|
|
57
62
|
|
|
58
63
|
// maybe this is being too aggressive. we could be a little
|
|
@@ -60,7 +65,9 @@
|
|
|
60
65
|
// unexpected side effects.
|
|
61
66
|
|
|
62
67
|
all: revert;
|
|
68
|
+
|
|
63
69
|
box-sizing: border-box;
|
|
70
|
+
font-family: var(--treb-default-font, system-ui, $font-stack);
|
|
64
71
|
|
|
65
72
|
}
|
|
66
73
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of TREB.
|
|
3
|
-
*
|
|
4
|
-
* TREB is free software: you can redistribute it and/or modify it under the
|
|
5
|
-
* terms of the GNU General Public License as published by the Free Software
|
|
6
|
-
* Foundation, either version 3 of the License, or (at your option) any
|
|
7
|
-
* later version.
|
|
8
|
-
*
|
|
9
|
-
* TREB is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
10
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
11
|
-
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
12
|
-
* details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU General Public License along
|
|
15
|
-
* with TREB. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
-
*
|
|
17
|
-
* Copyright 2022-2023 trebco, llc.
|
|
18
|
-
* info@treb.app
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of TREB.
|
|
3
|
+
*
|
|
4
|
+
* TREB is free software: you can redistribute it and/or modify it under the
|
|
5
|
+
* terms of the GNU General Public License as published by the Free Software
|
|
6
|
+
* Foundation, either version 3 of the License, or (at your option) any
|
|
7
|
+
* later version.
|
|
8
|
+
*
|
|
9
|
+
* TREB is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
10
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
11
|
+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
12
|
+
* details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU General Public License along
|
|
15
|
+
* with TREB. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
*
|
|
17
|
+
* Copyright 2022-2023 trebco, llc.
|
|
18
|
+
* info@treb.app
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
22
|
import type { CellValue } from 'treb-base-types';
|
|
23
23
|
import type { StatsEntry } from './tab_bar';
|
|
24
24
|
|
|
@@ -57,8 +57,8 @@ export interface GridOptions {
|
|
|
57
57
|
/** allow add tab */
|
|
58
58
|
add_tab?: boolean;
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
delete_tab?: boolean;
|
|
60
|
+
/* * show delete tab in the tab bar */
|
|
61
|
+
// delete_tab?: boolean;
|
|
62
62
|
|
|
63
63
|
/** show the "insert function" button. requires formula bar. */
|
|
64
64
|
insert_function_button?: boolean;
|