@angular/platform-browser 6.1.6 → 6.1.10
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.
- package/animations/animations.metadata.json +1 -1
- package/animations/src/module.d.ts +5 -2
- package/bundles/platform-browser-animations.umd.js +47 -48
- package/bundles/platform-browser-animations.umd.js.map +1 -1
- package/bundles/platform-browser-animations.umd.min.js +4 -4
- package/bundles/platform-browser-animations.umd.min.js.map +1 -1
- package/bundles/platform-browser-testing.umd.js +33 -18
- package/bundles/platform-browser-testing.umd.js.map +1 -1
- package/bundles/platform-browser-testing.umd.min.js +4 -10
- package/bundles/platform-browser-testing.umd.min.js.map +1 -1
- package/bundles/platform-browser.umd.js +125 -129
- package/bundles/platform-browser.umd.js.map +1 -1
- package/bundles/platform-browser.umd.min.js +14 -29
- package/bundles/platform-browser.umd.min.js.map +1 -1
- package/esm2015/animations/src/module.js +6 -3
- package/esm2015/src/browser.js +12 -7
- package/esm2015/src/dom/debug/by.js +7 -4
- package/esm2015/src/dom/events/hammer_gestures.js +10 -2
- package/esm2015/src/version.js +1 -1
- package/esm2015/testing/src/browser_util.js +9 -7
- package/esm2015/testing/src/matchers.js +44 -9
- package/esm5/animations/src/animation_builder.js +6 -9
- package/esm5/animations/src/animation_renderer.js +5 -10
- package/esm5/animations/src/module.js +19 -15
- package/esm5/animations/src/providers.js +6 -10
- package/esm5/src/browser/location/browser_platform_location.js +6 -8
- package/esm5/src/browser/meta.js +7 -8
- package/esm5/src/browser/title.js +7 -8
- package/esm5/src/browser/transfer_state.js +13 -10
- package/esm5/src/browser.js +21 -13
- package/esm5/src/dom/debug/by.js +7 -4
- package/esm5/src/dom/dom_renderer.js +5 -9
- package/esm5/src/dom/events/dom_events.js +7 -10
- package/esm5/src/dom/events/event_manager.js +7 -9
- package/esm5/src/dom/events/hammer_gestures.js +18 -15
- package/esm5/src/dom/events/key_events.js +13 -13
- package/esm5/src/dom/shared_styles_host.js +9 -11
- package/esm5/src/security/dom_sanitization_service.js +6 -8
- package/esm5/src/version.js +1 -1
- package/esm5/testing/src/browser.js +12 -11
- package/esm5/testing/src/browser_util.js +25 -10
- package/esm5/testing/src/matchers.js +22 -2
- package/fesm2015/animations.js +6 -3
- package/fesm2015/animations.js.map +1 -1
- package/fesm2015/platform-browser.js +27 -13
- package/fesm2015/platform-browser.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/animations.js +33 -49
- package/fesm5/animations.js.map +1 -1
- package/fesm5/platform-browser.js +112 -131
- package/fesm5/platform-browser.js.map +1 -1
- package/fesm5/testing.js +12 -18
- package/fesm5/testing.js.map +1 -1
- package/package.json +3 -3
- package/platform-browser.metadata.json +1 -1
- package/src/browser.d.ts +11 -4
- package/src/dom/debug/by.d.ts +6 -3
- package/src/dom/events/hammer_gestures.d.ts +1 -0
- package/testing/src/matchers.d.ts +19 -7
- package/testing/testing.metadata.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v6.1.
|
2
|
+
* @license Angular v6.1.10
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -50,6 +50,21 @@
|
|
50
50
|
return __assign.apply(this, arguments);
|
51
51
|
};
|
52
52
|
|
53
|
+
function __decorate(decorators, target, key, desc) {
|
54
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
55
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
56
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
57
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
58
|
+
}
|
59
|
+
|
60
|
+
function __param(paramIndex, decorator) {
|
61
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
62
|
+
}
|
63
|
+
|
64
|
+
function __metadata(metadataKey, metadataValue) {
|
65
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
66
|
+
}
|
67
|
+
|
53
68
|
function __read(o, n) {
|
54
69
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
55
70
|
if (!m) return o;
|
@@ -682,13 +697,11 @@
|
|
682
697
|
};
|
683
698
|
BrowserPlatformLocation.prototype.forward = function () { this._history.forward(); };
|
684
699
|
BrowserPlatformLocation.prototype.back = function () { this._history.back(); };
|
685
|
-
BrowserPlatformLocation
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
BrowserPlatformLocation
|
690
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DOCUMENT,] }] }
|
691
|
-
]; };
|
700
|
+
BrowserPlatformLocation = __decorate([
|
701
|
+
core.Injectable(),
|
702
|
+
__param(0, core.Inject(DOCUMENT)),
|
703
|
+
__metadata("design:paramtypes", [Object])
|
704
|
+
], BrowserPlatformLocation);
|
692
705
|
return BrowserPlatformLocation;
|
693
706
|
}(common.PlatformLocation));
|
694
707
|
|
@@ -926,14 +939,11 @@
|
|
926
939
|
}
|
927
940
|
throw new Error("No event manager plugin found for event " + eventName);
|
928
941
|
};
|
929
|
-
EventManager
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
EventManager
|
934
|
-
{ type: Array, decorators: [{ type: core.Inject, args: [EVENT_MANAGER_PLUGINS,] }] },
|
935
|
-
{ type: core.NgZone }
|
936
|
-
]; };
|
942
|
+
EventManager = __decorate([
|
943
|
+
core.Injectable(),
|
944
|
+
__param(0, core.Inject(EVENT_MANAGER_PLUGINS)),
|
945
|
+
__metadata("design:paramtypes", [Array, core.NgZone])
|
946
|
+
], EventManager);
|
937
947
|
return EventManager;
|
938
948
|
}());
|
939
949
|
var EventManagerPlugin = /** @class */ (function () {
|
@@ -975,9 +985,9 @@
|
|
975
985
|
};
|
976
986
|
SharedStylesHost.prototype.onStylesAdded = function (additions) { };
|
977
987
|
SharedStylesHost.prototype.getAllStyles = function () { return Array.from(this._stylesSet); };
|
978
|
-
SharedStylesHost
|
979
|
-
|
980
|
-
];
|
988
|
+
SharedStylesHost = __decorate([
|
989
|
+
core.Injectable()
|
990
|
+
], SharedStylesHost);
|
981
991
|
return SharedStylesHost;
|
982
992
|
}());
|
983
993
|
var DomSharedStylesHost = /** @class */ (function (_super) {
|
@@ -1008,13 +1018,11 @@
|
|
1008
1018
|
this._hostNodes.forEach(function (hostNode) { return _this._addStylesToHost(additions, hostNode); });
|
1009
1019
|
};
|
1010
1020
|
DomSharedStylesHost.prototype.ngOnDestroy = function () { this._styleNodes.forEach(function (styleNode) { return getDOM().remove(styleNode); }); };
|
1011
|
-
DomSharedStylesHost
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
DomSharedStylesHost
|
1016
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DOCUMENT,] }] }
|
1017
|
-
]; };
|
1021
|
+
DomSharedStylesHost = __decorate([
|
1022
|
+
core.Injectable(),
|
1023
|
+
__param(0, core.Inject(DOCUMENT)),
|
1024
|
+
__metadata("design:paramtypes", [Object])
|
1025
|
+
], DomSharedStylesHost);
|
1018
1026
|
return DomSharedStylesHost;
|
1019
1027
|
}(SharedStylesHost));
|
1020
1028
|
|
@@ -1102,14 +1110,10 @@
|
|
1102
1110
|
};
|
1103
1111
|
DomRendererFactory2.prototype.begin = function () { };
|
1104
1112
|
DomRendererFactory2.prototype.end = function () { };
|
1105
|
-
DomRendererFactory2
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
DomRendererFactory2.ctorParameters = function () { return [
|
1110
|
-
{ type: EventManager },
|
1111
|
-
{ type: DomSharedStylesHost }
|
1112
|
-
]; };
|
1113
|
+
DomRendererFactory2 = __decorate([
|
1114
|
+
core.Injectable(),
|
1115
|
+
__metadata("design:paramtypes", [EventManager, DomSharedStylesHost])
|
1116
|
+
], DomRendererFactory2);
|
1113
1117
|
return DomRendererFactory2;
|
1114
1118
|
}());
|
1115
1119
|
var DefaultDomRenderer2 = /** @class */ (function () {
|
@@ -1468,15 +1472,12 @@
|
|
1468
1472
|
target[NATIVE_REMOVE_LISTENER].apply(target, [eventName, callback, false]);
|
1469
1473
|
}
|
1470
1474
|
};
|
1471
|
-
DomEventsPlugin
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
{ type: core.NgZone },
|
1478
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.PLATFORM_ID,] }] }
|
1479
|
-
]; };
|
1475
|
+
DomEventsPlugin = __decorate([
|
1476
|
+
core.Injectable(),
|
1477
|
+
__param(0, core.Inject(DOCUMENT)),
|
1478
|
+
__param(2, core.Optional()), __param(2, core.Inject(core.PLATFORM_ID)),
|
1479
|
+
__metadata("design:paramtypes", [Object, core.NgZone, Object])
|
1480
|
+
], DomEventsPlugin);
|
1480
1481
|
return DomEventsPlugin;
|
1481
1482
|
}(EventManagerPlugin));
|
1482
1483
|
|
@@ -1582,9 +1583,9 @@
|
|
1582
1583
|
}
|
1583
1584
|
return mc;
|
1584
1585
|
};
|
1585
|
-
HammerGestureConfig
|
1586
|
-
|
1587
|
-
];
|
1586
|
+
HammerGestureConfig = __decorate([
|
1587
|
+
core.Injectable()
|
1588
|
+
], HammerGestureConfig);
|
1588
1589
|
return HammerGestureConfig;
|
1589
1590
|
}());
|
1590
1591
|
var HammerGesturesPlugin = /** @class */ (function (_super) {
|
@@ -1650,20 +1651,23 @@
|
|
1650
1651
|
zone.runGuarded(function () { handler(eventObj); });
|
1651
1652
|
};
|
1652
1653
|
mc.on(eventName, callback);
|
1653
|
-
return function () {
|
1654
|
+
return function () {
|
1655
|
+
mc.off(eventName, callback);
|
1656
|
+
// destroy mc to prevent memory leak
|
1657
|
+
if (typeof mc.destroy === 'function') {
|
1658
|
+
mc.destroy();
|
1659
|
+
}
|
1660
|
+
};
|
1654
1661
|
});
|
1655
1662
|
};
|
1656
1663
|
HammerGesturesPlugin.prototype.isCustomEvent = function (eventName) { return this._config.events.indexOf(eventName) > -1; };
|
1657
|
-
HammerGesturesPlugin
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
{ type: core.ɵConsole },
|
1665
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [HAMMER_LOADER,] }] }
|
1666
|
-
]; };
|
1664
|
+
HammerGesturesPlugin = __decorate([
|
1665
|
+
core.Injectable(),
|
1666
|
+
__param(0, core.Inject(DOCUMENT)),
|
1667
|
+
__param(1, core.Inject(HAMMER_GESTURE_CONFIG)),
|
1668
|
+
__param(3, core.Optional()), __param(3, core.Inject(HAMMER_LOADER)),
|
1669
|
+
__metadata("design:paramtypes", [Object, HammerGestureConfig, core.ɵConsole, Object])
|
1670
|
+
], HammerGesturesPlugin);
|
1667
1671
|
return HammerGesturesPlugin;
|
1668
1672
|
}(EventManagerPlugin));
|
1669
1673
|
|
@@ -1701,12 +1705,13 @@
|
|
1701
1705
|
function KeyEventsPlugin(doc) {
|
1702
1706
|
return _super.call(this, doc) || this;
|
1703
1707
|
}
|
1708
|
+
KeyEventsPlugin_1 = KeyEventsPlugin;
|
1704
1709
|
/**
|
1705
1710
|
* Reports whether a named key event is supported.
|
1706
1711
|
* @param eventName The event name to query.
|
1707
1712
|
* @return True if the named key event is supported.
|
1708
1713
|
*/
|
1709
|
-
KeyEventsPlugin.prototype.supports = function (eventName) { return
|
1714
|
+
KeyEventsPlugin.prototype.supports = function (eventName) { return KeyEventsPlugin_1.parseEventName(eventName) != null; };
|
1710
1715
|
/**
|
1711
1716
|
* Registers a handler for a specific element and key event.
|
1712
1717
|
* @param element The HTML element to receive event notifications.
|
@@ -1716,8 +1721,8 @@
|
|
1716
1721
|
* @returns The key event that was registered.
|
1717
1722
|
*/
|
1718
1723
|
KeyEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {
|
1719
|
-
var parsedEvent =
|
1720
|
-
var outsideHandler =
|
1724
|
+
var parsedEvent = KeyEventsPlugin_1.parseEventName(eventName);
|
1725
|
+
var outsideHandler = KeyEventsPlugin_1.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
|
1721
1726
|
return this.manager.getZone().runOutsideAngular(function () {
|
1722
1727
|
return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);
|
1723
1728
|
});
|
@@ -1728,7 +1733,7 @@
|
|
1728
1733
|
if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {
|
1729
1734
|
return null;
|
1730
1735
|
}
|
1731
|
-
var key =
|
1736
|
+
var key = KeyEventsPlugin_1._normalizeKey(parts.pop());
|
1732
1737
|
var fullKey = '';
|
1733
1738
|
MODIFIER_KEYS.forEach(function (modifierName) {
|
1734
1739
|
var index = parts.indexOf(modifierName);
|
@@ -1777,7 +1782,7 @@
|
|
1777
1782
|
*/
|
1778
1783
|
KeyEventsPlugin.eventCallback = function (fullKey, handler, zone) {
|
1779
1784
|
return function (event /** TODO #9100 */) {
|
1780
|
-
if (
|
1785
|
+
if (KeyEventsPlugin_1.getEventFullKey(event) === fullKey) {
|
1781
1786
|
zone.runGuarded(function () { return handler(event); });
|
1782
1787
|
}
|
1783
1788
|
};
|
@@ -1792,13 +1797,12 @@
|
|
1792
1797
|
return keyName;
|
1793
1798
|
}
|
1794
1799
|
};
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
]; };
|
1800
|
+
var KeyEventsPlugin_1;
|
1801
|
+
KeyEventsPlugin = KeyEventsPlugin_1 = __decorate([
|
1802
|
+
core.Injectable(),
|
1803
|
+
__param(0, core.Inject(DOCUMENT)),
|
1804
|
+
__metadata("design:paramtypes", [Object])
|
1805
|
+
], KeyEventsPlugin);
|
1802
1806
|
return KeyEventsPlugin;
|
1803
1807
|
}(EventManagerPlugin));
|
1804
1808
|
|
@@ -1903,13 +1907,11 @@
|
|
1903
1907
|
DomSanitizerImpl.prototype.bypassSecurityTrustResourceUrl = function (value) {
|
1904
1908
|
return new SafeResourceUrlImpl(value);
|
1905
1909
|
};
|
1906
|
-
DomSanitizerImpl
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
DomSanitizerImpl
|
1911
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DOCUMENT,] }] }
|
1912
|
-
]; };
|
1910
|
+
DomSanitizerImpl = __decorate([
|
1911
|
+
core.Injectable(),
|
1912
|
+
__param(0, core.Inject(DOCUMENT)),
|
1913
|
+
__metadata("design:paramtypes", [Object])
|
1914
|
+
], DomSanitizerImpl);
|
1913
1915
|
return DomSanitizerImpl;
|
1914
1916
|
}(DomSanitizer));
|
1915
1917
|
var SafeValueImpl = /** @class */ (function () {
|
@@ -2029,7 +2031,11 @@
|
|
2029
2031
|
ELEMENT_PROBE_PROVIDERS,
|
2030
2032
|
];
|
2031
2033
|
/**
|
2032
|
-
*
|
2034
|
+
* Exports required infrastructure for all Angular apps.
|
2035
|
+
* Included by defaults in all Angular apps created with the CLI
|
2036
|
+
* `new` command.
|
2037
|
+
* Re-exports `CommonModule` and `ApplicationModule`, making their
|
2038
|
+
* exports and providers available to all apps.
|
2033
2039
|
*
|
2034
2040
|
*
|
2035
2041
|
*/
|
@@ -2039,16 +2045,20 @@
|
|
2039
2045
|
throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.");
|
2040
2046
|
}
|
2041
2047
|
}
|
2048
|
+
BrowserModule_1 = BrowserModule;
|
2042
2049
|
/**
|
2043
|
-
* Configures a browser-based
|
2044
|
-
* one is present on the page.
|
2045
|
-
*
|
2050
|
+
* Configures a browser-based app to transition from a server-rendered app, if
|
2051
|
+
* one is present on the page.
|
2052
|
+
*
|
2053
|
+
* @param params An object containing an identifier for the app to transition.
|
2054
|
+
* The ID must match between the client and server versions of the app.
|
2055
|
+
* @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
|
2046
2056
|
*
|
2047
2057
|
* @experimental
|
2048
2058
|
*/
|
2049
2059
|
BrowserModule.withServerTransition = function (params) {
|
2050
2060
|
return {
|
2051
|
-
ngModule:
|
2061
|
+
ngModule: BrowserModule_1,
|
2052
2062
|
providers: [
|
2053
2063
|
{ provide: core.APP_ID, useValue: params.appId },
|
2054
2064
|
{ provide: TRANSITION_ID, useExisting: core.APP_ID },
|
@@ -2056,23 +2066,15 @@
|
|
2056
2066
|
],
|
2057
2067
|
};
|
2058
2068
|
};
|
2059
|
-
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
]; };
|
2069
|
+
var BrowserModule_1;
|
2070
|
+
BrowserModule = BrowserModule_1 = __decorate([
|
2071
|
+
core.NgModule({ providers: BROWSER_MODULE_PROVIDERS, exports: [common.CommonModule, core.ApplicationModule] }),
|
2072
|
+
__param(0, core.Optional()), __param(0, core.SkipSelf()), __param(0, core.Inject(BrowserModule_1)),
|
2073
|
+
__metadata("design:paramtypes", [Object])
|
2074
|
+
], BrowserModule);
|
2066
2075
|
return BrowserModule;
|
2067
2076
|
}());
|
2068
2077
|
|
2069
|
-
/**
|
2070
|
-
* @license
|
2071
|
-
* Copyright Google Inc. All Rights Reserved.
|
2072
|
-
*
|
2073
|
-
* Use of this source code is governed by an MIT-style license that can be
|
2074
|
-
* found in the LICENSE file at https://angular.io/license
|
2075
|
-
*/
|
2076
2078
|
/**
|
2077
2079
|
* Factory to create Meta service.
|
2078
2080
|
*/
|
@@ -2164,24 +2166,15 @@
|
|
2164
2166
|
var _this = this;
|
2165
2167
|
return Object.keys(tag).every(function (key) { return _this._dom.getAttribute(elem, key) === tag[key]; });
|
2166
2168
|
};
|
2167
|
-
Meta.decorators = [
|
2168
|
-
{ type: core.Injectable, args: [{ providedIn: 'root', useFactory: createMeta, deps: [] },] }
|
2169
|
-
];
|
2170
|
-
/** @nocollapse */
|
2171
|
-
Meta.ctorParameters = function () { return [
|
2172
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DOCUMENT,] }] }
|
2173
|
-
]; };
|
2174
2169
|
Meta.ngInjectableDef = core.defineInjectable({ factory: createMeta, token: Meta, providedIn: "root" });
|
2170
|
+
Meta = __decorate([
|
2171
|
+
core.Injectable({ providedIn: 'root', useFactory: createMeta, deps: [] }),
|
2172
|
+
__param(0, core.Inject(DOCUMENT)),
|
2173
|
+
__metadata("design:paramtypes", [Object])
|
2174
|
+
], Meta);
|
2175
2175
|
return Meta;
|
2176
2176
|
}());
|
2177
2177
|
|
2178
|
-
/**
|
2179
|
-
* @license
|
2180
|
-
* Copyright Google Inc. All Rights Reserved.
|
2181
|
-
*
|
2182
|
-
* Use of this source code is governed by an MIT-style license that can be
|
2183
|
-
* found in the LICENSE file at https://angular.io/license
|
2184
|
-
*/
|
2185
2178
|
/**
|
2186
2179
|
* Factory to create Title service.
|
2187
2180
|
*/
|
@@ -2211,14 +2204,12 @@
|
|
2211
2204
|
* @param newTitle
|
2212
2205
|
*/
|
2213
2206
|
Title.prototype.setTitle = function (newTitle) { getDOM().setTitle(this._doc, newTitle); };
|
2214
|
-
Title.decorators = [
|
2215
|
-
{ type: core.Injectable, args: [{ providedIn: 'root', useFactory: createTitle, deps: [] },] }
|
2216
|
-
];
|
2217
|
-
/** @nocollapse */
|
2218
|
-
Title.ctorParameters = function () { return [
|
2219
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DOCUMENT,] }] }
|
2220
|
-
]; };
|
2221
2207
|
Title.ngInjectableDef = core.defineInjectable({ factory: createTitle, token: Title, providedIn: "root" });
|
2208
|
+
Title = __decorate([
|
2209
|
+
core.Injectable({ providedIn: 'root', useFactory: createTitle, deps: [] }),
|
2210
|
+
__param(0, core.Inject(DOCUMENT)),
|
2211
|
+
__metadata("design:paramtypes", [Object])
|
2212
|
+
], Title);
|
2222
2213
|
return Title;
|
2223
2214
|
}());
|
2224
2215
|
|
@@ -2396,9 +2387,10 @@
|
|
2396
2387
|
this.store = {};
|
2397
2388
|
this.onSerializeCallbacks = {};
|
2398
2389
|
}
|
2390
|
+
TransferState_1 = TransferState;
|
2399
2391
|
/** @internal */
|
2400
2392
|
TransferState.init = function (initState) {
|
2401
|
-
var transferState = new
|
2393
|
+
var transferState = new TransferState_1();
|
2402
2394
|
transferState.store = initState;
|
2403
2395
|
return transferState;
|
2404
2396
|
};
|
@@ -2443,9 +2435,10 @@
|
|
2443
2435
|
}
|
2444
2436
|
return JSON.stringify(this.store);
|
2445
2437
|
};
|
2446
|
-
|
2447
|
-
|
2448
|
-
|
2438
|
+
var TransferState_1;
|
2439
|
+
TransferState = TransferState_1 = __decorate([
|
2440
|
+
core.Injectable()
|
2441
|
+
], TransferState);
|
2449
2442
|
return TransferState;
|
2450
2443
|
}());
|
2451
2444
|
function initTransferState(doc, appId) {
|
@@ -2472,11 +2465,11 @@
|
|
2472
2465
|
var BrowserTransferStateModule = /** @class */ (function () {
|
2473
2466
|
function BrowserTransferStateModule() {
|
2474
2467
|
}
|
2475
|
-
BrowserTransferStateModule
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
];
|
2468
|
+
BrowserTransferStateModule = __decorate([
|
2469
|
+
core.NgModule({
|
2470
|
+
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, core.APP_ID] }],
|
2471
|
+
})
|
2472
|
+
], BrowserTransferStateModule);
|
2480
2473
|
return BrowserTransferStateModule;
|
2481
2474
|
}());
|
2482
2475
|
|
@@ -2498,7 +2491,8 @@
|
|
2498
2491
|
/**
|
2499
2492
|
* Match all elements.
|
2500
2493
|
*
|
2501
|
-
*
|
2494
|
+
* @usageNotes
|
2495
|
+
* ### Example
|
2502
2496
|
*
|
2503
2497
|
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
|
2504
2498
|
*/
|
@@ -2506,7 +2500,8 @@
|
|
2506
2500
|
/**
|
2507
2501
|
* Match elements by the given CSS selector.
|
2508
2502
|
*
|
2509
|
-
*
|
2503
|
+
* @usageNotes
|
2504
|
+
* ### Example
|
2510
2505
|
*
|
2511
2506
|
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
|
2512
2507
|
*/
|
@@ -2520,7 +2515,8 @@
|
|
2520
2515
|
/**
|
2521
2516
|
* Match elements that have the given directive present.
|
2522
2517
|
*
|
2523
|
-
*
|
2518
|
+
* @usageNotes
|
2519
|
+
* ### Example
|
2524
2520
|
*
|
2525
2521
|
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
|
2526
2522
|
*/
|
@@ -2545,7 +2541,7 @@
|
|
2545
2541
|
* Use of this source code is governed by an MIT-style license that can be
|
2546
2542
|
* found in the LICENSE file at https://angular.io/license
|
2547
2543
|
*/
|
2548
|
-
var VERSION = new core.Version('6.1.
|
2544
|
+
var VERSION = new core.Version('6.1.10');
|
2549
2545
|
|
2550
2546
|
/**
|
2551
2547
|
* @license
|