diff options
author | st782s <statta@research.att.com> | 2017-05-04 07:48:42 -0400 |
---|---|---|
committer | st782s <statta@research.att.com> | 2017-05-04 12:28:17 -0400 |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/angular-gestures | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/angular-gestures')
6 files changed, 0 insertions, 317 deletions
diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/.bower.json b/ecomp-portal-FE/client/bower_components/angular-gestures/.bower.json deleted file mode 100644 index 11ffa80f..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-gestures/.bower.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "angular-gestures", - "description": "AngularJS directive that adds support for multi touch gestures to your app. Based on hammer.js.", - "version": "0.3.1", - "main": [ - "gestures.min.js" - ], - "homepage": "http://github.com/wzr1337/angular-gestures", - "repository": { - "type": "git", - "url": "git://github.com/wzr1337/bower-angular-gestures" - }, - "author": "wzr1337", - "license": "MIT", - "readmeFilename": "README.md", - "dependencies": { - "angular": ">=1.2.0 <=1.4.0", - "hammerjs": "~2.0.0" - }, - "devDependencies": { - "angular-mocks": ">=1.2.0 <=1.4.0" - }, - "_release": "0.3.1", - "_resolution": { - "type": "version", - "tag": "0.3.1", - "commit": "cc39f1235f3f68d579853bad101455a5d2c6165e" - }, - "_source": "https://github.com/wzr1337/bower-angular-gestures.git", - "_target": "*", - "_originalSource": "angular-gestures" -}
\ No newline at end of file diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/LICENSE.md b/ecomp-portal-FE/client/bower_components/angular-gestures/LICENSE.md deleted file mode 100644 index 4347861c..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-gestures/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -## The MIT License - -Copyright (c) 2012-2013 Patrick Bartsch - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE.
\ No newline at end of file diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/README.md b/ecomp-portal-FE/client/bower_components/angular-gestures/README.md deleted file mode 100644 index 89e74389..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-gestures/README.md +++ /dev/null @@ -1,82 +0,0 @@ -# angular-gestures - -AngularJS directive that adds support for multi touch gestures to your app, based on hammer.js. - -## Usage - -* Include `gestures.js` or `gestures.min.js` into your page -* Declare `'angular-gestures'` as a dependency for your angular app: `angular.module('myApp', ['angular-gestures']);` -* Use attributes on containers the same way you use `ng-click`: e.g. `hm-tap` -```HTML -<button hm-tap="add_something()">Tap me</button> -``` -* You can use angular interpolations like this : `hm-swipe="remove_something({{ id }})"` -* You can also use Hammer.js options by e.g. `hm-tap-opts="{hold: false}"` - -### Event data - -Pass the `$event` object in the usual way e.g. `hm-drag="myDrag($event)"` then access its internals like so: -```JS -$scope.myDrag = function(event) { - console.log(event.gesture); -} -``` -Refer to the [Hammer.js docs](https://github.com/EightMedia/hammer.js/wiki/Getting-Started) for more details on the properties of `event`. - -## Supported events - - -* hmDoubleTap : 'doubletap', -* hmDragstart : 'dragstart', -* hmDrag : 'drag', -* hmDragUp : 'dragup', -* hmDragDown : 'dragdown', -* hmDragLeft : 'dragleft', -* hmDragRight : 'dragright', -* hmDragend : 'dragend', -* hmHold : 'hold', -* hmPinch : 'pinch', -* hmPinchIn : 'pinchin', -* hmPinchOut : 'pinchout', -* hmRelease : 'release', -* hmRotate : 'rotate', -* hmSwipe : 'swipe', -* hmSwipeUp : 'swipeup', -* hmSwipeDown : 'swipedown', -* hmSwipeLeft : 'swipeleft', -* hmSwipeRight : 'swiperight', -* hmTap : 'tap', -* hmTouch : 'touch', -* hmTransformstart : 'transformstart', -* hmTransform : 'transform', -* hmTransformend : 'transformend' - - -All [Hammerjs events](https://github.com/EightMedia/hammer.js/wiki/Getting-Started) are supported. The corresponding Angularjs attribute has `hm-` prepended to the name. So for example, the 'doubletap' event becomes `hm-double-tap` etc. - -*Attention* : *end and *start events are NOT CamelCased because of issues caused by $animate interference. - -## Default options -To set recognizer default options you can use `hammerDefaultOptsProvider`. Access it like in the demo: - -``` -angular.module('angularGesturesDemoApp', ['angular-gestures', 'ngRoute']) - .config(function ($routeProvider, hammerDefaultOptsProvider) { - $routeProvider - .when('/', { - templateUrl: 'views/main.html', - controller: 'MainCtrl' - }) - .otherwise({ - redirectTo: '/' - }); - hammerDefaultOptsProvider.set({ - recognizers: [[Hammer.Tap, {time: 250}]] - }); - }); -``` - -## Bower -If you want to use angular-momentum-scroll with bower, add the following dependency to your component.json - -`"angular-gestures": "latest"` diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/bower.json b/ecomp-portal-FE/client/bower_components/angular-gestures/bower.json deleted file mode 100644 index 78f484e1..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-gestures/bower.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "angular-gestures", - "description": "AngularJS directive that adds support for multi touch gestures to your app. Based on hammer.js.", - "version": "0.3.1", - "main": [ - "gestures.min.js" - ], - "homepage": "http://github.com/wzr1337/angular-gestures", - "repository": { - "type": "git", - "url": "git://github.com/wzr1337/bower-angular-gestures" - }, - "author": "wzr1337", - "license": "MIT", - "readmeFilename": "README.md", - "dependencies": { - "angular": ">=1.2.0 <=1.4.0", - "hammerjs": "~2.0.0" - }, - "devDependencies": { - "angular-mocks": ">=1.2.0 <=1.4.0" - } -}
\ No newline at end of file diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.js b/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.js deleted file mode 100644 index 68d78eb9..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.js +++ /dev/null @@ -1,158 +0,0 @@ -'use strict'; - -angular.module('angular-gestures', []); - -/** - * Inspired by AngularJS' implementation of "click dblclick mousedown..." - * - * This ties in the Hammer 2 events to attributes like: - * - * hm-tap="add_something()" hm-swipe="remove_something()" - * - * and also has support for Hammer options with: - * - * hm-tap-opts="{hold: false}" - * - * or any other of the "hm-event" listed underneath. - */ -var HGESTURES = { - hmDoubleTap: 'doubletap', - hmDragstart: 'panstart', // will bedeprecated soon, us Pan* - hmDrag: 'pan', // will bedeprecated soon, us Pan* - hmDragUp: 'panup', // will bedeprecated soon, us Pan* - hmDragDown: 'pandown', // will bedeprecated soon, us Pan* - hmDragLeft: 'panleft', // will bedeprecated soon, us Pan* - hmDragRight: 'panright', // will bedeprecated soon, us Pan* - hmDragend: 'panend', // will bedeprecated soon, us Pan* - hmPanstart: 'panstart', - hmPan: 'pan', - hmPanUp: 'panup', - hmPanDown: 'pandown', - hmPanLeft: 'panleft', - hmPanRight: 'panright', - hmPanend: 'panend', - hmHold: 'press', - hmPinch: 'pinch', - hmPinchIn: 'pinchin', - hmPinchOut: 'pinchout', - hmPress: 'press', - hmRelease: 'release', - hmRotate: 'rotate', - hmSwipe: 'swipe', - hmSwipeUp: 'swipeup', - hmSwipeDown: 'swipedown', - hmSwipeLeft: 'swipeleft', - hmSwipeRight: 'swiperight', - hmTap: 'tap', - hmTouch: 'touch', - hmTransformstart: 'transformstart', - hmTransform: 'transform', - hmTransformend: 'transformend' - }; - -var HRECOGNIZERS = { - hmDoubleTap: [Hammer.Tap, 'Hammer.Tap'], - hmDragstart: [Hammer.Pan, 'Hammer.Pan'], - hmDrag: [Hammer.Pan, 'Hammer.Pan'], - hmDragUp: [Hammer.Pan, 'Hammer.Pan'], - hmDragDown: [Hammer.Pan, 'Hammer.Pan'], - hmDragLeft: [Hammer.Pan, 'Hammer.Pan'], - hmDragRight: [Hammer.Pan, 'Hammer.Pan'], - hmDragend: [Hammer.Pan, 'Hammer.Pan'], - hmPanstart: [Hammer.Pan, 'Hammer.Pan'], - hmPan: [Hammer.Pan, 'Hammer.Pan'], - hmPanUp: [Hammer.Pan, 'Hammer.Pan'], - hmPanDown: [Hammer.Pan, 'Hammer.Pan'], - hmPanLeft: [Hammer.Pan, 'Hammer.Pan'], - hmPanRight: [Hammer.Pan, 'Hammer.Pan'], - hmPanend: [Hammer.Pan, 'Hammer.Pan'], - hmHold: [Hammer.Press, 'Hammer.Press'], - hmPinch: [Hammer.Pinch, 'Hammer.Pinch'], - hmPinchIn: [Hammer.Pinch, 'Hammer.Pinch'], - hmPinchOut: [Hammer.Pinch, 'Hammer.Pinch'], - hmPress: [Hammer.Press, 'Hammer.Press'], - hmRotate: [Hammer.Rotate, 'Hammer.Rotate'], - hmSwipe: [Hammer.Swipe, 'Hammer.Swipe'], - hmSwipeUp: [Hammer.Swipe, 'Hammer.Swipe'], - hmSwipeDown: [Hammer.Swipe, 'Hammer.Swipe'], - hmSwipeLeft: [Hammer.Swipe, 'Hammer.Swipe'], - hmSwipeRight: [Hammer.Swipe, 'Hammer.Swipe'], - hmTap: [Hammer.Tap, 'Hammer.Tap'] - }; - -var VERBOSE = false; - -angular.forEach(HGESTURES, function(eventName, directiveName) { - angular.module('angular-gestures').directive(directiveName, ['$parse', '$log', '$timeout', 'hammerDefaultOpts', function($parse, $log, $timeout, hammerDefaultOpts) { - return function(scope, element, attr) { - var handler; - attr.$observe(directiveName, function(value) { - var callback = $parse(value); - var opts = $parse(attr[directiveName + 'Opts'])(scope, {}); - var defaultOpts = angular.copy(hammerDefaultOpts); - - angular.extend(defaultOpts, opts); - - if (angular.isUndefined(element.hammertime)) { - - // validate that needed recognizer is enabled - var recognizers = angular.isDefined(defaultOpts.recognizers) ? defaultOpts.recognizers : []; - var recognizer = HRECOGNIZERS[directiveName]; - if(angular.isDefined(recognizer)) { - var enabled = false; - angular.forEach(recognizers, function(r) { - if (recognizer[0] === r[0]) { - if (angular.isUndefined(r[1].enable) || r[1].enable === true) { - enabled = true; - } - } - }); - if (!enabled) { - throw new Error('Directive ' + directiveName + ' requires gesture recognizer [' + recognizer[1] + '] to be enabled'); - } - } - - element.hammer = new Hammer.Manager(element[0], defaultOpts); - scope.$on('$destroy', function() { - element.hammer.off(eventName); - element.hammer.destroy(); - }); - } - - handler = function(event) { - if (VERBOSE) { - $log.debug('angular-gestures: ', eventName, event); - } - var callbackHandler = function () { - var cb = callback(scope, { $event : event}); - if (typeof cb === 'function') { - cb.call(scope, event); - } - }; - - if (scope.$root.$$phase === '$apply' || - scope.$root.$$phase === '$digest') { - callbackHandler(); - } else { - scope.$apply(callbackHandler); - } - - }; - // register actual event - element.hammer.on(eventName, handler); - }); - }; - }]); - }); - -angular.module('angular-gestures').provider('hammerDefaultOpts', function HammerDefaultOptsProvider() { - var opts = {}; - - this.set = function(value) { - opts = value; - }; - - this.$get = function() { - return opts; - }; - }); diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.min.js b/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.min.js deleted file mode 100644 index 3ad4b593..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.min.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";angular.module("angular-gestures",[]);var HGESTURES={hmDoubleTap:"doubletap",hmDragstart:"panstart",hmDrag:"pan",hmDragUp:"panup",hmDragDown:"pandown",hmDragLeft:"panleft",hmDragRight:"panright",hmDragend:"panend",hmPanstart:"panstart",hmPan:"pan",hmPanUp:"panup",hmPanDown:"pandown",hmPanLeft:"panleft",hmPanRight:"panright",hmPanend:"panend",hmHold:"press",hmPinch:"pinch",hmPinchIn:"pinchin",hmPinchOut:"pinchout",hmPress:"press",hmRelease:"release",hmRotate:"rotate",hmSwipe:"swipe",hmSwipeUp:"swipeup",hmSwipeDown:"swipedown",hmSwipeLeft:"swipeleft",hmSwipeRight:"swiperight",hmTap:"tap",hmTouch:"touch",hmTransformstart:"transformstart",hmTransform:"transform",hmTransformend:"transformend"},HRECOGNIZERS={hmDoubleTap:[Hammer.Tap,"Hammer.Tap"],hmDragstart:[Hammer.Pan,"Hammer.Pan"],hmDrag:[Hammer.Pan,"Hammer.Pan"],hmDragUp:[Hammer.Pan,"Hammer.Pan"],hmDragDown:[Hammer.Pan,"Hammer.Pan"],hmDragLeft:[Hammer.Pan,"Hammer.Pan"],hmDragRight:[Hammer.Pan,"Hammer.Pan"],hmDragend:[Hammer.Pan,"Hammer.Pan"],hmPanstart:[Hammer.Pan,"Hammer.Pan"],hmPan:[Hammer.Pan,"Hammer.Pan"],hmPanUp:[Hammer.Pan,"Hammer.Pan"],hmPanDown:[Hammer.Pan,"Hammer.Pan"],hmPanLeft:[Hammer.Pan,"Hammer.Pan"],hmPanRight:[Hammer.Pan,"Hammer.Pan"],hmPanend:[Hammer.Pan,"Hammer.Pan"],hmHold:[Hammer.Press,"Hammer.Press"],hmPinch:[Hammer.Pinch,"Hammer.Pinch"],hmPinchIn:[Hammer.Pinch,"Hammer.Pinch"],hmPinchOut:[Hammer.Pinch,"Hammer.Pinch"],hmPress:[Hammer.Press,"Hammer.Press"],hmRotate:[Hammer.Rotate,"Hammer.Rotate"],hmSwipe:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeUp:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeDown:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeLeft:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeRight:[Hammer.Swipe,"Hammer.Swipe"],hmTap:[Hammer.Tap,"Hammer.Tap"]},VERBOSE=!1;angular.forEach(HGESTURES,function(a,b){angular.module("angular-gestures").directive(b,["$parse","$log","$timeout","hammerDefaultOpts",function(c,d,e,f){return function(e,g,h){var i;h.$observe(b,function(j){var k=c(j),l=c(h[b+"Opts"])(e,{}),m=angular.copy(f);if(angular.extend(m,l),angular.isUndefined(g.hammertime)){var n=angular.isDefined(m.recognizers)?m.recognizers:[],o=HRECOGNIZERS[b];if(angular.isDefined(o)){var p=!1;if(angular.forEach(n,function(a){o[0]===a[0]&&(angular.isUndefined(a[1].enable)||a[1].enable===!0)&&(p=!0)}),!p)throw new Error("Directive "+b+" requires gesture recognizer ["+o[1]+"] to be enabled")}g.hammer=new Hammer.Manager(g[0],m),e.$on("$destroy",function(){g.hammer.off(a),g.hammer.destroy()})}i=function(b){VERBOSE&&d.debug("angular-gestures: ",a,b);var c=function(){var a=k(e,{$event:b});"function"==typeof a&&a.call(e,b)};"$apply"===e.$root.$$phase||"$digest"===e.$root.$$phase?c():e.$apply(c)},g.hammer.on(a,i)})}}])}),angular.module("angular-gestures").provider("hammerDefaultOpts",function(){var a={};this.set=function(b){a=b},this.$get=function(){return a}});
\ No newline at end of file |