rails-angular-strap 0.0.1 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +2 -0
  3. data/README.md +10 -2
  4. data/lib/rails-angular-strap.rb +4 -6
  5. data/lib/rails-angular-strap/version.rb +1 -2
  6. data/vendor/assets/javascripts/angular-strap-unstable.js +2 -0
  7. data/vendor/assets/javascripts/angular-strap-unstable.min.js +2 -0
  8. data/vendor/assets/javascripts/angular-strap/angular-strap.min.js.map +1 -0
  9. data/vendor/assets/javascripts/angular-strap/unstable/angular-strap.js +5040 -0
  10. data/vendor/assets/javascripts/angular-strap/unstable/angular-strap.min.js +11 -0
  11. data/vendor/assets/javascripts/angular-strap/unstable/angular-strap.min.js.map +1 -0
  12. data/vendor/assets/javascripts/angular-strap/unstable/angular-strap.tpl.js +89 -0
  13. data/vendor/assets/javascripts/angular-strap/unstable/angular-strap.tpl.min.js +8 -0
  14. data/vendor/assets/javascripts/angular-strap/unstable/modules/affix.js +249 -0
  15. data/vendor/assets/javascripts/angular-strap/unstable/modules/affix.min.js +9 -0
  16. data/vendor/assets/javascripts/angular-strap/unstable/modules/affix.min.js.map +1 -0
  17. data/vendor/assets/javascripts/angular-strap/unstable/modules/alert.js +120 -0
  18. data/vendor/assets/javascripts/angular-strap/unstable/modules/alert.min.js +9 -0
  19. data/vendor/assets/javascripts/angular-strap/unstable/modules/alert.min.js.map +1 -0
  20. data/vendor/assets/javascripts/angular-strap/unstable/modules/alert.tpl.js +14 -0
  21. data/vendor/assets/javascripts/angular-strap/unstable/modules/alert.tpl.min.js +8 -0
  22. data/vendor/assets/javascripts/angular-strap/unstable/modules/aside.js +96 -0
  23. data/vendor/assets/javascripts/angular-strap/unstable/modules/aside.min.js +9 -0
  24. data/vendor/assets/javascripts/angular-strap/unstable/modules/aside.min.js.map +1 -0
  25. data/vendor/assets/javascripts/angular-strap/unstable/modules/aside.tpl.js +14 -0
  26. data/vendor/assets/javascripts/angular-strap/unstable/modules/aside.tpl.min.js +8 -0
  27. data/vendor/assets/javascripts/angular-strap/unstable/modules/button.js +177 -0
  28. data/vendor/assets/javascripts/angular-strap/unstable/modules/button.min.js +9 -0
  29. data/vendor/assets/javascripts/angular-strap/unstable/modules/button.min.js.map +1 -0
  30. data/vendor/assets/javascripts/angular-strap/unstable/modules/collapse.js +273 -0
  31. data/vendor/assets/javascripts/angular-strap/unstable/modules/collapse.min.js +9 -0
  32. data/vendor/assets/javascripts/angular-strap/unstable/modules/collapse.min.js.map +1 -0
  33. data/vendor/assets/javascripts/angular-strap/unstable/modules/date-formatter.js +61 -0
  34. data/vendor/assets/javascripts/angular-strap/unstable/modules/date-formatter.min.js +9 -0
  35. data/vendor/assets/javascripts/angular-strap/unstable/modules/date-formatter.min.js.map +1 -0
  36. data/vendor/assets/javascripts/angular-strap/unstable/modules/date-parser.js +273 -0
  37. data/vendor/assets/javascripts/angular-strap/unstable/modules/date-parser.min.js +9 -0
  38. data/vendor/assets/javascripts/angular-strap/unstable/modules/date-parser.min.js.map +1 -0
  39. data/vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.js +640 -0
  40. data/vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.min.js +9 -0
  41. data/vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.min.js.map +1 -0
  42. data/vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.tpl.js +14 -0
  43. data/vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.tpl.min.js +8 -0
  44. data/vendor/assets/javascripts/angular-strap/unstable/modules/debounce.js +62 -0
  45. data/vendor/assets/javascripts/angular-strap/unstable/modules/debounce.min.js +9 -0
  46. data/vendor/assets/javascripts/angular-strap/unstable/modules/debounce.min.js.map +1 -0
  47. data/vendor/assets/javascripts/angular-strap/unstable/modules/dimensions.js +156 -0
  48. data/vendor/assets/javascripts/angular-strap/unstable/modules/dimensions.min.js +9 -0
  49. data/vendor/assets/javascripts/angular-strap/unstable/modules/dimensions.min.js.map +1 -0
  50. data/vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.js +149 -0
  51. data/vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.min.js +9 -0
  52. data/vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.min.js.map +1 -0
  53. data/vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.tpl.js +14 -0
  54. data/vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.tpl.min.js +8 -0
  55. data/vendor/assets/javascripts/angular-strap/unstable/modules/modal.js +357 -0
  56. data/vendor/assets/javascripts/angular-strap/unstable/modules/modal.min.js +9 -0
  57. data/vendor/assets/javascripts/angular-strap/unstable/modules/modal.min.js.map +1 -0
  58. data/vendor/assets/javascripts/angular-strap/unstable/modules/modal.tpl.js +14 -0
  59. data/vendor/assets/javascripts/angular-strap/unstable/modules/modal.tpl.min.js +8 -0
  60. data/vendor/assets/javascripts/angular-strap/unstable/modules/navbar.js +72 -0
  61. data/vendor/assets/javascripts/angular-strap/unstable/modules/navbar.min.js +9 -0
  62. data/vendor/assets/javascripts/angular-strap/unstable/modules/navbar.min.js.map +1 -0
  63. data/vendor/assets/javascripts/angular-strap/unstable/modules/parse-options.js +76 -0
  64. data/vendor/assets/javascripts/angular-strap/unstable/modules/parse-options.min.js +9 -0
  65. data/vendor/assets/javascripts/angular-strap/unstable/modules/parse-options.min.js.map +1 -0
  66. data/vendor/assets/javascripts/angular-strap/unstable/modules/popover.js +112 -0
  67. data/vendor/assets/javascripts/angular-strap/unstable/modules/popover.min.js +9 -0
  68. data/vendor/assets/javascripts/angular-strap/unstable/modules/popover.min.js.map +1 -0
  69. data/vendor/assets/javascripts/angular-strap/unstable/modules/popover.tpl.js +14 -0
  70. data/vendor/assets/javascripts/angular-strap/unstable/modules/popover.tpl.min.js +8 -0
  71. data/vendor/assets/javascripts/angular-strap/unstable/modules/raf.js +61 -0
  72. data/vendor/assets/javascripts/angular-strap/unstable/modules/raf.min.js +9 -0
  73. data/vendor/assets/javascripts/angular-strap/unstable/modules/raf.min.js.map +1 -0
  74. data/vendor/assets/javascripts/angular-strap/unstable/modules/scrollspy.js +261 -0
  75. data/vendor/assets/javascripts/angular-strap/unstable/modules/scrollspy.min.js +9 -0
  76. data/vendor/assets/javascripts/angular-strap/unstable/modules/scrollspy.min.js.map +1 -0
  77. data/vendor/assets/javascripts/angular-strap/unstable/modules/select.js +328 -0
  78. data/vendor/assets/javascripts/angular-strap/unstable/modules/select.min.js +9 -0
  79. data/vendor/assets/javascripts/angular-strap/unstable/modules/select.min.js.map +1 -0
  80. data/vendor/assets/javascripts/angular-strap/unstable/modules/select.tpl.js +14 -0
  81. data/vendor/assets/javascripts/angular-strap/unstable/modules/select.tpl.min.js +8 -0
  82. data/vendor/assets/javascripts/angular-strap/unstable/modules/tab.js +186 -0
  83. data/vendor/assets/javascripts/angular-strap/unstable/modules/tab.min.js +9 -0
  84. data/vendor/assets/javascripts/angular-strap/unstable/modules/tab.min.js.map +1 -0
  85. data/vendor/assets/javascripts/angular-strap/unstable/modules/tab.tpl.js +14 -0
  86. data/vendor/assets/javascripts/angular-strap/unstable/modules/tab.tpl.min.js +8 -0
  87. data/vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.js +485 -0
  88. data/vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.min.js +9 -0
  89. data/vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.min.js.map +1 -0
  90. data/vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.tpl.js +14 -0
  91. data/vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.tpl.min.js +8 -0
  92. data/vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.js +705 -0
  93. data/vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.min.js +9 -0
  94. data/vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.min.js.map +1 -0
  95. data/vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.tpl.js +14 -0
  96. data/vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.tpl.min.js +8 -0
  97. data/vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.js +266 -0
  98. data/vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.min.js +9 -0
  99. data/vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.min.js.map +1 -0
  100. data/vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.tpl.js +14 -0
  101. data/vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.tpl.min.js +8 -0
  102. metadata +119 -3
@@ -0,0 +1,9 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.1.6 - 2015-02-08
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ "use strict";angular.module("mgcrea.ngStrap.tooltip",["mgcrea.ngStrap.helpers.dimensions"]).provider("$tooltip",function(){var t=this.defaults={animation:"am-fade",customClass:"",prefixClass:"tooltip",prefixEvent:"tooltip",container:!1,target:!1,placement:"top",template:"tooltip/tooltip.tpl.html",contentTemplate:!1,trigger:"hover focus",keyboard:!1,html:!1,show:!1,title:"",type:"",delay:0,autoClose:!1,bsEnabled:!0};this.$get=["$window","$rootScope","$compile","$q","$templateCache","$http","$animate","$sce","dimensions","$$rAF","$timeout",function(e,n,o,i,a,r,l,s,u,c,f){function p(e,i){function a(){K.$emit(O.prefixEvent+".show",F)}function r(){if(K.$emit(O.prefixEvent+".hide",F),q===W){if(R&&"focus"===O.trigger)return e[0].blur();P()}}function p(){var t=O.trigger.split(" ");angular.forEach(t,function(t){"click"===t?e.on("click",F.toggle):"manual"!==t&&(e.on("hover"===t?"mouseenter":"focus",F.enter),e.on("hover"===t?"mouseleave":"blur",F.leave),"button"===A&&"hover"!==t&&e.on($?"touchstart":"mousedown",F.$onFocusElementMouseDown))})}function v(){for(var t=O.trigger.split(" "),n=t.length;n--;){var o=t[n];"click"===o?e.off("click",F.toggle):"manual"!==o&&(e.off("hover"===o?"mouseenter":"focus",F.enter),e.off("hover"===o?"mouseleave":"blur",F.leave),"button"===A&&"hover"!==o&&e.off($?"touchstart":"mousedown",F.$onFocusElementMouseDown))}}function y(){"focus"!==O.trigger?q.on("keyup",F.$onKeyUp):e.on("keyup",F.$onFocusKeyUp)}function k(){"focus"!==O.trigger?q.off("keyup",F.$onKeyUp):e.off("keyup",F.$onFocusKeyUp)}function S(){f(function(){q.on("click",E),w.on("click",F.hide),z=!0},0,!1)}function C(){z&&(q.off("click",E),w.off("click",F.hide),z=!1)}function E(t){t.stopPropagation()}function x(t){t=t||O.target||e;var n=t[0],o=n.getBoundingClientRect(),i={};for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);null===o.width&&(i=angular.extend({},i,{width:o.right-o.left,height:o.bottom-o.top}));var r;return r="body"===O.container?u.offset(n):u.position(n),angular.extend({},i,r)}function D(t,e,n,o){var i,a=t.split("-");switch(a[0]){case"right":i={top:e.top+e.height/2-o/2,left:e.left+e.width};break;case"bottom":i={top:e.top+e.height,left:e.left+e.width/2-n/2};break;case"left":i={top:e.top+e.height/2-o/2,left:e.left-n};break;default:i={top:e.top-o,left:e.left+e.width/2-n/2}}if(!a[1])return i;if("top"===a[0]||"bottom"===a[0])switch(a[1]){case"left":i.left=e.left;break;case"right":i.left=e.left+e.width-n}else if("left"===a[0]||"right"===a[0])switch(a[1]){case"top":i.top=e.top-o;break;case"bottom":i.top=e.top+e.height}return i}function T(t,e){q.css({top:t+"px",left:e+"px"})}function P(){clearTimeout(H),F.$isShown&&null!==q&&(O.autoClose&&C(),O.keyboard&&k()),B&&(B.$destroy(),B=null),q&&(q.remove(),q=F.$element=null)}var F={},A=e[0].nodeName.toLowerCase(),O=F.$options=angular.extend({},t,i);F.$promise=g(O.template);var K=F.$scope=O.scope&&O.scope.$new()||n.$new();if(O.delay&&angular.isString(O.delay)){var U=O.delay.split(",").map(parseFloat);O.delay=U.length>1?{show:U[0],hide:U[1]}:U[0]}F.$id=O.id||e.attr("id")||"",O.title&&(K.title=s.trustAsHtml(O.title)),K.$setEnabled=function(t){K.$$postDigest(function(){F.setEnabled(t)})},K.$hide=function(){K.$$postDigest(function(){F.hide()})},K.$show=function(){K.$$postDigest(function(){F.show()})},K.$toggle=function(){K.$$postDigest(function(){F.toggle()})},F.$isShown=K.$isShown=!1;var H,M;O.contentTemplate&&(F.$promise=F.$promise.then(function(t){var e=angular.element(t);return g(O.contentTemplate).then(function(t){var n=d('[ng-bind="content"]',e[0]);return n.length||(n=d('[ng-bind="title"]',e[0])),n.removeAttr("ng-bind").html(t),e[0].outerHTML})}));var j,q,L,N,B;F.$promise.then(function(t){angular.isObject(t)&&(t=t.data),O.html&&(t=t.replace(b,'ng-bind-html="')),t=m.apply(t),L=t,j=o(t),F.init()}),F.init=function(){O.delay&&angular.isNumber(O.delay)&&(O.delay={show:O.delay,hide:O.delay}),"self"===O.container?N=e:angular.isElement(O.container)?N=O.container:O.container&&(N=d(O.container)),p(),O.target&&(O.target=angular.isElement(O.target)?O.target:d(O.target)),O.show&&K.$$postDigest(function(){"focus"===O.trigger?e[0].focus():F.show()})},F.destroy=function(){v(),P(),K.$destroy()},F.enter=function(){return clearTimeout(H),M="in",O.delay&&O.delay.show?void(H=setTimeout(function(){"in"===M&&F.show()},O.delay.show)):F.show()},F.show=function(){if(O.bsEnabled&&!F.$isShown){K.$emit(O.prefixEvent+".show.before",F);var t,n;O.container?(t=N,n=N[0].lastChild?angular.element(N[0].lastChild):null):(t=null,n=e),q&&P(),B=F.$scope.$new(),q=F.$element=j(B,function(){}),q.css({top:"-9999px",left:"-9999px",display:"block",visibility:"hidden"}),O.animation&&q.addClass(O.animation),O.type&&q.addClass(O.prefixClass+"-"+O.type),O.customClass&&q.addClass(O.customClass);var o=l.enter(q,t,n,a);o&&o.then&&o.then(a),F.$isShown=K.$isShown=!0,h(K),c(function(){F.$applyPlacement(),q&&q.css({visibility:"visible"})}),O.keyboard&&("focus"!==O.trigger&&F.focus(),y()),O.autoClose&&S()}},F.leave=function(){return clearTimeout(H),M="out",O.delay&&O.delay.hide?void(H=setTimeout(function(){"out"===M&&F.hide()},O.delay.hide)):F.hide()};var R,W;F.hide=function(t){if(F.$isShown){K.$emit(O.prefixEvent+".hide.before",F),R=t,W=q;var e=l.leave(q,r);e&&e.then&&e.then(r),F.$isShown=K.$isShown=!1,h(K),O.keyboard&&null!==q&&k(),O.autoClose&&null!==q&&C()}},F.toggle=function(){F.$isShown?F.leave():F.enter()},F.focus=function(){q[0].focus()},F.setEnabled=function(t){O.bsEnabled=t},F.$applyPlacement=function(){if(q){var n=O.placement,o=/\s?auto?\s?/i,i=o.test(n);i&&(n=n.replace(o,"")||t.placement),q.addClass(O.placement);var a=x(),r=q.prop("offsetWidth"),l=q.prop("offsetHeight");if(i){var s=n,u=O.container?angular.element(document.querySelector(O.container)):e.parent(),c=x(u);s.indexOf("bottom")>=0&&a.bottom+l>c.bottom?n=s.replace("bottom","top"):s.indexOf("top")>=0&&a.top-l<c.top&&(n=s.replace("top","bottom")),("right"===s||"bottom-left"===s||"top-left"===s)&&a.right+r>c.width?n="right"===s?"left":n.replace("left","right"):("left"===s||"bottom-right"===s||"top-right"===s)&&a.left-r<c.left&&(n="left"===s?"right":n.replace("right","left")),q.removeClass(s).addClass(n)}var f=D(n,a,r,l);T(f.top,f.left)}},F.$onKeyUp=function(t){27===t.which&&F.$isShown&&(F.hide(),t.stopPropagation())},F.$onFocusKeyUp=function(t){27===t.which&&(e[0].blur(),t.stopPropagation())},F.$onFocusElementMouseDown=function(t){t.preventDefault(),t.stopPropagation(),F.$isShown?e[0].blur():e[0].focus()};var z=!1;return F}function h(t){t.$$phase||t.$root&&t.$root.$$phase||t.$digest()}function d(t,e){return angular.element((e||document).querySelectorAll(t))}function g(t){return v[t]?v[t]:v[t]=i.when(a.get(t)||r.get(t)).then(function(e){return angular.isObject(e)?(a.put(t,e.data),e.data):e})}var m=String.prototype.trim,$="createTouch"in e.document,b=/ng-bind="/gi,w=angular.element(e.document),v={};return p}]}).directive("bsTooltip",["$window","$location","$sce","$tooltip","$$rAF",function(t,e,n,o,i){return{restrict:"EAC",scope:!0,link:function(t,e,a){var r={scope:t};angular.forEach(["template","contentTemplate","placement","container","delay","trigger","keyboard","html","animation","backdropAnimation","type","customClass","id"],function(t){angular.isDefined(a[t])&&(r[t]=a[t])}),e.attr("data-target")&&(r.target=e.attr("data-target")),t.hasOwnProperty("title")||(t.title=""),a.$observe("title",function(e){if(angular.isDefined(e)||!t.hasOwnProperty("title")){var o=t.title;t.title=n.trustAsHtml(e),angular.isDefined(o)&&i(function(){l&&l.$applyPlacement()})}}),a.bsTooltip&&t.$watch(a.bsTooltip,function(e,n){angular.isObject(e)?angular.extend(t,e):t.title=e,angular.isDefined(n)&&i(function(){l&&l.$applyPlacement()})},!0),a.bsShow&&t.$watch(a.bsShow,function(t){l&&angular.isDefined(t)&&(angular.isString(t)&&(t=!!t.match(/true|,?(tooltip),?/i)),t===!0?l.show():l.hide())}),a.bsEnabled&&t.$watch(a.bsEnabled,function(t){l&&angular.isDefined(t)&&(angular.isString(t)&&(t=!!t.match(/true|1|,?(tooltip),?/i)),l.setEnabled(t===!1?!1:!0))});var l=o(e,r);t.$on("$destroy",function(){l&&l.destroy(),r=null,l=null})}}}]);
9
+ //# sourceMappingURL=tooltip.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["tooltip.min.js"],"names":["angular","module","provider","defaults","this","animation","customClass","prefixClass","prefixEvent","container","target","placement","template","contentTemplate","trigger","keyboard","html","show","title","type","delay","autoClose","bsEnabled","$get","$window","$rootScope","$compile","$q","$templateCache","$http","$animate","$sce","dimensions","$$rAF","$timeout","TooltipFactory","element","config","enterAnimateCallback","scope","$emit","options","$tooltip","leaveAnimateCallback","tipElement","_tipToHide","_blur","blur","destroyTipElement","bindTriggerEvents","triggers","split","forEach","on","toggle","enter","leave","nodeName","isTouch","$onFocusElementMouseDown","unbindTriggerEvents","i","length","off","bindKeyboardEvents","$onKeyUp","$onFocusKeyUp","unbindKeyboardEvents","bindAutoCloseEvents","stopEventPropagation","$body","hide","_autoCloseEventsBinded","unbindAutoCloseEvents","event","stopPropagation","getPosition","$element","el","elRect","getBoundingClientRect","rect","p","hasOwnProperty","width","extend","right","left","height","bottom","top","elPos","offset","position","getCalculatedOffset","actualWidth","actualHeight","applyPlacementCss","css","clearTimeout","timeout","$isShown","tipScope","$destroy","remove","toLowerCase","$options","$promise","fetchTemplate","$scope","$new","isString","map","parseFloat","$id","id","attr","trustAsHtml","$setEnabled","isEnabled","$$postDigest","setEnabled","$hide","$show","$toggle","hoverState","then","templateEl","contentEl","findElement","removeAttr","outerHTML","tipLinker","tipTemplate","tipContainer","isObject","data","replace","htmlReplaceRegExp","trim","apply","init","isNumber","isElement","focus","destroy","setTimeout","parent","after","lastChild","display","visibility","addClass","promise","safeDigest","$applyPlacement","autoToken","autoPlace","test","elementPosition","tipWidth","prop","tipHeight","originalPlacement","document","querySelector","containerPosition","indexOf","removeClass","tipPosition","evt","which","preventDefault","$$phase","$root","$digest","query","querySelectorAll","fetchPromises","when","get","res","put","String","prototype","directive","$location","restrict","link","key","isDefined","$observe","newValue","oldValue","tooltip","bsTooltip","$watch","bsShow","match","$on"],"mappings":"AAOA,YAEAA,SAAQC,OAAO,0BAA2B,sCAEvCC,SAAS,WAAY,WAEpB,GAAIC,GAAWC,KAAKD,UAClBE,UAAW,UACXC,YAAa,GACbC,YAAa,UACbC,YAAa,UACbC,WAAW,EACXC,QAAQ,EACRC,UAAW,MACXC,SAAU,2BACVC,iBAAiB,EACjBC,QAAS,cACTC,UAAU,EACVC,MAAM,EACNC,MAAM,EACNC,MAAO,GACPC,KAAM,GACNC,MAAO,EACPC,WAAW,EACXC,WAAW,EAGblB,MAAKmB,MAAQ,UAAW,aAAc,WAAY,KAAM,iBAAkB,QAAS,WAAY,OAAQ,aAAc,QAAS,WAAY,SAASC,EAASC,EAAYC,EAAUC,EAAIC,EAAgBC,EAAOC,EAAUC,EAAMC,EAAYC,EAAOC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YAAY2E,GAC/BhM,QAAQ8L,UAAUG,IAAahK,EAAM,WACnCiK,GAAWA,EAAQvC,uBAMzBvC,EAAK+E,WAAa5J,EAAM6J,OAAOhF,EAAK+E,UAAW,SAASH,EAAUC,GAC7DjM,QAAQuI,SAASyD,GAClBhM,QAAQqF,OAAO9C,EAAOyJ,GAEtBzJ,EAAMrB,MAAQ8K,EAEhBhM,QAAQ8L,UAAUG,IAAahK,EAAM,WACnCiK,GAAWA,EAAQvC,sBAEpB,GAGHvC,EAAKiF,QAAU9J,EAAM6J,OAAOhF,EAAKiF,OAAQ,SAASL,GAC5CE,GAAYlM,QAAQ8L,UAAUE,KAC/BhM,QAAQ+G,SAASiF,KAAWA,IAAaA,EAASM,MAAM,wBAC3DN,KAAa,EAAOE,EAAQjL,OAASiL,EAAQ3H,UAI/C6C,EAAK9F,WAAaiB,EAAM6J,OAAOhF,EAAK9F,UAAW,SAAS0K,GAElDE,GAAYlM,QAAQ8L,UAAUE,KAC/BhM,QAAQ+G,SAASiF,KAAWA,IAAaA,EAASM,MAAM,0BACtCJ,EAAQzE,WAA7BuE,KAAa,GAA2B,GAA4B,KAItE,IAAIE,GAAUxJ,EAASN,EAASK,EAGhCF,GAAMgK,IAAI,WAAY,WACjBL,GAASA,EAAQjD,UACpBxG,EAAU,KACVyJ,EAAU","file":"tooltip.min.js","sourcesContent":[null],"sourceRoot":"/source/"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.1.6 - 2015-02-08
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ 'use strict';
9
+
10
+ angular.module('mgcrea.ngStrap.tooltip').run(['$templateCache', function($templateCache) {
11
+
12
+ $templateCache.put('tooltip/tooltip.tpl.html', '<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"></div><div class="tooltip-inner" ng-bind="title"></div></div>');
13
+
14
+ }]);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.1.6 - 2015-02-08
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ "use strict";angular.module("mgcrea.ngStrap.tooltip").run(["$templateCache",function(t){t.put("tooltip/tooltip.tpl.html",'<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"></div><div class="tooltip-inner" ng-bind="title"></div></div>')}]);
@@ -0,0 +1,266 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.1.6 - 2015-02-08
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ 'use strict';
9
+
10
+ angular.module('mgcrea.ngStrap.typeahead', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.helpers.parseOptions'])
11
+
12
+ .provider('$typeahead', function() {
13
+
14
+ var defaults = this.defaults = {
15
+ animation: 'am-fade',
16
+ prefixClass: 'typeahead',
17
+ prefixEvent: '$typeahead',
18
+ placement: 'bottom-left',
19
+ template: 'typeahead/typeahead.tpl.html',
20
+ trigger: 'focus',
21
+ container: false,
22
+ keyboard: true,
23
+ html: false,
24
+ delay: 0,
25
+ minLength: 1,
26
+ filter: 'filter',
27
+ limit: 6,
28
+ comparator: ''
29
+ };
30
+
31
+ this.$get = ["$window", "$rootScope", "$tooltip", "$timeout", function($window, $rootScope, $tooltip, $timeout) {
32
+
33
+ var bodyEl = angular.element($window.document.body);
34
+
35
+ function TypeaheadFactory(element, controller, config) {
36
+
37
+ var $typeahead = {};
38
+
39
+ // Common vars
40
+ var options = angular.extend({}, defaults, config);
41
+
42
+ $typeahead = $tooltip(element, options);
43
+ var parentScope = config.scope;
44
+ var scope = $typeahead.$scope;
45
+
46
+ scope.$resetMatches = function(){
47
+ scope.$matches = [];
48
+ scope.$activeIndex = 0;
49
+ };
50
+ scope.$resetMatches();
51
+
52
+ scope.$activate = function(index) {
53
+ scope.$$postDigest(function() {
54
+ $typeahead.activate(index);
55
+ });
56
+ };
57
+
58
+ scope.$select = function(index, evt) {
59
+ scope.$$postDigest(function() {
60
+ $typeahead.select(index);
61
+ });
62
+ };
63
+
64
+ scope.$isVisible = function() {
65
+ return $typeahead.$isVisible();
66
+ };
67
+
68
+ // Public methods
69
+
70
+ $typeahead.update = function(matches) {
71
+ scope.$matches = matches;
72
+ if(scope.$activeIndex >= matches.length) {
73
+ scope.$activeIndex = 0;
74
+ }
75
+ };
76
+
77
+ $typeahead.activate = function(index) {
78
+ scope.$activeIndex = index;
79
+ };
80
+
81
+ $typeahead.select = function(index) {
82
+ var value = scope.$matches[index].value;
83
+ // console.log('$setViewValue', value);
84
+ controller.$setViewValue(value);
85
+ controller.$render();
86
+ scope.$resetMatches();
87
+ if(parentScope) parentScope.$digest();
88
+ // Emit event
89
+ scope.$emit(options.prefixEvent + '.select', value, index, $typeahead);
90
+ };
91
+
92
+ // Protected methods
93
+
94
+ $typeahead.$isVisible = function() {
95
+ if(!options.minLength || !controller) {
96
+ return !!scope.$matches.length;
97
+ }
98
+ // minLength support
99
+ return scope.$matches.length && angular.isString(controller.$viewValue) && controller.$viewValue.length >= options.minLength;
100
+ };
101
+
102
+ $typeahead.$getIndex = function(value) {
103
+ var l = scope.$matches.length, i = l;
104
+ if(!l) return;
105
+ for(i = l; i--;) {
106
+ if(scope.$matches[i].value === value) break;
107
+ }
108
+ if(i < 0) return;
109
+ return i;
110
+ };
111
+
112
+ $typeahead.$onMouseDown = function(evt) {
113
+ // Prevent blur on mousedown
114
+ evt.preventDefault();
115
+ evt.stopPropagation();
116
+ };
117
+
118
+ $typeahead.$onKeyDown = function(evt) {
119
+ if(!/(38|40|13)/.test(evt.keyCode)) return;
120
+
121
+ // Let ngSubmit pass if the typeahead tip is hidden
122
+ if($typeahead.$isVisible()) {
123
+ evt.preventDefault();
124
+ evt.stopPropagation();
125
+ }
126
+
127
+ // Select with enter
128
+ if(evt.keyCode === 13 && scope.$matches.length) {
129
+ $typeahead.select(scope.$activeIndex);
130
+ }
131
+
132
+ // Navigate with keyboard
133
+ else if(evt.keyCode === 38 && scope.$activeIndex > 0) scope.$activeIndex--;
134
+ else if(evt.keyCode === 40 && scope.$activeIndex < scope.$matches.length - 1) scope.$activeIndex++;
135
+ else if(angular.isUndefined(scope.$activeIndex)) scope.$activeIndex = 0;
136
+ scope.$digest();
137
+ };
138
+
139
+ // Overrides
140
+
141
+ var show = $typeahead.show;
142
+ $typeahead.show = function() {
143
+ show();
144
+ // use timeout to hookup the events to prevent
145
+ // event bubbling from being processed imediately.
146
+ $timeout(function() {
147
+ $typeahead.$element.on('mousedown', $typeahead.$onMouseDown);
148
+ if(options.keyboard) {
149
+ element.on('keydown', $typeahead.$onKeyDown);
150
+ }
151
+ }, 0, false);
152
+ };
153
+
154
+ var hide = $typeahead.hide;
155
+ $typeahead.hide = function() {
156
+ $typeahead.$element.off('mousedown', $typeahead.$onMouseDown);
157
+ if(options.keyboard) {
158
+ element.off('keydown', $typeahead.$onKeyDown);
159
+ }
160
+ hide();
161
+ };
162
+
163
+ return $typeahead;
164
+
165
+ }
166
+
167
+ TypeaheadFactory.defaults = defaults;
168
+ return TypeaheadFactory;
169
+
170
+ }];
171
+
172
+ })
173
+
174
+ .directive('bsTypeahead', ["$window", "$parse", "$q", "$typeahead", "$parseOptions", function($window, $parse, $q, $typeahead, $parseOptions) {
175
+
176
+ var defaults = $typeahead.defaults;
177
+
178
+ return {
179
+ restrict: 'EAC',
180
+ require: 'ngModel',
181
+ link: function postLink(scope, element, attr, controller) {
182
+
183
+ // Directive options
184
+ var options = {scope: scope};
185
+ angular.forEach(['placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'template', 'filter', 'limit', 'minLength', 'watchOptions', 'selectMode', 'comparator', 'id'], function(key) {
186
+ if(angular.isDefined(attr[key])) options[key] = attr[key];
187
+ });
188
+
189
+ // Build proper ngOptions
190
+ var filter = options.filter || defaults.filter;
191
+ var limit = options.limit || defaults.limit;
192
+ var comparator = options.comparator || defaults.comparator;
193
+
194
+ var ngOptions = attr.ngOptions;
195
+ if(filter) ngOptions += ' | ' + filter + ':$viewValue';
196
+ if (comparator) ngOptions += ':' + comparator;
197
+ if(limit) ngOptions += ' | limitTo:' + limit;
198
+ var parsedOptions = $parseOptions(ngOptions);
199
+
200
+ // Initialize typeahead
201
+ var typeahead = $typeahead(element, controller, options);
202
+
203
+ // Watch options on demand
204
+ if(options.watchOptions) {
205
+ // Watch ngOptions values before filtering for changes, drop function calls
206
+ var watchedOptions = parsedOptions.$match[7].replace(/\|.+/, '').replace(/\(.*\)/g, '').trim();
207
+ scope.$watch(watchedOptions, function (newValue, oldValue) {
208
+ // console.warn('scope.$watch(%s)', watchedOptions, newValue, oldValue);
209
+ parsedOptions.valuesFn(scope, controller).then(function (values) {
210
+ typeahead.update(values);
211
+ controller.$render();
212
+ });
213
+ }, true);
214
+ }
215
+
216
+ // Watch model for changes
217
+ scope.$watch(attr.ngModel, function(newValue, oldValue) {
218
+ // console.warn('$watch', element.attr('ng-model'), newValue);
219
+ scope.$modelValue = newValue; // Publish modelValue on scope for custom templates
220
+ parsedOptions.valuesFn(scope, controller)
221
+ .then(function(values) {
222
+ // Prevent input with no future prospect if selectMode is truthy
223
+ // @TODO test selectMode
224
+ if(options.selectMode && !values.length && newValue.length > 0) {
225
+ controller.$setViewValue(controller.$viewValue.substring(0, controller.$viewValue.length - 1));
226
+ return;
227
+ }
228
+ if(values.length > limit) values = values.slice(0, limit);
229
+ var isVisible = typeahead.$isVisible();
230
+ isVisible && typeahead.update(values);
231
+ // Do not re-queue an update if a correct value has been selected
232
+ if(values.length === 1 && values[0].value === newValue) return;
233
+ !isVisible && typeahead.update(values);
234
+ // Queue a new rendering that will leverage collection loading
235
+ controller.$render();
236
+ });
237
+ });
238
+
239
+ // modelValue -> $formatters -> viewValue
240
+ controller.$formatters.push(function(modelValue) {
241
+ // console.warn('$formatter("%s"): modelValue=%o (%o)', element.attr('ng-model'), modelValue, typeof modelValue);
242
+ var displayValue = parsedOptions.displayValue(modelValue);
243
+ return displayValue === undefined ? '' : displayValue;
244
+ });
245
+
246
+ // Model rendering in view
247
+ controller.$render = function () {
248
+ // console.warn('$render', element.attr('ng-model'), 'controller.$modelValue', typeof controller.$modelValue, controller.$modelValue, 'controller.$viewValue', typeof controller.$viewValue, controller.$viewValue);
249
+ if(controller.$isEmpty(controller.$viewValue)) return element.val('');
250
+ var index = typeahead.$getIndex(controller.$modelValue);
251
+ var selected = angular.isDefined(index) ? typeahead.$scope.$matches[index].label : controller.$viewValue;
252
+ selected = angular.isObject(selected) ? parsedOptions.displayValue(selected) : selected;
253
+ element.val(selected ? selected.toString().replace(/<(?:.|\n)*?>/gm, '').trim() : '');
254
+ };
255
+
256
+ // Garbage collection
257
+ scope.$on('$destroy', function() {
258
+ if (typeahead) typeahead.destroy();
259
+ options = null;
260
+ typeahead = null;
261
+ });
262
+
263
+ }
264
+ };
265
+
266
+ }]);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.1.6 - 2015-02-08
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ "use strict";angular.module("mgcrea.ngStrap.typeahead",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$typeahead",function(){var e=this.defaults={animation:"am-fade",prefixClass:"typeahead",prefixEvent:"$typeahead",placement:"bottom-left",template:"typeahead/typeahead.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,minLength:1,filter:"filter",limit:6,comparator:""};this.$get=["$window","$rootScope","$tooltip","$timeout",function(t,n,a,i){function o(t,n,o){var r={},l=angular.extend({},e,o);r=a(t,l);var c=o.scope,s=r.$scope;s.$resetMatches=function(){s.$matches=[],s.$activeIndex=0},s.$resetMatches(),s.$activate=function(e){s.$$postDigest(function(){r.activate(e)})},s.$select=function(e){s.$$postDigest(function(){r.select(e)})},s.$isVisible=function(){return r.$isVisible()},r.update=function(e){s.$matches=e,s.$activeIndex>=e.length&&(s.$activeIndex=0)},r.activate=function(e){s.$activeIndex=e},r.select=function(e){var t=s.$matches[e].value;n.$setViewValue(t),n.$render(),s.$resetMatches(),c&&c.$digest(),s.$emit(l.prefixEvent+".select",t,e,r)},r.$isVisible=function(){return l.minLength&&n?s.$matches.length&&angular.isString(n.$viewValue)&&n.$viewValue.length>=l.minLength:!!s.$matches.length},r.$getIndex=function(e){var t=s.$matches.length,n=t;if(t){for(n=t;n--&&s.$matches[n].value!==e;);if(!(0>n))return n}},r.$onMouseDown=function(e){e.preventDefault(),e.stopPropagation()},r.$onKeyDown=function(e){/(38|40|13)/.test(e.keyCode)&&(r.$isVisible()&&(e.preventDefault(),e.stopPropagation()),13===e.keyCode&&s.$matches.length?r.select(s.$activeIndex):38===e.keyCode&&s.$activeIndex>0?s.$activeIndex--:40===e.keyCode&&s.$activeIndex<s.$matches.length-1?s.$activeIndex++:angular.isUndefined(s.$activeIndex)&&(s.$activeIndex=0),s.$digest())};var u=r.show;r.show=function(){u(),i(function(){r.$element.on("mousedown",r.$onMouseDown),l.keyboard&&t.on("keydown",r.$onKeyDown)},0,!1)};var $=r.hide;return r.hide=function(){r.$element.off("mousedown",r.$onMouseDown),l.keyboard&&t.off("keydown",r.$onKeyDown),$()},r}angular.element(t.document.body);return o.defaults=e,o}]}).directive("bsTypeahead",["$window","$parse","$q","$typeahead","$parseOptions",function(e,t,n,a,i){var o=a.defaults;return{restrict:"EAC",require:"ngModel",link:function(e,t,n,r){var l={scope:e};angular.forEach(["placement","container","delay","trigger","keyboard","html","animation","template","filter","limit","minLength","watchOptions","selectMode","comparator","id"],function(e){angular.isDefined(n[e])&&(l[e]=n[e])});var c=l.filter||o.filter,s=l.limit||o.limit,u=l.comparator||o.comparator,$=n.ngOptions;c&&($+=" | "+c+":$viewValue"),u&&($+=":"+u),s&&($+=" | limitTo:"+s);var d=i($),f=a(t,r,l);if(l.watchOptions){var p=d.$match[7].replace(/\|.+/,"").replace(/\(.*\)/g,"").trim();e.$watch(p,function(){d.valuesFn(e,r).then(function(e){f.update(e),r.$render()})},!0)}e.$watch(n.ngModel,function(t){e.$modelValue=t,d.valuesFn(e,r).then(function(e){if(l.selectMode&&!e.length&&t.length>0)return void r.$setViewValue(r.$viewValue.substring(0,r.$viewValue.length-1));e.length>s&&(e=e.slice(0,s));var n=f.$isVisible();n&&f.update(e),(1!==e.length||e[0].value!==t)&&(!n&&f.update(e),r.$render())})}),r.$formatters.push(function(e){var t=d.displayValue(e);return void 0===t?"":t}),r.$render=function(){if(r.$isEmpty(r.$viewValue))return t.val("");var e=f.$getIndex(r.$modelValue),n=angular.isDefined(e)?f.$scope.$matches[e].label:r.$viewValue;n=angular.isObject(n)?d.displayValue(n):n,t.val(n?n.toString().replace(/<(?:.|\n)*?>/gm,"").trim():"")},e.$on("$destroy",function(){f&&f.destroy(),l=null,f=null})}}}]);
9
+ //# sourceMappingURL=typeahead.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["typeahead.min.js"],"names":["angular","module","provider","defaults","this","animation","prefixClass","prefixEvent","placement","template","trigger","container","keyboard","html","delay","minLength","filter","limit","comparator","$get","$window","$rootScope","$tooltip","$timeout","TypeaheadFactory","element","controller","config","$typeahead","options","extend","parentScope","scope","$scope","$resetMatches","$matches","$activeIndex","$activate","index","$$postDigest","activate","$select","select","$isVisible","update","matches","length","value","$setViewValue","$render","$digest","$emit","isString","$viewValue","$getIndex","l","i","$onMouseDown","evt","preventDefault","stopPropagation","$onKeyDown","test","keyCode","isUndefined","show","$element","on","hide","off","document","body","directive","$parse","$q","$parseOptions","restrict","require","link","attr","forEach","key","isDefined","ngOptions","parsedOptions","typeahead","watchOptions","watchedOptions","$match","replace","trim","$watch","valuesFn","then","values","ngModel","newValue","$modelValue","selectMode","substring","slice","isVisible","$formatters","push","modelValue","displayValue","undefined","$isEmpty","val","selected","label","isObject","toString","$on","destroy"],"mappings":"AAOA,YAEAA,SAAQC,OAAO,4BAA6B,yBAA0B,wCAEnEC,SAAS,aAAc,WAEtB,GAAIC,GAAWC,KAAKD,UAClBE,UAAW,UACXC,YAAa,YACbC,YAAa,aACbC,UAAW,cACXC,SAAU,+BACVC,QAAS,QACTC,WAAW,EACXC,UAAU,EACVC,MAAM,EACNC,MAAO,EACPC,UAAW,EACXC,OAAQ,SACRC,MAAO,EACPC,WAAY,GAGdd,MAAKe,MAAQ,UAAW,aAAc,WAAY,WAAY,SAASC,EAASC,EAAYC,EAAUC,GAIpG,QAASC,GAAiBC,EAASC,EAAYC,GAE7C,GAAIC,MAGAC,EAAU7B,QAAQ8B,UAAW3B,EAAUwB,EAE3CC,GAAaN,EAASG,EAASI,EAC/B,IAAIE,GAAcJ,EAAOK,MACrBA,EAAQJ,EAAWK,MAEvBD,GAAME,cAAgB,WACpBF,EAAMG,YACNH,EAAMI,aAAe,GAEvBJ,EAAME,gBAENF,EAAMK,UAAY,SAASC,GACzBN,EAAMO,aAAa,WACjBX,EAAWY,SAASF,MAIxBN,EAAMS,QAAU,SAASH,GACvBN,EAAMO,aAAa,WACjBX,EAAWc,OAAOJ,MAItBN,EAAMW,WAAa,WACjB,MAAOf,GAAWe,cAKpBf,EAAWgB,OAAS,SAASC,GAC3Bb,EAAMG,SAAWU,EACdb,EAAMI,cAAgBS,EAAQC,SAC/Bd,EAAMI,aAAe,IAIzBR,EAAWY,SAAW,SAASF,GAC7BN,EAAMI,aAAeE,GAGvBV,EAAWc,OAAS,SAASJ,GAC3B,GAAIS,GAAQf,EAAMG,SAASG,GAAOS,KAElCrB,GAAWsB,cAAcD,GACzBrB,EAAWuB,UACXjB,EAAME,gBACHH,GAAaA,EAAYmB,UAE5BlB,EAAMmB,MAAMtB,EAAQtB,YAAc,UAAWwC,EAAOT,EAA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,EAAW2B,WAAWP,OAAS,GAG1FgD,GAAOhD,OAAS7B,IAAO6E,EAASA,EAAOM,MAAM,EAAGnF,GACnD,IAAIoF,GAAYhB,EAAU1C,YAC1B0D,IAAahB,EAAUzC,OAAOkD,IAET,IAAlBA,EAAOhD,QAAgBgD,EAAO,GAAG/C,QAAUiD,MAC7CK,GAAahB,EAAUzC,OAAOkD,GAE/BpE,EAAWuB,eAKfvB,EAAW4E,YAAYC,KAAK,SAASC,GAEnC,GAAIC,GAAerB,EAAcqB,aAAaD,EAC9C,OAAwBE,UAAjBD,EAA6B,GAAKA,IAI3C/E,EAAWuB,QAAU,WAEnB,GAAGvB,EAAWiF,SAASjF,EAAW2B,YAAa,MAAO5B,GAAQmF,IAAI,GAClE,IAAItE,GAAQ+C,EAAU/B,UAAU5B,EAAWuE,aACvCY,EAAW7G,QAAQkF,UAAU5C,GAAS+C,EAAUpD,OAAOE,SAASG,GAAOwE,MAAQpF,EAAW2B,UAC9FwD,GAAW7G,QAAQ+G,SAASF,GAAYzB,EAAcqB,aAAaI,GAAYA,EAC/EpF,EAAQmF,IAAIC,EAAWA,EAASG,WAAWvB,QAAQ,iBAAkB,IAAIC,OAAS,KAIpF1D,EAAMiF,IAAI,WAAY,WAChB5B,GAAWA,EAAU6B,UACzBrF,EAAU,KACVwD,EAAY","file":"typeahead.min.js","sourcesContent":[null],"sourceRoot":"/source/"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.1.6 - 2015-02-08
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ 'use strict';
9
+
10
+ angular.module('mgcrea.ngStrap.typeahead').run(['$templateCache', function($templateCache) {
11
+
12
+ $templateCache.put('typeahead/typeahead.tpl.html', '<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a></li></ul>');
13
+
14
+ }]);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.1.6 - 2015-02-08
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ "use strict";angular.module("mgcrea.ngStrap.typeahead").run(["$templateCache",function(e){e.put("typeahead/typeahead.tpl.html",'<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a></li></ul>')}]);
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-angular-strap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Bobrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails-angularjs
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 1.4.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 1.4.0
13
33
  description: Injects AngularStrap into your asset pipeline.
14
34
  email: alexander@devvela.com
15
35
  executables: []
@@ -21,10 +41,13 @@ files:
21
41
  - lib/rails-angular-strap.rb
22
42
  - lib/rails-angular-strap/engine.rb
23
43
  - lib/rails-angular-strap/version.rb
44
+ - vendor/assets/javascripts/angular-strap-unstable.js
45
+ - vendor/assets/javascripts/angular-strap-unstable.min.js
24
46
  - vendor/assets/javascripts/angular-strap.js
25
47
  - vendor/assets/javascripts/angular-strap.min.js
26
48
  - vendor/assets/javascripts/angular-strap/angular-strap.js
27
49
  - vendor/assets/javascripts/angular-strap/angular-strap.min.js
50
+ - vendor/assets/javascripts/angular-strap/angular-strap.min.js.map
28
51
  - vendor/assets/javascripts/angular-strap/angular-strap.tpl.js
29
52
  - vendor/assets/javascripts/angular-strap/angular-strap.tpl.min.js
30
53
  - vendor/assets/javascripts/angular-strap/modules/affix.js
@@ -115,6 +138,99 @@ files:
115
138
  - vendor/assets/javascripts/angular-strap/modules/typeahead.min.js.map
116
139
  - vendor/assets/javascripts/angular-strap/modules/typeahead.tpl.js
117
140
  - vendor/assets/javascripts/angular-strap/modules/typeahead.tpl.min.js
141
+ - vendor/assets/javascripts/angular-strap/unstable/angular-strap.js
142
+ - vendor/assets/javascripts/angular-strap/unstable/angular-strap.min.js
143
+ - vendor/assets/javascripts/angular-strap/unstable/angular-strap.min.js.map
144
+ - vendor/assets/javascripts/angular-strap/unstable/angular-strap.tpl.js
145
+ - vendor/assets/javascripts/angular-strap/unstable/angular-strap.tpl.min.js
146
+ - vendor/assets/javascripts/angular-strap/unstable/modules/affix.js
147
+ - vendor/assets/javascripts/angular-strap/unstable/modules/affix.min.js
148
+ - vendor/assets/javascripts/angular-strap/unstable/modules/affix.min.js.map
149
+ - vendor/assets/javascripts/angular-strap/unstable/modules/alert.js
150
+ - vendor/assets/javascripts/angular-strap/unstable/modules/alert.min.js
151
+ - vendor/assets/javascripts/angular-strap/unstable/modules/alert.min.js.map
152
+ - vendor/assets/javascripts/angular-strap/unstable/modules/alert.tpl.js
153
+ - vendor/assets/javascripts/angular-strap/unstable/modules/alert.tpl.min.js
154
+ - vendor/assets/javascripts/angular-strap/unstable/modules/aside.js
155
+ - vendor/assets/javascripts/angular-strap/unstable/modules/aside.min.js
156
+ - vendor/assets/javascripts/angular-strap/unstable/modules/aside.min.js.map
157
+ - vendor/assets/javascripts/angular-strap/unstable/modules/aside.tpl.js
158
+ - vendor/assets/javascripts/angular-strap/unstable/modules/aside.tpl.min.js
159
+ - vendor/assets/javascripts/angular-strap/unstable/modules/button.js
160
+ - vendor/assets/javascripts/angular-strap/unstable/modules/button.min.js
161
+ - vendor/assets/javascripts/angular-strap/unstable/modules/button.min.js.map
162
+ - vendor/assets/javascripts/angular-strap/unstable/modules/collapse.js
163
+ - vendor/assets/javascripts/angular-strap/unstable/modules/collapse.min.js
164
+ - vendor/assets/javascripts/angular-strap/unstable/modules/collapse.min.js.map
165
+ - vendor/assets/javascripts/angular-strap/unstable/modules/date-formatter.js
166
+ - vendor/assets/javascripts/angular-strap/unstable/modules/date-formatter.min.js
167
+ - vendor/assets/javascripts/angular-strap/unstable/modules/date-formatter.min.js.map
168
+ - vendor/assets/javascripts/angular-strap/unstable/modules/date-parser.js
169
+ - vendor/assets/javascripts/angular-strap/unstable/modules/date-parser.min.js
170
+ - vendor/assets/javascripts/angular-strap/unstable/modules/date-parser.min.js.map
171
+ - vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.js
172
+ - vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.min.js
173
+ - vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.min.js.map
174
+ - vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.tpl.js
175
+ - vendor/assets/javascripts/angular-strap/unstable/modules/datepicker.tpl.min.js
176
+ - vendor/assets/javascripts/angular-strap/unstable/modules/debounce.js
177
+ - vendor/assets/javascripts/angular-strap/unstable/modules/debounce.min.js
178
+ - vendor/assets/javascripts/angular-strap/unstable/modules/debounce.min.js.map
179
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dimensions.js
180
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dimensions.min.js
181
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dimensions.min.js.map
182
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.js
183
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.min.js
184
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.min.js.map
185
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.tpl.js
186
+ - vendor/assets/javascripts/angular-strap/unstable/modules/dropdown.tpl.min.js
187
+ - vendor/assets/javascripts/angular-strap/unstable/modules/modal.js
188
+ - vendor/assets/javascripts/angular-strap/unstable/modules/modal.min.js
189
+ - vendor/assets/javascripts/angular-strap/unstable/modules/modal.min.js.map
190
+ - vendor/assets/javascripts/angular-strap/unstable/modules/modal.tpl.js
191
+ - vendor/assets/javascripts/angular-strap/unstable/modules/modal.tpl.min.js
192
+ - vendor/assets/javascripts/angular-strap/unstable/modules/navbar.js
193
+ - vendor/assets/javascripts/angular-strap/unstable/modules/navbar.min.js
194
+ - vendor/assets/javascripts/angular-strap/unstable/modules/navbar.min.js.map
195
+ - vendor/assets/javascripts/angular-strap/unstable/modules/parse-options.js
196
+ - vendor/assets/javascripts/angular-strap/unstable/modules/parse-options.min.js
197
+ - vendor/assets/javascripts/angular-strap/unstable/modules/parse-options.min.js.map
198
+ - vendor/assets/javascripts/angular-strap/unstable/modules/popover.js
199
+ - vendor/assets/javascripts/angular-strap/unstable/modules/popover.min.js
200
+ - vendor/assets/javascripts/angular-strap/unstable/modules/popover.min.js.map
201
+ - vendor/assets/javascripts/angular-strap/unstable/modules/popover.tpl.js
202
+ - vendor/assets/javascripts/angular-strap/unstable/modules/popover.tpl.min.js
203
+ - vendor/assets/javascripts/angular-strap/unstable/modules/raf.js
204
+ - vendor/assets/javascripts/angular-strap/unstable/modules/raf.min.js
205
+ - vendor/assets/javascripts/angular-strap/unstable/modules/raf.min.js.map
206
+ - vendor/assets/javascripts/angular-strap/unstable/modules/scrollspy.js
207
+ - vendor/assets/javascripts/angular-strap/unstable/modules/scrollspy.min.js
208
+ - vendor/assets/javascripts/angular-strap/unstable/modules/scrollspy.min.js.map
209
+ - vendor/assets/javascripts/angular-strap/unstable/modules/select.js
210
+ - vendor/assets/javascripts/angular-strap/unstable/modules/select.min.js
211
+ - vendor/assets/javascripts/angular-strap/unstable/modules/select.min.js.map
212
+ - vendor/assets/javascripts/angular-strap/unstable/modules/select.tpl.js
213
+ - vendor/assets/javascripts/angular-strap/unstable/modules/select.tpl.min.js
214
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tab.js
215
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tab.min.js
216
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tab.min.js.map
217
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tab.tpl.js
218
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tab.tpl.min.js
219
+ - vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.js
220
+ - vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.min.js
221
+ - vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.min.js.map
222
+ - vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.tpl.js
223
+ - vendor/assets/javascripts/angular-strap/unstable/modules/timepicker.tpl.min.js
224
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.js
225
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.min.js
226
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.min.js.map
227
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.tpl.js
228
+ - vendor/assets/javascripts/angular-strap/unstable/modules/tooltip.tpl.min.js
229
+ - vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.js
230
+ - vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.min.js
231
+ - vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.min.js.map
232
+ - vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.tpl.js
233
+ - vendor/assets/javascripts/angular-strap/unstable/modules/typeahead.tpl.min.js
118
234
  homepage: https://github.com/alexkpek/angular-strap-rails
119
235
  licenses:
120
236
  - MIT