eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject [41/44] incubator-eagle git commit: bootstrap components use npm
Date Mon, 30 Nov 2015 02:51:15 GMT
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/e931c210/eagle-webservice/src/main/webapp/app/public/assets/bootstrap-components/js/bootstrap-components.min.js
----------------------------------------------------------------------
diff --git a/eagle-webservice/src/main/webapp/app/public/assets/bootstrap-components/js/bootstrap-components.min.js
b/eagle-webservice/src/main/webapp/app/public/assets/bootstrap-components/js/bootstrap-components.min.js
deleted file mode 100644
index 5a83489..0000000
--- a/eagle-webservice/src/main/webapp/app/public/assets/bootstrap-components/js/bootstrap-components.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-$.extend({_bc:new Object()});$._bc.vals=new Object();$._bc.vars=function(options,callback){var
vars=new Object();if(typeof(options)=="object"){vars.options=options}else{if(typeof(options)=="function"){vars.callback=options}else{if(typeof(options)=="string"){vars.key=options}}}if(typeof(callback)=="function"){vars.callback=callback}return
vars};$._bc.get=function(options,key,defaultValue){if(options!=null){if(options[key]!=null){return
options[key]}else{return defaultValue}}else{return defaultValue}};$._bc.list=function(){var
list=new Array();list.add=function(obj){list.push(obj)};list.remove=function(obj){var loc=null;for(var
i=0;i<list.length;i++){var _o=list[i];if(obj==_o){loc=i;break}}if(loc!=null){list.splice(loc,1)}};return
list};var userAgent=navigator.userAgent.toLowerCase();$._bc.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/:
]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozil
 la:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};!function($){var
_on=false;$.extend({autotooltip:function(option){if(option===true&&_on==false){$(document).on("mouseover.bs.autotooltip","[data-toggle='tooltip']",tooltipHandler);_on=true}else{if(option===false&&_on==true){$(document).off("mouseover.bs.autotooltip");_on=false}}}});function
tooltipHandler(){var _my=$(this);if(_my.attr("data-original-title")==null){_my.tooltip("show")}}}(window.jQuery);!function($){$.fn.extend({checkbox:function(options){var
_my=$(this);var vars=$._bc.vars(options);var _options=vars.options;var _checked=$._bc.get(_options,"checked",null);var
_to=$._bc.get(_options,"to",null);var _target=_to!=null?$(_to):$(_my.attr("data-to"));if(_to!=null){_my.attr("data-to",_to)}if(_checked!=null){updateStatus(_my,_checked);updateTarget(_target,_checked)}}});function
updateStatus(_instance,_checked){if(_checked){_instance.attr("checked","checked")}else{_instance.removeAttr("checked","checked")}}fu
 nction updateTarget(_target,_checked){if(_target!=null){if(_target.is("[type='checkbox']")||_target.is("[type='radio']")){_target.prop("checked",_checked)}else{_target.val(_checked)}}}$(document).on("click.bs.checkbox.label","label",function(event){var
_label=$(this);var _my=_label.find(".checkbox[data-toggle='checkbox']");var _checked=null;if(_my.length!=0){var
_disabled=_my.attr("disabled")!=null;var _target=$(_my.attr("data-to"));var _checkbox=_label.find("input[type='checkbox']");if(_disabled){if(_checkbox.length!=0){_checked=_my.attr("checked")!=null;_checkbox.prop("checked",_checked)}}else{if(_checkbox.length!=0){_checked=_checkbox.prop("checked")}else{_checked=!(_my.attr("checked")!=null);updateTarget(_target,_checked)}}updateStatus(_my,_checked);_my.add(_target).change()}});$(document).on("click.bs.checkbox",".checkbox[data-toggle='checkbox']",function(event){var
_my=$(this);var _target=$(_my.attr("data-to"));var _checked=null;if(_my.closest("label").length==0){_checked=!(_m
 y.attr("checked")!=null);updateStatus(_my,_checked);updateTarget(_target,_checked);_my.add(_target).change()}});function
elementValue(ele,val){var _my=$(ele);if(_my.is("input[type='checkbox']")){if(val!=null){_my.prop("checked",val)}return
_my.prop("checked")}else{if(val!=null){_my.checkbox({checked:val})}return _my.attr("checked")=="checked"}}$(document).on("change.bs.checkbox_selectAll","[data-checkbox-all]",function(event){var
_name=$(this).attr("data-checkbox-all");var _value=elementValue(this);$("[data-checkbox-entity='"+_name+"']").each(function(){elementValue(this,_value)})});$(document).on("change.bs.checkbox_selectAll","[data-checkbox-entity]",function(event){var
_name=$(this).attr("data-checkbox-entity");var _checked=true;$("[data-checkbox-entity='"+_name+"']").each(function(){if(!elementValue(this)){_checked=false;return
false}});$("[data-checkbox-all='"+_name+"']").each(function(){elementValue(this,_checked)})})}(window.jQuery);$._bc.vals.datepicker=new
Object();$._bc.va
 ls.datepicker.index=1;!function($){$.extend({datepicker:{toDate:function(str,format){var
date=new Date();try{var lst=["d","M","y","H","m","s"];var dc={};$.each(lst,function(i,c){var
_fmt=format.replace(new RegExp(c+"+"),"[TARGET]");$.each(lst,function(i,c){_fmt=_fmt.replace(new
RegExp(c+"+"),"\\d+")});_fmt=_fmt.replace("[TARGET]","(\\d+)");var reg=new RegExp(_fmt);dc[c]=Number(str.match(reg)[1])});function
val(val,def){if(val===undefined||val===null||isNaN(val)){return def}return val}date.setFullYear(val(dc["y"],1990),(val(dc["M"],1))-1,val(dc["d"],1));date.setHours(val(dc["H"],0),val(dc["m"],0),val(dc["s"],0))}catch(err){return
new Date()}if(date==null||isNaN(date)){return new Date()}return date},dateToStrng:function(date,_format){var
lst=["d","M","y","H","m","s"];var _val=_format.replace(/y+/,date.getFullYear()).replace(/M+/,fillZero(date.getMonth()+1)).replace(/d+/,fillZero(date.getDate())).replace(/H+/,fillZero(date.getHours())).replace(/m+/,fillZero(date.getMinutes())).replace(
 /s+/,fillZero(date.getSeconds()));
-return _val},monthName:["January","February","March","April","May","June","July","August","September","October","November","December"],yearMonthTitle:"${month}-${year}",},});var
_instance=null;var _preventEvent=false;function refreshInstance(instance){if(_instance!=null){var
_type=_instance.getType();var _date=_instance.getDate();var _target=_instance.getTarget();var
_format=_instance.getFormat();var _preVal=_target.val();var _val=null;_val=$.datepicker.dateToStrng(_date,_format);_target.val(_val);_instance.remove();_instance=null;if(_val!=_preVal){_target.change()}}_instance=instance}function
getDaysOfMonth(date){var _startDay,_days;var _date=new Date(date.getTime());_date.setMonth(_date.getMonth()+1,0);_days=_date.getDate();_date.setDate(1);_startDay=_date.getDay();return[_startDay,_days]}function
fillZero(str,len){if(len==null){len=2}var ret=str+"";while(ret.length<len){ret="0"+ret}return
ret}function toString(date){return date.getFullYear()+"-"+fillZero(date.getMonth()+1)+"-"+fi
 llZero(date.getDate())+" "+fillZero(date.getHours())+":"+fillZero(date.getMinutes())+":"+fillZero(date.getSeconds())}function
plusDays(date,year,month,day){if(month==null){month=0}if(day==null){day=0}var _ret=new Date(date.getTime());var
_year=_ret.getFullYear();var _month=_ret.getMonth()+month+year*12;var _date=_ret.getDate();_ret.setMonth(_month,1);var
_days=getDaysOfMonth(_ret)[1];if(_date<=_days){_ret.setDate(_date)}else{_ret.setDate(_days)}_date=_ret.getDate()+day;_ret.setDate(_date);return
_ret}function setDays(date,year,month,day){if(year==null){year=date.getFullYear()}if(month==null){month=date.getMonth()}if(day==null){day=date.getDate()}var
_ret=new Date(date.getTime());_ret.setFullYear(year,month,day);_ret.setFullYear(year,month);_ret.setFullYear(year);return
_ret}function digitization(str,mix,max){var _str=str+"";var _val=Number(_str);if(isNaN(_val)||_val==null){_val=0}if(_val<mix){_val=mix}if(_val>max){_val=max}return
_val}function getDateInRange(current,target,before,af
 ter){if(before!=null&&target>before){return new Date(before.getTime())}if(after!=null&&target<after){return
new Date(after.getTime())}return target}$(document).on("click.bs.datepicker","[data-toggle='datepicker']",function(event){_preventEvent=true;var
my=$(this);if($(_instance).data("trigger")===this){return}var _autoclose=my.attr("data-autoclose")==="true";var
_target=$(my.attr("data-to"));var target=_target.length!=0?_target:my;var _format=my.attr("data-format");var
_container=$(my.attr("data-container"));var container=target.parent();if(container.hasClass("input-group-btn")){container=container.parent()}if(container.hasClass("input-group")){container=container.parent()}container=_container.length!=0?_container:container;var
_type=my.attr("data-type");var enable_yearpicker=false;var enable_monthpicker=false;var enable_datepicker=false;var
enable_timepicker=false;switch(_type){case"year":enable_yearpicker=true;_format=_format||"yyyy";break;case"month":enable_monthpicker=true;_form
 at=_format||"yyyy-MM";break;case"date":enable_datepicker=true;_format=_format||"yyyy-MM-dd";break;case"time":enable_timepicker=true;_format=_format||"HH:mm:ss";break;default:_type="all";enable_datepicker=true;enable_timepicker=true;_format=_format||"yyyy-MM-dd
HH:mm:ss"}var _date=target.val();var date=$.datepicker.toDate(_date,_format);var dateShadow=new
Date(date.getTime());var dateCurrent=new Date(date.getTime());var _before=my.attr("data-before");var
before=_before==null?null:$.datepicker.toDate(_before,_format);var _after=my.attr("data-after");var
after=_after==null?null:$.datepicker.toDate(_after,_format);var $container=$('<div class="bsc-datepicker">');$container.data("trigger",this);var
$yearpicker=$('<div class="yearpicker picker-group">');var $yearpicker_header=$('<div
class="picker-header">');var $yearpicker_header_year_minus=$('<button class="btn btn-default
minus" type="button">');$yearpicker_header_year_minus.html('<span class="glyphicon glyphicon-chevron-left"></span>'
 );var $yearpicker_header_title=$("<h4>&nbsp;</h4>");var $yearpicker_header_year_plus=$('<button
class="btn btn-default plus" type="button">');$yearpicker_header_year_plus.html('<span
class="glyphicon glyphicon-chevron-right"></span>');var $yearpicker_body=$('<div
class="picker-body picker-selectable clearfix">');var $monthpicker=$('<div class="monthpicker
picker-group">');var $monthpicker_header=$('<div class="picker-header">');var $monthpicker_header_year_minus=$('<button
class="btn btn-default minus" type="button">');$monthpicker_header_year_minus.html('<span
class="glyphicon glyphicon-chevron-left"></span>');var $monthpicker_header_title=$("<h4>&nbsp;</h4>");var
$monthpicker_header_year_plus=$('<button class="btn btn-default plus" type="button">');$monthpicker_header_year_plus.html('<span
class="glyphicon glyphicon-chevron-right"></span>');var $monthpicker_body=$('<div
class="picker-body picker-selectable clearfix">');var $datepicker=$('<div class="datepicker
picker-group">');var
  $datepicker_header=$('<div class="picker-header">');
-var $datepicker_header_month_minus=$('<button class="btn btn-default minus" type="button">');$datepicker_header_month_minus.html('<span
class="glyphicon glyphicon-step-backward"></span>');var $datepicker_header_title=$("<h4>&nbsp;</h4>");var
$datepicker_header_month_plus=$('<button class="btn btn-default plus" type="button">');$datepicker_header_month_plus.html('<span
class="glyphicon glyphicon-step-forward"></span>');var $datepicker_body=$('<div
class="picker-body">');var $datepicker_body_description=$('<div class="datepicker-body-description
clearfix">');var $datepicker_body_date=$('<div class="datepicker-body-value picker-selectable
clearfix">');var $timepicker=$('<div class="timepicker picker-group clearfix">');var
$timepicker_group_hours=$('<div class="timepicker-group">');var $timepicker_group_hours_input=$('<input
class="form-control" type="text" />');var $timepicker_group_hours_minus=$('<button type="button"
class="btn btn-default time-minus">');$timepicker_group_hours_minus
 .html('<span class="glyphicon glyphicon-minus"></span>');var $timepicker_group_hours_plus=$('<button
type="button" class="btn btn-default time-plus">');$timepicker_group_hours_plus.html('<span
class="glyphicon glyphicon-plus"></span>');var $timepicker_group_minutes=$('<div
class="timepicker-group">');var $timepicker_group_minutes_input=$('<input class="form-control"
type="text" />');var $timepicker_group_minutes_minus=$('<button type="button" class="btn
btn-default time-minus">');$timepicker_group_minutes_minus.html('<span class="glyphicon
glyphicon-minus"></span>');var $timepicker_group_minutes_plus=$('<button type="button"
class="btn btn-default time-plus">');$timepicker_group_minutes_plus.html('<span class="glyphicon
glyphicon-plus"></span>');var $timepicker_group_seconds=$('<div class="timepicker-group">');var
$timepicker_group_seconds_input=$('<input class="form-control" type="text" />');var
$timepicker_group_seconds_minus=$('<button type="button" class="btn btn-default time-mi
 nus">');$timepicker_group_seconds_minus.html('<span class="glyphicon glyphicon-minus"></span>');var
$timepicker_group_seconds_plus=$('<button type="button" class="btn btn-default time-plus">');$timepicker_group_seconds_plus.html('<span
class="glyphicon glyphicon-plus"></span>');$container.appendTo(container);$container.append($yearpicker);$yearpicker.append($yearpicker_header);$yearpicker_header.append($yearpicker_header_year_minus);$yearpicker_header.append($yearpicker_header_title);$yearpicker_header.append($yearpicker_header_year_plus);$yearpicker.append($yearpicker_body);$container.append($monthpicker);$monthpicker.append($monthpicker_header);$monthpicker_header.append($monthpicker_header_year_minus);$monthpicker_header.append($monthpicker_header_title);$monthpicker_header.append($monthpicker_header_year_plus);$monthpicker.append($monthpicker_body);$.each(["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],function(i,_month){var
$element=$("<span>");$ele
 ment.attr("data-month",i);$element.text(_month);$monthpicker_body.append($element)});$container.append($datepicker);$datepicker.append($datepicker_header);$datepicker_header.append($datepicker_header_month_minus);$datepicker_header.append($datepicker_header_title);$datepicker_header.append($datepicker_header_month_plus);$datepicker.append($datepicker_body);$datepicker_body.append($datepicker_body_description);$.each(["Sun","Mon","Tue","Wed","Thur","Fri","Sat"],function(i,_description){var
$element=$('<span class="disabled">');$element.text(_description);$datepicker_body_description.append($element)});$datepicker_body.append($datepicker_body_date);$container.append($timepicker);$timepicker.append($timepicker_group_hours);$timepicker_group_hours.append($timepicker_group_hours_input);$timepicker_group_hours.append($timepicker_group_hours_minus);$timepicker_group_hours.append($timepicker_group_hours_plus);$timepicker.append('<span
class="timepicker-spliter">:</span>');$timepicker.append
 ($timepicker_group_minutes);$timepicker_group_minutes.append($timepicker_group_minutes_input);$timepicker_group_minutes.append($timepicker_group_minutes_minus);$timepicker_group_minutes.append($timepicker_group_minutes_plus);$timepicker.append('<span
class="timepicker-spliter">:</span>');$timepicker.append($timepicker_group_seconds);$timepicker_group_seconds.append($timepicker_group_seconds_input);$timepicker_group_seconds.append($timepicker_group_seconds_minus);$timepicker_group_seconds.append($timepicker_group_seconds_plus);refreshInstance($container);var
pos=target.offset();$container.offset({left:pos.left,top:pos.top+target.outerHeight(),}).click(function(){_preventEvent=true});$container.getFormat=function(){return
_format};$container.getTarget=function(){return target};$container.getType=function(){return
_type};$container.getDate=function(){return dateCurrent};function refreshCurrentDate(){dateCurrent=getDateInRange(dateCurrent,dateShadow,before,after)}$datepicker_header_titl
 e.click(function(){$datepicker.slideUp();
-$monthpicker.slideDown()});$monthpicker_header_title.click(function(){$monthpicker.slideUp();$yearpicker.slideDown()});$yearpicker_header_year_minus.click(function(){dateShadow=plusDays(dateShadow,-20);refreshCurrentDate();draw()});$yearpicker_header_year_plus.click(function(){dateShadow=plusDays(dateShadow,20);refreshCurrentDate();draw()});$yearpicker_body.on("click","span:not(.disabled)",function(){var
year=Number($(this).text());dateShadow=setDays(dateShadow,year);refreshCurrentDate();draw();if(_type==="year"&&_autoclose){refreshInstance(null)}if(!enable_yearpicker){$yearpicker.slideUp();$monthpicker.slideDown()}});$monthpicker_header_year_minus.click(function(){dateShadow=plusDays(dateShadow,-1);refreshCurrentDate();draw()});$monthpicker_header_year_plus.click(function(){dateShadow=plusDays(dateShadow,1);refreshCurrentDate();draw()});$monthpicker_body.on("click","span:not(.disabled)",function(){var
_month=Number($(this).attr("data-month"));dateShadow=setDays(dateShadow,null,_mon
 th);refreshCurrentDate();draw();if(_type==="month"&&_autoclose){refreshInstance(null)}if(!enable_monthpicker){$monthpicker.slideUp();$datepicker.slideDown()}});$datepicker_header_month_minus.click(function(){dateShadow=plusDays(dateShadow,0,-1);refreshCurrentDate();draw()});$datepicker_header_month_plus.click(function(){dateShadow=plusDays(dateShadow,0,1);refreshCurrentDate();draw()});$datepicker_body.on("click","span:not(.inactive):not(.disabled)",function(){var
_date=Number($(this).text());dateShadow=setDays(dateShadow,null,null,_date);refreshCurrentDate();draw();if(_type==="date"&&_autoclose){refreshInstance(null)}});$timepicker_group_hours_minus.click(function(){dateShadow.setHours(dateShadow.getHours()-1);refreshCurrentDate();draw()});$timepicker_group_hours_plus.click(function(){dateShadow.setHours(dateShadow.getHours()+1);refreshCurrentDate();draw()});$timepicker_group_hours_input.change(function(){var
_val=digitization($(this).val(),0,23);dateShadow.setHours(_val);refreshCur
 rentDate();draw()});$timepicker_group_minutes_minus.click(function(){dateShadow.setMinutes(dateShadow.getMinutes()-1);refreshCurrentDate();draw()});$timepicker_group_minutes_plus.click(function(){dateShadow.setMinutes(dateShadow.getMinutes()+1);refreshCurrentDate();draw()});$timepicker_group_minutes_input.change(function(){var
_val=digitization($(this).val(),0,59);dateShadow.setMinutes(_val);refreshCurrentDate();draw()});$timepicker_group_seconds_minus.click(function(){dateShadow.setSeconds(dateShadow.getSeconds()-1);refreshCurrentDate();draw()});$timepicker_group_seconds_plus.click(function(){dateShadow.setSeconds(dateShadow.getSeconds()+1);refreshCurrentDate();draw()});$timepicker_group_seconds_input.change(function(){var
_val=digitization($(this).val(),0,59);dateShadow.setSeconds(_val);refreshCurrentDate();draw()});if(!enable_yearpicker){$yearpicker.hide()}if(!enable_monthpicker){$monthpicker.hide()}if(!enable_datepicker){$datepicker.hide()}if(!enable_timepicker){$timepicker.hide
 ()}function draw(){var _year=dateShadow.getFullYear();var year_start=_year-_year%20;var year_end=year_start+19;var
_month=dateShadow.getMonth();var month=_month+1;var _date=dateShadow.getDate();var days=getDaysOfMonth(dateShadow);var
_hours=dateShadow.getHours();var _minutes=dateShadow.getMinutes();var _seconds=dateShadow.getSeconds();$yearpicker_header_title.text(year_start+"
- "+year_end);$yearpicker_body.empty();for(var i=year_start;i<=year_end;i+=1){var $element=$("<span>");$element.text(i);if(i==_year){$element.addClass("active")}if((before!=null&&before.getFullYear()<i)||(after!=null&&after.getFullYear()>i)){$element.addClass("disabled")}$yearpicker_body.append($element)}$monthpicker_header_title.text(_year);$monthpicker_body.find("span").each(function(i,ele){var
$element=$(ele);$element.removeClass("active");$element.removeClass("disabled");if(i==_month){$element.addClass("active")}if((before!=null&&before.getFullYear()*100+before.getMonth()<_year*100+i)||(after!=null&&after.
 getFullYear()*100+after.getMonth()>_year*100+i)){$element.addClass("disabled")}});$datepicker_header_title.text($.datepicker.yearMonthTitle.replace(/\$\{month\}/g,$.datepicker.monthName[month-1]).replace(/\$\{year\}/g,_year));$datepicker_body_date.empty();for(var
i=0;i<days[0];i+=1){var $element=$('<span class="inactive">');$datepicker_body_date.append($element)}for(var
i=1;i<=days[1];i+=1){var $element=$("<span>");$element.text(fillZero(i));if(i==_date){$element.addClass("active")}if((before!=null&&before.getFullYear()*10000+before.getMonth()*100+before.getDate()<_year*10000+_month*100+i)||(after!=null&&after.getFullYear()*10000+after.getMonth()*100+after.getDate()>_year*10000+_month*100+i)){$element.addClass("disabled")}$datepicker_body_date.append($element)}$timepicker_group_hours_input.val(fillZero(_hours));$timepicker_group_minutes_input.val(fillZero(_minutes));$timepicker_group_seconds_input.val(fillZero(_seconds))}draw();function
viewToDate(){var _year=$yearpicker_body.find("
 span.active")}});
-$(document).on("click.bs.datepicker",function(event){if(_preventEvent==true){_preventEvent=false}else{refreshInstance(null)}})}(window.jQuery);$._bc.vals.dialog=new
Object();$._bc.vals.dialog.z_index=1051;$.extend({dialog:function(options,callback){var vars=$._bc.vars(options,callback);var
_options=vars.options;var _callback=vars.callback;var _title=$._bc.get(_options,"title","");var
_content=$._bc.get(_options,"content","");var _close=$._bc.get(_options,"close",true);var
_confirm=$._bc.get(_options,"confirm",false);var _buttons=$._bc.get(_options,"buttons",null);var
_fade=$._bc.get(_options,"fade",true);var _size=$._bc.get(_options,"size","");var _ret=null;var
$modal=$('<div class="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true" style="display: none;">');var $modal_dialog=$('<div class="modal-dialog">');var
$modal_content=$('<div class="modal-content">');var $modal_header=$('<div class="modal-header">');var
$modal_header_close=$('<button type="b
 utton" class="close" data-dismiss="modal" aria-hidden="true">x</button>');var $modal_header_head=$('<h4
class="modal-title" id="myModalLabel">');var $modal_body=$('<div class="modal-body">');var
$modal_footer=$('<div class="modal-footer">');$modal.appendTo("body");$modal.append($modal_dialog);$modal_dialog.append($modal_content);$modal_content.append($modal_header);if(_close){$modal_header.append($modal_header_close)}$modal_header.append($modal_header_head);$modal_content.append($modal_body);$modal_content.append($modal_footer);$modal_header_head.html(_title);$modal_body.html(_content);if(_fade){$modal.addClass("fade")}switch(_size){case"small":$modal_dialog.addClass("modal-sm");break;case"large":$modal_dialog.addClass("modal-lg");break}if(_buttons!=null){var
_len=_buttons.length;for(var i=0;i<_len;i+=1){var _btn=_buttons[i];var _name=_btn.name;var
_class=$._bc.get(_btn,"class","btn-default");var _left=_btn.left===true;var _value=$._bc.get(_btn,"value",_name);var
$btn=$('<button typ
 e="button" class="btn">');$btn.text(_name);$btn.addClass(_class);if(_left){$btn.addClass("pull-left")}$btn.data("value",_value);$modal_footer.append($btn);$btn.add($btn_confirm).click(function(){_ret=$(this).data("value");$modal.modal("hide")})}}else{if(_confirm){var
$btn_cancel=$('<button type="button" class="btn btn-default">Cancel</button>').data("value",false);var
$btn_confirm=$('<button type="button" class="btn btn-primary">Confirm</button>').data("value",true);$modal_footer.append($btn_cancel);$modal_footer.append($btn_confirm);$btn_cancel.add($btn_confirm).click(function(){_ret=$(this).data("value");$modal.modal("hide")})}else{var
$btn_close=$('<button type="button" class="btn btn-default">Close</button>').data("value",true);$modal_footer.append($btn_close);$btn_close.click(function(){_ret=$(this).data("value");$modal.modal("hide")})}}$modal.modal(_options);var
$back=$("body div.modal-backdrop:last");$back.css("z-index",$._bc.vals.dialog.z_index);$modal.css("z-index",$._bc.va
 ls.dialog.z_index+1);$._bc.vals.dialog.z_index+=2;$back.one("bsTransitionEnd",function(){if($(".modal.in").length>1){$modal.css("padding-right",$("body").css("padding-right"))}});$modal.on("hide.bs.modal",function(){if(_callback!=null){return
_callback.call($modal,_ret)}});$modal.on("hidden.bs.modal",function(){$(this).remove();$._bc.vals.dialog.z_index-=2;if($(".modal-backdrop").length){$("body").addClass("modal-open")}});return
$modal}});!function($){var _input=null;var _target=null;var _preContent=null;var preventPopup=false;function
updateElement(){if(_input!=null&&_target!=null){var _html=_target.attr("data-editable")=="html";var
content=_input.val();if(_html){_target.html(content)}else{_target.text(content)}if(_preContent!=content){_target.change()}}if(_target!=null){_target.show()}_target=null;if(_input!=null){_input.remove()}_input=null}$(document).on("click.bs.editable","[data-editable]",function(){var
_my=$(this);var _html=_my.attr("data-editable")=="html";var $input=_my.i
 s("pre")?$("<textarea>"):$("<input type='text'>");updateElement();var content=_html?_my.html():_my.text();$input.val(content);_my.after($input);$input.addClass("form-control").css("margin",_my.css("margin")).css("padding",_my.css("padding")).css("font-size",_my.css("font-size")).css("font-family",_my.css("font-family")).css("line-height",_my.css("line-height")).css("display",_my.css("display")).css("min-width",_my.css("width")).css("height","auto").css("width","auto").select().focus();$input.click(function(){preventPopup=true}).keydown(function(event){if(event.which==13){updateElement()}});_my.hide();preventPopup=true;_input=$input;_target=_my;_preContent=content});$(document).on("click.bs.removeEditable",function(){if(preventPopup==true){preventPopup=false;return}updateElement()})}(window.jQuery);$._bc.vals.notify=new
Object();$._bc.vals.notify.region=new Object();$.extend({notify:function(options,callback){var
vars=$._bc.vars(options,callback);var _options=vars.options;var _callba
 ck=vars.callback;
-var _title=$._bc.get(_options,"title","Notification");var _content=$._bc.get(_options,"content","");var
_position=$._bc.get(_options,"position","right,top");var _type=$._bc.get(_options,"type","normal");var
_timeout=$._bc.get(_options,"timeout",4000);var _overtimeout=$._bc.get(_options,"overtimeout",1000);var
_queuetimeout=$._bc.get(_options,"queuetimeout",1000);var _region=$._bc.get(_options,"region","");var
_list=null;var _tt=null;var $notification=$("<div class='alert notification-body'>");var
$btn=$("<button type='button' class='close'>x</button>");if(_region!=""){$notification.attr("data-region",_region);_list=$._bc.vals.notify.region[_region];if(_list==null){_list=$._bc.list();$._bc.vals.notify.region[_region]=_list}_list.add($notification)}if(_position.indexOf("left")!=-1){$notification.addClass("left")}if(_position.indexOf("right")!=-1){$notification.addClass("right")}if(_position.indexOf("top")!=-1){$notification.addClass("top")}if(_position.indexOf("bottom")!=-1){$notifica
 tion.addClass("bottom")}if(_type=="normal"){$notification.addClass("alert-normal")}if(_type=="warning"){$notification.addClass("alert-warning")}if(_type=="danger"){$notification.addClass("alert-danger")}if(_type=="success"){$notification.addClass("alert-success")}if(_type=="info"){$notification.addClass("alert-info")}$notification.append($btn);if(_title==""){_title="&nbsp;"}if(typeof(_title)=="string"){_title="<h5>"+_title+"</h5>"}$notification.append(_title);if(_content!=""){$notification.append(_content)}$("body").append($notification);$notification.hide();$notification.fadeIn();function
close(){if(_list!=null){_list.remove($notification)}$notification.fadeOut(function(){$notification.remove()})}$btn.click(function(){close();refreshAllRelated()});$notification.stopAutoFadeOut=function(){window.clearTimeout(_tt)};$notification.setAutoFadeOut=function(_delay){if(_timeout>0){var
_inner_delay=_delay==null?_timeout:_delay;$notification.stopAutoFadeOut();_tt=window.setTimeout(function()
 {close()},_inner_delay)}};if(_timeout>0){$notification.mouseenter(function(){if(_list==null){$notification.stopAutoFadeOut()}else{for(var
i=_list.length-1;i>=0;i--){var $element=_list[i];$element.stopAutoFadeOut()}}});$notification.mouseleave(function(){refreshAllRelated(_overtimeout)})}function
refreshAllRelated(_delay){var _inner_delay=_delay==null?_timeout:_delay;if(_list==null){$notification.setAutoFadeOut(_inner_delay)}else{var
_istop=_position.indexOf("top")!=-1;var _isbottom=_position.indexOf("bottom")!=-1;var _offset=0;for(var
i=_list.length-1;i>=0;i--){var $element=_list[i];if(_istop){$element.animate({top:_offset,},{queue:false})}else{if(_isbottom){$element.animate({bottom:_offset,},{queue:false})}}var
_marginTop=parseInt($element.css("margin-top").replace("px",""),10);_offset+=$element.outerHeight()+_marginTop;$element.setAutoFadeOut(_inner_delay+i*_queuetimeout)}}}refreshAllRelated();if(_callback!=null){_callback.call($notification)}return
$notification}});!function($){$
 .fn.extend({radio:function(options){var _my=$(this);var vars=$._bc.vars(options);var _options=vars.options;var
_checked=$._bc.get(_options,"checked",null);var _to=$._bc.get(_options,"to",null);var _val=$._bc.get(_options,"value",null);if(_to!=null){_my.attr("data-to",_to)}if(_val!=null){_my.attr("data-value",_val)}if(_checked===true){checkRadio(_my)}else{if(_checked===false){uncheckRadio(_my)}}}});function
checkRadio(_instance){if(_instance.attr("checked")!=null){return}updateTarget(_instance,true)}function
uncheckRadio(_instance){if(_instance.attr("checked")==null){return}updateTarget(_instance,false)}function
updateTarget(_instance,checked){var _val=_instance.attr("data-value");var _name=_instance.attr("name");var
_radios=$(".radio[data-toggle='radio'][name='"+_name+"']");_radios.removeAttr("checked");if(checked){_instance.attr("checked","checked")}else{_val=""}var
_target=$(_instance.attr("data-to"));var _pre_val=_target.val();_target.val(_val);_instance.change();if(_pre_val!=_va
 l){_target.change()}}$(document).on("click.bs.radio",".radio[data-toggle='radio']",function(event){var
_my=$(this);checkRadio(_my)});$(document).on("click.bs.radio","label",function(event){var
_label=$(this);var _my=_label.find(".radio[data-toggle='radio']");if(_my.length!=0){var _disabled=_my.attr("disabled")!=null;if(!_disabled){checkRadio(_my)}}})}(window.jQuery);!function($){$(document).on("click.bs.select","ul.dropdown-menu[role='menu'][data-type='selector']
li a",function(event){var my=$(this);var _val=my.attr("value");var _text=my.text();if(_val==null){_val=_text}var
$field=$(this).closest(".dropdown, .btn-group").find("[data-toggle='dropdown'][data-type='selector']");var
$field_val=$field.find("[data-value]");var $field_target=$($field.attr("data-to"));var pre_val=$field_val.attr("data-value");var
pre_tgt_val=$field_target.val();$field_val.val(_val).text(_text).attr("data-value",_val);$field_target.val(_val);if(pre_val!=_val){my.change()}if(pre_tgt_val!=_val){$field_target.c
 hange()}})}(window.jQuery);
-!function($){$.fn.extend({slider:function(options){if(options==null){options={number:1}}$(this).each(function(){var
_my=$(this);var vars=$._bc.vars(options);var _options=vars.options;var _min=$._bc.get(_options,"min",0);var
_max=$._bc.get(_options,"max",100);_my.attr("data-min",_min);_my.attr("data-max",_max);var
_values=$._bc.get(_options,"value",[]);var _single=$._bc.get(_options,"single",false);var
_mixed=$._bc.get(_options,"mixed",false);var _number=_options.number;if(_number==null&&_values.length!=0){_number=_values.length}if(_number!=null){_my.empty();for(var
i=0;i<_number;i+=1){var $slider=$("<button type='button' class='btn btn-primary slider'
data-toggle='slider'>");_my.append($slider)}}_my.attr("data-slider-container","");if(_single){_my.attr("data-slider-single","")}if(_mixed){_my.attr("data-slider-mixed","")}var
_sliders=_my.find("button[data-toggle='slider']");var _len=_sliders.length;for(var i=_len-1;i>0;i-=1){var
$bac=$("<div data-toggle='slider-background'>");$bac.at
 tr("data-from",i-1);$bac.attr("data-to",i);_my.prepend($bac)}var _len=_values.length;var
_default=_len==0?_min:_values[_len-1];$.each(_sliders,function(i,ele){var _element=$(ele);var
_val=i<_len?_values[i]:_default;setValue(_element,_val);var _style=_element.attr("style");if(_style!=null){_element.attr("style",_style.replace(/margin-left/g,"left"))}});refreshBackfround(_my)})}});function
index(element){return element.parent().find("button[data-toggle='slider']").index(element)}function
getLeft(element){var _process=element.parent();if(_process.attr("data-slider-container")==null){return
Number(element.css("margin-left").replace("px",""))}else{return Number(element.css("left").replace("px",""))}}function
getWidth(element){var _width=element.outerWidth();if(element.parent().attr("data-slider-container")!=null){var
_mgnLeft=Number(element.css("margin-left").replace("px",""));_width+=_mgnLeft*2}return _width}var
_instance=null;var _mouseLeft=0;function getValue(_instance){var _min=Numbe
 r(_instance.parent().attr("data-min"));var _max=Number(_instance.parent().attr("data-max"));if(_min==null||isNaN(_min)){_min=0}if(_max==null||isNaN(_max)){_max=100}var
_process=_instance.parent();var _sliders=_process.find("button[data-toggle='slider']");var
_len=_sliders.length;var _index=index(_instance);var _mixed=_process.attr("data-slider-mixed")!=null;var
_value=0;var _total_width=_process.outerWidth()-1;if(_mixed){_total_width-=getWidth(_instance)}else{$.each(_sliders,function(i,ele){var
_element=$(ele);_total_width-=getWidth(_element)})}if(_process.attr("data-slider-container")==null){for(var
i=0;i<=_index;i+=1){var _element=$(_sliders[i]);var _left=getLeft(_element);_value+=_left}}else{_value=getLeft(_instance);if(!_mixed){for(var
i=0;i<_index;i+=1){var _element=$(_sliders[i]);_value-=getWidth(_element)}}}var _ptg=_value/_total_width;var
_val=_min+(_max-_min)*_ptg;return _val}function setValue(_instance,value){var _process=_instance.parent();var
_min=Number(_process.attr("d
 ata-min"));var _max=Number(_process.attr("data-max"));if(_min==null||isNaN(_min)){_min=0}if(_max==null||isNaN(_max)){_max=100}var
_sliders=_process.find("button[data-toggle='slider']");var _index=index(_instance);var _total_width=_process.outerWidth();$.each(_sliders,function(i,ele){var
_element=$(ele);_total_width-=getWidth(_element)});var _my_left=_total_width*(value-_min)/(_max-_min);for(var
i=0;i<_index;i+=1){var _element=$(_sliders[i]);_my_left+=getWidth(_element)}if(_process.attr("data-slider-container")==null){_instance.css("margin-left",_my_left)}else{_instance.css("left",_my_left)}_instance.val(value).attr("data-value",value)}function
doStart(_instance,event){_mouseLeft=event.pageX-_instance.offset().left;var _process=_instance.parent();if(_process.attr("data-slider-container")==null){var
_sliders=_process.find("button[data-toggle='slider']");var _index=index(_instance);for(var
i=0;i<_index;i+=1){var _element=$(_sliders[i]);_mouseLeft+=getWidth(_element)+getLeft(_element)}}
 }function doMove(_instance,event,recv){var _process=_instance.parent();var _sliders=_process.find("button[data-toggle='slider']");var
_len=_sliders.length;var _index=index(_instance);var _total_width=_process.outerWidth()-1;if(_process.attr("data-slider-container")==null){$.each(_sliders,function(i,ele){var
_element=$(ele);_total_width-=getWidth(_element)});var _value_range=_total_width;for(var i=0;i<_index;i+=1){var
_element=$(_sliders[i]);_value_range-=getLeft(_element)}for(var i=_index+1;i<_len;i+=1){var
_element=$(_sliders[i]);_value_range-=getLeft(_element)}var _instance_left=event.pageX-_process.offset().left-_mouseLeft;if(_instance_left<0){_instance_left=0}if(_instance_left>_value_range){_instance_left=_value_range}_instance.css("margin-left",_instance_left)}else{var
_mixed=_process.attr("data-slider-mixed")!=null;var _single=_mixed||_process.attr("data-slider-single")!=null;var
_pre_left=getLeft(_instance);var _value_start=0;var _value_end=_total_width-getWidth(_instance);if
 (!_mixed){if(_index>0){var _prev=$(_sliders[_index-1]);
-_value_start=getLeft(_prev)+getWidth(_prev)}if(_index<_len-1){if(_single){var _next=$(_sliders[_index+1]);_value_end=getLeft(_next)-getWidth(_instance)}else{var
_next=$(_sliders[_index+1]);var _last=$(_sliders[_len-1]);_value_end=_total_width-(getLeft(_last)-getLeft(_instance))-getWidth(_last)}}}var
_instance_left=event.pageX-_process.offset().left-_mouseLeft;if(_instance_left<_value_start){_instance_left=_value_start}if(_instance_left>_value_end){_instance_left=_value_end}_instance.css("left",_instance_left);if(!_single){var
_dis=_instance_left-_pre_left;for(var i=_index+1;i<_len;i+=1){var _element=$(_sliders[i]);_element.css("left",(getLeft(_element)+_dis))}}}}function
doChange(_instance){var _target=$(_instance.attr("data-to"));var _pre_val=Number(_target.val());var
_val=getValue(_instance);_instance.val(_val).attr("data-value",_val);_target.val(_val);if(_pre_val!=_val){_target.change()}}function
refreshBackfround(_instance){var _process=$(_instance);if(_process.attr("data-slider
 -container")==null){_process=_process.parent()}var _sliders=_process.find("button[data-toggle='slider']");var
_lenSliders=_sliders.length;var _backgrounds=_process.find("div[data-toggle='slider-background']");var
_lenBackgrounds=_backgrounds.length;for(var i=0;i<_lenBackgrounds;i+=1){var _bac=$(_backgrounds[i]);var
_prev=$(_sliders[i]);var _next=$(_sliders[i+1]);var _left=getLeft(_prev)+getWidth(_prev)*0.5;var
_right=getLeft(_next)+getWidth(_next)*0.5;var _width=_right-_left;_bac.css("left",_left);_bac.outerWidth(_width)}}$(document).on("mousedown.bs.slider","button[data-toggle='slider']",function(event){if(event.button==0){_instance=$(this);doStart(_instance,event)}});$(document).on("mousemove.bs.slider",function(event){if(_instance!=null){doMove(_instance,event);doChange(_instance);var
_process=_instance.parent();var _sliders=_process.find("button[data-toggle='slider']");var
_len=_sliders.length;var _index=index(_instance);$.each(_sliders,function(i,element){if(i!=_index){doChange
 ($(element))}});refreshBackfround(_instance)}});$(document).on("mouseup.bs.slider",function(event){if(event.button==0){_instance=null}})}(window.jQuery);!function($){$.fn.extend({tree:function(data,options){var
_my=$(this);options=options||{};var _name=data.name;var _list=data.list||[];var _enabled=data.enabled!==false;var
_open=_enabled?data.open!==false:data.open===true;var $ul=_my.is("ul")?_my:$("<ul class='treeView'>").appendTo(_my);var
$li=$("<li>").appendTo($ul);var $a=$("<a class='tree-icon glyphicon'>").appendTo($li);var
$name=(data.url?$("<a>").attr("href",data.url):$("<span>")).html(_name).insertAfter($a);if(!_enabled){$li.addClass("disabled")}if(_list.length){var
cls_folder_open=options.folderOpenIcon||"glyphicon-folder-close";var cls_folder_close=options.folderCloseIcon||"glyphicon-folder-open";$a.attr("data-toggle","tree").attr("data-icon-open",cls_folder_open).attr("data-icon-close",cls_folder_close).addClass("glyphicon").addClass(_open?cls_folder_close:cls_folder_open
 );var $sub_ul=$("<ul class='tree-list'>").appendTo($li);$.each(_list,function(i,data){$sub_ul.tree(data,options)});if(!_open){$sub_ul.hide()}}else{var
cls_file=options.itemIcon||"glyphicon-file";$a.addClass(cls_file)}return _my},});$(document).on("click.bs.treeView","[data-toggle='tree']",function(event){event.preventDefault();var
_my=$(this);if(_my.closest("li").hasClass("disabled")){return}var $list=_my.parent().find(">
.tree-list");var clsOpen=_my.attr("data-icon-open");var clsClose=_my.attr("data-icon-close");if($list.is(":hidden")){_my.removeClass(clsOpen);_my.addClass(clsClose);$list.slideDown()}else{_my.addClass(clsOpen);_my.removeClass(clsClose);$list.slideUp()}})}(window.jQuery);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/e931c210/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.legend.js
----------------------------------------------------------------------
diff --git a/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.legend.js
b/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.legend.js
index b0147e5..b402303 100644
--- a/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.legend.js
+++ b/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.legend.js
@@ -1,9 +1,23 @@
-"use strict";
-
-/* Flot Plugin: Tooltip
- * Author: Jinlin, Jiang
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
+"use strict";
+
 (function($) {
 	var defaultOptions = {
 		legend : {

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/e931c210/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.tooltip.js
----------------------------------------------------------------------
diff --git a/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.tooltip.js
b/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.tooltip.js
index 208e998..e5a8672 100644
--- a/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.tooltip.js
+++ b/eagle-webservice/src/main/webapp/app/public/assets/flot/jquery.flot.tooltip.js
@@ -1,9 +1,23 @@
-"use strict";
-
-/* Flot Plugin: Tooltip
- * Author: Jinlin, Jiang
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 
+"use strict";
+
 (function($) {
 	// Common
 	function getValueByPath(unit, path, defaultValue) {

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/e931c210/eagle-webservice/src/main/webapp/grunt.json
----------------------------------------------------------------------
diff --git a/eagle-webservice/src/main/webapp/grunt.json b/eagle-webservice/src/main/webapp/grunt.json
index 78f4c30..ca8691a 100644
--- a/eagle-webservice/src/main/webapp/grunt.json
+++ b/eagle-webservice/src/main/webapp/grunt.json
@@ -8,7 +8,7 @@
 				"node_modules/jquery/dist/jquery.min.js",
 				"node_modules/jquery-slimscroll/jquery.slimscroll.min.js",
 				"node_modules/bootstrap/dist/js/bootstrap.min.js",
-				"app/public/assets/bootstrap-components/js/bootstrap-components.min.js",
+				"node_modules/zombiej-bootstrap-components/bootstrap-components/js/bootstrap-components.min.js",
 				"node_modules/moment/min/moment-with-locales.min.js",
 				"node_modules/moment-timezone/builds/moment-timezone-with-data.min.js",
 				"node_modules/admin-lte/dist/js/app.min.js",
@@ -33,7 +33,7 @@
 		"css": {
 			"src": [
 				"node_modules/bootstrap/dist/css/bootstrap.min.css",
-				"app/public/assets/bootstrap-components/css/bootstrap-components.min.css",
+				"node_modules/zombiej-bootstrap-components/bootstrap-components/css/bootstrap-components.min.css",
 				"node_modules/font-awesome/css/font-awesome.min.css",
 				"node_modules/admin-lte/dist/css/AdminLTE.min.css",
 				"node_modules/admin-lte/dist/css/skins/skin-blue.min.css",

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/e931c210/eagle-webservice/src/main/webapp/package.json
----------------------------------------------------------------------
diff --git a/eagle-webservice/src/main/webapp/package.json b/eagle-webservice/src/main/webapp/package.json
index f07a6d3..1cdd879 100644
--- a/eagle-webservice/src/main/webapp/package.json
+++ b/eagle-webservice/src/main/webapp/package.json
@@ -22,7 +22,8 @@
 		"angular-ui-bootstrap"	: "0.14.3",
 		"Flot": "git+https://github.com/flot/flot.git#v0.8.3",
 		"d3"					: "3.5.9",
-		"jquery-slimscroll": "1.3.6"
+		"jquery-slimscroll": "1.3.6",
+		"zombiej-bootstrap-components"		: "~1.1.1"
 	},
 
 	"devDependencies": {



Mime
View raw message