@@ -15,8 +15,7 @@ export const simple_gui_model1: GuiModel = Object.freeze<GuiModel>(
1515 { kind : 'field' , name : 'username' , controlType : 'input' , label : 'username' , tooltip : '' , dataObjectPath : 'username' , defaultValue : '' , required : true , type : 'string' , subType : 'none' } ,
1616 { kind : 'field' , name : 'password' , controlType : 'input' , label : 'password' , tooltip : '' , dataObjectPath : 'password' , defaultValue : '' , required : true , type : 'string' , subType : 'none' }
1717 ] ,
18- errors : [ ] ,
19- isRoot : true
18+ errors : [ ]
2019} ) ;
2120
2221export const simple_gui_model2 : GuiModel = Object . freeze < GuiModel > ( {
@@ -31,8 +30,7 @@ export const simple_gui_model2: GuiModel = Object.freeze<GuiModel>({
3130 { kind : 'field' , name : 'username' , controlType : 'input' , label : 'user name' , tooltip : 'a username description here' , dataObjectPath : 'username' , defaultValue : 'username default' , required : true , type : 'string' , subType : 'none' } ,
3231 { kind : 'field' , name : 'password' , controlType : 'input' , label : 'password' , tooltip : 'a password description here' , dataObjectPath : 'password' , defaultValue : 'password default' , required : true , type : 'string' , subType : 'none' }
3332 ] ,
34- errors : [ ] ,
35- isRoot : true
33+ errors : [ ]
3634} ) ;
3735
3836export const test_different_elements_gui_model1 : GuiModel = Object . freeze < GuiModel > ( {
@@ -53,8 +51,7 @@ export const test_different_elements_gui_model1: GuiModel = Object.freeze<GuiMod
5351 { kind : 'field' , name : 'rank' , controlType : 'dropdown' , label : 'Rank' , tooltip : 'a rank description here' , dataObjectPath : 'rank' , defaultValue : 3.14 , values : [ 3.14 , 0.33 , 9.99 ] , required : false , type : 'number' , subType : 'none' } ,
5452 { kind : 'field' , name : 'registered' , controlType : 'yesno' , label : 'Registered' , tooltip : 'a registered description here' , dataObjectPath : 'registered' , defaultValue : false , required : false , type : 'boolean' , subType : 'none' }
5553 ] ,
56- errors : [ ] ,
57- isRoot : true
54+ errors : [ ]
5855} ) ;
5956
6057export const test_groups_gui_model1 : GuiModel = Object . freeze < GuiModel > ( {
@@ -67,12 +64,12 @@ export const test_groups_gui_model1: GuiModel = Object.freeze<GuiModel>({
6764 required : true ,
6865 elements : [
6966 { kind : 'field' , name : 'simple1' , controlType : 'input' , label : 'A simple field level 1' , tooltip : '' , dataObjectPath : 'simple1' , defaultValue : '' , required : false , type : 'string' , subType : 'none' } ,
70- { kind : 'group' , name : 'group1' , controlType : 'group' , label : 'Group at level 1' , tooltip : '' , dataObjectPath : 'group1' , isRoot : false , required : false ,
67+ { kind : 'group' , name : 'group1' , controlType : 'group' , label : 'Group at level 1' , tooltip : '' , dataObjectPath : 'group1' , required : false ,
7168 elements : [
7269 { kind : 'field' , name : 'simple2' , controlType : 'input' , label : 'A simple field level 2' , tooltip : '' , dataObjectPath : 'group1.simple2' , defaultValue : '' , required : false , type : 'string' , subType : 'none' } ,
73- { kind : 'group' , name : 'group2' , controlType : 'group' , label : 'Group at level 2' , tooltip : '' , dataObjectPath : 'group1.group2' , isRoot : false , required : false ,
70+ { kind : 'group' , name : 'group2' , controlType : 'group' , label : 'Group at level 2' , tooltip : '' , dataObjectPath : 'group1.group2' , required : false ,
7471 elements : [
75- { kind : 'group' , name : 'group3' , controlType : 'group' , label : 'Group at level 3' , tooltip : '' , dataObjectPath : 'group1.group2.group3' , isRoot : false , required : false ,
72+ { kind : 'group' , name : 'group3' , controlType : 'group' , label : 'Group at level 3' , tooltip : '' , dataObjectPath : 'group1.group2.group3' , required : false ,
7673 elements : [
7774 { kind : 'field' , name : 'simple4' , controlType : 'input' , label : 'A simple field level 4' , tooltip : '' , dataObjectPath : 'group1.group2.group3.simple4' , defaultValue : '' , required : false , type : 'string' , subType : 'none' }
7875 ]
@@ -83,8 +80,7 @@ export const test_groups_gui_model1: GuiModel = Object.freeze<GuiModel>({
8380 ]
8481 }
8582 ] ,
86- errors : [ ] ,
87- isRoot : true
83+ errors : [ ]
8884} ) ;
8985
9086export const complex_gui_model1 : GuiModel = Object . freeze < GuiModel > ( {
@@ -96,31 +92,30 @@ export const complex_gui_model1: GuiModel = Object.freeze<GuiModel>({
9692 dataObjectPath : '' ,
9793 required : true ,
9894 elements : [
99- { kind : 'group' , name : 'authentication' , controlType : 'group' , label : 'Authentication' , tooltip : 'an authentication description here' , dataObjectPath : 'authentication' , isRoot : false , required : true ,
95+ { kind : 'group' , name : 'authentication' , controlType : 'group' , label : 'Authentication' , tooltip : 'an authentication description here' , dataObjectPath : 'authentication' , required : true ,
10096 elements : [ { kind : 'field' , name : 'user' , controlType : 'input' , label : 'User' , tooltip : 'a username' , dataObjectPath : 'authentication.user' , defaultValue : '' , required : true , type : 'string' , subType : 'none' } ,
10197 { kind : 'field' , name : 'password' , controlType : 'input' , label : 'Password' , tooltip : 'a password' , dataObjectPath : 'authentication.password' , defaultValue : '' , required : true , type : 'string' , subType : 'none' } ,
10298 { kind : 'field' , name : 'scheme' , controlType : 'input' , label : 'scheme' , tooltip : '' , dataObjectPath : 'authentication.scheme' , defaultValue : 'basic' , required : true , type : 'string' , subType : 'none' } ,
10399 { kind : 'field' , name : 'preemptive' , controlType : 'yesno' , label : 'preemptive' , tooltip : '' , dataObjectPath : 'authentication.preemptive' , defaultValue : true , required : true , type : 'boolean' , subType : 'none' }
104100 ]
105101 } ,
106- { kind : 'group' , name : 'server' , controlType : 'group' , label : 'Server' , tooltip : '' , dataObjectPath : 'server' , isRoot : false , required : true ,
102+ { kind : 'group' , name : 'server' , controlType : 'group' , label : 'Server' , tooltip : '' , dataObjectPath : 'server' , required : true ,
107103 elements : [ { kind : 'field' , name : 'host' , controlType : 'input' , label : 'host' , tooltip : '' , dataObjectPath : 'server.host' , defaultValue : '' , required : true , type : 'string' , subType : 'none' } ,
108104 { kind : 'field' , name : 'port' , controlType : 'input' , label : 'port' , tooltip : '' , dataObjectPath : 'server.port' , defaultValue : 80 , required : true , type : 'integer' , subType : 'none' } ,
109105 { kind : 'field' , name : 'protocol' , controlType : 'dropdown' , label : 'protocol' , tooltip : '' , dataObjectPath : 'server.protocol' , defaultValue : 'http' , values : [ 'http' , 'ftp' ] , required : true , type : 'string' , subType : 'none' }
110106 ]
111107 } ,
112- { kind : 'group' , name : 'testing' , controlType : 'group' , label : 'Testing' , tooltip : '' , dataObjectPath : 'testing' , isRoot : false , required : false ,
108+ { kind : 'group' , name : 'testing' , controlType : 'group' , label : 'Testing' , tooltip : '' , dataObjectPath : 'testing' , required : false ,
113109 elements : [ { kind : 'field' , name : 'beforeOperationDelay' , controlType : 'input' , label : 'beforeOperationDelay' , tooltip : '' , dataObjectPath : 'testing.beforeOperationDelay' , defaultValue : 1 , required : true , type : 'integer' , subType : 'none' } ,
114110 { kind : 'field' , name : 'afterOperationDelay' , controlType : 'input' , label : 'afterOperationDelay' , tooltip : '' , dataObjectPath : 'testing.afterOperationDelay' , defaultValue : 2 , required : false , type : 'integer' , subType : 'none' }
115111 ]
116112 }
117113 ] ,
118- errors : [ ] ,
119- isRoot : true
114+ errors : [ ]
120115} ) ;
121116
122117export const invalid_gui_model1 : GuiModel = {
123- kind : 'group' , name : '' , controlType : 'group' , dataObjectPath : '' , label : '' , tooltip : '' , isRoot : true , required : true , elements : [ ] ,
118+ kind : 'group' , name : '' , controlType : 'group' , dataObjectPath : '' , label : '' , tooltip : '' , required : true , elements : [ ] ,
124119 'errors' : [
125120 { schemaPath : 'properties.username' , errorText : 'Unsupported element type string' } ,
126121 { schemaPath : 'properties.password' , errorText : 'Type elements must be strings (not boolean) ' } ,
0 commit comments