@trebco/treb 28.3.4 → 28.3.6
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
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div composite narrow>
|
|
15
15
|
<button data-command="justify-left" data-target="justify" title="Left-align text"></button>
|
|
16
16
|
<div class="treb-menu">
|
|
17
|
-
<button dropdown></button>
|
|
17
|
+
<button dropdown title="Text justify options"></button>
|
|
18
18
|
<div class="treb-icon-buttons" data-replace="justify">
|
|
19
19
|
<button data-command="justify-left" title="Left-align text"></button>
|
|
20
20
|
<button data-command="justify-center" title="Center-align text"></button>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<div composite narrow>
|
|
27
27
|
<button data-command="align-top" data-target="align" title="Align to top"></button>
|
|
28
28
|
<div class="treb-menu">
|
|
29
|
-
<button dropdown></button>
|
|
29
|
+
<button dropdown title="Text align options"></button>
|
|
30
30
|
<div class="treb-icon-buttons" data-replace="align">
|
|
31
31
|
<button data-command="align-top" title="Align to top"></button>
|
|
32
32
|
<button data-command="align-middle" title="Align to middle"></button>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<div composite>
|
|
69
69
|
<button data-command="fill-color" data-color-bar="fill" data-color="{}" title="Fill color"></button>
|
|
70
70
|
<div class="treb-menu treb-color-menu" data-color-command="fill-color" data-replace-color="fill" data-default-color-text="No fill">
|
|
71
|
-
<button dropdown></button>
|
|
71
|
+
<button dropdown title="Color options"></button>
|
|
72
72
|
<div class="treb-color-chooser">
|
|
73
73
|
<div class="treb-caption">Theme colors</div>
|
|
74
74
|
<div class="treb-swatches"></div>
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
<div composite>
|
|
91
91
|
<button data-command="text-color" data-color-bar="text" data-color="{}" title="Text color"></button>
|
|
92
92
|
<div class="treb-menu treb-color-menu" data-color-command="text-color" data-replace-color="text" data-default-color-text="Default text color">
|
|
93
|
-
<button dropdown></button>
|
|
93
|
+
<button dropdown title="Color options"></button>
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
96
96
|
|
|
97
97
|
<div composite>
|
|
98
98
|
<button data-command="border-bottom" data-target="border" title="Bottom border"></button>
|
|
99
99
|
<div class="treb-menu">
|
|
100
|
-
<button dropdown></button>
|
|
100
|
+
<button dropdown title="Border options"></button>
|
|
101
101
|
<div class="treb-icon-buttons" data-replace="border">
|
|
102
102
|
<button data-command="border-top" title="Top border"></button>
|
|
103
103
|
<button data-command="border-left" title="Left border"></button>
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
<div composite font-scale>
|
|
119
119
|
<input class="treb-font-scale" title="Font scale">
|
|
120
120
|
<div class="treb-menu">
|
|
121
|
-
<button dropdown></button>
|
|
121
|
+
<button dropdown title="Font scale options"></button>
|
|
122
122
|
<div>
|
|
123
123
|
<button data-command="font-scale" data-scale="0.8">0.80</button>
|
|
124
124
|
<button data-command="font-scale" data-scale="0.9">0.90</button>
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
<div composite>
|
|
148
148
|
<input class="treb-number-format" title="Number format">
|
|
149
149
|
<div class="treb-menu">
|
|
150
|
-
<button dropdown></button>
|
|
150
|
+
<button dropdown title="Number formats"></button>
|
|
151
151
|
<div class="treb-number-format-menu"></div>
|
|
152
152
|
</div>
|
|
153
153
|
</div>
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
<div composite chart-menu>
|
|
161
161
|
<button data-command="insert-column-chart" data-target="annotation" title="Insert column chart"></button>
|
|
162
162
|
<div class="treb-menu">
|
|
163
|
-
<button dropdown></button>
|
|
163
|
+
<button dropdown title="Chart options"></button>
|
|
164
164
|
<div class="treb-icon-buttons" data-replace="annotation">
|
|
165
165
|
<button data-command="insert-column-chart" title="Insert column chart"></button>
|
|
166
166
|
<button data-command="insert-donut-chart" title="Insert donut chart"></button>
|
package/treb-grid/package.json
CHANGED
|
@@ -652,7 +652,7 @@ export class Grid extends GridBase {
|
|
|
652
652
|
const resize_target = this.DOM.Div('annotation-resize-target', node);
|
|
653
653
|
|
|
654
654
|
node.addEventListener('keydown', (event) => {
|
|
655
|
-
|
|
655
|
+
|
|
656
656
|
const rect = annotation.scaled_rect;
|
|
657
657
|
if (!rect) {
|
|
658
658
|
console.info('missing scaled rect!');
|
|
@@ -714,6 +714,13 @@ export class Grid extends GridBase {
|
|
|
714
714
|
this.Focus();
|
|
715
715
|
break;
|
|
716
716
|
|
|
717
|
+
case 'Backspace':
|
|
718
|
+
if (event.metaKey && UA.is_mac) {
|
|
719
|
+
this.Focus();
|
|
720
|
+
this.RemoveAnnotation(annotation);
|
|
721
|
+
}
|
|
722
|
+
break;
|
|
723
|
+
|
|
717
724
|
case 'Delete':
|
|
718
725
|
case 'Del':
|
|
719
726
|
this.Focus();
|
|
@@ -4494,6 +4501,14 @@ export class Grid extends GridBase {
|
|
|
4494
4501
|
delta.columns++;
|
|
4495
4502
|
break;
|
|
4496
4503
|
|
|
4504
|
+
case 'Backspace':
|
|
4505
|
+
if (event.metaKey && UA.is_mac) {
|
|
4506
|
+
if (!selection.empty) {
|
|
4507
|
+
this.DeleteSelection(selection);
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
break;
|
|
4511
|
+
|
|
4497
4512
|
case 'Delete':
|
|
4498
4513
|
case 'Del':
|
|
4499
4514
|
// if (event.shiftKey) // ctrl+shift+delete seems to be "delete history" in all browsers...
|