File tree Expand file tree Collapse file tree 15 files changed +17
-54
lines changed
ui-components/PropertyGrid Expand file tree Collapse file tree 15 files changed +17
-54
lines changed Original file line number Diff line number Diff line change 3852
3852
}
3853
3853
3854
3854
.EezStudio_ListLabel_Badge {
3855
- margin-left : 8px ;
3855
+ margin-right : 8px ;
3856
3856
transform : translateY (-1px );
3857
3857
3858
3858
display : inline-block ;
3859
3859
padding : 0px 5px ;
3860
3860
font-size : 80% ;
3861
3861
font-weight : bold ;
3862
- color : rgb ( 238 , 238 , 238 );
3863
- background-color : var (--bs-secondary );
3862
+ color : var ( --bs-secondary );
3863
+ background-color : var (--bs-secondary-bg );
3864
3864
white-space : nowrap ;
3865
3865
border-radius : 4px ;
3866
3866
}
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ export class SearchInput extends React.Component<{
7
7
onChange : ( event : React . ChangeEvent < HTMLInputElement > ) => void ;
8
8
onKeyDown ?: ( event : React . KeyboardEvent < HTMLInputElement > ) => void ;
9
9
onClear : ( ) => void ;
10
- disableSpellcheck ?: boolean ;
11
10
} > {
12
11
render ( ) {
13
12
return (
@@ -21,11 +20,6 @@ export class SearchInput extends React.Component<{
21
20
value = { this . props . searchText }
22
21
onChange = { this . props . onChange }
23
22
onKeyDown = { this . props . onKeyDown }
24
- spellCheck = {
25
- this . props . disableSpellcheck === true
26
- ? false
27
- : undefined
28
- }
29
23
/>
30
24
{ this . props . searchText && (
31
25
< IconAction
Original file line number Diff line number Diff line change 127
127
/>
128
128
</ head >
129
129
130
- < body >
130
+ < body spellcheck =" false " >
131
131
< div id ="EezStudio_Content "> </ div >
132
132
< div id ="EezStudio_ModalContent "> </ div >
133
133
Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ export interface PropertyInfo {
264
264
) => boolean ;
265
265
266
266
monospaceFont ?: boolean ;
267
- disableSpellcheck ?: boolean ;
268
267
cssAttributeName ?: string ;
269
268
checkboxStyleSwitch ?: boolean ;
270
269
checkboxHideLabel ?: boolean ;
Original file line number Diff line number Diff line change @@ -279,13 +279,13 @@ export class Action extends Flow {
279
279
const projectStore = getProjectStore ( action ) ;
280
280
return (
281
281
< >
282
- < span > { action . name } </ span >
283
282
{ projectStore . projectTypeTraits . hasFlowSupport &&
284
283
action . implementationType == "native" && (
285
284
< span className = "EezStudio_ListLabel_Badge" >
286
285
NATIVE
287
286
</ span >
288
287
) }
288
+ < span > { action . name } </ span >
289
289
</ >
290
290
) ;
291
291
} ,
Original file line number Diff line number Diff line change @@ -976,8 +976,7 @@ export const variableTypeProperty: PropertyInfo = {
976
976
name : "type" ,
977
977
type : PropertyType . String ,
978
978
propertyGridColumnComponent : VariableTypeUI ,
979
- monospaceFont : true ,
980
- disableSpellcheck : true
979
+ monospaceFont : true
981
980
} ;
982
981
983
982
////////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -406,7 +406,6 @@ export class Variable extends EezObject {
406
406
expressionIsConstant : true ,
407
407
flowProperty : "input" ,
408
408
monospaceFont : true ,
409
- disableSpellcheck : true ,
410
409
disabled : object => {
411
410
const project = ProjectEditor . getProject ( object ) ;
412
411
return (
@@ -450,8 +449,7 @@ export class Variable extends EezObject {
450
449
type : PropertyType . MultilineText ,
451
450
disabled : object =>
452
451
isLVGLProject ( object ) || hasFlowSupport ( object ) ,
453
- monospaceFont : true ,
454
- disableSpellcheck : true
452
+ monospaceFont : true
455
453
} ,
456
454
{
457
455
name : "usedIn" ,
@@ -492,13 +490,6 @@ export class Variable extends EezObject {
492
490
listLabel : ( variable : Variable ) => {
493
491
return (
494
492
< >
495
- < span > { variable . name } </ span >
496
- < em
497
- className = "font-monospace"
498
- style = { { opacity : 0.5 , marginLeft : 8 } }
499
- >
500
- { variable . type }
501
- </ em >
502
493
{ ! isPropertyDisabled (
503
494
variable ,
504
495
findPropertyByNameInObject ( variable , "native" ) !
@@ -517,6 +508,13 @@ export class Variable extends EezObject {
517
508
PERSISTENT
518
509
</ span >
519
510
) }
511
+ < span > { variable . name } </ span >
512
+ < em
513
+ className = "font-monospace"
514
+ style = { { opacity : 0.5 , marginLeft : 8 } }
515
+ >
516
+ { variable . type }
517
+ </ em >
520
518
</ >
521
519
) ;
522
520
} ,
Original file line number Diff line number Diff line change @@ -529,8 +529,7 @@ export function makeExpressionProperty(
529
529
} ,
530
530
params
531
531
) ,
532
- monospaceFont : true ,
533
- disableSpellcheck : true
532
+ monospaceFont : true
534
533
} as Partial < PropertyInfo > ,
535
534
propertyInfo
536
535
) ;
@@ -558,8 +557,7 @@ export function makeAssignableExpressionProperty(
558
557
} ,
559
558
params
560
559
) ,
561
- monospaceFont : true ,
562
- disableSpellcheck : true
560
+ monospaceFont : true
563
561
} as Partial < PropertyInfo > ,
564
562
propertyInfo
565
563
) ;
@@ -572,8 +570,7 @@ export function makeTemplateLiteralProperty(
572
570
{
573
571
flowProperty : "template-literal" ,
574
572
expressionType : "string" ,
575
- monospaceFont : true ,
576
- disableSpellcheck : true
573
+ monospaceFont : true
577
574
} as Partial < PropertyInfo > ,
578
575
propertyInfo
579
576
) ;
Original file line number Diff line number Diff line change @@ -550,7 +550,6 @@ export class EvalJSExprActionComponent extends ActionComponent {
550
550
type : PropertyType . MultilineText ,
551
551
propertyGridGroup : specificGroup ,
552
552
monospaceFont : true ,
553
- disableSpellcheck : true ,
554
553
flowProperty : "template-literal"
555
554
}
556
555
] ,
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ export class SCPIActionComponent extends ActionComponent {
97
97
type : PropertyType . MultilineText ,
98
98
propertyGridGroup : specificGroup ,
99
99
monospaceFont : true ,
100
- disableSpellcheck : true ,
101
100
flowProperty : "scpi-template-literal" ,
102
101
expressionType : undefined ,
103
102
getInstrumentId : ( component : SCPIActionComponent ) => {
Original file line number Diff line number Diff line change @@ -1271,7 +1271,6 @@ const SelectItemDialog = observer(
1271
1271
this . value = event . target . value ;
1272
1272
} ) }
1273
1273
onSelect = { this . onSelectionChange }
1274
- spellCheck = { false }
1275
1274
/>
1276
1275
{ tabs }
1277
1276
< div
Original file line number Diff line number Diff line change @@ -549,7 +549,6 @@ export class ExtensionDirective extends EezObject {
549
549
{
550
550
name : "extensionName" ,
551
551
type : PropertyType . String ,
552
- disableSpellcheck : true ,
553
552
554
553
onSelect : async (
555
554
object : IEezObject ,
Original file line number Diff line number Diff line change @@ -2744,7 +2744,6 @@ class NameInput extends React.Component<{
2744
2744
className = "form-control"
2745
2745
value = { this . props . value || "" }
2746
2746
onChange = { event => this . props . onChange ( event . target . value ) }
2747
- spellCheck = { false }
2748
2747
onKeyDown = { this . props . onKeyDown }
2749
2748
/>
2750
2749
) ;
@@ -2775,7 +2774,6 @@ class DirectoryBrowserInput extends React.Component<{
2775
2774
className = "form-control"
2776
2775
value = { this . props . value || "" }
2777
2776
onChange = { event => this . props . onChange ( event . target . value ) }
2778
- spellCheck = { false }
2779
2777
/>
2780
2778
< >
2781
2779
< button
@@ -2819,7 +2817,6 @@ class FileBrowserInput extends React.Component<{
2819
2817
className = "form-control"
2820
2818
value = { this . props . value || "" }
2821
2819
onChange = { event => this . props . onChange ( event . target . value ) }
2822
- spellCheck = { false }
2823
2820
/>
2824
2821
< >
2825
2822
< button
Original file line number Diff line number Diff line change @@ -203,7 +203,6 @@ export const ObjectReferenceInput = observer(
203
203
} ) }
204
204
onChange = { this . onSearchChange }
205
205
onKeyDown = { this . onSearchChange }
206
- disableSpellcheck = { true }
207
206
/>
208
207
</ div >
209
208
< div >
Original file line number Diff line number Diff line change @@ -522,11 +522,6 @@ export const Property = observer(
522
522
overflowY : "hidden"
523
523
} }
524
524
readOnly = { propertyInfo . computed }
525
- spellCheck = {
526
- propertyInfo . disableSpellcheck
527
- ? false
528
- : true
529
- }
530
525
/>
531
526
< button
532
527
className = "btn btn-secondary"
@@ -555,9 +550,6 @@ export const Property = observer(
555
550
onChange = { this . onChange }
556
551
style = { { resize : "none" , overflowY : "hidden" } }
557
552
readOnly = { readOnly || propertyInfo . computed }
558
- spellCheck = {
559
- propertyInfo . disableSpellcheck ? false : true
560
- }
561
553
/>
562
554
) ;
563
555
}
@@ -725,9 +717,6 @@ export const Property = observer(
725
717
onChange = { this . onChange }
726
718
style = { { resize : "none" , overflowY : "hidden" } }
727
719
readOnly = { readOnly || propertyInfo . computed }
728
- spellCheck = {
729
- propertyInfo . disableSpellcheck ? false : true
730
- }
731
720
onClick = { this . props . onClick }
732
721
/>
733
722
) ;
@@ -751,11 +740,6 @@ export const Property = observer(
751
740
overflowY : "hidden"
752
741
} }
753
742
readOnly = { propertyInfo . computed }
754
- spellCheck = {
755
- propertyInfo . disableSpellcheck
756
- ? false
757
- : true
758
- }
759
743
/>
760
744
< button
761
745
className = "btn btn-secondary"
You can’t perform that action at this time.
0 commit comments