@angular/cdk 8.1.1 → 8.1.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.
- package/bundles/cdk-overlay.umd.js +23 -11
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +2 -2
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-tree.umd.js +6 -3
- package/bundles/cdk-tree.umd.js.map +1 -1
- package/bundles/cdk-tree.umd.min.js +1 -1
- package/bundles/cdk-tree.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/esm2015/cdk.js +1 -1
- package/esm2015/cdk.js.map +1 -1
- package/esm2015/overlay.js +24 -12
- package/esm2015/overlay.js.map +1 -1
- package/esm2015/tree.js +6 -3
- package/esm2015/tree.js.map +1 -1
- package/esm5/cdk.es5.js +1 -1
- package/esm5/cdk.es5.js.map +1 -1
- package/esm5/overlay.es5.js +23 -11
- package/esm5/overlay.es5.js.map +1 -1
- package/esm5/tree.es5.js +6 -3
- package/esm5/tree.es5.js.map +1 -1
- package/overlay/typings/index.metadata.json +1 -1
- package/overlay/typings/overlay-container.d.ts +2 -2
- package/package.json +3 -3
- package/schematics/tsconfig.tsbuildinfo +2781 -2781
- package/tree/typings/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/overlay/index.metadata.json +1 -1
- package/typings/esm5/overlay/overlay-container.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/overlay/index.metadata.json +1 -1
- package/typings/overlay/overlay-container.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
|
@@ -894,8 +894,8 @@ var OVERLAY_KEYBOARD_DISPATCHER_PROVIDER = {
|
|
|
894
894
|
* Container inside which all overlays will render.
|
|
895
895
|
*/
|
|
896
896
|
var OverlayContainer = /** @class */ (function () {
|
|
897
|
-
function OverlayContainer(
|
|
898
|
-
this._document =
|
|
897
|
+
function OverlayContainer(document) {
|
|
898
|
+
this._document = document;
|
|
899
899
|
}
|
|
900
900
|
/**
|
|
901
901
|
* @return {?}
|
|
@@ -949,9 +949,17 @@ var OverlayContainer = /** @class */ (function () {
|
|
|
949
949
|
* @return {?}
|
|
950
950
|
*/
|
|
951
951
|
function () {
|
|
952
|
+
/** @type {?} */
|
|
953
|
+
var containerClass = 'cdk-overlay-container';
|
|
954
|
+
/** @type {?} */
|
|
955
|
+
var previousContainers = this._document.getElementsByClassName(containerClass);
|
|
956
|
+
// Remove any old containers. This can happen when transitioning from the server to the client.
|
|
957
|
+
for (var i = 0; i < previousContainers.length; i++) {
|
|
958
|
+
(/** @type {?} */ (previousContainers[i].parentNode)).removeChild(previousContainers[i]);
|
|
959
|
+
}
|
|
952
960
|
/** @type {?} */
|
|
953
961
|
var container = this._document.createElement('div');
|
|
954
|
-
container.classList.add(
|
|
962
|
+
container.classList.add(containerClass);
|
|
955
963
|
this._document.body.appendChild(container);
|
|
956
964
|
this._containerElement = container;
|
|
957
965
|
};
|
|
@@ -5037,16 +5045,18 @@ var FullscreenOverlayContainer = /** @class */ (function (_super) {
|
|
|
5037
5045
|
*/
|
|
5038
5046
|
function () {
|
|
5039
5047
|
if (!this._fullScreenEventName) {
|
|
5040
|
-
|
|
5048
|
+
/** @type {?} */
|
|
5049
|
+
var _document = (/** @type {?} */ (this._document));
|
|
5050
|
+
if (_document.fullscreenEnabled) {
|
|
5041
5051
|
this._fullScreenEventName = 'fullscreenchange';
|
|
5042
5052
|
}
|
|
5043
|
-
else if (
|
|
5053
|
+
else if (_document.webkitFullscreenEnabled) {
|
|
5044
5054
|
this._fullScreenEventName = 'webkitfullscreenchange';
|
|
5045
5055
|
}
|
|
5046
|
-
else if (
|
|
5056
|
+
else if (_document.mozFullScreenEnabled) {
|
|
5047
5057
|
this._fullScreenEventName = 'mozfullscreenchange';
|
|
5048
5058
|
}
|
|
5049
|
-
else if (
|
|
5059
|
+
else if (_document.msFullscreenEnabled) {
|
|
5050
5060
|
this._fullScreenEventName = 'MSFullscreenChange';
|
|
5051
5061
|
}
|
|
5052
5062
|
}
|
|
@@ -5067,10 +5077,12 @@ var FullscreenOverlayContainer = /** @class */ (function (_super) {
|
|
|
5067
5077
|
* @return {?}
|
|
5068
5078
|
*/
|
|
5069
5079
|
function () {
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5080
|
+
/** @type {?} */
|
|
5081
|
+
var _document = (/** @type {?} */ (this._document));
|
|
5082
|
+
return _document.fullscreenElement ||
|
|
5083
|
+
_document.webkitFullscreenElement ||
|
|
5084
|
+
_document.mozFullScreenElement ||
|
|
5085
|
+
_document.msFullscreenElement ||
|
|
5074
5086
|
null;
|
|
5075
5087
|
};
|
|
5076
5088
|
FullscreenOverlayContainer.decorators = [
|