@angular/platform-browser-dynamic 0.0.0-6 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/{platform-browser-dynamic.umd.js → bundles/platform-browser-dynamic.umd.js} +111 -65
  2. package/bundles/platform-browser-dynamic.umd.min.js +1 -0
  3. package/core_private.d.ts +1 -1
  4. package/core_private.js +1 -0
  5. package/core_private.js.map +1 -1
  6. package/core_private.metadata.json +1 -1
  7. package/esm/core_private.d.ts +1 -1
  8. package/esm/core_private.js +1 -0
  9. package/esm/core_private.js.map +1 -1
  10. package/esm/core_private.metadata.json +1 -1
  11. package/esm/index.d.ts +74 -1
  12. package/esm/index.js +129 -1
  13. package/esm/index.js.map +1 -1
  14. package/esm/index.metadata.json +1 -0
  15. package/esm/platform_browser_private.d.ts +2 -3
  16. package/esm/platform_browser_private.js +2 -3
  17. package/esm/platform_browser_private.js.map +1 -1
  18. package/esm/platform_browser_private.metadata.json +1 -0
  19. package/esm/private_export_testing.d.ts +8 -0
  20. package/esm/private_export_testing.js +5 -0
  21. package/esm/private_export_testing.js.map +1 -0
  22. package/esm/private_export_testing.metadata.json +1 -0
  23. package/esm/src/facade/async.d.ts +90 -0
  24. package/esm/src/facade/async.js +137 -0
  25. package/esm/src/facade/async.js.map +1 -0
  26. package/esm/src/facade/base_wrapped_exception.js +4 -4
  27. package/esm/src/facade/base_wrapped_exception.js.map +1 -1
  28. package/esm/src/facade/collection.js +1 -1
  29. package/esm/src/facade/collection.js.map +1 -1
  30. package/esm/src/facade/collection.metadata.json +1 -1
  31. package/esm/src/facade/exception_handler.d.ts +2 -11
  32. package/esm/src/facade/exception_handler.js +8 -7
  33. package/esm/src/facade/exception_handler.js.map +1 -1
  34. package/esm/src/facade/exceptions.d.ts +4 -0
  35. package/esm/src/facade/exceptions.js +6 -2
  36. package/esm/src/facade/exceptions.js.map +1 -1
  37. package/esm/src/facade/exceptions.metadata.json +1 -0
  38. package/esm/src/facade/lang.d.ts +6 -4
  39. package/esm/src/facade/lang.js +12 -11
  40. package/esm/src/facade/lang.js.map +1 -1
  41. package/esm/src/facade/lang.metadata.json +1 -1
  42. package/esm/src/facade/promise.js.map +1 -1
  43. package/esm/src/xhr/xhr_cache.js +3 -3
  44. package/esm/src/xhr/xhr_cache.js.map +1 -1
  45. package/esm/src/xhr/xhr_impl.js +2 -2
  46. package/esm/src/xhr/xhr_impl.js.map +1 -1
  47. package/esm/testing/dom_test_component_renderer.d.ts +9 -0
  48. package/esm/testing/dom_test_component_renderer.js +29 -0
  49. package/esm/testing/dom_test_component_renderer.js.map +1 -0
  50. package/esm/testing/dom_test_component_renderer.metadata.json +1 -0
  51. package/esm/testing.d.ts +9 -1
  52. package/esm/testing.js +22 -1
  53. package/esm/testing.js.map +1 -1
  54. package/esm/testing.metadata.json +1 -0
  55. package/index.d.ts +74 -1
  56. package/index.js +131 -3
  57. package/index.js.map +1 -1
  58. package/index.metadata.json +1 -0
  59. package/package.json +5 -5
  60. package/platform_browser_private.d.ts +2 -3
  61. package/platform_browser_private.js +1 -3
  62. package/platform_browser_private.js.map +1 -1
  63. package/platform_browser_private.metadata.json +1 -0
  64. package/private_export_testing.d.ts +8 -0
  65. package/private_export_testing.js +6 -0
  66. package/private_export_testing.js.map +1 -0
  67. package/private_export_testing.metadata.json +1 -0
  68. package/src/facade/async.d.ts +90 -0
  69. package/src/facade/async.js +160 -0
  70. package/src/facade/async.js.map +1 -0
  71. package/src/facade/base_wrapped_exception.js +4 -4
  72. package/src/facade/base_wrapped_exception.js.map +1 -1
  73. package/src/facade/collection.js.map +1 -1
  74. package/src/facade/collection.metadata.json +1 -1
  75. package/src/facade/exception_handler.d.ts +2 -11
  76. package/src/facade/exception_handler.js +8 -7
  77. package/src/facade/exception_handler.js.map +1 -1
  78. package/src/facade/exceptions.d.ts +4 -0
  79. package/src/facade/exceptions.js +6 -2
  80. package/src/facade/exceptions.js.map +1 -1
  81. package/src/facade/exceptions.metadata.json +1 -0
  82. package/src/facade/lang.d.ts +6 -4
  83. package/src/facade/lang.js +12 -11
  84. package/src/facade/lang.js.map +1 -1
  85. package/src/facade/lang.metadata.json +1 -1
  86. package/src/facade/promise.js.map +1 -1
  87. package/src/xhr/xhr_cache.js +3 -3
  88. package/src/xhr/xhr_cache.js.map +1 -1
  89. package/src/xhr/xhr_impl.js +2 -2
  90. package/src/xhr/xhr_impl.js.map +1 -1
  91. package/testing/dom_test_component_renderer.d.ts +9 -0
  92. package/testing/dom_test_component_renderer.js +38 -0
  93. package/testing/dom_test_component_renderer.js.map +1 -0
  94. package/testing/dom_test_component_renderer.metadata.json +1 -0
  95. package/testing.d.ts +9 -1
  96. package/testing.js +22 -1
  97. package/testing.js.map +1 -1
  98. package/testing.metadata.json +1 -0
  99. package/esm/platform-browser-dynamic.umd.js.map +0 -1
  100. package/esm/platform_browser_dynamic.d.ts +0 -75
  101. package/esm/platform_browser_dynamic.js +0 -92
  102. package/esm/platform_browser_dynamic.js.map +0 -1
  103. package/esm/platform_browser_dynamic.metadata.json +0 -1
  104. package/esm/testing/browser.d.ts +0 -8
  105. package/esm/testing/browser.js +0 -13
  106. package/esm/testing/browser.js.map +0 -1
  107. package/esm/testing/browser.metadata.json +0 -1
  108. package/platform_browser_dynamic.d.ts +0 -75
  109. package/platform_browser_dynamic.js +0 -94
  110. package/platform_browser_dynamic.js.map +0 -1
  111. package/platform_browser_dynamic.metadata.json +0 -1
  112. package/testing/browser.d.ts +0 -8
  113. package/testing/browser.js +0 -14
  114. package/testing/browser.js.map +0 -1
  115. package/testing/browser.metadata.json +0 -1
@@ -1,14 +1,21 @@
1
+ /**
2
+ * @license AngularJS v2.0.0-rc.2
3
+ * (c) 2010-2016 Google, Inc. https://angular.io/
4
+ * License: MIT
5
+ */
1
6
  var __extends = (this && this.__extends) || function (d, b) {
2
7
  for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
3
8
  function __() { this.constructor = d; }
4
9
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5
10
  };
6
11
  (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler'), require('@angular/platform-browser'), require('@angular/core')) :
8
- typeof define === 'function' && define.amd ? define(['exports', '@angular/compiler', '@angular/platform-browser', '@angular/core'], factory) :
9
- (factory((global.ng = global.ng || {}, global.ng.platformBrowserDynamic = global.ng.platformBrowserDynamic || {}), global.ng.compiler, global.ng.platformBrowser, global.ng.core));
10
- }(this, function (exports, _angular_compiler, _angular_platformBrowser, _angular_core) {
12
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/compiler'), require('@angular/core'), require('@angular/platform-browser'), require('rxjs/Subject'), require('rxjs/observable/PromiseObservable'), require('rxjs/operator/toPromise'), require('rxjs/Observable')) :
13
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@angular/compiler', '@angular/core', '@angular/platform-browser', 'rxjs/Subject', 'rxjs/observable/PromiseObservable', 'rxjs/operator/toPromise', 'rxjs/Observable'], factory) :
14
+ (factory((global.ng = global.ng || {}, global.ng.platformBrowserDynamic = global.ng.platformBrowserDynamic || {}), global.ng.common, global.ng.compiler, global.ng.core, global.ng.platformBrowser, global.Rx, global.Rx, global.Rx.Observable.prototype, global.Rx));
15
+ }(this, function (exports, _angular_common, _angular_compiler, _angular_core, _angular_platformBrowser, rxjs_Subject, rxjs_observable_PromiseObservable, rxjs_operator_toPromise, rxjs_Observable) {
11
16
  'use strict';
17
+ var ReflectionCapabilities = _angular_core.__core_private__.ReflectionCapabilities;
18
+ var reflector = _angular_core.__core_private__.reflector;
12
19
  var globalScope;
13
20
  if (typeof window === 'undefined') {
14
21
  if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
@@ -40,6 +47,51 @@ var __extends = (this && this.__extends) || function (d, b) {
40
47
  function isArray(obj) {
41
48
  return Array.isArray(obj);
42
49
  }
50
+ var PromiseCompleter = (function () {
51
+ function PromiseCompleter() {
52
+ var _this = this;
53
+ this.promise = new Promise(function (res, rej) {
54
+ _this.resolve = res;
55
+ _this.reject = rej;
56
+ });
57
+ }
58
+ return PromiseCompleter;
59
+ }());
60
+ var PromiseWrapper = (function () {
61
+ function PromiseWrapper() {
62
+ }
63
+ PromiseWrapper.resolve = function (obj) { return Promise.resolve(obj); };
64
+ PromiseWrapper.reject = function (obj, _) { return Promise.reject(obj); };
65
+ // Note: We can't rename this method into `catch`, as this is not a valid
66
+ // method name in Dart.
67
+ PromiseWrapper.catchError = function (promise, onError) {
68
+ return promise.catch(onError);
69
+ };
70
+ PromiseWrapper.all = function (promises) {
71
+ if (promises.length == 0)
72
+ return Promise.resolve([]);
73
+ return Promise.all(promises);
74
+ };
75
+ PromiseWrapper.then = function (promise, success, rejection) {
76
+ return promise.then(success, rejection);
77
+ };
78
+ PromiseWrapper.wrap = function (computation) {
79
+ return new Promise(function (res, rej) {
80
+ try {
81
+ res(computation());
82
+ }
83
+ catch (e) {
84
+ rej(e);
85
+ }
86
+ });
87
+ };
88
+ PromiseWrapper.scheduleMicrotask = function (computation) {
89
+ PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function (_) { });
90
+ };
91
+ PromiseWrapper.isPromise = function (obj) { return obj instanceof Promise; };
92
+ PromiseWrapper.completer = function () { return new PromiseCompleter(); };
93
+ return PromiseWrapper;
94
+ }());
43
95
  var Map$1 = global$1.Map;
44
96
  var Set = global$1.Set;
45
97
  // Safari and Internet Explorer do not support the iterable parameter to the
@@ -261,10 +313,13 @@ var __extends = (this && this.__extends) || function (d, b) {
261
313
  };
262
314
  }
263
315
  })();
316
+ /**
317
+ * @stable
318
+ */
264
319
  var BaseException = (function (_super) {
265
320
  __extends(BaseException, _super);
266
321
  function BaseException(message) {
267
- if (message === void 0) { message = "--"; }
322
+ if (message === void 0) { message = '--'; }
268
323
  _super.call(this, message);
269
324
  this.message = message;
270
325
  this.stack = (new Error(message)).stack;
@@ -272,51 +327,6 @@ var __extends = (this && this.__extends) || function (d, b) {
272
327
  BaseException.prototype.toString = function () { return this.message; };
273
328
  return BaseException;
274
329
  }(Error));
275
- var PromiseCompleter = (function () {
276
- function PromiseCompleter() {
277
- var _this = this;
278
- this.promise = new Promise(function (res, rej) {
279
- _this.resolve = res;
280
- _this.reject = rej;
281
- });
282
- }
283
- return PromiseCompleter;
284
- }());
285
- var PromiseWrapper = (function () {
286
- function PromiseWrapper() {
287
- }
288
- PromiseWrapper.resolve = function (obj) { return Promise.resolve(obj); };
289
- PromiseWrapper.reject = function (obj, _) { return Promise.reject(obj); };
290
- // Note: We can't rename this method into `catch`, as this is not a valid
291
- // method name in Dart.
292
- PromiseWrapper.catchError = function (promise, onError) {
293
- return promise.catch(onError);
294
- };
295
- PromiseWrapper.all = function (promises) {
296
- if (promises.length == 0)
297
- return Promise.resolve([]);
298
- return Promise.all(promises);
299
- };
300
- PromiseWrapper.then = function (promise, success, rejection) {
301
- return promise.then(success, rejection);
302
- };
303
- PromiseWrapper.wrap = function (computation) {
304
- return new Promise(function (res, rej) {
305
- try {
306
- res(computation());
307
- }
308
- catch (e) {
309
- rej(e);
310
- }
311
- });
312
- };
313
- PromiseWrapper.scheduleMicrotask = function (computation) {
314
- PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function (_) { });
315
- };
316
- PromiseWrapper.isPromise = function (obj) { return obj instanceof Promise; };
317
- PromiseWrapper.completer = function () { return new PromiseCompleter(); };
318
- return PromiseWrapper;
319
- }());
320
330
  /**
321
331
  * An implementation of XHR that uses a template cache to avoid doing an actual
322
332
  * XHR.
@@ -378,18 +388,19 @@ var __extends = (this && this.__extends) || function (d, b) {
378
388
  };
379
389
  return XHRImpl;
380
390
  }(_angular_compiler.XHR));
381
- var ReflectionCapabilities = _angular_core.__core_private__.ReflectionCapabilities;
382
- var CACHED_TEMPLATE_PROVIDER =
383
- /*@ts2dart_const*/ [{ provide: _angular_compiler.XHR, useClass: CachedXHR }];
384
- /**
385
- * An array of providers that should be passed into `application()` when bootstrapping a component.
386
- */
387
- var BROWSER_APP_DYNAMIC_PROVIDERS =
388
- /*@ts2dart_const*/ [
389
- _angular_platformBrowser.BROWSER_APP_COMMON_PROVIDERS,
390
- _angular_compiler.COMPILER_PROVIDERS,
391
+ var BROWSER_APP_COMPILER_PROVIDERS = [
392
+ _angular_compiler.COMPILER_PROVIDERS, {
393
+ provide: _angular_compiler.CompilerConfig,
394
+ useFactory: function (platformDirectives, platformPipes) {
395
+ return new _angular_compiler.CompilerConfig({ platformDirectives: platformDirectives, platformPipes: platformPipes });
396
+ },
397
+ deps: [_angular_core.PLATFORM_DIRECTIVES, _angular_core.PLATFORM_PIPES]
398
+ },
391
399
  { provide: _angular_compiler.XHR, useClass: XHRImpl },
400
+ { provide: _angular_core.PLATFORM_DIRECTIVES, useValue: _angular_common.COMMON_DIRECTIVES, multi: true },
401
+ { provide: _angular_core.PLATFORM_PIPES, useValue: _angular_common.COMMON_PIPES, multi: true }
392
402
  ];
403
+ var CACHED_TEMPLATE_PROVIDER = [{ provide: _angular_compiler.XHR, useClass: CachedXHR }];
393
404
  /**
394
405
  * Bootstrapping for Angular applications.
395
406
  *
@@ -459,12 +470,47 @@ var __extends = (this && this.__extends) || function (d, b) {
459
470
  * Returns a `Promise` of {@link ComponentRef}.
460
471
  */
461
472
  function bootstrap(appComponentType, customProviders) {
462
- _angular_core.reflector.reflectionCapabilities = new ReflectionCapabilities();
463
- var appInjector = _angular_core.ReflectiveInjector.resolveAndCreate([BROWSER_APP_DYNAMIC_PROVIDERS, isPresent(customProviders) ? customProviders : []], _angular_platformBrowser.browserPlatform().injector);
464
- return _angular_core.coreLoadAndBootstrap(appInjector, appComponentType);
473
+ reflector.reflectionCapabilities = new ReflectionCapabilities();
474
+ var providers = [
475
+ _angular_platformBrowser.BROWSER_APP_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,
476
+ isPresent(customProviders) ? customProviders : []
477
+ ];
478
+ var appInjector = _angular_core.ReflectiveInjector.resolveAndCreate(providers, _angular_platformBrowser.browserPlatform().injector);
479
+ return _angular_core.coreLoadAndBootstrap(appComponentType, appInjector);
480
+ }
481
+ function bootstrapWorkerUi(workerScriptUri, customProviders) {
482
+ var app = _angular_core.ReflectiveInjector.resolveAndCreate([
483
+ _angular_platformBrowser.WORKER_UI_APPLICATION_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,
484
+ { provide: _angular_platformBrowser.WORKER_SCRIPT, useValue: workerScriptUri },
485
+ isPresent(customProviders) ? customProviders : []
486
+ ], _angular_platformBrowser.workerUiPlatform().injector);
487
+ // Return a promise so that we keep the same semantics as Dart,
488
+ // and we might want to wait for the app side to come up
489
+ // in the future...
490
+ return PromiseWrapper.resolve(app.get(_angular_core.ApplicationRef));
491
+ }
492
+ var WORKER_APP_COMPILER_PROVIDERS = [
493
+ _angular_compiler.COMPILER_PROVIDERS, {
494
+ provide: _angular_compiler.CompilerConfig,
495
+ useFactory: function (platformDirectives, platformPipes) {
496
+ return new _angular_compiler.CompilerConfig({ platformDirectives: platformDirectives, platformPipes: platformPipes });
497
+ },
498
+ deps: [_angular_core.PLATFORM_DIRECTIVES, _angular_core.PLATFORM_PIPES]
499
+ },
500
+ { provide: _angular_compiler.XHR, useClass: XHRImpl },
501
+ { provide: _angular_core.PLATFORM_DIRECTIVES, useValue: _angular_common.COMMON_DIRECTIVES, multi: true },
502
+ { provide: _angular_core.PLATFORM_PIPES, useValue: _angular_common.COMMON_PIPES, multi: true }
503
+ ];
504
+ function bootstrapWorkerApp(appComponentType, customProviders) {
505
+ var appInjector = _angular_core.ReflectiveInjector.resolveAndCreate([
506
+ _angular_platformBrowser.WORKER_APP_APPLICATION_PROVIDERS, WORKER_APP_COMPILER_PROVIDERS,
507
+ isPresent(customProviders) ? customProviders : []
508
+ ], _angular_platformBrowser.workerAppPlatform().injector);
509
+ return _angular_core.coreLoadAndBootstrap(appComponentType, appInjector);
465
510
  }
511
+ exports.BROWSER_APP_COMPILER_PROVIDERS = BROWSER_APP_COMPILER_PROVIDERS;
466
512
  exports.CACHED_TEMPLATE_PROVIDER = CACHED_TEMPLATE_PROVIDER;
467
- exports.BROWSER_APP_DYNAMIC_PROVIDERS = BROWSER_APP_DYNAMIC_PROVIDERS;
468
513
  exports.bootstrap = bootstrap;
514
+ exports.bootstrapWorkerUi = bootstrapWorkerUi;
515
+ exports.bootstrapWorkerApp = bootstrapWorkerApp;
469
516
  }));
470
- //# sourceMappingURL=platform-browser-dynamic.umd.js.map
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)};!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/common"),require("@angular/compiler"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs/Subject"),require("rxjs/observable/PromiseObservable"),require("rxjs/operator/toPromise"),require("rxjs/Observable")):"function"==typeof define&&define.amd?define(["exports","@angular/common","@angular/compiler","@angular/core","@angular/platform-browser","rxjs/Subject","rxjs/observable/PromiseObservable","rxjs/operator/toPromise","rxjs/Observable"],factory):factory((global.ng=global.ng||{},global.ng.platformBrowserDynamic=global.ng.platformBrowserDynamic||{}),global.ng.common,global.ng.compiler,global.ng.core,global.ng.platformBrowser,global.Rx,global.Rx,global.Rx.Observable.prototype,global.Rx)}(this,function(exports,_angular_common,_angular_compiler,_angular_core,_angular_platformBrowser){"use strict";function isPresent(obj){return void 0!==obj&&null!==obj}function isBlank(obj){return void 0===obj||null===obj}function isArray(obj){return Array.isArray(obj)}function _flattenArray(source,target){if(isPresent(source))for(var i=0;i<source.length;i++){var item=source[i];isArray(item)?_flattenArray(item,target):target.push(item)}return target}function bootstrap(appComponentType,customProviders){reflector.reflectionCapabilities=new ReflectionCapabilities;var providers=[_angular_platformBrowser.BROWSER_APP_PROVIDERS,BROWSER_APP_COMPILER_PROVIDERS,isPresent(customProviders)?customProviders:[]],appInjector=_angular_core.ReflectiveInjector.resolveAndCreate(providers,_angular_platformBrowser.browserPlatform().injector);return _angular_core.coreLoadAndBootstrap(appComponentType,appInjector)}function bootstrapWorkerUi(workerScriptUri,customProviders){var app=_angular_core.ReflectiveInjector.resolveAndCreate([_angular_platformBrowser.WORKER_UI_APPLICATION_PROVIDERS,BROWSER_APP_COMPILER_PROVIDERS,{provide:_angular_platformBrowser.WORKER_SCRIPT,useValue:workerScriptUri},isPresent(customProviders)?customProviders:[]],_angular_platformBrowser.workerUiPlatform().injector);return PromiseWrapper.resolve(app.get(_angular_core.ApplicationRef))}function bootstrapWorkerApp(appComponentType,customProviders){var appInjector=_angular_core.ReflectiveInjector.resolveAndCreate([_angular_platformBrowser.WORKER_APP_APPLICATION_PROVIDERS,WORKER_APP_COMPILER_PROVIDERS,isPresent(customProviders)?customProviders:[]],_angular_platformBrowser.workerAppPlatform().injector);return _angular_core.coreLoadAndBootstrap(appComponentType,appInjector)}var globalScope,ReflectionCapabilities=_angular_core.__core_private__.ReflectionCapabilities,reflector=_angular_core.__core_private__.reflector;globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var global$1=globalScope;global$1.assert=function(){};var PromiseCompleter=function(){function PromiseCompleter(){var _this=this;this.promise=new Promise(function(res,rej){_this.resolve=res,_this.reject=rej})}return PromiseCompleter}(),PromiseWrapper=function(){function PromiseWrapper(){}return PromiseWrapper.resolve=function(obj){return Promise.resolve(obj)},PromiseWrapper.reject=function(obj){return Promise.reject(obj)},PromiseWrapper.catchError=function(promise,onError){return promise.catch(onError)},PromiseWrapper.all=function(promises){return 0==promises.length?Promise.resolve([]):Promise.all(promises)},PromiseWrapper.then=function(promise,success,rejection){return promise.then(success,rejection)},PromiseWrapper.wrap=function(computation){return new Promise(function(res,rej){try{res(computation())}catch(e){rej(e)}})},PromiseWrapper.scheduleMicrotask=function(computation){PromiseWrapper.then(PromiseWrapper.resolve(null),computation,function(){})},PromiseWrapper.isPromise=function(obj){return obj instanceof Promise},PromiseWrapper.completer=function(){return new PromiseCompleter},PromiseWrapper}(),Map$1=global$1.Map,Set=global$1.Set;!function(){try{if(1===new Map$1([[1,2]]).size)return function(pairs){return new Map$1(pairs)}}catch(e){}return function(pairs){for(var map=new Map$1,i=0;i<pairs.length;i++){var pair=pairs[i];map.set(pair[0],pair[1])}return map}}(),function(){try{if(new Map$1(new Map$1))return function(m){return new Map$1(m)}}catch(e){}return function(m){var map=new Map$1;return m.forEach(function(v,k){map.set(k,v)}),map}}(),function(){return(new Map$1).keys().next?function(m){for(var k,keyIterator=m.keys();!(k=keyIterator.next()).done;)m.set(k.value,null)}:function(m){m.forEach(function(v,k){m.set(k,null)})}}(),function(){try{if((new Map$1).values().next)return function(m,getValues){return getValues?Array.from(m.values()):Array.from(m.keys())}}catch(e){}return function(m,getValues){var res=ListWrapper.createFixedSize(m.size),i=0;return m.forEach(function(v,k){res[i]=getValues?v:k,i++}),res}}();var ListWrapper=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(size){return new Array(size)},ListWrapper.createGrowableSize=function(size){return new Array(size)},ListWrapper.clone=function(array){return array.slice(0)},ListWrapper.forEachWithIndex=function(array,fn){for(var i=0;i<array.length;i++)fn(array[i],i)},ListWrapper.first=function(array){return array?array[0]:null},ListWrapper.last=function(array){return array&&0!=array.length?array[array.length-1]:null},ListWrapper.indexOf=function(array,value,startIndex){return void 0===startIndex&&(startIndex=0),array.indexOf(value,startIndex)},ListWrapper.contains=function(list,el){return-1!==list.indexOf(el)},ListWrapper.reversed=function(array){var a=ListWrapper.clone(array);return a.reverse()},ListWrapper.concat=function(a,b){return a.concat(b)},ListWrapper.insert=function(list,index,value){list.splice(index,0,value)},ListWrapper.removeAt=function(list,index){var res=list[index];return list.splice(index,1),res},ListWrapper.removeAll=function(list,items){for(var i=0;i<items.length;++i){var index=list.indexOf(items[i]);list.splice(index,1)}},ListWrapper.remove=function(list,el){var index=list.indexOf(el);return index>-1?(list.splice(index,1),!0):!1},ListWrapper.clear=function(list){list.length=0},ListWrapper.isEmpty=function(list){return 0==list.length},ListWrapper.fill=function(list,value,start,end){void 0===start&&(start=0),void 0===end&&(end=null),list.fill(value,start,null===end?list.length:end)},ListWrapper.equals=function(a,b){if(a.length!=b.length)return!1;for(var i=0;i<a.length;++i)if(a[i]!==b[i])return!1;return!0},ListWrapper.slice=function(l,from,to){return void 0===from&&(from=0),void 0===to&&(to=null),l.slice(from,null===to?void 0:to)},ListWrapper.splice=function(l,from,length){return l.splice(from,length)},ListWrapper.sort=function(l,compareFn){isPresent(compareFn)?l.sort(compareFn):l.sort()},ListWrapper.toString=function(l){return l.toString()},ListWrapper.toJSON=function(l){return JSON.stringify(l)},ListWrapper.maximum=function(list,predicate){if(0==list.length)return null;for(var solution=null,maxValue=-1/0,index=0;index<list.length;index++){var candidate=list[index];if(!isBlank(candidate)){var candidateValue=predicate(candidate);candidateValue>maxValue&&(solution=candidate,maxValue=candidateValue)}}return solution},ListWrapper.flatten=function(list){var target=[];return _flattenArray(list,target),target},ListWrapper.addAll=function(list,source){for(var i=0;i<source.length;i++)list.push(source[i])},ListWrapper}();!function(){var test=new Set([1,2,3]);return 3===test.size?function(lst){return new Set(lst)}:function(lst){var res=new Set(lst);if(res.size!==lst.length)for(var i=0;i<lst.length;i++)res.add(lst[i]);return res}}();var BaseException=function(_super){function BaseException(message){void 0===message&&(message="--"),_super.call(this,message),this.message=message,this.stack=new Error(message).stack}return __extends(BaseException,_super),BaseException.prototype.toString=function(){return this.message},BaseException}(Error),CachedXHR=function(_super){function CachedXHR(){if(_super.call(this),this._cache=global$1.$templateCache,null==this._cache)throw new BaseException("CachedXHR: Template cache was not found in $templateCache.")}return __extends(CachedXHR,_super),CachedXHR.prototype.get=function(url){return this._cache.hasOwnProperty(url)?PromiseWrapper.resolve(this._cache[url]):PromiseWrapper.reject("CachedXHR: Did not find cached template for "+url,null)},CachedXHR}(_angular_compiler.XHR),XHRImpl=function(_super){function XHRImpl(){_super.apply(this,arguments)}return __extends(XHRImpl,_super),XHRImpl.prototype.get=function(url){var completer=PromiseWrapper.completer(),xhr=new XMLHttpRequest;return xhr.open("GET",url,!0),xhr.responseType="text",xhr.onload=function(){var response=isPresent(xhr.response)?xhr.response:xhr.responseText,status=1223===xhr.status?204:xhr.status;0===status&&(status=response?200:0),status>=200&&300>=status?completer.resolve(response):completer.reject("Failed to load "+url,null)},xhr.onerror=function(){completer.reject("Failed to load "+url,null)},xhr.send(),completer.promise},XHRImpl}(_angular_compiler.XHR),BROWSER_APP_COMPILER_PROVIDERS=[_angular_compiler.COMPILER_PROVIDERS,{provide:_angular_compiler.CompilerConfig,useFactory:function(platformDirectives,platformPipes){return new _angular_compiler.CompilerConfig({platformDirectives:platformDirectives,platformPipes:platformPipes})},deps:[_angular_core.PLATFORM_DIRECTIVES,_angular_core.PLATFORM_PIPES]},{provide:_angular_compiler.XHR,useClass:XHRImpl},{provide:_angular_core.PLATFORM_DIRECTIVES,useValue:_angular_common.COMMON_DIRECTIVES,multi:!0},{provide:_angular_core.PLATFORM_PIPES,useValue:_angular_common.COMMON_PIPES,multi:!0}],CACHED_TEMPLATE_PROVIDER=[{provide:_angular_compiler.XHR,useClass:CachedXHR}],WORKER_APP_COMPILER_PROVIDERS=[_angular_compiler.COMPILER_PROVIDERS,{provide:_angular_compiler.CompilerConfig,useFactory:function(platformDirectives,platformPipes){return new _angular_compiler.CompilerConfig({platformDirectives:platformDirectives,platformPipes:platformPipes})},deps:[_angular_core.PLATFORM_DIRECTIVES,_angular_core.PLATFORM_PIPES]},{provide:_angular_compiler.XHR,useClass:XHRImpl},{provide:_angular_core.PLATFORM_DIRECTIVES,useValue:_angular_common.COMMON_DIRECTIVES,multi:!0},{provide:_angular_core.PLATFORM_PIPES,useValue:_angular_common.COMMON_PIPES,multi:!0}];exports.BROWSER_APP_COMPILER_PROVIDERS=BROWSER_APP_COMPILER_PROVIDERS,exports.CACHED_TEMPLATE_PROVIDER=CACHED_TEMPLATE_PROVIDER,exports.bootstrap=bootstrap,exports.bootstrapWorkerUi=bootstrapWorkerUi,exports.bootstrapWorkerApp=bootstrapWorkerApp});
package/core_private.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { __core_private_types__ as t } from '@angular/core';
2
- export declare type ReflectionCapabilities = t.ReflectionCapabilities;
3
2
  export declare var ReflectionCapabilities: typeof t.ReflectionCapabilities;
3
+ export declare var reflector: typeof t.reflector;
package/core_private.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  var core_1 = require('@angular/core');
3
3
  exports.ReflectionCapabilities = core_1.__core_private__.ReflectionCapabilities;
4
+ exports.reflector = core_1.__core_private__.reflector;
4
5
  //# sourceMappingURL=core_private.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core_private.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/platform-browser-dynamic/","sources":["core_private.ts"],"names":[],"mappings":";AAIE,qBAAiE,eAAe,CAAC,CAAA;AAGxE,8BAAsB,GAAoC,uBAAC,CAAC,sBAAsB,CAAC"}
1
+ {"version":3,"file":"core_private.js","sourceRoot":"","sources":["../../../modules/@angular/platform-browser-dynamic/core_private.ts"],"names":[],"mappings":";AAAA,qBAAiE,eAAe,CAAC,CAAA;AAEtE,8BAAsB,GAAoC,uBAAC,CAAC,sBAAsB,CAAC;AACnF,iBAAS,GAAuB,uBAAC,CAAC,SAAS,CAAC","sourcesContent":["import {__core_private__ as r, __core_private_types__ as t} from '@angular/core';\n\nexport var ReflectionCapabilities: typeof t.ReflectionCapabilities = r.ReflectionCapabilities;\nexport var reflector: typeof t.reflector = r.reflector;\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"___core_private__","module":"@angular/core"},"member":"ReflectionCapabilities"}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"ReflectionCapabilities"},"reflector":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"reflector"}}}
@@ -1,3 +1,3 @@
1
1
  import { __core_private_types__ as t } from '@angular/core';
2
- export declare type ReflectionCapabilities = t.ReflectionCapabilities;
3
2
  export declare var ReflectionCapabilities: typeof t.ReflectionCapabilities;
3
+ export declare var reflector: typeof t.reflector;
@@ -1,3 +1,4 @@
1
1
  import { __core_private__ as r } from '@angular/core';
2
2
  export var ReflectionCapabilities = r.ReflectionCapabilities;
3
+ export var reflector = r.reflector;
3
4
  //# sourceMappingURL=core_private.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core_private.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/platform-browser-dynamic/","sources":["core_private.ts"],"names":[],"mappings":"OAIS,EAAC,gBAAgB,IAAI,CAAC,EAA8B,MAAM,eAAe;AAGlF,OAAO,IAAI,sBAAsB,GAAoC,CAAC,CAAC,sBAAsB,CAAC"}
1
+ {"version":3,"file":"core_private.js","sourceRoot":"","sources":["../../../../modules/@angular/platform-browser-dynamic/core_private.ts"],"names":[],"mappings":"OAAO,EAAC,gBAAgB,IAAI,CAAC,EAA8B,MAAM,eAAe;AAEhF,OAAO,IAAI,sBAAsB,GAAoC,CAAC,CAAC,sBAAsB,CAAC;AAC9F,OAAO,IAAI,SAAS,GAAuB,CAAC,CAAC,SAAS,CAAC","sourcesContent":["import {__core_private__ as r, __core_private_types__ as t} from '@angular/core';\n\nexport var ReflectionCapabilities: typeof t.ReflectionCapabilities = r.ReflectionCapabilities;\nexport var reflector: typeof t.reflector = r.reflector;\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"___core_private__","module":"@angular/core"},"member":"ReflectionCapabilities"}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"ReflectionCapabilities"},"reflector":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"reflector"}}}
package/esm/index.d.ts CHANGED
@@ -1 +1,74 @@
1
- export * from './platform_browser_dynamic';
1
+ import { ApplicationRef, ComponentRef, Type } from '@angular/core';
2
+ export declare const BROWSER_APP_COMPILER_PROVIDERS: Array<any>;
3
+ export declare const CACHED_TEMPLATE_PROVIDER: Array<any>;
4
+ /**
5
+ * Bootstrapping for Angular applications.
6
+ *
7
+ * You instantiate an Angular application by explicitly specifying a component to use
8
+ * as the root component for your application via the `bootstrap()` method.
9
+ *
10
+ * ## Simple Example
11
+ *
12
+ * Assuming this `index.html`:
13
+ *
14
+ * ```html
15
+ * <html>
16
+ * <!-- load Angular script tags here. -->
17
+ * <body>
18
+ * <my-app>loading...</my-app>
19
+ * </body>
20
+ * </html>
21
+ * ```
22
+ *
23
+ * An application is bootstrapped inside an existing browser DOM, typically `index.html`.
24
+ * Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is
25
+ * mainly for security reasons, as well as architectural changes in Angular 2. This means
26
+ * that `index.html` can safely be processed using server-side technologies such as
27
+ * providers. Bindings can thus use double-curly `{{ syntax }}` without collision from
28
+ * Angular 2 component double-curly `{{ syntax }}`.
29
+ *
30
+ * We can use this script code:
31
+ *
32
+ * {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}
33
+ *
34
+ * When the app developer invokes `bootstrap()` with the root component `MyApp` as its
35
+ * argument, Angular performs the following tasks:
36
+ *
37
+ * 1. It uses the component's `selector` property to locate the DOM element which needs
38
+ * to be upgraded into the angular component.
39
+ * 2. It creates a new child injector (from the platform injector). Optionally, you can
40
+ * also override the injector configuration for an app by invoking `bootstrap` with the
41
+ * `componentInjectableBindings` argument.
42
+ * 3. It creates a new `Zone` and connects it to the angular application's change detection
43
+ * domain instance.
44
+ * 4. It creates an emulated or shadow DOM on the selected component's host element and loads the
45
+ * template into it.
46
+ * 5. It instantiates the specified component.
47
+ * 6. Finally, Angular performs change detection to apply the initial data providers for the
48
+ * application.
49
+ *
50
+ *
51
+ * ## Bootstrapping Multiple Applications
52
+ *
53
+ * When working within a browser window, there are many singleton resources: cookies, title,
54
+ * location, and others. Angular services that represent these resources must likewise be
55
+ * shared across all Angular applications that occupy the same browser window. For this
56
+ * reason, Angular creates exactly one global platform object which stores all shared
57
+ * services, and each angular application injector has the platform injector as its parent.
58
+ *
59
+ * Each application has its own private injector as well. When there are multiple
60
+ * applications on a page, Angular treats each application injector's services as private
61
+ * to that application.
62
+ *
63
+ * ## API
64
+ *
65
+ * - `appComponentType`: The root component which should act as the application. This is
66
+ * a reference to a `Type` which is annotated with `@Component(...)`.
67
+ * - `customProviders`: An additional set of providers that can be added to the
68
+ * app injector to override default injection behavior.
69
+ *
70
+ * Returns a `Promise` of {@link ComponentRef}.
71
+ */
72
+ export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;
73
+ export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: Array<any>): Promise<ApplicationRef>;
74
+ export declare function bootstrapWorkerApp(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;
package/esm/index.js CHANGED
@@ -1,2 +1,130 @@
1
- export * from './platform_browser_dynamic';
1
+ import { COMMON_DIRECTIVES, COMMON_PIPES } from '@angular/common';
2
+ import { COMPILER_PROVIDERS, CompilerConfig, XHR } from '@angular/compiler';
3
+ import { ApplicationRef, PLATFORM_DIRECTIVES, PLATFORM_PIPES, ReflectiveInjector, coreLoadAndBootstrap } from '@angular/core';
4
+ import { BROWSER_APP_PROVIDERS, WORKER_APP_APPLICATION_PROVIDERS, WORKER_SCRIPT, WORKER_UI_APPLICATION_PROVIDERS, browserPlatform, workerAppPlatform, workerUiPlatform } from '@angular/platform-browser';
5
+ import { ReflectionCapabilities, reflector } from './core_private';
6
+ import { PromiseWrapper } from './src/facade/async';
7
+ import { isPresent } from './src/facade/lang';
8
+ import { CachedXHR } from './src/xhr/xhr_cache';
9
+ import { XHRImpl } from './src/xhr/xhr_impl';
10
+ export const BROWSER_APP_COMPILER_PROVIDERS = [
11
+ COMPILER_PROVIDERS, {
12
+ provide: CompilerConfig,
13
+ useFactory: (platformDirectives, platformPipes) => {
14
+ return new CompilerConfig({ platformDirectives, platformPipes });
15
+ },
16
+ deps: [PLATFORM_DIRECTIVES, PLATFORM_PIPES]
17
+ },
18
+ { provide: XHR, useClass: XHRImpl },
19
+ { provide: PLATFORM_DIRECTIVES, useValue: COMMON_DIRECTIVES, multi: true },
20
+ { provide: PLATFORM_PIPES, useValue: COMMON_PIPES, multi: true }
21
+ ];
22
+ export const CACHED_TEMPLATE_PROVIDER = [{ provide: XHR, useClass: CachedXHR }];
23
+ /**
24
+ * Bootstrapping for Angular applications.
25
+ *
26
+ * You instantiate an Angular application by explicitly specifying a component to use
27
+ * as the root component for your application via the `bootstrap()` method.
28
+ *
29
+ * ## Simple Example
30
+ *
31
+ * Assuming this `index.html`:
32
+ *
33
+ * ```html
34
+ * <html>
35
+ * <!-- load Angular script tags here. -->
36
+ * <body>
37
+ * <my-app>loading...</my-app>
38
+ * </body>
39
+ * </html>
40
+ * ```
41
+ *
42
+ * An application is bootstrapped inside an existing browser DOM, typically `index.html`.
43
+ * Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is
44
+ * mainly for security reasons, as well as architectural changes in Angular 2. This means
45
+ * that `index.html` can safely be processed using server-side technologies such as
46
+ * providers. Bindings can thus use double-curly `{{ syntax }}` without collision from
47
+ * Angular 2 component double-curly `{{ syntax }}`.
48
+ *
49
+ * We can use this script code:
50
+ *
51
+ * {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}
52
+ *
53
+ * When the app developer invokes `bootstrap()` with the root component `MyApp` as its
54
+ * argument, Angular performs the following tasks:
55
+ *
56
+ * 1. It uses the component's `selector` property to locate the DOM element which needs
57
+ * to be upgraded into the angular component.
58
+ * 2. It creates a new child injector (from the platform injector). Optionally, you can
59
+ * also override the injector configuration for an app by invoking `bootstrap` with the
60
+ * `componentInjectableBindings` argument.
61
+ * 3. It creates a new `Zone` and connects it to the angular application's change detection
62
+ * domain instance.
63
+ * 4. It creates an emulated or shadow DOM on the selected component's host element and loads the
64
+ * template into it.
65
+ * 5. It instantiates the specified component.
66
+ * 6. Finally, Angular performs change detection to apply the initial data providers for the
67
+ * application.
68
+ *
69
+ *
70
+ * ## Bootstrapping Multiple Applications
71
+ *
72
+ * When working within a browser window, there are many singleton resources: cookies, title,
73
+ * location, and others. Angular services that represent these resources must likewise be
74
+ * shared across all Angular applications that occupy the same browser window. For this
75
+ * reason, Angular creates exactly one global platform object which stores all shared
76
+ * services, and each angular application injector has the platform injector as its parent.
77
+ *
78
+ * Each application has its own private injector as well. When there are multiple
79
+ * applications on a page, Angular treats each application injector's services as private
80
+ * to that application.
81
+ *
82
+ * ## API
83
+ *
84
+ * - `appComponentType`: The root component which should act as the application. This is
85
+ * a reference to a `Type` which is annotated with `@Component(...)`.
86
+ * - `customProviders`: An additional set of providers that can be added to the
87
+ * app injector to override default injection behavior.
88
+ *
89
+ * Returns a `Promise` of {@link ComponentRef}.
90
+ */
91
+ export function bootstrap(appComponentType, customProviders) {
92
+ reflector.reflectionCapabilities = new ReflectionCapabilities();
93
+ let providers = [
94
+ BROWSER_APP_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,
95
+ isPresent(customProviders) ? customProviders : []
96
+ ];
97
+ var appInjector = ReflectiveInjector.resolveAndCreate(providers, browserPlatform().injector);
98
+ return coreLoadAndBootstrap(appComponentType, appInjector);
99
+ }
100
+ export function bootstrapWorkerUi(workerScriptUri, customProviders) {
101
+ var app = ReflectiveInjector.resolveAndCreate([
102
+ WORKER_UI_APPLICATION_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,
103
+ { provide: WORKER_SCRIPT, useValue: workerScriptUri },
104
+ isPresent(customProviders) ? customProviders : []
105
+ ], workerUiPlatform().injector);
106
+ // Return a promise so that we keep the same semantics as Dart,
107
+ // and we might want to wait for the app side to come up
108
+ // in the future...
109
+ return PromiseWrapper.resolve(app.get(ApplicationRef));
110
+ }
111
+ const WORKER_APP_COMPILER_PROVIDERS = [
112
+ COMPILER_PROVIDERS, {
113
+ provide: CompilerConfig,
114
+ useFactory: (platformDirectives, platformPipes) => {
115
+ return new CompilerConfig({ platformDirectives, platformPipes });
116
+ },
117
+ deps: [PLATFORM_DIRECTIVES, PLATFORM_PIPES]
118
+ },
119
+ { provide: XHR, useClass: XHRImpl },
120
+ { provide: PLATFORM_DIRECTIVES, useValue: COMMON_DIRECTIVES, multi: true },
121
+ { provide: PLATFORM_PIPES, useValue: COMMON_PIPES, multi: true }
122
+ ];
123
+ export function bootstrapWorkerApp(appComponentType, customProviders) {
124
+ var appInjector = ReflectiveInjector.resolveAndCreate([
125
+ WORKER_APP_APPLICATION_PROVIDERS, WORKER_APP_COMPILER_PROVIDERS,
126
+ isPresent(customProviders) ? customProviders : []
127
+ ], workerAppPlatform().injector);
128
+ return coreLoadAndBootstrap(appComponentType, appInjector);
129
+ }
2
130
  //# sourceMappingURL=index.js.map
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/platform-browser-dynamic/","sources":["index.ts"],"names":[],"mappings":"AAIE,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/@angular/platform-browser-dynamic/index.ts"],"names":[],"mappings":"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","sourcesContent":["import {COMMON_DIRECTIVES, COMMON_PIPES} from '@angular/common';\nimport {COMPILER_PROVIDERS, CompilerConfig, XHR} from '@angular/compiler';\nimport {ApplicationRef, ComponentRef, PLATFORM_DIRECTIVES, PLATFORM_PIPES, ReflectiveInjector, Type, coreLoadAndBootstrap} from '@angular/core';\nimport {BROWSER_APP_PROVIDERS, WORKER_APP_APPLICATION_PROVIDERS, WORKER_SCRIPT, WORKER_UI_APPLICATION_PROVIDERS, browserPlatform, workerAppPlatform, workerUiPlatform} from '@angular/platform-browser';\n\nimport {ReflectionCapabilities, reflector} from './core_private';\nimport {PromiseWrapper} from './src/facade/async';\nimport {isPresent} from './src/facade/lang';\nimport {CachedXHR} from './src/xhr/xhr_cache';\nimport {XHRImpl} from './src/xhr/xhr_impl';\n\n\nexport const BROWSER_APP_COMPILER_PROVIDERS: Array<any /*Type | Provider | any[]*/> = [\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: (platformDirectives: any[], platformPipes: any[]) => {\n return new CompilerConfig({platformDirectives, platformPipes});\n },\n deps: [PLATFORM_DIRECTIVES, PLATFORM_PIPES]\n },\n {provide: XHR, useClass: XHRImpl},\n {provide: PLATFORM_DIRECTIVES, useValue: COMMON_DIRECTIVES, multi: true},\n {provide: PLATFORM_PIPES, useValue: COMMON_PIPES, multi: true}\n];\n\n\nexport const CACHED_TEMPLATE_PROVIDER: Array<any /*Type | Provider | any[]*/> =\n [{provide: XHR, useClass: CachedXHR}];\n\n\n\n/**\n * Bootstrapping for Angular applications.\n *\n * You instantiate an Angular application by explicitly specifying a component to use\n * as the root component for your application via the `bootstrap()` method.\n *\n * ## Simple Example\n *\n * Assuming this `index.html`:\n *\n * ```html\n * <html>\n * <!-- load Angular script tags here. -->\n * <body>\n * <my-app>loading...</my-app>\n * </body>\n * </html>\n * ```\n *\n * An application is bootstrapped inside an existing browser DOM, typically `index.html`.\n * Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is\n * mainly for security reasons, as well as architectural changes in Angular 2. This means\n * that `index.html` can safely be processed using server-side technologies such as\n * providers. Bindings can thus use double-curly `{{ syntax }}` without collision from\n * Angular 2 component double-curly `{{ syntax }}`.\n *\n * We can use this script code:\n *\n * {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}\n *\n * When the app developer invokes `bootstrap()` with the root component `MyApp` as its\n * argument, Angular performs the following tasks:\n *\n * 1. It uses the component's `selector` property to locate the DOM element which needs\n * to be upgraded into the angular component.\n * 2. It creates a new child injector (from the platform injector). Optionally, you can\n * also override the injector configuration for an app by invoking `bootstrap` with the\n * `componentInjectableBindings` argument.\n * 3. It creates a new `Zone` and connects it to the angular application's change detection\n * domain instance.\n * 4. It creates an emulated or shadow DOM on the selected component's host element and loads the\n * template into it.\n * 5. It instantiates the specified component.\n * 6. Finally, Angular performs change detection to apply the initial data providers for the\n * application.\n *\n *\n * ## Bootstrapping Multiple Applications\n *\n * When working within a browser window, there are many singleton resources: cookies, title,\n * location, and others. Angular services that represent these resources must likewise be\n * shared across all Angular applications that occupy the same browser window. For this\n * reason, Angular creates exactly one global platform object which stores all shared\n * services, and each angular application injector has the platform injector as its parent.\n *\n * Each application has its own private injector as well. When there are multiple\n * applications on a page, Angular treats each application injector's services as private\n * to that application.\n *\n * ## API\n *\n * - `appComponentType`: The root component which should act as the application. This is\n * a reference to a `Type` which is annotated with `@Component(...)`.\n * - `customProviders`: An additional set of providers that can be added to the\n * app injector to override default injection behavior.\n *\n * Returns a `Promise` of {@link ComponentRef}.\n */\nexport function bootstrap(\n appComponentType: Type,\n customProviders?: Array<any /*Type | Provider | any[]*/>): Promise<ComponentRef<any>> {\n reflector.reflectionCapabilities = new ReflectionCapabilities();\n let providers = [\n BROWSER_APP_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,\n isPresent(customProviders) ? customProviders : []\n ];\n var appInjector = ReflectiveInjector.resolveAndCreate(providers, browserPlatform().injector);\n return coreLoadAndBootstrap(appComponentType, appInjector);\n}\n\n\nexport function bootstrapWorkerUi(\n workerScriptUri: string,\n customProviders?: Array<any /*Type | Provider | any[]*/>): Promise<ApplicationRef> {\n var app = ReflectiveInjector.resolveAndCreate(\n [\n WORKER_UI_APPLICATION_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,\n {provide: WORKER_SCRIPT, useValue: workerScriptUri},\n isPresent(customProviders) ? customProviders : []\n ],\n workerUiPlatform().injector);\n // Return a promise so that we keep the same semantics as Dart,\n // and we might want to wait for the app side to come up\n // in the future...\n return PromiseWrapper.resolve(app.get(ApplicationRef));\n}\n\n\nconst WORKER_APP_COMPILER_PROVIDERS: Array<any /*Type | Provider | any[]*/> = [\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: (platformDirectives: any[], platformPipes: any[]) => {\n return new CompilerConfig({platformDirectives, platformPipes});\n },\n deps: [PLATFORM_DIRECTIVES, PLATFORM_PIPES]\n },\n {provide: XHR, useClass: XHRImpl},\n {provide: PLATFORM_DIRECTIVES, useValue: COMMON_DIRECTIVES, multi: true},\n {provide: PLATFORM_PIPES, useValue: COMMON_PIPES, multi: true}\n];\n\n\nexport function bootstrapWorkerApp(\n appComponentType: Type,\n customProviders?: Array<any /*Type | Provider | any[]*/>): Promise<ComponentRef<any>> {\n var appInjector = ReflectiveInjector.resolveAndCreate(\n [\n WORKER_APP_APPLICATION_PROVIDERS, WORKER_APP_COMPILER_PROVIDERS,\n isPresent(customProviders) ? customProviders : []\n ],\n workerAppPlatform().injector);\n return coreLoadAndBootstrap(appComponentType, appInjector);\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":1,"metadata":{"BROWSER_APP_COMPILER_PROVIDERS":{"__symbolic":"error","message":"Function call not supported","line":15,"character":15},"CACHED_TEMPLATE_PROVIDER":[{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"XHR"},"useClass":{"__symbolic":"reference","module":"./src/xhr/xhr_cache","name":"CachedXHR"}}]}}
@@ -1,3 +1,2 @@
1
- import { __platform_browser_private__ as _ } from '@angular/platform-browser';
2
- export declare type DomAdapter = _.DomAdapter;
3
- export declare function getDOM(): _.DomAdapter;
1
+ import { __platform_browser_private__ as t } from '@angular/platform-browser';
2
+ export declare var getDOM: typeof t.getDOM;
@@ -1,4 +1,3 @@
1
- import { __platform_browser_private__ as _ } from '@angular/platform-browser';
2
- export function getDOM() { return _.getDOM(); }
3
- ;
1
+ import { __platform_browser_private__ as r } from '@angular/platform-browser';
2
+ export var getDOM = r.getDOM;
4
3
  //# sourceMappingURL=platform_browser_private.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform_browser_private.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/platform-browser-dynamic/","sources":["platform_browser_private.ts"],"names":[],"mappings":"OAIS,EAAC,4BAA4B,IAAI,CAAC,EAAC,MAAM,2BAA2B;AAG7E,2BAAuC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA,CAAA,CAAC;AAAA,CAAC"}
1
+ {"version":3,"file":"platform_browser_private.js","sourceRoot":"","sources":["../../../../modules/@angular/platform-browser-dynamic/platform_browser_private.ts"],"names":[],"mappings":"OAAO,EAAC,4BAA4B,IAAI,CAAC,EAAoC,MAAM,2BAA2B;AAE9G,OAAO,IAAI,MAAM,GAAoB,CAAC,CAAC,MAAM,CAAC","sourcesContent":["import {__platform_browser_private__ as r, __platform_browser_private__ as t} from '@angular/platform-browser';\n\nexport var getDOM: typeof t.getDOM = r.getDOM;\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":1,"metadata":{"getDOM":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/platform-browser","name":"___platform_browser_private__"},"member":"getDOM"}}}
@@ -0,0 +1,8 @@
1
+ import * as testing from './testing/dom_test_component_renderer';
2
+ export declare namespace __platform_browser_dynamic_private_types__ {
3
+ type DOMTestComponentRenderer = testing.DOMTestComponentRenderer;
4
+ var DOMTestComponentRenderer: typeof testing.DOMTestComponentRenderer;
5
+ }
6
+ export declare var __platform_browser_dynamic_private__: {
7
+ DOMTestComponentRenderer: typeof testing.DOMTestComponentRenderer;
8
+ };
@@ -0,0 +1,5 @@
1
+ import * as testing from './testing/dom_test_component_renderer';
2
+ export var __platform_browser_dynamic_private__ = {
3
+ DOMTestComponentRenderer: testing.DOMTestComponentRenderer
4
+ };
5
+ //# sourceMappingURL=private_export_testing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private_export_testing.js","sourceRoot":"","sources":["../../../../modules/@angular/platform-browser-dynamic/private_export_testing.ts"],"names":[],"mappings":"OAAO,KAAK,OAAO,MAAM,uCAAuC;AAOhE,OAAO,IAAI,oCAAoC,GAAG;IAChD,wBAAwB,EAAE,OAAO,CAAC,wBAAwB;CAC3D,CAAC","sourcesContent":["import * as testing from './testing/dom_test_component_renderer';\n\nexport declare namespace __platform_browser_dynamic_private_types__ {\n export type DOMTestComponentRenderer = testing.DOMTestComponentRenderer;\n export var DOMTestComponentRenderer: typeof testing.DOMTestComponentRenderer;\n}\n\nexport var __platform_browser_dynamic_private__ = {\n DOMTestComponentRenderer: testing.DOMTestComponentRenderer\n};\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":1,"metadata":{"___platform_browser_dynamic_private__":{"DOMTestComponentRenderer":{"__symbolic":"reference","module":"./testing/dom_test_component_renderer","name":"DOMTestComponentRenderer"}}}}