@angular/cdk 21.0.0-next.9 → 21.0.0-rc.0
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/_adev_assets/cdk_drag_drop.json +13 -12
- package/_adev_assets/cdk_testing.json +9 -9
- package/_adev_assets/cdk_testing_protractor.json +1 -1
- package/_adev_assets/cdk_testing_selenium_webdriver.json +1 -1
- package/_adev_assets/cdk_testing_testbed.json +1 -1
- package/fesm2022/_a11y-module-chunk.mjs +755 -869
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_activedescendant-key-manager-chunk.mjs +8 -8
- package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_array-chunk.mjs +1 -1
- package/fesm2022/_array-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs +149 -152
- package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
- package/fesm2022/_css-pixel-value-chunk.mjs +4 -5
- package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
- package/fesm2022/_data-source-chunk.mjs +2 -8
- package/fesm2022/_data-source-chunk.mjs.map +1 -1
- package/fesm2022/_directionality-chunk.mjs +54 -54
- package/fesm2022/_directionality-chunk.mjs.map +1 -1
- package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs +25 -36
- package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_element-chunk.mjs +6 -17
- package/fesm2022/_element-chunk.mjs.map +1 -1
- package/fesm2022/_fake-event-detection-chunk.mjs +3 -17
- package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
- package/fesm2022/_focus-key-manager-chunk.mjs +10 -14
- package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_focus-monitor-chunk.mjs +376 -566
- package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
- package/fesm2022/_id-generator-chunk.mjs +36 -27
- package/fesm2022/_id-generator-chunk.mjs.map +1 -1
- package/fesm2022/_keycodes-chunk.mjs +9 -9
- package/fesm2022/_keycodes-chunk.mjs.map +1 -1
- package/fesm2022/_list-key-manager-chunk.mjs +248 -336
- package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_overlay-module-chunk.mjs +2534 -2948
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_passive-listeners-chunk.mjs +10 -22
- package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +42 -65
- package/fesm2022/_platform-chunk.mjs.map +1 -1
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs +78 -134
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_scrolling-chunk.mjs +44 -85
- package/fesm2022/_scrolling-chunk.mjs.map +1 -1
- package/fesm2022/_selection-model-chunk.mjs +138 -209
- package/fesm2022/_selection-model-chunk.mjs.map +1 -1
- package/fesm2022/_shadow-dom-chunk.mjs +21 -35
- package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
- package/fesm2022/_style-loader-chunk.mjs +50 -37
- package/fesm2022/_style-loader-chunk.mjs.map +1 -1
- package/fesm2022/_test-environment-chunk.mjs +2 -14
- package/fesm2022/_test-environment-chunk.mjs.map +1 -1
- package/fesm2022/_tree-key-manager-chunk.mjs +229 -308
- package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_typeahead-chunk.mjs +52 -74
- package/fesm2022/_typeahead-chunk.mjs.map +1 -1
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs +43 -40
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
- package/fesm2022/a11y.mjs +351 -449
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +254 -192
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +121 -64
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -2
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +208 -186
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion-private.mjs +4 -8
- package/fesm2022/coercion-private.mjs.map +1 -1
- package/fesm2022/coercion.mjs +11 -29
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/dialog.mjs +660 -808
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +3347 -4286
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs +4 -8
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +44 -26
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +841 -895
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +1942 -1858
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers-private.mjs +88 -106
- package/fesm2022/observers-private.mjs.map +1 -1
- package/fesm2022/observers.mjs +262 -184
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +72 -68
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +43 -54
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +402 -560
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +38 -10
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +1323 -1400
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +758 -590
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +2327 -2319
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing-selenium-webdriver.mjs +252 -325
- package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing-testbed.mjs +592 -709
- package/fesm2022/testing-testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs +368 -889
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +459 -388
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +1483 -1731
- package/fesm2022/tree.mjs.map +1 -1
- package/overlay/_index.scss +28 -0
- package/overlay-prebuilt.css +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/types/_overlay-module-chunk.d.ts +59 -7
- package/types/_portal-directives-chunk.d.ts +2 -18
- package/types/accordion.d.ts +3 -1
- package/types/dialog.d.ts +1 -1
- package/types/overlay.d.ts +6 -2
- package/types/portal.d.ts +1 -1
package/fesm2022/overlay.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OverlayContainer } from './_overlay-module-chunk.mjs';
|
|
2
|
-
export { BlockScrollStrategy, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollStrategyOptions, ScrollingVisibility, createBlockScrollStrategy, createCloseScrollStrategy, createFlexibleConnectedPositionStrategy, createGlobalPositionStrategy, createNoopScrollStrategy, createOverlayRef, createRepositionScrollStrategy, validateHorizontalPosition, validateVerticalPosition } from './_overlay-module-chunk.mjs';
|
|
2
|
+
export { BlockScrollStrategy, CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollStrategyOptions, ScrollingVisibility, createBlockScrollStrategy, createCloseScrollStrategy, createFlexibleConnectedPositionStrategy, createGlobalPositionStrategy, createNoopScrollStrategy, createOverlayRef, createRepositionScrollStrategy, validateHorizontalPosition, validateVerticalPosition } from './_overlay-module-chunk.mjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { inject, RendererFactory2, Injectable } from '@angular/core';
|
|
5
5
|
export { CdkScrollable, ScrollDispatcher, ViewportRuler, CdkFixedSizeVirtualScroll as ɵɵCdkFixedSizeVirtualScroll, CdkScrollableModule as ɵɵCdkScrollableModule, CdkVirtualForOf as ɵɵCdkVirtualForOf, CdkVirtualScrollViewport as ɵɵCdkVirtualScrollViewport, CdkVirtualScrollableElement as ɵɵCdkVirtualScrollableElement, CdkVirtualScrollableWindow as ɵɵCdkVirtualScrollableWindow } from './scrolling.mjs';
|
|
@@ -23,79 +23,83 @@ import './_element-chunk.mjs';
|
|
|
23
23
|
import './_recycle-view-repeater-strategy-chunk.mjs';
|
|
24
24
|
import './_data-source-chunk.mjs';
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
* Alternative to OverlayContainer that supports correct displaying of overlay elements in
|
|
28
|
-
* Fullscreen mode
|
|
29
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen
|
|
30
|
-
*
|
|
31
|
-
* Should be provided in the root component.
|
|
32
|
-
*/
|
|
33
26
|
class FullscreenOverlayContainer extends OverlayContainer {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
_renderer = inject(RendererFactory2).createRenderer(null, null);
|
|
28
|
+
_fullScreenEventName;
|
|
29
|
+
_cleanupFullScreenListener;
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
}
|
|
33
|
+
ngOnDestroy() {
|
|
34
|
+
super.ngOnDestroy();
|
|
35
|
+
this._cleanupFullScreenListener?.();
|
|
36
|
+
}
|
|
37
|
+
_createContainer() {
|
|
38
|
+
const eventName = this._getEventName();
|
|
39
|
+
super._createContainer();
|
|
40
|
+
this._adjustParentForFullscreenChange();
|
|
41
|
+
if (eventName) {
|
|
42
|
+
this._cleanupFullScreenListener?.();
|
|
43
|
+
this._cleanupFullScreenListener = this._renderer.listen('document', eventName, () => {
|
|
47
44
|
this._adjustParentForFullscreenChange();
|
|
48
|
-
|
|
49
|
-
this._cleanupFullScreenListener?.();
|
|
50
|
-
this._cleanupFullScreenListener = this._renderer.listen('document', eventName, () => {
|
|
51
|
-
this._adjustParentForFullscreenChange();
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
_adjustParentForFullscreenChange() {
|
|
56
|
-
if (this._containerElement) {
|
|
57
|
-
const fullscreenElement = this.getFullscreenElement();
|
|
58
|
-
const parent = fullscreenElement || this._document.body;
|
|
59
|
-
parent.appendChild(this._containerElement);
|
|
60
|
-
}
|
|
45
|
+
});
|
|
61
46
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
else if (_document.webkitFullscreenEnabled) {
|
|
69
|
-
this._fullScreenEventName = 'webkitfullscreenchange';
|
|
70
|
-
}
|
|
71
|
-
else if (_document.mozFullScreenEnabled) {
|
|
72
|
-
this._fullScreenEventName = 'mozfullscreenchange';
|
|
73
|
-
}
|
|
74
|
-
else if (_document.msFullscreenEnabled) {
|
|
75
|
-
this._fullScreenEventName = 'MSFullscreenChange';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return this._fullScreenEventName;
|
|
47
|
+
}
|
|
48
|
+
_adjustParentForFullscreenChange() {
|
|
49
|
+
if (this._containerElement) {
|
|
50
|
+
const fullscreenElement = this.getFullscreenElement();
|
|
51
|
+
const parent = fullscreenElement || this._document.body;
|
|
52
|
+
parent.appendChild(this._containerElement);
|
|
79
53
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
54
|
+
}
|
|
55
|
+
_getEventName() {
|
|
56
|
+
if (!this._fullScreenEventName) {
|
|
57
|
+
const _document = this._document;
|
|
58
|
+
if (_document.fullscreenEnabled) {
|
|
59
|
+
this._fullScreenEventName = 'fullscreenchange';
|
|
60
|
+
} else if (_document.webkitFullscreenEnabled) {
|
|
61
|
+
this._fullScreenEventName = 'webkitfullscreenchange';
|
|
62
|
+
} else if (_document.mozFullScreenEnabled) {
|
|
63
|
+
this._fullScreenEventName = 'mozfullscreenchange';
|
|
64
|
+
} else if (_document.msFullscreenEnabled) {
|
|
65
|
+
this._fullScreenEventName = 'MSFullscreenChange';
|
|
66
|
+
}
|
|
91
67
|
}
|
|
92
|
-
|
|
93
|
-
|
|
68
|
+
return this._fullScreenEventName;
|
|
69
|
+
}
|
|
70
|
+
getFullscreenElement() {
|
|
71
|
+
const _document = this._document;
|
|
72
|
+
return _document.fullscreenElement || _document.webkitFullscreenElement || _document.mozFullScreenElement || _document.msFullscreenElement || null;
|
|
73
|
+
}
|
|
74
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
75
|
+
minVersion: "12.0.0",
|
|
76
|
+
version: "20.2.0-next.2",
|
|
77
|
+
ngImport: i0,
|
|
78
|
+
type: FullscreenOverlayContainer,
|
|
79
|
+
deps: [],
|
|
80
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
81
|
+
});
|
|
82
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
83
|
+
minVersion: "12.0.0",
|
|
84
|
+
version: "20.2.0-next.2",
|
|
85
|
+
ngImport: i0,
|
|
86
|
+
type: FullscreenOverlayContainer,
|
|
87
|
+
providedIn: 'root'
|
|
88
|
+
});
|
|
94
89
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
91
|
+
minVersion: "12.0.0",
|
|
92
|
+
version: "20.2.0-next.2",
|
|
93
|
+
ngImport: i0,
|
|
94
|
+
type: FullscreenOverlayContainer,
|
|
95
|
+
decorators: [{
|
|
96
|
+
type: Injectable,
|
|
97
|
+
args: [{
|
|
98
|
+
providedIn: 'root'
|
|
99
|
+
}]
|
|
100
|
+
}],
|
|
101
|
+
ctorParameters: () => []
|
|
102
|
+
});
|
|
99
103
|
|
|
100
104
|
export { FullscreenOverlayContainer, OverlayContainer };
|
|
101
105
|
//# sourceMappingURL=overlay.mjs.map
|
package/fesm2022/overlay.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/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, Injectable, 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@Injectable({providedIn: 'root'})\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 constructor(...args: unknown[]);\n\n constructor() {\n super();\n }\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 } else if (_document.mozFullScreenEnabled) {\n this._fullScreenEventName = 'mozfullscreenchange';\n } else if (_document.msFullscreenEnabled) {\n this._fullScreenEventName = 'MSFullscreenChange';\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\n return (\n _document.fullscreenElement ||\n _document.webkitFullscreenElement ||\n _document.mozFullScreenElement ||\n _document.msFullscreenElement ||\n null\n );\n }\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"overlay.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/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, Injectable, 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@Injectable({providedIn: 'root'})\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 constructor(...args: unknown[]);\n\n constructor() {\n super();\n }\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 } else if (_document.mozFullScreenEnabled) {\n this._fullScreenEventName = 'mozfullscreenchange';\n } else if (_document.msFullscreenEnabled) {\n this._fullScreenEventName = 'MSFullscreenChange';\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\n return (\n _document.fullscreenElement ||\n _document.webkitFullscreenElement ||\n _document.mozFullScreenElement ||\n _document.msFullscreenElement ||\n null\n );\n }\n}\n"],"names":["FullscreenOverlayContainer","OverlayContainer","ngOnDestroy","_cleanupFullScreenListener","_createContainer","eventName","_getEventName","_adjustParentForFullscreenChange","_renderer","listen","_containerElement","fullscreenElement","getFullscreenElement","parent","_document","body","_fullScreenEventName","fullscreenEnabled","msFullscreenEnabled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoBUA,MAAAA,0BAAA,SAAAC,gBAAA,CAAA;;;;;;;AAYNC,EAAAA,WAAKA,GAAA;AACP,IAAA,KAAA,CAAAA,WAAA,EAAA;AAEmC,IAAA,IAAA,CAAAC,0BAAA,IAAA;AACjC;EAKEC,gBAAA,GAAA;IACA,MAAAC,SAAA,QAAAC,aAAA,EAAA;;AAGF,IAAA,IAAA,CAAAC,gCAAA,EAAA;AACF,IAAA,IAAAF,SAAA,EAAA;MAEwC,IAAA,CAAAF,0BAAA,IAAA;AACtC,MAAA,IAAA,CAAAA,0BAAA,GAAAK,IAAAA,CAAAA,SAAA,CAAAC,MAAA,aAAAJ,SAAA,EAAA,MAAA;AAEQ,QAAA,IAA0B,CAAAE,gCAAA,EAAA;OAChC,CAAA;;;kCAKQA,GAAA;AACR,IAAA,IAAA,IAAA,CAAAG,iBAAA,EAAA;MAEA,MAAAC,iBAAA,QAA+BC,oBAAE,EAAA;AAC/BC,MAAAA,MAAAA,MAAA,GAAAF,iBAAA,IAA4BG,IAAAA,CAAAA,SAAA,CAAAC,IAAA;;AACvB;AACL;EACKT,aAAA,GAAA;IACL,IAAA,CAAA,IAAA,CAAAU,oBAAK,EAAA;YACPF,SAAA,QAAAA,SAAA;MAAO,IAAAA,SAAA,CAAAG,iBAAI,EAA6B;QACtC,IAAA,CAAAD,oBAAK,GAAuB,kBAAA;;AAKlC,QAAA,IAAA,CAAAA,oBAAA,GAAA,wBAAA;AAEA,OAAA;QAGG,IAAAA,CAAAA,oBAAA,GAAA,qBAAA;aAED,IAAAF,SAAA,CAAAI,mBAAA,EAAA;AAAA,QAAA,IAAA,CAAeF,oBAAO,GAAiB,oBAAA;;;AAIrC,IAAA,OAAA,IAAA,CAAAA,oBAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/fesm2022/platform.mjs
CHANGED
|
@@ -8,65 +8,54 @@ export { _isTestEnvironment } from './_test-environment-chunk.mjs';
|
|
|
8
8
|
import '@angular/common';
|
|
9
9
|
|
|
10
10
|
class PlatformModule {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "20.2.0-next.2",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: PlatformModule,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
18
|
+
});
|
|
19
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
20
|
+
minVersion: "14.0.0",
|
|
21
|
+
version: "20.2.0-next.2",
|
|
22
|
+
ngImport: i0,
|
|
23
|
+
type: PlatformModule
|
|
24
|
+
});
|
|
25
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "20.2.0-next.2",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: PlatformModule
|
|
30
|
+
});
|
|
14
31
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
33
|
+
minVersion: "12.0.0",
|
|
34
|
+
version: "20.2.0-next.2",
|
|
35
|
+
ngImport: i0,
|
|
36
|
+
type: PlatformModule,
|
|
37
|
+
decorators: [{
|
|
38
|
+
type: NgModule,
|
|
39
|
+
args: [{}]
|
|
40
|
+
}]
|
|
41
|
+
});
|
|
19
42
|
|
|
20
|
-
/** Cached result Set of input types support by the current browser. */
|
|
21
43
|
let supportedInputTypes;
|
|
22
|
-
|
|
23
|
-
const candidateInputTypes = [
|
|
24
|
-
// `color` must come first. Chrome 56 shows a warning if we change the type to `color` after
|
|
25
|
-
// first changing it to something else:
|
|
26
|
-
// The specified value "" does not conform to the required format.
|
|
27
|
-
// The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
|
|
28
|
-
'color',
|
|
29
|
-
'button',
|
|
30
|
-
'checkbox',
|
|
31
|
-
'date',
|
|
32
|
-
'datetime-local',
|
|
33
|
-
'email',
|
|
34
|
-
'file',
|
|
35
|
-
'hidden',
|
|
36
|
-
'image',
|
|
37
|
-
'month',
|
|
38
|
-
'number',
|
|
39
|
-
'password',
|
|
40
|
-
'radio',
|
|
41
|
-
'range',
|
|
42
|
-
'reset',
|
|
43
|
-
'search',
|
|
44
|
-
'submit',
|
|
45
|
-
'tel',
|
|
46
|
-
'text',
|
|
47
|
-
'time',
|
|
48
|
-
'url',
|
|
49
|
-
'week',
|
|
50
|
-
];
|
|
51
|
-
/** @returns The input types supported by this browser. */
|
|
44
|
+
const candidateInputTypes = ['color', 'button', 'checkbox', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week'];
|
|
52
45
|
function getSupportedInputTypes() {
|
|
53
|
-
|
|
54
|
-
if (supportedInputTypes) {
|
|
55
|
-
return supportedInputTypes;
|
|
56
|
-
}
|
|
57
|
-
// We can't check if an input type is not supported until we're on the browser, so say that
|
|
58
|
-
// everything is supported when not on the browser. We don't use `Platform` here since it's
|
|
59
|
-
// just a helper function and can't inject it.
|
|
60
|
-
if (typeof document !== 'object' || !document) {
|
|
61
|
-
supportedInputTypes = new Set(candidateInputTypes);
|
|
62
|
-
return supportedInputTypes;
|
|
63
|
-
}
|
|
64
|
-
let featureTestInput = document.createElement('input');
|
|
65
|
-
supportedInputTypes = new Set(candidateInputTypes.filter(value => {
|
|
66
|
-
featureTestInput.setAttribute('type', value);
|
|
67
|
-
return featureTestInput.type === value;
|
|
68
|
-
}));
|
|
46
|
+
if (supportedInputTypes) {
|
|
69
47
|
return supportedInputTypes;
|
|
48
|
+
}
|
|
49
|
+
if (typeof document !== 'object' || !document) {
|
|
50
|
+
supportedInputTypes = new Set(candidateInputTypes);
|
|
51
|
+
return supportedInputTypes;
|
|
52
|
+
}
|
|
53
|
+
let featureTestInput = document.createElement('input');
|
|
54
|
+
supportedInputTypes = new Set(candidateInputTypes.filter(value => {
|
|
55
|
+
featureTestInput.setAttribute('type', value);
|
|
56
|
+
return featureTestInput.type === value;
|
|
57
|
+
}));
|
|
58
|
+
return supportedInputTypes;
|
|
70
59
|
}
|
|
71
60
|
|
|
72
61
|
export { PlatformModule, getSupportedInputTypes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/platform/platform-module.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/platform/features/input-types.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 {NgModule} from '@angular/core';\n\n@NgModule({})\nexport class PlatformModule {}\n","/**\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\n/** Cached result Set of input types support by the current browser. */\nlet supportedInputTypes: Set<string>;\n\n/** Types of `<input>` that *might* be supported. */\nconst candidateInputTypes = [\n // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after\n // first changing it to something else:\n // The specified value \"\" does not conform to the required format.\n // The format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal numbers.\n 'color',\n 'button',\n 'checkbox',\n 'date',\n 'datetime-local',\n 'email',\n 'file',\n 'hidden',\n 'image',\n 'month',\n 'number',\n 'password',\n 'radio',\n 'range',\n 'reset',\n 'search',\n 'submit',\n 'tel',\n 'text',\n 'time',\n 'url',\n 'week',\n];\n\n/** @returns The input types supported by this browser. */\nexport function getSupportedInputTypes(): Set<string> {\n // Result is cached.\n if (supportedInputTypes) {\n return supportedInputTypes;\n }\n\n // We can't check if an input type is not supported until we're on the browser, so say that\n // everything is supported when not on the browser. We don't use `Platform` here since it's\n // just a helper function and can't inject it.\n if (typeof document !== 'object' || !document) {\n supportedInputTypes = new Set(candidateInputTypes);\n return supportedInputTypes;\n }\n\n let featureTestInput = document.createElement('input');\n supportedInputTypes = new Set(\n candidateInputTypes.filter(value => {\n featureTestInput.setAttribute('type', value);\n return featureTestInput.type === value;\n }),\n );\n\n return supportedInputTypes;\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"platform.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/platform/platform-module.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/platform/features/input-types.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 {NgModule} from '@angular/core';\n\n@NgModule({})\nexport class PlatformModule {}\n","/**\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\n/** Cached result Set of input types support by the current browser. */\nlet supportedInputTypes: Set<string>;\n\n/** Types of `<input>` that *might* be supported. */\nconst candidateInputTypes = [\n // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after\n // first changing it to something else:\n // The specified value \"\" does not conform to the required format.\n // The format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal numbers.\n 'color',\n 'button',\n 'checkbox',\n 'date',\n 'datetime-local',\n 'email',\n 'file',\n 'hidden',\n 'image',\n 'month',\n 'number',\n 'password',\n 'radio',\n 'range',\n 'reset',\n 'search',\n 'submit',\n 'tel',\n 'text',\n 'time',\n 'url',\n 'week',\n];\n\n/** @returns The input types supported by this browser. */\nexport function getSupportedInputTypes(): Set<string> {\n // Result is cached.\n if (supportedInputTypes) {\n return supportedInputTypes;\n }\n\n // We can't check if an input type is not supported until we're on the browser, so say that\n // everything is supported when not on the browser. We don't use `Platform` here since it's\n // just a helper function and can't inject it.\n if (typeof document !== 'object' || !document) {\n supportedInputTypes = new Set(candidateInputTypes);\n return supportedInputTypes;\n }\n\n let featureTestInput = document.createElement('input');\n supportedInputTypes = new Set(\n candidateInputTypes.filter(value => {\n featureTestInput.setAttribute('type', value);\n return featureTestInput.type === value;\n }),\n );\n\n return supportedInputTypes;\n}\n"],"names":["minVersion","version","ngImport","i0","type","PlatformModule","decorators","getSupportedInputTypes","supportedInputTypes","document","Set","candidateInputTypes","filter","value","featureTestInput","setAttribute"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAUS,CAAA;AAAAA,EAAAA,UAAA,EAAA,QAAA;EAAAC,OAAA,EAAA,eAAA;AAAAC,EAAAA,QAAA,EAAAC,EAAA;AAAAC,EAAAA,IAAA,EAAAC,cAAA;EAAAC,UAAA,EAAA,CAAA;;;;;;;6BCQP,6BAGgB,qDAKT,4BAGA,qBAEA,SACC,mBAEH,UACC,uBAIP,EAAA,KAAA,EAEyD;SAGpDC,sBAAA,GAAA;yBAEJ,EAAA;WAE2FC,mBAAA;;0BAM3F,QAAA,IAAA,CAAAC,QAAA,EAAA;AAEID,IAAAA,sBAA2B,IAAAE,GAAA,CAAAC,mBAAA,CAAA;AAC/B,IAAA,OAAmBH,mBAAO;AAEtB;;AAKJA,EAAAA,mBAAA,OAAAE,GAAA,CAAAC,mBAAA,CAAAC,MAAA,CAAAC,KAAA,IAAA;IACFC,gBAAA,CAAAC,YAAA,CAAA,MAAA,EAAAF,KAAA,CAAA;;;;;;;;"}
|