X-Git-Url: http://git.osdn.net/view?p=eos%2Fzephyr.git;a=blobdiff_plain;f=front-end%2Fdist%2Fbundle.js;h=afff1f378e3a6394f51a242b7d24388619431ac1;hp=8960b2674f8df954c7386ea134449b85bcd59c63;hb=878d6ee413e58a8f7dcfb77c1bbc9c3e7a3afc55;hpb=7b1bc4ddf4aa062beb296ae669e08689f2c80305 diff --git a/front-end/dist/bundle.js b/front-end/dist/bundle.js index 8960b26..afff1f3 100755 --- a/front-end/dist/bundle.js +++ b/front-end/dist/bundle.js @@ -63,8 +63,11 @@ __webpack_require__(20); __webpack_require__(21); __webpack_require__(22); +<<<<<<< HEAD __webpack_require__(23); __webpack_require__(24); +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 /***/ }, @@ -29104,7 +29107,11 @@ /** * State-based routing for AngularJS +<<<<<<< HEAD * @version v0.2.18 +======= + * @version v0.2.15 +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * @link http://angular-ui.github.com/ * @license MIT License, http://www.opensource.org/licenses/MIT */ @@ -29126,8 +29133,12 @@ isArray = angular.isArray, forEach = angular.forEach, extend = angular.extend, +<<<<<<< HEAD copy = angular.copy, toJson = angular.toJson; +======= + copy = angular.copy; +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 function inherit(parent, extra) { return extend(new (extend(function() {}, { prototype: parent }))(), extra); @@ -29214,7 +29225,11 @@ var parents = ancestors($current, $to), parentParams, inherited = {}, inheritList = []; for (var i in parents) { +<<<<<<< HEAD if (!parents[i] || !parents[i].params) continue; +======= + if (!parents[i].params) continue; +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 parentParams = objectKeys(parents[i].params); if (!parentParams.length) continue; @@ -29627,7 +29642,11 @@ * propagated immediately. Once the `$resolve` promise has been rejected, no * further invocables will be called. * +<<<<<<< HEAD * Cyclic dependencies between invocables are not permitted and will cause `$resolve` +======= + * Cyclic dependencies between invocables are not permitted and will caues `$resolve` +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * to throw an error. As a special case, an injectable can depend on a parameter * with the same name as the injectable, which will be fulfilled from the `parent` * injectable of the same name. This allows inherited values to be decorated. @@ -29851,13 +29870,22 @@ // The regular expression is somewhat complicated due to the need to allow curly braces // inside the regular expression. The placeholder regexp breaks down as follows: // ([:*])([\w\[\]]+) - classic placeholder ($1 / $2) (search version has - for snake-case) +<<<<<<< HEAD // \{([\w\[\]]+)(?:\:\s*( ... ))?\} - curly brace placeholder ($3) with optional regexp/type ... ($4) (search version has - for snake-case +======= + // \{([\w\[\]]+)(?:\:( ... ))?\} - curly brace placeholder ($3) with optional regexp/type ... ($4) (search version has - for snake-case +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 // (?: ... | ... | ... )+ - the regexp consists of any number of atoms, an atom being either // [^{}\\]+ - anything other than curly braces or backslash // \\. - a backslash escape // \{(?:[^{}\\]+|\\.)*\} - a matched set of curly braces containing other atoms +<<<<<<< HEAD var placeholder = /([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g, searchPlaceholder = /([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g, +======= + var placeholder = /([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g, + searchPlaceholder = /([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g, +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 compiled = '^', last = 0, m, segments = this.segments = [], parentParams = parentMatcher ? parentMatcher.params : {}, @@ -29867,7 +29895,11 @@ function addParameter(id, type, config, location) { paramNames.push(id); if (parentParams[id]) return parentParams[id]; +<<<<<<< HEAD if (!/^\w+([-.]+\w+)*(?:\[\])?$/.test(id)) throw new Error("Invalid parameter name '" + id + "' in pattern '" + pattern + "'"); +======= + if (!/^\w+(-+\w+)*(?:\[\])?$/.test(id)) throw new Error("Invalid parameter name '" + id + "' in pattern '" + pattern + "'"); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 if (params[id]) throw new Error("Duplicate parameter name '" + id + "' in pattern '" + pattern + "'"); params[id] = new $$UMFP.Param(id, type, config, location); return params[id]; @@ -29878,10 +29910,14 @@ if (!pattern) return result; switch(squash) { case false: surroundPattern = ['(', ')' + (optional ? "?" : "")]; break; +<<<<<<< HEAD case true: result = result.replace(/\/$/, ''); surroundPattern = ['(?:\/(', ')|\/)?']; break; +======= + case true: surroundPattern = ['?(', ')?']; break; +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 default: surroundPattern = ['(' + squash + "|", ')?']; break; } return result + surroundPattern[0] + pattern + surroundPattern[1]; @@ -29897,11 +29933,15 @@ cfg = config.params[id]; segment = pattern.substring(last, m.index); regexp = isSearch ? m[4] : m[4] || (m[1] == '*' ? '.*' : null); +<<<<<<< HEAD if (regexp) { type = $$UMFP.type(regexp) || inherit($$UMFP.type("string"), { pattern: new RegExp(regexp, config.caseInsensitive ? 'i' : undefined) }); } +======= + type = $$UMFP.type(regexp || "string") || inherit($$UMFP.type("string"), { pattern: new RegExp(regexp, config.caseInsensitive ? 'i' : undefined) }); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 return { id: id, regexp: regexp, segment: segment, type: type, cfg: cfg }; @@ -30031,6 +30071,7 @@ return map(allReversed, unquoteDashes).reverse(); } +<<<<<<< HEAD var param, paramVal; for (i = 0; i < nPath; i++) { paramName = paramNames[i]; @@ -30042,11 +30083,23 @@ } if (paramVal && param.array === true) paramVal = decodePathArray(paramVal); if (isDefined(paramVal)) paramVal = param.type.decode(paramVal); +======= + for (i = 0; i < nPath; i++) { + paramName = paramNames[i]; + var param = this.params[paramName]; + var paramVal = m[i+1]; + // if the param value matches a pre-replace pair, replace the value before decoding. + for (j = 0; j < param.replace; j++) { + if (param.replace[j].from === paramVal) paramVal = param.replace[j].to; + } + if (paramVal && param.array === true) paramVal = decodePathArray(paramVal); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 values[paramName] = param.value(paramVal); } for (/**/; i < nTotal; i++) { paramName = paramNames[i]; values[paramName] = this.params[paramName].value(searchParams[paramName]); +<<<<<<< HEAD param = this.params[paramName]; paramVal = searchParams[paramName]; for (j = 0; j < param.replace.length; j++) { @@ -30054,6 +30107,8 @@ } if (isDefined(paramVal)) paramVal = param.type.decode(paramVal); values[paramName] = param.value(paramVal); +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 } return values; @@ -30077,7 +30132,11 @@ /** * @ngdoc function +<<<<<<< HEAD * @name ui.router.util.type:UrlMatcher#validates +======= + * @name ui.router.util.type:UrlMatcher#validate +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * @methodOf ui.router.util.type:UrlMatcher * * @description @@ -30130,8 +30189,11 @@ if (isPathParam) { var nextSegment = segments[i + 1]; +<<<<<<< HEAD var isFinalPathParam = i + 1 === nPath; +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 if (squash === false) { if (encoded != null) { if (isArray(encoded)) { @@ -30147,12 +30209,18 @@ } else if (isString(squash)) { result += squash + nextSegment; } +<<<<<<< HEAD if (isFinalPathParam && param.squash === true && result.slice(-1) === '/') result = result.slice(0, -1); } else { if (encoded == null || (isDefaultValue && squash !== false)) continue; if (!isArray(encoded)) encoded = [ encoded ]; if (encoded.length === 0) continue; +======= + } else { + if (encoded == null || (isDefaultValue && squash !== false)) continue; + if (!isArray(encoded)) encoded = [ encoded ]; +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 encoded = map(encoded, encodeURIComponent).join('&' + name + '='); result += (search ? '&' : '?') + (name + '=' + encoded); search = true; @@ -30317,7 +30385,10 @@ // Wraps type (.is/.encode/.decode) functions to operate on each value of an array function arrayHandler(callback, allTruthyMode) { return function handleArray(val) { +<<<<<<< HEAD if (isArray(val) && val.length === 0) return val; +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 val = arrayWrap(val); var result = map(val, callback); if (allTruthyMode === true) @@ -30366,6 +30437,7 @@ var isCaseInsensitive = false, isStrictMode = true, defaultSquashPolicy = false; +<<<<<<< HEAD // Use tildes to pre-encode slashes. // If the slashes are simply URLEncoded, the browser can choose to pre-decode them, // and bidirectional encoding/decoding fails. @@ -30375,6 +30447,13 @@ var $types = {}, enqueue = true, typeQueue = [], injector, defaultTypes = { "string": { +======= + function valToString(val) { return val != null ? val.toString().replace(/\//g, "%2F") : val; } + function valFromString(val) { return val != null ? val.toString().replace(/%2F/g, "/") : val; } + + var $types = {}, enqueue = true, typeQueue = [], injector, defaultTypes = { + string: { +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 encode: valToString, decode: valFromString, // TODO: in 1.0, make string .is() return false if value is undefined/null by default. @@ -30382,19 +30461,31 @@ is: function(val) { return val == null || !isDefined(val) || typeof val === "string"; }, pattern: /[^/]*/ }, +<<<<<<< HEAD "int": { +======= + int: { +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 encode: valToString, decode: function(val) { return parseInt(val, 10); }, is: function(val) { return isDefined(val) && this.decode(val.toString()) === val; }, pattern: /\d+/ }, +<<<<<<< HEAD "bool": { +======= + bool: { +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 encode: function(val) { return val ? 1 : 0; }, decode: function(val) { return parseInt(val, 10) !== 0; }, is: function(val) { return val === true || val === false; }, pattern: /0|1/ }, +<<<<<<< HEAD "date": { +======= + date: { +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 encode: function (val) { if (!this.is(val)) return undefined; @@ -30413,14 +30504,22 @@ pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/, capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/ }, +<<<<<<< HEAD "json": { +======= + json: { +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 encode: angular.toJson, decode: angular.fromJson, is: angular.isObject, equals: angular.equals, pattern: /[^/]*/ }, +<<<<<<< HEAD "any": { // does not encode/decode +======= + any: { // does not encode/decode +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 encode: angular.identity, decode: angular.identity, equals: angular.equals, @@ -30714,12 +30813,16 @@ if (config.type && urlType) throw new Error("Param '"+id+"' has two type configurations."); if (urlType) return urlType; if (!config.type) return (location === "config" ? $types.any : $types.string); +<<<<<<< HEAD if (angular.isString(config.type)) return $types[config.type]; if (config.type instanceof Type) return config.type; return new Type(config.type); +======= + return config.type instanceof Type ? config.type : new Type(config.type); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 } // array config: param name (param[]) overrides default settings. explicit config overrides param name. @@ -30914,7 +31017,11 @@ * }); * * +<<<<<<< HEAD * @param {function} rule Handler function that takes `$injector` and `$location` +======= + * @param {object} rule Handler function that takes `$injector` and `$location` +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * services as arguments. You can use them to return a valid path as a string. * * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance @@ -30950,7 +31057,11 @@ * }); * * +<<<<<<< HEAD * @param {string|function} rule The url path you want to redirect to or a function +======= + * @param {string|object} rule The url path you want to redirect to or a function +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * rule that returns the url path. The function version is passed two params: * `$injector` and `$location` services, and must return a url string. * @@ -30979,9 +31090,13 @@ * @methodOf ui.router.router.$urlRouterProvider * * @description +<<<<<<< HEAD * Registers a handler for a given url matching. * * If the handler is a string, it is +======= + * Registers a handler for a given url matching. if handle is a string, it is +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * treated as a redirect, and is interpolated according to the syntax of match * (i.e. like `String.replace()` for `RegExp`, or like a `UrlMatcher` pattern otherwise). * @@ -31010,7 +31125,11 @@ * * * @param {string|object} what The incoming path that you want to redirect. +<<<<<<< HEAD * @param {string|function} handler The path you want to redirect your user to. +======= + * @param {string|object} handler The path you want to redirect your user to. +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 */ this.when = function (what, handler) { var redirect, handlerIsString = isString(handler); @@ -31121,8 +31240,13 @@ * */ this.$get = $get; +<<<<<<< HEAD $get.$inject = ['$location', '$rootScope', '$injector', '$browser', '$sniffer']; function $get( $location, $rootScope, $injector, $browser, $sniffer) { +======= + $get.$inject = ['$location', '$rootScope', '$injector', '$browser']; + function $get( $location, $rootScope, $injector, $browser) { +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 var baseHref = $browser.baseHref(), location = $location.url(), lastPushedUrl; @@ -31255,8 +31379,11 @@ if (angular.isObject(isHtml5)) { isHtml5 = isHtml5.enabled; } +<<<<<<< HEAD isHtml5 = isHtml5 && $sniffer.history; +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 var url = urlMatcher.format(params); options = options || {}; @@ -31330,7 +31457,11 @@ // inherit 'data' from parent and override by own values (if any) data: function(state) { if (state.parent && state.parent.data) { +<<<<<<< HEAD state.data = state.self.data = inherit(state.parent.data, state.data); +======= + state.data = state.self.data = extend({}, state.parent.data, state.data); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 } return state.data; }, @@ -31364,8 +31495,12 @@ // Derive parameters for this state and ensure they're a super-set of parent's parameters params: function(state) { +<<<<<<< HEAD var ownParams = pick(state.ownParams, state.ownParams.$$keys()); return state.parent && state.parent.params ? extend(state.parent.params.$$new(), ownParams) : new $$UMFP.ParamSet(); +======= + return state.parent && state.parent.params ? extend(state.parent.params.$$new(), state.ownParams) : new $$UMFP.ParamSet(); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 }, // If there is no explicit multi-view configuration, make one up so we don't have @@ -31462,7 +31597,11 @@ var name = state.name; if (!isString(name) || name.indexOf('@') >= 0) throw new Error("State must have a valid name"); +<<<<<<< HEAD if (states.hasOwnProperty(name)) throw new Error("State '" + name + "' is already defined"); +======= + if (states.hasOwnProperty(name)) throw new Error("State '" + name + "'' is already defined"); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 // Get parent name var parentName = (name.indexOf('.') !== -1) ? name.substring(0, name.lastIndexOf('.')) @@ -31830,7 +31969,11 @@ * * Callback function for when a state is entered. Good way * to trigger an action or dispatch an event, such as opening a dialog. +<<<<<<< HEAD * If minifying your scripts, make sure to explicitly annotate this function, +======= + * If minifying your scripts, make sure to explictly annotate this function, +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * because it won't be automatically annotated by your build tools. * *
onEnter: function(MyService, $stateParams) { @@ -31842,7 +31985,11 @@ * * Callback function for when a state is exited. Good way to * trigger an action or dispatch an event, such as opening a dialog. +<<<<<<< HEAD * If minifying your scripts, make sure to explicitly annotate this function, +======= + * If minifying your scripts, make sure to explictly annotate this function, +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * because it won't be automatically annotated by your build tools. * *+<<<<<<< HEAD * * Then the compiled html would be (assuming Html5Mode is off and current state is contacts): *onExit: function(MyService, $stateParams) { @@ -32173,8 +32320,12 @@ * * @param {object=} params A map of the parameters that will be sent to the state, * will populate $stateParams. Any parameters that are not specified will be inherited from currently +<<<<<<< HEAD * defined parameters. Only parameters specified in the state definition can be overridden, new * parameters will be ignored. This allows, for example, going to a sibling state that shares parameters +======= + * defined parameters. This allows, for example, going to a sibling state that shares parameters +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * specified in a parent state. Parameter inheritance only works between common ancestor states, I.e. * transitioning to a sibling will get you the parameters for all parents, transitioning to a child * will get you all current parameters, etc. @@ -32186,10 +32337,16 @@ * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'), * defines which state to be relative from. * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events. +<<<<<<< HEAD * - **`reload`** (v0.2.5) - {boolean=false|string|object}, If `true` will force transition even if no state or params * have changed. It will reload the resolves and views of the current state and parent states. * If `reload` is a string (or state object), the state object is fetched (by name, or object reference); and \ * the transition reloads the resolves and views for that matched state, and all its children states. +======= + * - **`reload`** (v0.2.5) - {boolean=false}, If `true` will force transition even if the state or params + * have not changed, aka a reload of the same state. It differs from reloadOnSearch because you'd + * use this when you want to force a reload when *everything* is the same, including search params. +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * * @returns {promise} A promise representing the state of the new transition. * @@ -32327,7 +32484,10 @@ if (hash) toParams['#'] = hash; $state.params = toParams; copy($state.params, $stateParams); +<<<<<<< HEAD copy(filterByKeys(to.params.$$keys(), $stateParams), to.locals.globals.$stateParams); +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 if (options.location && to.navigable && to.navigable.url) { $urlRouter.push(to.navigable.url, toParams, { $$avoidResync: true, replace: options.location === 'replace' @@ -32340,10 +32500,14 @@ // Filter parameters before we pass them to event handlers etc. toParams = filterByKeys(to.params.$$keys(), toParams || {}); +<<<<<<< HEAD // Re-add the saved hash before we start returning things or broadcasting $stateChangeStart if (hash) toParams['#'] = hash; +======= + +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 // Broadcast start event and cancel the transition if requested if (options.notify) { /** @@ -32373,10 +32537,16 @@ * }) **/ +<<<<<<< HEAD if ($rootScope.$broadcast('$stateChangeStart', to.self, toParams, from.self, fromParams, options).defaultPrevented) { $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams); //Don't update and resync url if there's been a new transition started. see issue #2238, #600 if ($state.transition == null) $urlRouter.update(); +======= + if ($rootScope.$broadcast('$stateChangeStart', to.self, toParams, from.self, fromParams).defaultPrevented) { + $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams); + $urlRouter.update(); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 return TransitionPrevented; } } @@ -32422,6 +32592,12 @@ } } +<<<<<<< HEAD +======= + // Re-add the saved hash before we start returning things + if (hash) toParams['#'] = hash; + +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 // Run it again, to catch any transitions in callbacks if ($state.transition !== transition) return TransitionSuperseded; @@ -32755,7 +32931,11 @@ } angular.module('ui.router.state') +<<<<<<< HEAD .factory('$stateParams', function () { return {}; }) +======= + .value('$stateParams', {}) +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 .provider('$state', $StateProvider); @@ -32796,6 +32976,35 @@ if (options.view) { result = $templateFactory.fromConfig(options.view, options.params, options.locals); } +<<<<<<< HEAD +======= + if (result && options.notify) { + /** + * @ngdoc event + * @name ui.router.state.$state#$viewContentLoading + * @eventOf ui.router.state.$view + * @eventType broadcast on root scope + * @description + * + * Fired once the view **begins loading**, *before* the DOM is rendered. + * + * @param {Object} event Event object. + * @param {Object} viewConfig The view config properties (template, controller, etc). + * + * @example + * + *+ * $scope.$on('$viewContentLoading', + * function(event, viewConfig){ + * // Access to all the view config properties. + * // and one special property 'targetView' + * // viewConfig.targetView + * }); + *+ */ + $rootScope.$broadcast('$viewContentLoading', options); + } +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 return result; } }; @@ -32857,8 +33066,11 @@ angular.module('ui.router.state').provider('$uiViewScroll', $ViewScrollProvider); +<<<<<<< HEAD var ngMajorVer = angular.version.major; var ngMinorVer = angular.version.minor; +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 /** * @ngdoc directive * @name ui.router.state.directive:ui-view @@ -32883,9 +33095,12 @@ * service, {@link ui.router.state.$uiViewScroll}. This custom service let's you * scroll ui-view elements into view when they are populated during a state activation. * +<<<<<<< HEAD * @param {string=} noanimation If truthy, the non-animated renderer will be selected (no animations * will be applied to the ui-view) * +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * *Note: To revert back to old [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll) * functionality, call `$uiViewScrollProvider.useAnchorScroll()`.* * @@ -32997,6 +33212,7 @@ // Returns a set of DOM manipulation functions based on which Angular version // it should use function getRenderer(attrs, scope) { +<<<<<<< HEAD var statics = { enter: function (element, target, cb) { target.after(element); cb(); }, leave: function (element, cb) { element.remove(); cb(); } @@ -33030,11 +33246,32 @@ } else { $animate.leave(element, cb); } +======= + var statics = function() { + return { + enter: function (element, target, cb) { target.after(element); cb(); }, + leave: function (element, cb) { element.remove(); cb(); } + }; + }; + + if ($animate) { + return { + enter: function(element, target, cb) { + var promise = $animate.enter(element, null, target, cb); + if (promise && promise.then) promise.then(cb); + }, + leave: function(element, cb) { + var promise = $animate.leave(element, cb); + if (promise && promise.then) promise.then(cb); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 } }; } +<<<<<<< HEAD // ng 1.1.5 +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 if ($animator) { var animate = $animator && $animator(scope, attrs); @@ -33044,7 +33281,11 @@ }; } +<<<<<<< HEAD return statics; +======= + return statics(); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 } var directive = { @@ -33062,10 +33303,17 @@ scope.$on('$stateChangeSuccess', function() { updateView(false); }); +<<<<<<< HEAD +======= + scope.$on('$viewContentLoading', function() { + updateView(false); + }); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 updateView(true); function cleanupLastView() { +<<<<<<< HEAD var _previousEl = previousEl; var _currentScope = currentScope; @@ -33081,15 +33329,29 @@ if (_currentScope) { _currentScope.$destroy(); } +======= + if (previousEl) { + previousEl.remove(); + previousEl = null; + } + + if (currentScope) { + currentScope.$destroy(); + currentScope = null; +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 } if (currentEl) { renderer.leave(currentEl, function() { +<<<<<<< HEAD cleanOld(); +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 previousEl = null; }); previousEl = currentEl; +<<<<<<< HEAD } else { cleanOld(); previousEl = null; @@ -33097,6 +33359,10 @@ currentEl = null; currentScope = null; +======= + currentEl = null; + } +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 } function updateView(firstTime) { @@ -33104,6 +33370,7 @@ name = getUiViewName(scope, attrs, $element, $interpolate), previousLocals = name && $state.$current && $state.$current.locals[name]; +<<<<<<< HEAD if (!firstTime && previousLocals === latestLocals || scope._willBeDestroyed) return; // nothing to do newScope = scope.$new(); latestLocals = $state.$current.locals[name]; @@ -33122,6 +33389,12 @@ */ newScope.$emit('$viewContentLoading', name); +======= + if (!firstTime && previousLocals === latestLocals) return; // nothing to do + newScope = scope.$new(); + latestLocals = $state.$current.locals[name]; + +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 var clone = $transclude(newScope, function(clone) { renderer.enter(clone, $element, function onUiViewEnter() { if(currentScope) { @@ -33142,6 +33415,7 @@ * @name ui.router.state.directive:ui-view#$viewContentLoaded * @eventOf ui.router.state.directive:ui-view * @eventType emits on ui-view directive scope +<<<<<<< HEAD * @description * Fired once the view is **loaded**, *after* the DOM is rendered. * @@ -33149,6 +33423,14 @@ * @param {string} viewName Name of the view. */ currentScope.$emit('$viewContentLoaded', name); +======= + * @description * + * Fired once the view is **loaded**, *after* the DOM is rendered. + * + * @param {Object} event Event object. + */ + currentScope.$emit('$viewContentLoaded'); +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 currentScope.$eval(onloadExp); } }; @@ -33225,6 +33507,7 @@ } } +<<<<<<< HEAD function getTypeInfo(el) { // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute. var isSvg = Object.prototype.toString.call(el.prop('href')) === '[object SVGAnimatedString]'; @@ -33262,6 +33545,8 @@ return { relative: stateContext(el) || $state.$current, inherit: true }; } +======= +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 /** * @ngdoc directive * @name ui.router.state.directive:ui-sref @@ -33272,6 +33557,7 @@ * @restrict A * * @description +<<<<<<< HEAD * A directive that binds a link (`` tag) to a state. If the state has an associated * URL, the directive will automatically generate & update the `href` attribute via * the {@link ui.router.state.$state#methods_href $state.href()} method. Clicking @@ -33283,6 +33569,19 @@ * You can also use relative state paths within ui-sref, just like the relative * paths passed to `$state.go()`. You just need to be aware that the path is relative * to the state that the link lives in, in other words the state that loaded the +======= + * A directive that binds a link (`` tag) to a state. If the state has an associated + * URL, the directive will automatically generate & update the `href` attribute via + * the {@link ui.router.state.$state#methods_href $state.href()} method. Clicking + * the link will trigger a state transition with optional parameters. + * + * Also middle-clicking, right-clicking, and ctrl-clicking on the link will be + * handled natively by the browser. + * + * You can also use relative state paths within ui-sref, just like the relative + * paths passed to `$state.go()`. You just need to be aware that the path is relative + * to the state that the link lives in, in other words the state that loaded the +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 * template containing the link. * * You can specify options to pass to {@link ui.router.state.$state#go $state.go()} @@ -33290,22 +33589,38 @@ * and `reload`. * * @example +<<<<<<< HEAD * Here's an example of how you'd use ui-sref and how it would compile. If you have the * following template: ** Home | About | Next page * +======= + * Here's an example of how you'd use ui-sref and how it would compile. If you have the + * following template: + *+ * Home | About | Next page + * +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 **
*- * {{ contact.name }} *
*
* Home | About | Next page * +======= + * + * Then the compiled html would be (assuming Html5Mode is off and current state is contacts): + *+ * Home | About | Next page + * +>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6 *