@@ -11112,6 +11112,7 @@ return /******/ (function(modules) { // webpackBootstrap
1111211112 var lang_1 = __webpack_require__(5);
1111311113 var promise_1 = __webpack_require__(48);
1111411114 exports.PromiseWrapper = promise_1.PromiseWrapper;
11115+ exports.PromiseCompleter = promise_1.PromiseCompleter;
1111511116 var Subject_1 = __webpack_require__(49);
1111611117 var PromiseObservable_1 = __webpack_require__(50);
1111711118 var toPromise_1 = __webpack_require__(65);
@@ -11257,6 +11258,17 @@ return /******/ (function(modules) { // webpackBootstrap
1125711258/* 48 */
1125811259/***/ function(module, exports) {
1125911260
11261+ var PromiseCompleter = (function () {
11262+ function PromiseCompleter() {
11263+ var _this = this;
11264+ this.promise = new Promise(function (res, rej) {
11265+ _this.resolve = res;
11266+ _this.reject = rej;
11267+ });
11268+ }
11269+ return PromiseCompleter;
11270+ })();
11271+ exports.PromiseCompleter = PromiseCompleter;
1126011272 var PromiseWrapper = (function () {
1126111273 function PromiseWrapper() {
1126211274 }
@@ -11289,15 +11301,7 @@ return /******/ (function(modules) { // webpackBootstrap
1128911301 PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function (_) { });
1129011302 };
1129111303 PromiseWrapper.isPromise = function (obj) { return obj instanceof Promise; };
11292- PromiseWrapper.completer = function () {
11293- var resolve;
11294- var reject;
11295- var p = new Promise(function (res, rej) {
11296- resolve = res;
11297- reject = rej;
11298- });
11299- return { promise: p, resolve: resolve, reject: reject };
11300- };
11304+ PromiseWrapper.completer = function () { return new PromiseCompleter(); };
1130111305 return PromiseWrapper;
1130211306 })();
1130311307 exports.PromiseWrapper = PromiseWrapper;
@@ -13355,7 +13359,7 @@ return /******/ (function(modules) { // webpackBootstrap
1335513359 * Retrieve the platform {@link Injector}, which is the parent injector for
1335613360 * every Angular application on the page and provides singleton providers.
1335713361 */
13358- get: function () { return exceptions_1.unimplemented(); },
13362+ get: function () { throw exceptions_1.unimplemented(); },
1335913363 enumerable: true,
1336013364 configurable: true
1336113365 });
@@ -13576,12 +13580,12 @@ return /******/ (function(modules) { // webpackBootstrap
1357613580 completer.reject(e, e.stack);
1357713581 }
1357813582 });
13579- return completer.promise.then(function (_ ) {
13583+ return completer.promise.then(function (ref ) {
1358013584 var c = _this._injector.get(console_1.Console);
1358113585 if (lang_1.assertionsEnabled()) {
1358213586 c.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");
1358313587 }
13584- return _ ;
13588+ return ref ;
1358513589 });
1358613590 };
1358713591 /** @internal */
@@ -18305,7 +18309,7 @@ return /******/ (function(modules) { // webpackBootstrap
1830518309 if (args === void 0) { args = null; }
1830618310 var key;
1830718311 var valueStr;
18308- var pluralMap = args[0];
18312+ var pluralMap = ( args[0]) ;
1830918313 if (!lang_1.isStringMap(pluralMap)) {
1831018314 throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(I18nPluralPipe, pluralMap);
1831118315 }
@@ -18375,7 +18379,7 @@ return /******/ (function(modules) { // webpackBootstrap
1837518379 }
1837618380 I18nSelectPipe.prototype.transform = function (value, args) {
1837718381 if (args === void 0) { args = null; }
18378- var mapping = args[0];
18382+ var mapping = ( args[0]) ;
1837918383 if (!lang_1.isStringMap(mapping)) {
1838018384 throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(I18nSelectPipe, mapping);
1838118385 }
@@ -19550,15 +19554,16 @@ return /******/ (function(modules) { // webpackBootstrap
1955019554 this._parent.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });
1955119555 }
1955219556 };
19553- AbstractControl.prototype._runValidator = function () { return lang_1.isPresent(this.validator) ? this.validator(this) : null; };
19557+ AbstractControl.prototype._runValidator = function () {
19558+ return lang_1.isPresent(this.validator) ? this.validator(this) : null;
19559+ };
1955419560 AbstractControl.prototype._runAsyncValidator = function (emitEvent) {
1955519561 var _this = this;
1955619562 if (lang_1.isPresent(this.asyncValidator)) {
1955719563 this._status = exports.PENDING;
1955819564 this._cancelExistingSubscription();
1955919565 var obs = toObservable(this.asyncValidator(this));
19560- this._asyncValidationSubscription =
19561- async_1.ObservableWrapper.subscribe(obs, function (res) { return _this.setErrors(res, { emitEvent: emitEvent }); });
19566+ this._asyncValidationSubscription = async_1.ObservableWrapper.subscribe(obs, function (res) { return _this.setErrors(res, { emitEvent: emitEvent }); });
1956219567 }
1956319568 };
1956419569 AbstractControl.prototype._cancelExistingSubscription = function () {
@@ -20275,7 +20280,8 @@ return /******/ (function(modules) { // webpackBootstrap
2027520280 }
2027620281 exports.composeValidators = composeValidators;
2027720282 function composeAsyncValidators(validators) {
20278- return lang_1.isPresent(validators) ? validators_1.Validators.composeAsync(validators.map(normalize_validator_1.normalizeValidator)) : null;
20283+ return lang_1.isPresent(validators) ? validators_1.Validators.composeAsync(validators.map(normalize_validator_1.normalizeAsyncValidator)) :
20284+ null;
2027920285 }
2028020286 exports.composeAsyncValidators = composeAsyncValidators;
2028120287 function isPropertyUpdated(changes, viewModel) {
@@ -20439,7 +20445,7 @@ return /******/ (function(modules) { // webpackBootstrap
2043920445 if (presentValidators.length == 0)
2044020446 return null;
2044120447 return function (control) {
20442- var promises = _executeValidators (control, presentValidators).map(_convertToPromise);
20448+ var promises = _executeAsyncValidators (control, presentValidators).map(_convertToPromise);
2044320449 return promise_1.PromiseWrapper.all(promises).then(_mergeErrors);
2044420450 };
2044520451 };
@@ -20452,6 +20458,9 @@ return /******/ (function(modules) { // webpackBootstrap
2045220458 function _executeValidators(control, validators) {
2045320459 return validators.map(function (v) { return v(control); });
2045420460 }
20461+ function _executeAsyncValidators(control, validators) {
20462+ return validators.map(function (v) { return v(control); });
20463+ }
2045520464 function _mergeErrors(arrayOfErrors) {
2045620465 var res = arrayOfErrors.reduce(function (res, errors) {
2045720466 return lang_1.isPresent(errors) ? collection_1.StringMapWrapper.merge(res, errors) : res;
@@ -20840,6 +20849,15 @@ return /******/ (function(modules) { // webpackBootstrap
2084020849 }
2084120850 }
2084220851 exports.normalizeValidator = normalizeValidator;
20852+ function normalizeAsyncValidator(validator) {
20853+ if (validator.validate !== undefined) {
20854+ return function (c) { return Promise.resolve(validator.validate(c)); };
20855+ }
20856+ else {
20857+ return validator;
20858+ }
20859+ }
20860+ exports.normalizeAsyncValidator = normalizeAsyncValidator;
2084320861
2084420862
2084520863/***/ },
@@ -22021,7 +22039,7 @@ return /******/ (function(modules) { // webpackBootstrap
2202122039 FormBuilder.prototype.group = function (controlsConfig, extra) {
2202222040 if (extra === void 0) { extra = null; }
2202322041 var controls = this._reduceControls(controlsConfig);
22024- var optionals = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "optionals") : null;
22042+ var optionals = ( lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "optionals") : null) ;
2202522043 var validator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "validator") : null;
2202622044 var asyncValidator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "asyncValidator") : null;
2202722045 return new modelModule.ControlGroup(controls, optionals, validator, asyncValidator);
@@ -25968,7 +25986,9 @@ return /******/ (function(modules) { // webpackBootstrap
2596825986 collection_1.StringMapWrapper.forEach(data, function (value, name) { entryArray.push([name, value]); });
2596925987 // We need to sort to get a defined output order
2597025988 // for tests and for caching generated artifacts...
25971- collection_1.ListWrapper.sort(entryArray, function (entry1, entry2) { return lang_1.StringWrapper.compare(entry1[0], entry2[0]); });
25989+ collection_1.ListWrapper.sort(entryArray, function (entry1, entry2) {
25990+ return lang_1.StringWrapper.compare(entry1[0], entry2[0]);
25991+ });
2597225992 var keyValueArray = [];
2597325993 entryArray.forEach(function (entry) { keyValueArray.push([entry[0], entry[1]]); });
2597425994 return keyValueArray;
@@ -27958,6 +27978,8 @@ return /******/ (function(modules) { // webpackBootstrap
2795827978 // see http://www.w3.org/TR/html51/syntax.html#optional-tags
2795927979 // This implementation does not fully conform to the HTML5 spec.
2796027980 var TAG_DEFINITIONS = {
27981+ 'base': new HtmlTagDefinition({ isVoid: true }),
27982+ 'meta': new HtmlTagDefinition({ isVoid: true }),
2796127983 'area': new HtmlTagDefinition({ isVoid: true }),
2796227984 'embed': new HtmlTagDefinition({ isVoid: true }),
2796327985 'link': new HtmlTagDefinition({ isVoid: true }),
@@ -29111,9 +29133,9 @@ return /******/ (function(modules) { // webpackBootstrap
2911129133 var mc = new Hammer(element);
2911229134 mc.get('pinch').set({ enable: true });
2911329135 mc.get('rotate').set({ enable: true });
29114- var handler = function (eventObj) { zone.run(function () { handler(eventObj); }); };
29115- mc.on(eventName, handler );
29116- return function () { mc.off(eventName, handler ); };
29136+ var callback = function (eventObj) { zone.run(function () { handler(eventObj); }); };
29137+ mc.on(eventName, callback );
29138+ return function () { mc.off(eventName, callback ); };
2911729139 });
2911829140 };
2911929141 HammerGesturesPlugin = __decorate([
@@ -33911,6 +33933,7 @@ return /******/ (function(modules) { // webpackBootstrap
3391133933 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3391233934 };
3391333935 var lang_1 = __webpack_require__(5);
33936+ var __make_dart_analyzer_happy = null;
3391433937 /**
3391533938 * The `RouteConfig` decorator defines routes for a given component.
3391633939 *
@@ -36123,6 +36146,21 @@ return /******/ (function(modules) { // webpackBootstrap
3612336146 var PlatformLocation = (function () {
3612436147 function PlatformLocation() {
3612536148 }
36149+ Object.defineProperty(PlatformLocation.prototype, "pathname", {
36150+ /* abstract */ get: function () { return null; },
36151+ enumerable: true,
36152+ configurable: true
36153+ });
36154+ Object.defineProperty(PlatformLocation.prototype, "search", {
36155+ /* abstract */ get: function () { return null; },
36156+ enumerable: true,
36157+ configurable: true
36158+ });
36159+ Object.defineProperty(PlatformLocation.prototype, "hash", {
36160+ /* abstract */ get: function () { return null; },
36161+ enumerable: true,
36162+ configurable: true
36163+ });
3612636164 return PlatformLocation;
3612736165 })();
3612836166 exports.PlatformLocation = PlatformLocation;
0 commit comments