@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,12 +1,12 @@
|
|
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
|
*/
|
6
6
|
|
7
|
-
import {
|
7
|
+
import { __decorate, __param, __metadata, __assign, __extends, __spread } from 'tslib';
|
8
8
|
import { ɵparseCookieValue, DOCUMENT, PlatformLocation, isPlatformServer, CommonModule, ɵPLATFORM_BROWSER_ID } from '@angular/common';
|
9
|
-
import { ɵglobal, Inject, Injectable, APP_INITIALIZER, ApplicationInitStatus, InjectionToken, Injector, setTestabilityGetter,
|
9
|
+
import { ɵglobal, Inject, Injectable, APP_INITIALIZER, ApplicationInitStatus, InjectionToken, Injector, setTestabilityGetter, Version, ApplicationRef, inject, defineInjectable, NgZone, getDebugNode, NgProbeToken, Optional, NgModule, APP_ID, PLATFORM_ID, PLATFORM_INITIALIZER, Sanitizer, createPlatformFactory, platformCore, ErrorHandler, ɵAPP_ROOT, ɵConsole, RendererFactory2, Testability, ApplicationModule, SkipSelf, SecurityContext, ɵ_sanitizeHtml, ɵ_sanitizeStyle, ɵ_sanitizeUrl, ViewEncapsulation, RendererStyleFlags2 } from '@angular/core';
|
10
10
|
|
11
11
|
/**
|
12
12
|
* @license
|
@@ -617,13 +617,11 @@ var BrowserPlatformLocation = /** @class */ (function (_super) {
|
|
617
617
|
};
|
618
618
|
BrowserPlatformLocation.prototype.forward = function () { this._history.forward(); };
|
619
619
|
BrowserPlatformLocation.prototype.back = function () { this._history.back(); };
|
620
|
-
BrowserPlatformLocation
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
BrowserPlatformLocation
|
625
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT$1,] }] }
|
626
|
-
]; };
|
620
|
+
BrowserPlatformLocation = __decorate([
|
621
|
+
Injectable(),
|
622
|
+
__param(0, Inject(DOCUMENT$1)),
|
623
|
+
__metadata("design:paramtypes", [Object])
|
624
|
+
], BrowserPlatformLocation);
|
627
625
|
return BrowserPlatformLocation;
|
628
626
|
}(PlatformLocation));
|
629
627
|
|
@@ -861,14 +859,11 @@ var EventManager = /** @class */ (function () {
|
|
861
859
|
}
|
862
860
|
throw new Error("No event manager plugin found for event " + eventName);
|
863
861
|
};
|
864
|
-
EventManager
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
EventManager
|
869
|
-
{ type: Array, decorators: [{ type: Inject, args: [EVENT_MANAGER_PLUGINS,] }] },
|
870
|
-
{ type: NgZone }
|
871
|
-
]; };
|
862
|
+
EventManager = __decorate([
|
863
|
+
Injectable(),
|
864
|
+
__param(0, Inject(EVENT_MANAGER_PLUGINS)),
|
865
|
+
__metadata("design:paramtypes", [Array, NgZone])
|
866
|
+
], EventManager);
|
872
867
|
return EventManager;
|
873
868
|
}());
|
874
869
|
var EventManagerPlugin = /** @class */ (function () {
|
@@ -910,9 +905,9 @@ var SharedStylesHost = /** @class */ (function () {
|
|
910
905
|
};
|
911
906
|
SharedStylesHost.prototype.onStylesAdded = function (additions) { };
|
912
907
|
SharedStylesHost.prototype.getAllStyles = function () { return Array.from(this._stylesSet); };
|
913
|
-
SharedStylesHost
|
914
|
-
|
915
|
-
];
|
908
|
+
SharedStylesHost = __decorate([
|
909
|
+
Injectable()
|
910
|
+
], SharedStylesHost);
|
916
911
|
return SharedStylesHost;
|
917
912
|
}());
|
918
913
|
var DomSharedStylesHost = /** @class */ (function (_super) {
|
@@ -943,13 +938,11 @@ var DomSharedStylesHost = /** @class */ (function (_super) {
|
|
943
938
|
this._hostNodes.forEach(function (hostNode) { return _this._addStylesToHost(additions, hostNode); });
|
944
939
|
};
|
945
940
|
DomSharedStylesHost.prototype.ngOnDestroy = function () { this._styleNodes.forEach(function (styleNode) { return getDOM().remove(styleNode); }); };
|
946
|
-
DomSharedStylesHost
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
DomSharedStylesHost
|
951
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT$1,] }] }
|
952
|
-
]; };
|
941
|
+
DomSharedStylesHost = __decorate([
|
942
|
+
Injectable(),
|
943
|
+
__param(0, Inject(DOCUMENT$1)),
|
944
|
+
__metadata("design:paramtypes", [Object])
|
945
|
+
], DomSharedStylesHost);
|
953
946
|
return DomSharedStylesHost;
|
954
947
|
}(SharedStylesHost));
|
955
948
|
|
@@ -1037,14 +1030,10 @@ var DomRendererFactory2 = /** @class */ (function () {
|
|
1037
1030
|
};
|
1038
1031
|
DomRendererFactory2.prototype.begin = function () { };
|
1039
1032
|
DomRendererFactory2.prototype.end = function () { };
|
1040
|
-
DomRendererFactory2
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
DomRendererFactory2.ctorParameters = function () { return [
|
1045
|
-
{ type: EventManager },
|
1046
|
-
{ type: DomSharedStylesHost }
|
1047
|
-
]; };
|
1033
|
+
DomRendererFactory2 = __decorate([
|
1034
|
+
Injectable(),
|
1035
|
+
__metadata("design:paramtypes", [EventManager, DomSharedStylesHost])
|
1036
|
+
], DomRendererFactory2);
|
1048
1037
|
return DomRendererFactory2;
|
1049
1038
|
}());
|
1050
1039
|
var DefaultDomRenderer2 = /** @class */ (function () {
|
@@ -1403,15 +1392,12 @@ var DomEventsPlugin = /** @class */ (function (_super) {
|
|
1403
1392
|
target[NATIVE_REMOVE_LISTENER].apply(target, [eventName, callback, false]);
|
1404
1393
|
}
|
1405
1394
|
};
|
1406
|
-
DomEventsPlugin
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
{ type: NgZone },
|
1413
|
-
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [PLATFORM_ID,] }] }
|
1414
|
-
]; };
|
1395
|
+
DomEventsPlugin = __decorate([
|
1396
|
+
Injectable(),
|
1397
|
+
__param(0, Inject(DOCUMENT$1)),
|
1398
|
+
__param(2, Optional()), __param(2, Inject(PLATFORM_ID)),
|
1399
|
+
__metadata("design:paramtypes", [Object, NgZone, Object])
|
1400
|
+
], DomEventsPlugin);
|
1415
1401
|
return DomEventsPlugin;
|
1416
1402
|
}(EventManagerPlugin));
|
1417
1403
|
|
@@ -1517,9 +1503,9 @@ var HammerGestureConfig = /** @class */ (function () {
|
|
1517
1503
|
}
|
1518
1504
|
return mc;
|
1519
1505
|
};
|
1520
|
-
HammerGestureConfig
|
1521
|
-
|
1522
|
-
];
|
1506
|
+
HammerGestureConfig = __decorate([
|
1507
|
+
Injectable()
|
1508
|
+
], HammerGestureConfig);
|
1523
1509
|
return HammerGestureConfig;
|
1524
1510
|
}());
|
1525
1511
|
var HammerGesturesPlugin = /** @class */ (function (_super) {
|
@@ -1585,20 +1571,23 @@ var HammerGesturesPlugin = /** @class */ (function (_super) {
|
|
1585
1571
|
zone.runGuarded(function () { handler(eventObj); });
|
1586
1572
|
};
|
1587
1573
|
mc.on(eventName, callback);
|
1588
|
-
return function () {
|
1574
|
+
return function () {
|
1575
|
+
mc.off(eventName, callback);
|
1576
|
+
// destroy mc to prevent memory leak
|
1577
|
+
if (typeof mc.destroy === 'function') {
|
1578
|
+
mc.destroy();
|
1579
|
+
}
|
1580
|
+
};
|
1589
1581
|
});
|
1590
1582
|
};
|
1591
1583
|
HammerGesturesPlugin.prototype.isCustomEvent = function (eventName) { return this._config.events.indexOf(eventName) > -1; };
|
1592
|
-
HammerGesturesPlugin
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
{ type: ɵConsole },
|
1600
|
-
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [HAMMER_LOADER,] }] }
|
1601
|
-
]; };
|
1584
|
+
HammerGesturesPlugin = __decorate([
|
1585
|
+
Injectable(),
|
1586
|
+
__param(0, Inject(DOCUMENT$1)),
|
1587
|
+
__param(1, Inject(HAMMER_GESTURE_CONFIG)),
|
1588
|
+
__param(3, Optional()), __param(3, Inject(HAMMER_LOADER)),
|
1589
|
+
__metadata("design:paramtypes", [Object, HammerGestureConfig, ɵConsole, Object])
|
1590
|
+
], HammerGesturesPlugin);
|
1602
1591
|
return HammerGesturesPlugin;
|
1603
1592
|
}(EventManagerPlugin));
|
1604
1593
|
|
@@ -1636,12 +1625,13 @@ var KeyEventsPlugin = /** @class */ (function (_super) {
|
|
1636
1625
|
function KeyEventsPlugin(doc) {
|
1637
1626
|
return _super.call(this, doc) || this;
|
1638
1627
|
}
|
1628
|
+
KeyEventsPlugin_1 = KeyEventsPlugin;
|
1639
1629
|
/**
|
1640
1630
|
* Reports whether a named key event is supported.
|
1641
1631
|
* @param eventName The event name to query.
|
1642
1632
|
* @return True if the named key event is supported.
|
1643
1633
|
*/
|
1644
|
-
KeyEventsPlugin.prototype.supports = function (eventName) { return
|
1634
|
+
KeyEventsPlugin.prototype.supports = function (eventName) { return KeyEventsPlugin_1.parseEventName(eventName) != null; };
|
1645
1635
|
/**
|
1646
1636
|
* Registers a handler for a specific element and key event.
|
1647
1637
|
* @param element The HTML element to receive event notifications.
|
@@ -1651,8 +1641,8 @@ var KeyEventsPlugin = /** @class */ (function (_super) {
|
|
1651
1641
|
* @returns The key event that was registered.
|
1652
1642
|
*/
|
1653
1643
|
KeyEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {
|
1654
|
-
var parsedEvent =
|
1655
|
-
var outsideHandler =
|
1644
|
+
var parsedEvent = KeyEventsPlugin_1.parseEventName(eventName);
|
1645
|
+
var outsideHandler = KeyEventsPlugin_1.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
|
1656
1646
|
return this.manager.getZone().runOutsideAngular(function () {
|
1657
1647
|
return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);
|
1658
1648
|
});
|
@@ -1663,7 +1653,7 @@ var KeyEventsPlugin = /** @class */ (function (_super) {
|
|
1663
1653
|
if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {
|
1664
1654
|
return null;
|
1665
1655
|
}
|
1666
|
-
var key =
|
1656
|
+
var key = KeyEventsPlugin_1._normalizeKey(parts.pop());
|
1667
1657
|
var fullKey = '';
|
1668
1658
|
MODIFIER_KEYS.forEach(function (modifierName) {
|
1669
1659
|
var index = parts.indexOf(modifierName);
|
@@ -1712,7 +1702,7 @@ var KeyEventsPlugin = /** @class */ (function (_super) {
|
|
1712
1702
|
*/
|
1713
1703
|
KeyEventsPlugin.eventCallback = function (fullKey, handler, zone) {
|
1714
1704
|
return function (event /** TODO #9100 */) {
|
1715
|
-
if (
|
1705
|
+
if (KeyEventsPlugin_1.getEventFullKey(event) === fullKey) {
|
1716
1706
|
zone.runGuarded(function () { return handler(event); });
|
1717
1707
|
}
|
1718
1708
|
};
|
@@ -1727,13 +1717,12 @@ var KeyEventsPlugin = /** @class */ (function (_super) {
|
|
1727
1717
|
return keyName;
|
1728
1718
|
}
|
1729
1719
|
};
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
]; };
|
1720
|
+
var KeyEventsPlugin_1;
|
1721
|
+
KeyEventsPlugin = KeyEventsPlugin_1 = __decorate([
|
1722
|
+
Injectable(),
|
1723
|
+
__param(0, Inject(DOCUMENT$1)),
|
1724
|
+
__metadata("design:paramtypes", [Object])
|
1725
|
+
], KeyEventsPlugin);
|
1737
1726
|
return KeyEventsPlugin;
|
1738
1727
|
}(EventManagerPlugin));
|
1739
1728
|
|
@@ -1838,13 +1827,11 @@ var DomSanitizerImpl = /** @class */ (function (_super) {
|
|
1838
1827
|
DomSanitizerImpl.prototype.bypassSecurityTrustResourceUrl = function (value) {
|
1839
1828
|
return new SafeResourceUrlImpl(value);
|
1840
1829
|
};
|
1841
|
-
DomSanitizerImpl
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
DomSanitizerImpl
|
1846
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT$1,] }] }
|
1847
|
-
]; };
|
1830
|
+
DomSanitizerImpl = __decorate([
|
1831
|
+
Injectable(),
|
1832
|
+
__param(0, Inject(DOCUMENT$1)),
|
1833
|
+
__metadata("design:paramtypes", [Object])
|
1834
|
+
], DomSanitizerImpl);
|
1848
1835
|
return DomSanitizerImpl;
|
1849
1836
|
}(DomSanitizer));
|
1850
1837
|
var SafeValueImpl = /** @class */ (function () {
|
@@ -1964,7 +1951,11 @@ var BROWSER_MODULE_PROVIDERS = [
|
|
1964
1951
|
ELEMENT_PROBE_PROVIDERS,
|
1965
1952
|
];
|
1966
1953
|
/**
|
1967
|
-
*
|
1954
|
+
* Exports required infrastructure for all Angular apps.
|
1955
|
+
* Included by defaults in all Angular apps created with the CLI
|
1956
|
+
* `new` command.
|
1957
|
+
* Re-exports `CommonModule` and `ApplicationModule`, making their
|
1958
|
+
* exports and providers available to all apps.
|
1968
1959
|
*
|
1969
1960
|
*
|
1970
1961
|
*/
|
@@ -1974,16 +1965,20 @@ var BrowserModule = /** @class */ (function () {
|
|
1974
1965
|
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.");
|
1975
1966
|
}
|
1976
1967
|
}
|
1968
|
+
BrowserModule_1 = BrowserModule;
|
1977
1969
|
/**
|
1978
|
-
* Configures a browser-based
|
1979
|
-
* one is present on the page.
|
1980
|
-
*
|
1970
|
+
* Configures a browser-based app to transition from a server-rendered app, if
|
1971
|
+
* one is present on the page.
|
1972
|
+
*
|
1973
|
+
* @param params An object containing an identifier for the app to transition.
|
1974
|
+
* The ID must match between the client and server versions of the app.
|
1975
|
+
* @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
|
1981
1976
|
*
|
1982
1977
|
* @experimental
|
1983
1978
|
*/
|
1984
1979
|
BrowserModule.withServerTransition = function (params) {
|
1985
1980
|
return {
|
1986
|
-
ngModule:
|
1981
|
+
ngModule: BrowserModule_1,
|
1987
1982
|
providers: [
|
1988
1983
|
{ provide: APP_ID, useValue: params.appId },
|
1989
1984
|
{ provide: TRANSITION_ID, useExisting: APP_ID },
|
@@ -1991,23 +1986,15 @@ var BrowserModule = /** @class */ (function () {
|
|
1991
1986
|
],
|
1992
1987
|
};
|
1993
1988
|
};
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
]; };
|
1989
|
+
var BrowserModule_1;
|
1990
|
+
BrowserModule = BrowserModule_1 = __decorate([
|
1991
|
+
NgModule({ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] }),
|
1992
|
+
__param(0, Optional()), __param(0, SkipSelf()), __param(0, Inject(BrowserModule_1)),
|
1993
|
+
__metadata("design:paramtypes", [Object])
|
1994
|
+
], BrowserModule);
|
2001
1995
|
return BrowserModule;
|
2002
1996
|
}());
|
2003
1997
|
|
2004
|
-
/**
|
2005
|
-
* @license
|
2006
|
-
* Copyright Google Inc. All Rights Reserved.
|
2007
|
-
*
|
2008
|
-
* Use of this source code is governed by an MIT-style license that can be
|
2009
|
-
* found in the LICENSE file at https://angular.io/license
|
2010
|
-
*/
|
2011
1998
|
/**
|
2012
1999
|
* Factory to create Meta service.
|
2013
2000
|
*/
|
@@ -2099,24 +2086,15 @@ var Meta = /** @class */ (function () {
|
|
2099
2086
|
var _this = this;
|
2100
2087
|
return Object.keys(tag).every(function (key) { return _this._dom.getAttribute(elem, key) === tag[key]; });
|
2101
2088
|
};
|
2102
|
-
Meta.decorators = [
|
2103
|
-
{ type: Injectable, args: [{ providedIn: 'root', useFactory: createMeta, deps: [] },] }
|
2104
|
-
];
|
2105
|
-
/** @nocollapse */
|
2106
|
-
Meta.ctorParameters = function () { return [
|
2107
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT$1,] }] }
|
2108
|
-
]; };
|
2109
2089
|
Meta.ngInjectableDef = defineInjectable({ factory: createMeta, token: Meta, providedIn: "root" });
|
2090
|
+
Meta = __decorate([
|
2091
|
+
Injectable({ providedIn: 'root', useFactory: createMeta, deps: [] }),
|
2092
|
+
__param(0, Inject(DOCUMENT$1)),
|
2093
|
+
__metadata("design:paramtypes", [Object])
|
2094
|
+
], Meta);
|
2110
2095
|
return Meta;
|
2111
2096
|
}());
|
2112
2097
|
|
2113
|
-
/**
|
2114
|
-
* @license
|
2115
|
-
* Copyright Google Inc. All Rights Reserved.
|
2116
|
-
*
|
2117
|
-
* Use of this source code is governed by an MIT-style license that can be
|
2118
|
-
* found in the LICENSE file at https://angular.io/license
|
2119
|
-
*/
|
2120
2098
|
/**
|
2121
2099
|
* Factory to create Title service.
|
2122
2100
|
*/
|
@@ -2146,14 +2124,12 @@ var Title = /** @class */ (function () {
|
|
2146
2124
|
* @param newTitle
|
2147
2125
|
*/
|
2148
2126
|
Title.prototype.setTitle = function (newTitle) { getDOM().setTitle(this._doc, newTitle); };
|
2149
|
-
Title.decorators = [
|
2150
|
-
{ type: Injectable, args: [{ providedIn: 'root', useFactory: createTitle, deps: [] },] }
|
2151
|
-
];
|
2152
|
-
/** @nocollapse */
|
2153
|
-
Title.ctorParameters = function () { return [
|
2154
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT$1,] }] }
|
2155
|
-
]; };
|
2156
2127
|
Title.ngInjectableDef = defineInjectable({ factory: createTitle, token: Title, providedIn: "root" });
|
2128
|
+
Title = __decorate([
|
2129
|
+
Injectable({ providedIn: 'root', useFactory: createTitle, deps: [] }),
|
2130
|
+
__param(0, Inject(DOCUMENT$1)),
|
2131
|
+
__metadata("design:paramtypes", [Object])
|
2132
|
+
], Title);
|
2157
2133
|
return Title;
|
2158
2134
|
}());
|
2159
2135
|
|
@@ -2331,9 +2307,10 @@ var TransferState = /** @class */ (function () {
|
|
2331
2307
|
this.store = {};
|
2332
2308
|
this.onSerializeCallbacks = {};
|
2333
2309
|
}
|
2310
|
+
TransferState_1 = TransferState;
|
2334
2311
|
/** @internal */
|
2335
2312
|
TransferState.init = function (initState) {
|
2336
|
-
var transferState = new
|
2313
|
+
var transferState = new TransferState_1();
|
2337
2314
|
transferState.store = initState;
|
2338
2315
|
return transferState;
|
2339
2316
|
};
|
@@ -2378,9 +2355,10 @@ var TransferState = /** @class */ (function () {
|
|
2378
2355
|
}
|
2379
2356
|
return JSON.stringify(this.store);
|
2380
2357
|
};
|
2381
|
-
|
2382
|
-
|
2383
|
-
|
2358
|
+
var TransferState_1;
|
2359
|
+
TransferState = TransferState_1 = __decorate([
|
2360
|
+
Injectable()
|
2361
|
+
], TransferState);
|
2384
2362
|
return TransferState;
|
2385
2363
|
}());
|
2386
2364
|
function initTransferState(doc, appId) {
|
@@ -2407,11 +2385,11 @@ function initTransferState(doc, appId) {
|
|
2407
2385
|
var BrowserTransferStateModule = /** @class */ (function () {
|
2408
2386
|
function BrowserTransferStateModule() {
|
2409
2387
|
}
|
2410
|
-
BrowserTransferStateModule
|
2411
|
-
|
2412
|
-
|
2413
|
-
|
2414
|
-
];
|
2388
|
+
BrowserTransferStateModule = __decorate([
|
2389
|
+
NgModule({
|
2390
|
+
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT$1, APP_ID] }],
|
2391
|
+
})
|
2392
|
+
], BrowserTransferStateModule);
|
2415
2393
|
return BrowserTransferStateModule;
|
2416
2394
|
}());
|
2417
2395
|
|
@@ -2433,7 +2411,8 @@ var By = /** @class */ (function () {
|
|
2433
2411
|
/**
|
2434
2412
|
* Match all elements.
|
2435
2413
|
*
|
2436
|
-
*
|
2414
|
+
* @usageNotes
|
2415
|
+
* ### Example
|
2437
2416
|
*
|
2438
2417
|
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
|
2439
2418
|
*/
|
@@ -2441,7 +2420,8 @@ var By = /** @class */ (function () {
|
|
2441
2420
|
/**
|
2442
2421
|
* Match elements by the given CSS selector.
|
2443
2422
|
*
|
2444
|
-
*
|
2423
|
+
* @usageNotes
|
2424
|
+
* ### Example
|
2445
2425
|
*
|
2446
2426
|
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
|
2447
2427
|
*/
|
@@ -2455,7 +2435,8 @@ var By = /** @class */ (function () {
|
|
2455
2435
|
/**
|
2456
2436
|
* Match elements that have the given directive present.
|
2457
2437
|
*
|
2458
|
-
*
|
2438
|
+
* @usageNotes
|
2439
|
+
* ### Example
|
2459
2440
|
*
|
2460
2441
|
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
|
2461
2442
|
*/
|
@@ -2480,7 +2461,7 @@ var By = /** @class */ (function () {
|
|
2480
2461
|
* Use of this source code is governed by an MIT-style license that can be
|
2481
2462
|
* found in the LICENSE file at https://angular.io/license
|
2482
2463
|
*/
|
2483
|
-
var VERSION = new Version('6.1.
|
2464
|
+
var VERSION = new Version('6.1.10');
|
2484
2465
|
|
2485
2466
|
/**
|
2486
2467
|
* @license
|