Copy and paste/drag and drop in the textarea the url of datasource
+
+
+
+
+
+
+ Select data source
+ Most popular
+ Search
+
+
+
+
+
+
+
+ {{dataset.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
2
+
+
Dataset source
+
Select the fields you want to use for visualization from tree on the right side. The table on the left side will show you the values related to the selected fields.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
3
+
+
Data mapping
+
Select the visualization by clicking on the button(a window will appear with all available visualization).After, drag and drop the selected fields into datalet parameters area. A preview will be shown on the right side.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Selected fields
+
+
+
+
+
+
+
Datalet fields
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
4
+
+
Finalize visualization
+
Assign the values for layout parameters (e.g. title for you visualization) and look at the final visualization. You can also add a comment if you are in the private room.
+
+
+
+
+
+
+
+
Layout fields
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/controllets/data-sevc-controllet/data-sevc-controllet.html b/controllets/data-sevc-controllet/data-sevc-controllet.html
index aa4a2ad..7ce216f 100755
--- a/controllets/data-sevc-controllet/data-sevc-controllet.html
+++ b/controllets/data-sevc-controllet/data-sevc-controllet.html
@@ -2,7 +2,7 @@
@license
The MIT License (MIT)
- Copyright (c) 2015 Dipartimento di Informatica - Università di Salerno - Italy
+ Copyright (c) 2015 Dipartimento di Informatica - Universit� di Salerno - Italy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -54,8 +54,10 @@
+
+
+
+
+
+
+
+
-
+
-
+
-
-
-
2
-
-
Dataset source
-
Select the fields you want to use for visualization from tree on the right side. The table on the left side will show you the values related to the selected fields.
-
-
+
+
+
+
+
+
+
2
+
+
Dataset source
+
Select the fields you want to use for visualization from tree on the right side. The table on the left side will show you the values related to the selected fields.
+
+
-
+
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
+
-
-
-
3
-
-
Data mapping
-
Select the visualization by clicking on the button(a window will appear with all available visualization).After, drag and drop the selected fields into datalet parameters area. A preview will be shown on the right side.
-
-
+
+
+
+
+
3
+
+
Data mapping
+
Select the visualization by clicking on the button(a window will appear with all available visualization).After, drag and drop the selected fields into datalet parameters area. A preview will be shown on the right side.
+
+
-
+
-
-
-
+
+
+
-
-
-
Selected fields
-
-
+
+
+
Selected fields
+
+
-
-
-
Datalet fields
-
-
+
+
+
Datalet fields
-
-
-
-
-
+
+
+
-
+
-
+
-
-
+
-
-
-
4
-
-
Finalize visualization
-
Assign the values for layout parameters (e.g. title for you visualization) and look at the final visualization. You can also add a comment if you are in the private room.
-
-
-
+
-
-
-
-
Layout fields
-
-
-
-
+
+
-
-
-
+
+
+
4
+
+
Finalize visualization
+
Assign the values for layout parameters (e.g. title for you visualization) and look at the final visualization. You can also add a comment if you are in the private room.
+
+
+
+
+
+
+
Layout fields
+
+
+
-
+
+
+
+
+
+
+
-
+
-
+
-
+
-
-
-
-
-
+
+
+
+
+
-
+
@@ -534,7 +553,8 @@ Example:
'items-list-controllet_item-selected' : '_dataletSelected',
'draggable-element-controllet_content-dragged' : '_fieldsMapped',
'tree-view-controllet_selected-fields' : '_fieldsSelected',
- 'text-element-controllet_content-changed' : '_textElementChanged'
+ 'text-element-controllet_content-changed' : '_textElementChanged',
+ 'datasetexplorer-datalet_data-url': '_selectDataUrl_treeMap'
},
properties : {
@@ -625,8 +645,8 @@ Example:
* @default empty
*/
paramsFields:{
- type: Object,
- value: undefined
+ type: Object,
+ value: undefined
},
/**
* It's used to store the tab index in the first pass
@@ -653,7 +673,7 @@ Example:
}
},
/**
- * It is called after the element’s template has been stamped and all elements inside the element’s local DOM have been configured (with values bound from parents, deserialized attributes, or else default values) and had their ready method called.
+ * It is called after the element�s template has been stamped and all elements inside the element�s local DOM have been configured (with values bound from parents, deserialized attributes, or else default values) and had their ready method called.
* In this phase the scrollbar will be initialized
*
* @method handleResponseData
@@ -663,7 +683,7 @@ Example:
ready : function(){
- $(this.$.fields_placeholder).perfectScrollbar();
+// $(this.$.fields_placeholder).perfectScrollbar();
$(this.$.selectedFields_main_container).perfectScrollbar();
$(this.$.idm_fields_main_container).perfectScrollbar();
$(this.$.idm_layout_main_container).perfectScrollbar();
@@ -726,19 +746,19 @@ Example:
this.datalets_list = new Array();
for(var i=0;i < e.detail.response.length;i++){
var datalet_info = { name : e.detail.response[i].name ,
- image : e.detail.response[i].url + e.detail.response[i].name + ".png"
+ image : e.detail.response[i].url + e.detail.response[i].name + ".png"
};
this.datalets_list.push(datalet_info);
}
if(this.selectedDatalet == undefined)
- this.$.visualization_slider_area.innerHTML = '' +
- '' +
- '' +
- '';
+ this.$.visualization_slider_area.innerHTML = '' +
+ '' +
+ '' +
+ '';
else
this.$.visualization_slider_area.innerHTML = '' +
'';
- this.$.datalet_idm_fields_container.innerHTML += html;
-
- }
-
- if(layouts.input != undefined) {
- if(layouts.input.constructor == Object){
- layouts.input = new Array(jQuery.extend(true, {}, layouts.input));
- }
-
- html = '';
- }
- this.$.idm_layout_container.innerHTML = html;
- }
-
- if(this.selectedFields != undefined) this.generateDataletPreview();
+ var response = e.detail.response;
+ this.$.datalet_idm_fields_container.innerHTML = "";
+ this.$.idm_layout_container.innerHTML = "";
+
+ var input;
+ var layouts = jQuery.extend(true, {}, response.idm.inputs.layouts);
+
+ if(response.idm.inputs.input.constructor == Object) {
+ if(response.idm.inputs.input.selection == "*")
+ {
+ var fields = this.$.selectedFields_container.querySelectorAll('draggable-element-controllet');
+ input = response.idm.inputs.input;
+ response.idm.inputs.input = new Array();
+ for(var i=0;i';
+ this.$.datalet_idm_fields_container.innerHTML += html;
+
+ }
+
+ if(layouts.input != undefined) {
+ if(layouts.input.constructor == Object){
+ layouts.input = new Array(jQuery.extend(true, {}, layouts.input));
+ }
+
+ html = '';
+ }
+ this.$.idm_layout_container.innerHTML = html;
+ }
+
+ if(this.selectedFields != undefined) this.generateDataletPreview();
},
/**
@@ -950,9 +970,9 @@ Example:
*/
_datasourceSelected : function(e){
- this.$.data_url.value = this.datasets[parseInt(e.target.id)].url;
- this.$.infoDialogTitle.innerHTML = this.datasets[parseInt(e.target.id)].name;
- this.$.infoDialogContent.innerHTML = this.datasets[parseInt(e.target.id)].description;
+ this.$.data_url.value = this.datasets[parseInt(e.target.id)].url;
+ this.$.infoDialogTitle.innerHTML = this.datasets[parseInt(e.target.id)].name;
+ this.$.infoDialogContent.innerHTML = this.datasets[parseInt(e.target.id)].description;
},
/**
@@ -987,25 +1007,25 @@ Example:
*/
_fieldsSelected : function(e){
- this.selectedFields = e.detail.fields;
- this.$.selectedFields_container.innerHTML = "";
- for(var i=0;i ';
- }
+ '" label="' + e.detail.fields[i].split(",")[e.detail.fields[i].split(",").length -1] +
+ '"> ';
+ }
- var table_params ={
- component : "datatable-datalet",
- params :{
+ var table_params ={
+ component : "datatable-datalet",
+ params :{
'data-url' : this.dataUrl
- },
- fields : e.detail.fields,
- placeHolder : this.$.table_component_place_holder
- };
+ },
+ fields : e.detail.fields,
+ placeHolder : this.$.table_component_place_holder
+ };
- ComponentService.deep_url = this.deepUrl;
- ComponentService.getComponent(table_params);
+ ComponentService.deep_url = this.deepUrl;
+ ComponentService.getComponent(table_params);
},
@@ -1071,7 +1091,23 @@ Example:
this.fire('data-sevc-controllet.dataletCreated', {data : data});
- }
+ },
+
+ //tree map
+ _selectDataUrl_treeMap : function(e){
+ var url = e.detail.url;
+ url = url.split('/');
+ var index = url.indexOf('resource')
+ if (index != -1) { // ckan
+ var resourceId = url[index + 1];
+ url = "http://ckan.routetopa.eu/api/action/datastore_search?resource_id=" + resourceId;
+
+ } else
+ url = "sorry, data provider not supported yet";
+
+ this.dataUrl = url;
+ this.DatasourceTabSelected=0;
+ },
});
diff --git a/controllets/data-sevc-controllet/data-sevc-controllet_ddr.html b/controllets/data-sevc-controllet/data-sevc-controllet_ddr.html
new file mode 100755
index 0000000..975f416
--- /dev/null
+++ b/controllets/data-sevc-controllet/data-sevc-controllet_ddr.html
@@ -0,0 +1,124 @@
+/********************************************************************************************************************************
+
+
+
+
+/********************************************************************************************************************************
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Pagina due
Page two
Página dos
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/controllets/data-sevc-controllet/demo/index.html b/controllets/data-sevc-controllet/demo/index.html
new file mode 100755
index 0000000..0ca6e75
--- /dev/null
+++ b/controllets/data-sevc-controllet/demo/index.html
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/controllets/datalet-selection-controllet/datalet-selection-controllet.html b/controllets/datalet-selection-controllet/datalet-selection-controllet.html
new file mode 100755
index 0000000..822d1d7
--- /dev/null
+++ b/controllets/datalet-selection-controllet/datalet-selection-controllet.html
@@ -0,0 +1,329 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+