@angular/cdk 22.3.0-next.0 → 22.3.0-next.1
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/fesm2022/overlay.mjs
CHANGED
|
@@ -56,17 +56,13 @@ class FullscreenOverlayContainer extends OverlayContainer {
|
|
|
56
56
|
this._fullScreenEventName = 'fullscreenchange';
|
|
57
57
|
} else if (_document.webkitFullscreenEnabled) {
|
|
58
58
|
this._fullScreenEventName = 'webkitfullscreenchange';
|
|
59
|
-
} else if (_document.mozFullScreenEnabled) {
|
|
60
|
-
this._fullScreenEventName = 'mozfullscreenchange';
|
|
61
|
-
} else if (_document.msFullscreenEnabled) {
|
|
62
|
-
this._fullScreenEventName = 'MSFullscreenChange';
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
61
|
return this._fullScreenEventName;
|
|
66
62
|
}
|
|
67
63
|
getFullscreenElement() {
|
|
68
64
|
const _document = this._document;
|
|
69
|
-
return _document.fullscreenElement || _document.webkitFullscreenElement ||
|
|
65
|
+
return _document.fullscreenElement || _document.webkitFullscreenElement || null;
|
|
70
66
|
}
|
|
71
67
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
72
68
|
minVersion: "12.0.0",
|
package/fesm2022/overlay.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/overlay/fullscreen-overlay-container.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {inject, Service, OnDestroy, RendererFactory2} from '@angular/core';\nimport {OverlayContainer} from './overlay-container';\n\n/**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\n@Service()\nexport class FullscreenOverlayContainer extends OverlayContainer implements OnDestroy {\n private _renderer = inject(RendererFactory2).createRenderer(null, null);\n private _fullScreenEventName: string | undefined;\n private _cleanupFullScreenListener: (() => void) | undefined;\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this._cleanupFullScreenListener?.();\n }\n\n protected override _createContainer(): void {\n const eventName = this._getEventName();\n super._createContainer();\n this._adjustParentForFullscreenChange();\n\n if (eventName) {\n this._cleanupFullScreenListener?.();\n this._cleanupFullScreenListener = this._renderer.listen('document', eventName, () => {\n this._adjustParentForFullscreenChange();\n });\n }\n }\n\n private _adjustParentForFullscreenChange(): void {\n if (this._containerElement) {\n const fullscreenElement = this.getFullscreenElement();\n const parent = fullscreenElement || this._document.body;\n parent.appendChild(this._containerElement);\n }\n }\n\n private _getEventName(): string | undefined {\n if (!this._fullScreenEventName) {\n const _document = this._document as any;\n\n if (_document.fullscreenEnabled) {\n this._fullScreenEventName = 'fullscreenchange';\n } else if (_document.webkitFullscreenEnabled) {\n this._fullScreenEventName = 'webkitfullscreenchange';\n }
|
|
1
|
+
{"version":3,"file":"overlay.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/overlay/fullscreen-overlay-container.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {inject, Service, OnDestroy, RendererFactory2} from '@angular/core';\nimport {OverlayContainer} from './overlay-container';\n\n/**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\n@Service()\nexport class FullscreenOverlayContainer extends OverlayContainer implements OnDestroy {\n private _renderer = inject(RendererFactory2).createRenderer(null, null);\n private _fullScreenEventName: string | undefined;\n private _cleanupFullScreenListener: (() => void) | undefined;\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this._cleanupFullScreenListener?.();\n }\n\n protected override _createContainer(): void {\n const eventName = this._getEventName();\n super._createContainer();\n this._adjustParentForFullscreenChange();\n\n if (eventName) {\n this._cleanupFullScreenListener?.();\n this._cleanupFullScreenListener = this._renderer.listen('document', eventName, () => {\n this._adjustParentForFullscreenChange();\n });\n }\n }\n\n private _adjustParentForFullscreenChange(): void {\n if (this._containerElement) {\n const fullscreenElement = this.getFullscreenElement();\n const parent = fullscreenElement || this._document.body;\n parent.appendChild(this._containerElement);\n }\n }\n\n private _getEventName(): string | undefined {\n if (!this._fullScreenEventName) {\n const _document = this._document as any;\n\n if (_document.fullscreenEnabled) {\n this._fullScreenEventName = 'fullscreenchange';\n } else if (_document.webkitFullscreenEnabled) {\n this._fullScreenEventName = 'webkitfullscreenchange';\n }\n }\n\n return this._fullScreenEventName;\n }\n\n /**\n * When the page is put into fullscreen mode, a specific element is specified.\n * Only that element and its children are visible when in fullscreen mode.\n */\n getFullscreenElement(): Element {\n const _document = this._document as any;\n return _document.fullscreenElement || _document.webkitFullscreenElement || null;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAmBM,MAAO,0BAA2B,SAAQ,gBAAgB,CAAA;EACtD,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;EAC/D,oBAAoB;EACpB,0BAA0B;AAEzB,EAAA,WAAW,GAAA;IAClB,KAAK,CAAC,WAAW,EAAE;IACnB,IAAI,CAAC,0BAA0B,IAAI;AACrC,EAAA;AAEmB,EAAA,gBAAgB,GAAA;AACjC,IAAA,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,EAAE;IACtC,KAAK,CAAC,gBAAgB,EAAE;IACxB,IAAI,CAAC,gCAAgC,EAAE;AAEvC,IAAA,IAAI,SAAS,EAAE;MACb,IAAI,CAAC,0BAA0B,IAAI;AACnC,MAAA,IAAI,CAAC,0BAA0B,GAAG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|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
27
27
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
28
28
|
// dependencies in new CLI projects.
|
|
29
|
-
return (0, utility_1.addDependency)('@angular/cdk', `~22.3.0-next.
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~22.3.0-next.1`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|