@@ -85,6 +85,7 @@ evaluatorTemplates.sourceEntity = {
85
85
headerColor :nodeColors . inputData ,
86
86
} ,
87
87
category :"input" ,
88
+ iconPath :"./img/icons/arrow-right-circle.svg" ,
88
89
props :[
89
90
{ id :"output" , expect :"data" , isSquare :false , label :"output" , type :"hidden" , editable :false , socket :"output" , value :"output" } ,
90
91
{ id :"outputReference" , expect :"string" , label :"Type Reference" , type :"hidden" , editable :false , socket :"output" , value :"" } ,
@@ -138,6 +139,7 @@ evaluatorTemplates.sourceEntity = {
138
139
evaluatorTemplates . sourceInstance = {
139
140
templateName : "source_instance" ,
140
141
name : "Source Instance" ,
142
+ iconPath :"./img/icons/arrow-right.svg" ,
141
143
style :{
142
144
headerColor :nodeColors . inputObject ,
143
145
} ,
@@ -232,6 +234,7 @@ evaluatorTemplates.searchParam = {
232
234
evaluatorTemplates . debugAlert = {
233
235
templateName : "debug_alert" ,
234
236
name : "debug alert" ,
237
+ category :"Actions" ,
235
238
props :[
236
239
{ id :"message" , expect :"string" , label :"Message" , type :"text" , editable :true , socket :"input" , value :"This is a debug alert" } ,
237
240
] ,
@@ -330,6 +333,7 @@ evaluatorTemplates.extractProperty = {
330
333
evaluatorTemplates . extractProperty = {
331
334
templateName : "attribute" ,
332
335
name : "Attribute" ,
336
+ category :"data" ,
333
337
props :[
334
338
{ id :"output" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :"output" } ,
335
339
// {id:"id", label:"prop id", type:"hidden", editable:false, socket:"output", value:false},
@@ -391,83 +395,83 @@ evaluatorTemplates.extractProperty = {
391
395
} ,
392
396
}
393
397
394
- evaluatorTemplates . joinFields = {
395
- templateName : "join_fields" ,
396
- name : "join_fields" ,
397
- props :[
398
- { id :"output" , expect :"data" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :"output" } ,
399
- // {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
400
- { id :"field" , expect :"data" , label :"Source Field" , type :"hidden" , editable :true , socket :"input" , value :false } ,
401
- { id :"fields_to_join" , expect :"array" , isSquare :true , multiple :true , label :"Fields to join" , type :"hidden" , editable :true , socket :"input" , value :false } ,
402
- ] ,
403
- methods :{
404
- } ,
405
- event :{
406
- onEvaluate :( props ) => {
407
- console . log ( props . fields_to_join . get ( ) ) ;
408
- var newFields = [ ]
409
- var sourceField = props . field . get ( )
410
- var fieldsToJoin = props . fields_to_join . get ( )
411
- if ( sourceField && fieldsToJoin ) {
412
- var fieldsQt = fieldsToJoin . length
413
- console . log ( sourceField ) ;
414
- // alert("f")
415
- for ( let i = 0 ; i < sourceField . length ; i ++ ) {
416
- const sourceFieldElement = sourceField [ i ] ;
417
- var newFieldElement = Object . assign ( { } , sourceFieldElement )
418
- for ( let j = 0 ; j < fieldsToJoin . length ; j ++ ) {
419
- const fieldToJoin = fieldsToJoin [ j ] ;
420
- newFieldElement = Object . assign ( sourceFieldElement , fieldToJoin [ i ] )
421
- }
422
- newFields . push ( newFieldElement )
423
- }
424
- props . output . set ( newFields )
425
- }
398
+ // evaluatorTemplates.joinFields = {
399
+ // templateName : "join_fields",
400
+ // name : "join_fields",
401
+ // props :[
402
+ // {id:"output", expect:"data", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
403
+ // // {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
404
+ // {id:"field", expect:"data", label:"Source Field", type:"hidden", editable:true, socket:"input", value:false},
405
+ // {id:"fields_to_join",expect:"array", isSquare:true, multiple:true, label:"Fields to join", type:"hidden", editable:true, socket:"input", value:false},
406
+ // ],
407
+ // methods:{
408
+ // },
409
+ // event:{
410
+ // onEvaluate:(props) =>{
411
+ // console.log(props.fields_to_join.get());
412
+ // var newFields = []
413
+ // var sourceField = props.field.get()
414
+ // var fieldsToJoin = props.fields_to_join.get()
415
+ // if (sourceField && fieldsToJoin) {
416
+ // var fieldsQt = fieldsToJoin.length
417
+ // console.log(sourceField);
418
+ // // alert("f")
419
+ // for (let i = 0; i < sourceField.length; i++) {
420
+ // const sourceFieldElement = sourceField[i];
421
+ // var newFieldElement = Object.assign({},sourceFieldElement)
422
+ // for (let j = 0; j < fieldsToJoin.length; j++) {
423
+ // const fieldToJoin = fieldsToJoin[j];
424
+ // newFieldElement = Object.assign(sourceFieldElement,fieldToJoin[i])
425
+ // }
426
+ // newFields.push(newFieldElement)
427
+ // }
428
+ // props.output.set(newFields)
429
+ // }
426
430
427
- } ,
428
- onInit :( props ) => {
431
+ // },
432
+ // onInit:(props) =>{
429
433
430
- } ,
431
- } ,
432
- }
433
- evaluatorTemplates . joinAllProperties = {
434
- templateName : "join_all_properties" ,
435
- name : "join_all_properties" ,
436
- props :[
437
- { id :"output" , expect :"data" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :"output" } ,
438
- // {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
439
- { id :"field" , expect :"data" , label :"Source Field" , type :"hidden" , editable :true , socket :"input" , value :false } ,
440
- // {id:"fields_to_join",expect:"array", isSquare:true, multiple:true, label:"Fields to join", type:"hidden", editable:true, socket:"input", value:false},
441
- ] ,
442
- methods :{
443
- } ,
444
- event :{
445
- onEvaluate :( props ) => {
434
+ // },
435
+ // },
436
+ // }
437
+ // evaluatorTemplates.joinAllProperties = {
438
+ // templateName : "join_all_properties",
439
+ // name : "join_all_properties",
440
+ // props :[
441
+ // {id:"output", expect:"data", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
442
+ // // {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
443
+ // {id:"field", expect:"data", label:"Source Field", type:"hidden", editable:true, socket:"input", value:false},
444
+ // // {id:"fields_to_join",expect:"array", isSquare:true, multiple:true, label:"Fields to join", type:"hidden", editable:true, socket:"input", value:false},
445
+ // ],
446
+ // methods:{
447
+ // },
448
+ // event:{
449
+ // onEvaluate:(props) =>{
446
450
447
- var sourceField = props . field . get ( )
448
- if ( sourceField ) {
449
- for ( let i = 0 ; i < sourceField . length ; i ++ ) {
450
- const currentItem = sourceField [ i ] ;
451
- var fieldsProperties = currentItem . properties
452
- for ( const propName in fieldsProperties ) {
453
- if ( Object . hasOwnProperty . call ( fieldsProperties , propName ) ) {
454
- const prop = fieldsProperties [ propName ] ;
455
- currentItem [ propName ] = prop
451
+ // var sourceField = props.field.get()
452
+ // if (sourceField) {
453
+ // for (let i = 0; i < sourceField.length; i++) {
454
+ // const currentItem = sourceField[i];
455
+ // var fieldsProperties = currentItem.properties
456
+ // for (const propName in fieldsProperties) {
457
+ // if (Object.hasOwnProperty.call(fieldsProperties, propName)) {
458
+ // const prop = fieldsProperties[propName];
459
+ // currentItem[propName] =prop
456
460
457
- }
458
- }
459
- }
461
+ // }
462
+ // }
463
+ // }
460
464
461
465
462
- props . output . set ( sourceField )
463
- }
466
+ // props.output.set(sourceField)
467
+ // }
464
468
465
- } ,
466
- onInit :( props ) => {
469
+ // },
470
+ // onInit:(props) =>{
467
471
468
- } ,
469
- } ,
470
- }
472
+ // },
473
+ // },
474
+ // }
471
475
472
476
473
477
@@ -478,7 +482,7 @@ evaluatorTemplates.outputTable = {
478
482
headerColor :nodeColors . output ,
479
483
} ,
480
484
category :"output" ,
481
-
485
+ iconPath : "./img/icons/table.svg" ,
482
486
props :[
483
487
// {id:"output", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
484
488
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -505,6 +509,7 @@ evaluatorTemplates.outputGraph = {
505
509
headerColor :nodeColors . output ,
506
510
} ,
507
511
category :"output" ,
512
+ iconPath :"./img/icons/git-merge.svg" ,
508
513
props :[
509
514
// {id:"output", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
510
515
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -534,7 +539,7 @@ evaluatorTemplates.outputFolders = {
534
539
headerColor :nodeColors . output ,
535
540
} ,
536
541
category :"output" ,
537
-
542
+ iconPath : "./img/icons/table.svg" ,
538
543
props :[
539
544
// {id:"output", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
540
545
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -561,6 +566,7 @@ evaluatorTemplates.outputProperties = {
561
566
headerColor :nodeColors . output ,
562
567
} ,
563
568
category :"output" ,
569
+ iconPath :"./img/icons/credit-card.svg" ,
564
570
props :[
565
571
// {id:"output", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
566
572
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -585,6 +591,7 @@ evaluatorTemplates.outputTextEditor = {
585
591
headerColor :nodeColors . output ,
586
592
} ,
587
593
category :"output" ,
594
+ iconPath :"./img/icons/credit-card.svg" ,
588
595
props :[
589
596
// {id:"output", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
590
597
{ id :"attribute" , label :"Attribute" , type :"text" , editable :true , socket :"input" , value :false } ,
@@ -610,6 +617,7 @@ evaluatorTemplates.outputInstanceCard = {
610
617
headerColor :nodeColors . output ,
611
618
} ,
612
619
category :"output" ,
620
+ iconPath :"./img/icons/credit-card.svg" ,
613
621
props :[
614
622
// {id:"output", label:"output", type:"hidden", editable:false, socket:"output", value:"output"},
615
623
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -750,6 +758,7 @@ evaluatorTemplates.colCustomButton = {
750
758
evaluatorTemplates . actionAddInstance = {
751
759
templateName : "action_add_instance" ,
752
760
name : "action_add_instance" ,
761
+ category :"Actions" ,
753
762
props :[
754
763
{ id :"output" , expect :"function" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :( ) => alert ( "No Action" ) } ,
755
764
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -783,6 +792,7 @@ evaluatorTemplates.actionAddInstance = {
783
792
evaluatorTemplates . actionRemoveInstance = {
784
793
templateName : "action_remove_instance" ,
785
794
name : "action_remove_instance" ,
795
+ category :"Actions" ,
786
796
props :[
787
797
{ id :"output" , expect :"function" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :( ) => alert ( "No Action" ) } ,
788
798
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -822,6 +832,7 @@ evaluatorTemplates.actionRemoveInstance = {
822
832
evaluatorTemplates . previewInstance = {
823
833
templateName : "action_preview_instance" ,
824
834
name : "action_preview_instance" ,
835
+ category :"Actions" ,
825
836
props :[
826
837
{ id :"output" , expect :"function" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :( ) => alert ( "No Action" ) } ,
827
838
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -868,7 +879,7 @@ evaluatorTemplates.previewInstance = {
868
879
evaluatorTemplates . setLocalParam = {
869
880
templateName : "action_set_local_param" ,
870
881
name : "Set local parameter" ,
871
- category :"action " ,
882
+ category :"Actions " ,
872
883
props :[
873
884
{ id :"output" , expect :"function" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :( ) => alert ( "No Action" ) } ,
874
885
// {id:"method", label:"A", type:"text", editable:true, socket:"input", value:"0"},
@@ -903,6 +914,7 @@ evaluatorTemplates.setLocalParam = {
903
914
evaluatorTemplates . actionShowMessage = {
904
915
templateName : "action_show_message" ,
905
916
name : "action_show_message" ,
917
+ category :"Actions" ,
906
918
props :[
907
919
{ id :"output" , expect :"function" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :( ) => alert ( "No Action" ) } ,
908
920
{ id :"message" , expect :"string" , label :"Message" , type :"text" , editable :true , socket :"input" , value :"" } ,
@@ -1025,6 +1037,7 @@ evaluatorTemplates.findInstanceDirectRelation = {
1025
1037
evaluatorTemplates . actionEditRelation = {
1026
1038
templateName : "action_edit_relation" ,
1027
1039
name : "action_edit_relation" ,
1040
+ category :"Actions" ,
1028
1041
props :[
1029
1042
{ id :"output" , expect :"function" , label :"output" , type :"hidden" , editable :false , socket :"output" , value :( ) => alert ( "No Action" ) } ,
1030
1043
{ id :"relationType" , expect :"string" , label :"Relation Type" , type :"text" , editable :true , socket :"input" , value :"" } ,
0 commit comments