ledgerrb/public/app/bower_components/angular-material/angular-material.min.js

2 lines
46 KiB
JavaScript
Raw Normal View History

2014-11-03 17:32:25 +01:00
!function(){angular.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.decorators","material.animations","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.content","material.components.dialog","material.components.divider","material.components.icon","material.components.list","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.textField","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.whiteframe","material.services.aria","material.services.attrBind","material.services.compiler","material.services.interimElement","material.services.registry"])}(),function(){angular.module("material.core",[]).run(function(){if("undefined"==typeof Hammer)throw new Error("ngMaterial requires HammerJS to be preloaded.")})}(),function(){angular.module("material.core").constant("$mdConstant",{KEY_CODE:{ENTER:13,ESCAPE:27,SPACE:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40}})}(),function(){angular.module("material.core").factory("$mdUtil",function(){function e(e,t){function n(){return[].concat($)}function i(){return $.length}function r(e){return $.length&&e>-1&&e<$.length}function a(e){return e?r(d(e)+1):!1}function o(e){return e?r(d(e)-1):!1}function c(e){return r(e)?$[e]:null}function l(e,t){return $.filter(function(n){return n[e]===t})}function s(e,t){return e?(angular.isNumber(t)||(t=$.length),$.splice(t,0,e),d(e)):-1}function u(e){m(e)&&$.splice(d(e),1)}function d(e){return $.indexOf(e)}function m(e){return e&&d(e)>-1}function f(e,n){if(n=n||h,m(e)){var i=d(e)+1,a=r(i)?$[i]:t?v():null;return n(a)?a:f(a,n)}return null}function p(e,n){if(n=n||h,m(e)){var i=d(e)-1,a=r(i)?$[i]:t?g():null;return n(a)?a:p(a,n)}return null}function v(){return $.length?$[0]:null}function g(){return $.length?$[$.length-1]:null}var h=function(){return!0};t=!!t;var $=e||[];return{items:n,count:i,inRange:r,contains:m,indexOf:d,itemAt:c,findBy:l,add:s,remove:u,first:v,last:g,next:f,previous:p,hasPrevious:o,hasNext:a}}var t,n=/([\:\-\_]+(.))/g,i=["0","0","0"];return t={now:window.performance?angular.bind(window.performance,window.performance.now):Date.now,ancestorHasAttribute:function(e,t,n){n=n||4;for(var i=e;n--&&i.length;){if(i[0].hasAttribute&&i[0].hasAttribute(t))return!0;i=i.parent()}return!1},isParentDisabled:function(e,n){return t.ancestorHasAttribute(e,"disabled",n)},elementIsSibling:function(e,t){return e.parent().length&&e.parent()[0]===t.parent()[0]},camelCase:function(e){return e.replace(n,function(e,t,n,i){return i?n.toUpperCase():n})},stringFromTextBody:function(e,t){var n=e.trim();return n.split(/\s+/).length>t&&(n=e.split(/\s+/).slice(1,t+1).join(" ")+"..."),n},iterator:e,debounce:function(e,t,n){var i;return function(){var r=this,a=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(r,a)},t),n&&!i&&e.apply(r,a)}},throttle:function(e,n){var i;return function(){var r=this,a=arguments,o=t.now();(!i||i-o>n)&&(e.apply(r,a),i=o)}},wrap:function(e,t,n){e.hasOwnProperty(0)&&(e=e[0]);var i=document.createElement(t);return i.className+=n,i.appendChild(e.parentNode.replaceChild(i,e)),angular.element(i)},nextUid:function(){for(var e,t=i.length;t;){if(t--,e=i[t].charCodeAt(0),57==e)return i[t]="A",i.join("");if(90!=e)return i[t]=String.fromCharCode(e+1),i.join("");i[t]="0"}return i.unshift("0"),i.join("")},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:func
return a.detachSwipe=c(r,function(t){r.addClass(t.type),e(l.hide)}),n.enter(r,a.parent)}function a(e,t,i){return i.detachSwipe(),i.parent.removeClass(o(i.position)),n.leave(t)}function o(e){return"md-toast-open-"+(e.indexOf("top")>-1?"top":"bottom")}var c={onShow:r,onRemove:a,position:"bottom left",hideDelay:3e3},l=t(c);return l}angular.module("material.components.toast",["material.services.interimElement","material.components.swipe"]).directive("mdToast",[e]).factory("$mdToast",["$timeout","$$interimElement","$animate","$mdSwipe",t])}(),function(){function e(e,t,n){return{restrict:"E",controller:angular.noop,link:function(i,r,a){function o(){function o(t,i){n.elementIsSibling(r,i)&&(u&&u.off("scroll",p),i.on("scroll",p),i.attr("scroll-shrink","true"),u=i,e(c))}function c(){s=r.prop("offsetHeight"),u.css("margin-top",-s*f+"px"),l()}function l(e){var n=e?e.target.scrollTop:m;v(),d=Math.min(s/f,Math.max(0,d+n-m)),r.css(t.TRANSFORM,"translate3d(0,"+-d*f+"px,0)"),u.css(t.TRANSFORM,"translate3d(0,"+(s-d)*f+"px,0)"),m=n}var s,u,d=0,m=0,f=a.shrinkSpeedFactor||.5,p=e.debounce(l),v=n.debounce(c,5e3);i.$on("$mdContentLoaded",o)}angular.isDefined(a.scrollShrink)&&o()}}}angular.module("material.components.toolbar",["material.core","material.components.content","material.animations"]).directive("mdToolbar",["$$rAF","$mdEffects","$mdUtil",e])}(),function(){function e(e,t,n,i,r){function a(i,a,s,u){function d(){i.visible&&v()}function m(t){m.value=!!t,m.queued||(t?(m.queued=!0,e(function(){i.visible=m.value,m.queued=!1},o)):e(function(){i.visible=!1}))}function f(){a.removeClass("tooltip-hide"),g.attr("aria-describedby",a.attr("id")),l.append(a),n(function(){n(function(){v(),i.visible&&a.addClass("tooltip-show")})})}function p(){a.removeClass("tooltip-show").addClass("tooltip-hide"),g.removeAttr("aria-describedby"),e(function(){i.visible||a.detach()},200,!1)}function v(){var e=a[0].getBoundingClientRect(),n=g[0].getBoundingClientRect();u&&(n.top+=u.$element.prop("scrollTop"),n.left+=u.$element.prop("scrollLeft"));var i="bottom",r={left:n.left+n.width/2-e.width/2,top:n.top+n.height};r.left=Math.min(r.left,t.innerWidth-e.width-c),r.left=Math.max(r.left,c),r.top+e.height>t.innerHeight&&(r.top=n.top-e.height,i="top"),a.css({top:r.top+"px",left:r.left+"px"}),a.attr("width-32",Math.ceil(e.width/32)),a.attr("tooltip-direction",i)}var g=a.parent();a.detach(),a.attr("role","tooltip"),a.attr("id",s.id||"tooltip_"+r.nextUid()),g.on("focus mouseenter touchstart",function(){m(!0)}),g.on("blur mouseleave touchend touchcancel",function(){document.activeElement!==g[0]&&m(!1)}),i.$watch("visible",function(e){e?f():p()});var h=n.debounce(d);angular.element(t).on("resize",h),i.$on("$destroy",function(){i.visible=!1,a.remove(),angular.element(t).off("resize",h)})}var o=400,c=8,l=angular.element(document.body);return{restrict:"E",transclude:!0,require:"^?mdContent",template:'<div class="tooltip-background"></div><div class="tooltip-content" ng-transclude></div>',scope:{visible:"=?"},link:a}}angular.module("material.components.tooltip",["material.core"]).directive("mdTooltip",["$timeout","$window","$$rAF","$document","$mdUtil",e])}(),function(){angular.module("material.components.whiteframe",[])}(),function(){function e(){function e(e,t,n){var i=e[0];if(!i.hasAttribute(t)){var r=angular.isDefined(n);r&&(n=String(n).trim(),e.attr(t,n))}}return{expect:e}}angular.module("material.services.aria",[]).service("$mdAria",["$log",e])}(),function(){function e(e,t){var n=/^\s*([@=&])(\??)\s*(\w*)\s*$/;return function(i,r,a,o){function c(e,t,n){if(!angular.isDefined(r[e])){var a=o&&o.hasOwnProperty(t);return i[t]=a?o[t]:n,!0}return!1}angular.forEach(a||{},function(a,o){var l,s,u=a.match(n)||[],d=u[3]||o,m=u[1];switch(m){case"@":r.$observe(d,function(e){i[o]=e}),r.$$observers[d].$$scope=i,c(d,o)||(i[o]=t(r[d])(i));break;case"=":c(d,o)||(i[o]=""===r[d]?!0:i.$eval(r[d]),s=i.$watch(r[d],function(e){i[o]=e}),i.$on("$destroy",s));break;case"&":if(!c(d,o,angular.noop)){if(r[d]&&r[d].match(RegExp(o+"(.*?)")))throw new Error('& expression binding "'+o+'" looks like it will rec