@angular/cdk 19.0.0-next.4 → 19.0.0-next.6
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/a11y/index.d.ts +19 -37
- package/accordion/index.d.ts +5 -4
- package/bidi/index.d.ts +2 -2
- package/clipboard/index.d.ts +3 -4
- package/dialog/index.d.ts +6 -9
- package/drag-drop/index.d.ts +16 -33
- package/fesm2022/a11y.mjs +81 -139
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +11 -16
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +5 -9
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +11 -18
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -45
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +66 -125
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +13 -18
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +7 -1
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +10 -10
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +73 -121
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +45 -44
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +15 -2
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +59 -99
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +31 -40
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +113 -171
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +20 -27
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +50 -53
- package/fesm2022/tree.mjs.map +1 -1
- package/layout/index.d.ts +5 -7
- package/observers/index.d.ts +2 -2
- package/overlay/_index.scss +44 -11
- package/overlay/index.d.ts +16 -34
- package/overlay-prebuilt.css +1 -1
- package/package.json +1 -1
- package/portal/index.d.ts +21 -18
- package/private/index.d.ts +9 -0
- package/schematics/index.d.ts +1 -1
- package/schematics/index.js +2 -2
- package/schematics/index.mjs +2 -2
- package/schematics/ng-add/index.d.ts +1 -1
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- package/schematics/ng-add/package-config.d.ts +1 -1
- package/schematics/ng-add/package-config.js +2 -2
- package/schematics/ng-add/package-config.mjs +2 -2
- package/schematics/ng-add/schema.d.ts +1 -1
- package/schematics/ng-add/schema.js +2 -2
- package/schematics/ng-add/schema.mjs +2 -2
- package/schematics/ng-generate/drag-drop/index.d.ts +1 -1
- package/schematics/ng-generate/drag-drop/index.js +2 -2
- package/schematics/ng-generate/drag-drop/index.mjs +2 -2
- package/schematics/ng-generate/drag-drop/schema.d.ts +1 -1
- package/schematics/ng-generate/drag-drop/schema.js +2 -2
- package/schematics/ng-generate/drag-drop/schema.mjs +2 -2
- package/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
- package/schematics/ng-update/data/attribute-selectors.js +2 -2
- package/schematics/ng-update/data/attribute-selectors.mjs +2 -2
- package/schematics/ng-update/data/class-names.d.ts +1 -1
- package/schematics/ng-update/data/class-names.js +2 -2
- package/schematics/ng-update/data/class-names.mjs +2 -2
- package/schematics/ng-update/data/constructor-checks.d.ts +1 -1
- package/schematics/ng-update/data/constructor-checks.js +2 -2
- package/schematics/ng-update/data/constructor-checks.mjs +2 -2
- package/schematics/ng-update/data/css-selectors.d.ts +1 -1
- package/schematics/ng-update/data/css-selectors.js +2 -2
- package/schematics/ng-update/data/css-selectors.mjs +2 -2
- package/schematics/ng-update/data/css-tokens.d.ts +1 -1
- package/schematics/ng-update/data/css-tokens.js +2 -2
- package/schematics/ng-update/data/css-tokens.mjs +2 -2
- package/schematics/ng-update/data/element-selectors.d.ts +1 -1
- package/schematics/ng-update/data/element-selectors.js +2 -2
- package/schematics/ng-update/data/element-selectors.mjs +2 -2
- package/schematics/ng-update/data/index.d.ts +1 -1
- package/schematics/ng-update/data/index.js +2 -2
- package/schematics/ng-update/data/index.mjs +2 -2
- package/schematics/ng-update/data/input-names.d.ts +1 -1
- package/schematics/ng-update/data/input-names.js +2 -2
- package/schematics/ng-update/data/input-names.mjs +2 -2
- package/schematics/ng-update/data/method-call-checks.d.ts +1 -1
- package/schematics/ng-update/data/method-call-checks.js +2 -2
- package/schematics/ng-update/data/method-call-checks.mjs +2 -2
- package/schematics/ng-update/data/output-names.d.ts +1 -1
- package/schematics/ng-update/data/output-names.js +2 -2
- package/schematics/ng-update/data/output-names.mjs +2 -2
- package/schematics/ng-update/data/property-names.d.ts +1 -1
- package/schematics/ng-update/data/property-names.js +2 -2
- package/schematics/ng-update/data/property-names.mjs +2 -2
- package/schematics/ng-update/data/symbol-removal.d.ts +1 -1
- package/schematics/ng-update/data/symbol-removal.js +2 -2
- package/schematics/ng-update/data/symbol-removal.mjs +2 -2
- package/schematics/ng-update/devkit-file-system.d.ts +1 -1
- package/schematics/ng-update/devkit-file-system.js +2 -2
- package/schematics/ng-update/devkit-file-system.mjs +2 -2
- package/schematics/ng-update/devkit-migration-rule.d.ts +1 -1
- package/schematics/ng-update/devkit-migration-rule.js +2 -2
- package/schematics/ng-update/devkit-migration-rule.mjs +2 -2
- package/schematics/ng-update/devkit-migration.d.ts +1 -1
- package/schematics/ng-update/devkit-migration.js +2 -2
- package/schematics/ng-update/devkit-migration.mjs +2 -2
- package/schematics/ng-update/find-stylesheets.d.ts +1 -1
- package/schematics/ng-update/find-stylesheets.js +2 -2
- package/schematics/ng-update/find-stylesheets.mjs +2 -2
- package/schematics/ng-update/html-parsing/angular.d.ts +1 -1
- package/schematics/ng-update/html-parsing/angular.js +2 -2
- package/schematics/ng-update/html-parsing/angular.mjs +2 -2
- package/schematics/ng-update/html-parsing/elements.d.ts +1 -1
- package/schematics/ng-update/html-parsing/elements.js +2 -2
- package/schematics/ng-update/html-parsing/elements.mjs +2 -2
- package/schematics/ng-update/index.d.ts +1 -1
- package/schematics/ng-update/index.js +2 -2
- package/schematics/ng-update/index.mjs +2 -2
- package/schematics/ng-update/migrations/attribute-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/attribute-selectors.js +2 -2
- package/schematics/ng-update/migrations/attribute-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/class-inheritance.d.ts +1 -1
- package/schematics/ng-update/migrations/class-inheritance.js +2 -2
- package/schematics/ng-update/migrations/class-inheritance.mjs +2 -2
- package/schematics/ng-update/migrations/class-names.d.ts +1 -1
- package/schematics/ng-update/migrations/class-names.js +2 -2
- package/schematics/ng-update/migrations/class-names.mjs +2 -2
- package/schematics/ng-update/migrations/constructor-signature.d.ts +1 -1
- package/schematics/ng-update/migrations/constructor-signature.js +2 -2
- package/schematics/ng-update/migrations/constructor-signature.mjs +2 -2
- package/schematics/ng-update/migrations/css-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/css-selectors.js +2 -2
- package/schematics/ng-update/migrations/css-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/css-tokens.d.ts +1 -1
- package/schematics/ng-update/migrations/css-tokens.js +2 -2
- package/schematics/ng-update/migrations/css-tokens.mjs +2 -2
- package/schematics/ng-update/migrations/element-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/element-selectors.js +2 -2
- package/schematics/ng-update/migrations/element-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/input-names.d.ts +1 -1
- package/schematics/ng-update/migrations/input-names.js +2 -2
- package/schematics/ng-update/migrations/input-names.mjs +2 -2
- package/schematics/ng-update/migrations/method-call-arguments.d.ts +1 -1
- package/schematics/ng-update/migrations/method-call-arguments.js +2 -2
- package/schematics/ng-update/migrations/method-call-arguments.mjs +2 -2
- package/schematics/ng-update/migrations/misc-template.d.ts +1 -1
- package/schematics/ng-update/migrations/misc-template.js +2 -2
- package/schematics/ng-update/migrations/misc-template.mjs +2 -2
- package/schematics/ng-update/migrations/output-names.d.ts +1 -1
- package/schematics/ng-update/migrations/output-names.js +2 -2
- package/schematics/ng-update/migrations/output-names.mjs +2 -2
- package/schematics/ng-update/migrations/property-names.d.ts +1 -1
- package/schematics/ng-update/migrations/property-names.js +2 -2
- package/schematics/ng-update/migrations/property-names.mjs +2 -2
- package/schematics/ng-update/migrations/symbol-removal.d.ts +1 -1
- package/schematics/ng-update/migrations/symbol-removal.js +2 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
- package/schematics/ng-update/public-api.d.ts +1 -1
- package/schematics/ng-update/public-api.js +2 -2
- package/schematics/ng-update/public-api.mjs +2 -2
- package/schematics/ng-update/typescript/base-types.d.ts +1 -1
- package/schematics/ng-update/typescript/base-types.js +2 -2
- package/schematics/ng-update/typescript/base-types.mjs +2 -2
- package/schematics/ng-update/typescript/imports.d.ts +1 -1
- package/schematics/ng-update/typescript/imports.js +2 -2
- package/schematics/ng-update/typescript/imports.mjs +2 -2
- package/schematics/ng-update/typescript/literal.d.ts +1 -1
- package/schematics/ng-update/typescript/literal.js +2 -2
- package/schematics/ng-update/typescript/literal.mjs +2 -2
- package/schematics/ng-update/typescript/module-specifiers.d.ts +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js +2 -2
- package/schematics/ng-update/typescript/module-specifiers.mjs +2 -2
- package/schematics/ng-update/upgrade-data.d.ts +1 -1
- package/schematics/ng-update/upgrade-data.js +2 -2
- package/schematics/ng-update/upgrade-data.mjs +2 -2
- package/schematics/paths.d.ts +1 -1
- package/schematics/paths.js +2 -2
- package/schematics/paths.mjs +2 -2
- package/schematics/update-tool/component-resource-collector.d.ts +1 -1
- package/schematics/update-tool/component-resource-collector.js +2 -2
- package/schematics/update-tool/component-resource-collector.mjs +2 -2
- package/schematics/update-tool/file-system.d.ts +1 -1
- package/schematics/update-tool/file-system.js +2 -2
- package/schematics/update-tool/file-system.mjs +2 -2
- package/schematics/update-tool/index.d.ts +1 -1
- package/schematics/update-tool/index.js +2 -2
- package/schematics/update-tool/index.mjs +2 -2
- package/schematics/update-tool/logger.d.ts +1 -1
- package/schematics/update-tool/logger.js +2 -2
- package/schematics/update-tool/logger.mjs +2 -2
- package/schematics/update-tool/migration.d.ts +1 -1
- package/schematics/update-tool/migration.js +2 -2
- package/schematics/update-tool/migration.mjs +2 -2
- package/schematics/update-tool/public-api.d.ts +1 -1
- package/schematics/update-tool/public-api.js +2 -2
- package/schematics/update-tool/public-api.mjs +2 -2
- package/schematics/update-tool/target-version.d.ts +1 -1
- package/schematics/update-tool/target-version.js +2 -2
- package/schematics/update-tool/target-version.mjs +2 -2
- package/schematics/update-tool/update-recorder.d.ts +1 -1
- package/schematics/update-tool/update-recorder.js +2 -2
- package/schematics/update-tool/update-recorder.mjs +2 -2
- package/schematics/update-tool/utils/decorators.d.ts +1 -1
- package/schematics/update-tool/utils/decorators.js +2 -2
- package/schematics/update-tool/utils/decorators.mjs +2 -2
- package/schematics/update-tool/utils/diagnostics.d.ts +1 -1
- package/schematics/update-tool/utils/diagnostics.js +2 -2
- package/schematics/update-tool/utils/diagnostics.mjs +2 -2
- package/schematics/update-tool/utils/functions.d.ts +1 -1
- package/schematics/update-tool/utils/functions.js +2 -2
- package/schematics/update-tool/utils/functions.mjs +2 -2
- package/schematics/update-tool/utils/imports.d.ts +1 -1
- package/schematics/update-tool/utils/imports.js +2 -2
- package/schematics/update-tool/utils/imports.mjs +2 -2
- package/schematics/update-tool/utils/line-mappings.d.ts +1 -1
- package/schematics/update-tool/utils/line-mappings.js +2 -2
- package/schematics/update-tool/utils/line-mappings.mjs +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.d.ts +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
- package/schematics/update-tool/utils/property-name.d.ts +1 -1
- package/schematics/update-tool/utils/property-name.js +2 -2
- package/schematics/update-tool/utils/property-name.mjs +2 -2
- package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
- package/schematics/update-tool/utils/virtual-host.js +2 -2
- package/schematics/update-tool/utils/virtual-host.mjs +2 -2
- package/schematics/update-tool/version-changes.d.ts +1 -1
- package/schematics/update-tool/version-changes.js +2 -2
- package/schematics/update-tool/version-changes.mjs +2 -2
- package/schematics/utils/ast/ng-module-imports.d.ts +1 -1
- package/schematics/utils/ast/ng-module-imports.js +2 -2
- package/schematics/utils/ast/ng-module-imports.mjs +2 -2
- package/schematics/utils/ast.d.ts +1 -1
- package/schematics/utils/ast.js +2 -2
- package/schematics/utils/ast.mjs +2 -2
- package/schematics/utils/build-component.d.ts +1 -1
- package/schematics/utils/build-component.js +2 -2
- package/schematics/utils/build-component.mjs +2 -2
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +2 -2
- package/schematics/utils/get-project.mjs +2 -2
- package/schematics/utils/html-manipulation.d.ts +1 -1
- package/schematics/utils/html-manipulation.js +2 -2
- package/schematics/utils/html-manipulation.mjs +2 -2
- package/schematics/utils/index.d.ts +1 -1
- package/schematics/utils/index.js +2 -2
- package/schematics/utils/index.mjs +2 -2
- package/schematics/utils/parse5-element.d.ts +1 -1
- package/schematics/utils/parse5-element.js +2 -2
- package/schematics/utils/parse5-element.mjs +2 -2
- package/schematics/utils/project-index-file.d.ts +1 -1
- package/schematics/utils/project-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- package/schematics/utils/project-main-file.d.ts +1 -1
- package/schematics/utils/project-main-file.js +2 -2
- package/schematics/utils/project-main-file.mjs +2 -2
- package/schematics/utils/project-style-file.d.ts +1 -1
- package/schematics/utils/project-style-file.js +2 -2
- package/schematics/utils/project-style-file.mjs +2 -2
- package/schematics/utils/project-targets.d.ts +1 -1
- package/schematics/utils/project-targets.js +2 -2
- package/schematics/utils/project-targets.mjs +2 -2
- package/schematics/utils/project-tsconfig-paths.d.ts +1 -1
- package/schematics/utils/project-tsconfig-paths.js +2 -2
- package/schematics/utils/project-tsconfig-paths.mjs +2 -2
- package/schematics/utils/schematic-options.d.ts +1 -1
- package/schematics/utils/schematic-options.js +2 -2
- package/schematics/utils/schematic-options.mjs +2 -2
- package/scrolling/index.d.ts +17 -37
- package/stepper/index.d.ts +9 -11
- package/table/index.d.ts +36 -51
- package/text-field/index.d.ts +5 -9
- package/tree/index.d.ts +11 -13
package/fesm2022/a11y.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { DOCUMENT } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, APP_ID, Injectable,
|
|
4
|
-
import * as i1 from '@angular/cdk/platform';
|
|
3
|
+
import { inject, APP_ID, Injectable, QueryList, isSignal, effect, InjectionToken, afterNextRender, NgZone, Injector, ElementRef, booleanAttribute, Directive, Input, EventEmitter, Output, NgModule } from '@angular/core';
|
|
5
4
|
import { Platform, _getFocusedElementPierceShadowDom, normalizePassiveListenerOptions, _getEventTarget, _getShadowRoot } from '@angular/cdk/platform';
|
|
6
5
|
import { Subject, Subscription, isObservable, of, BehaviorSubject } from 'rxjs';
|
|
7
6
|
import { A, Z, ZERO, NINE, hasModifierKey, PAGE_DOWN, PAGE_UP, END, HOME, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW, TAB, ALT, CONTROL, MAC_META, META, SHIFT } from '@angular/cdk/keycodes';
|
|
8
7
|
import { tap, debounceTime, filter, map, take, skip, distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
9
8
|
import { coerceObservable } from '@angular/cdk/coercion/private';
|
|
10
|
-
import
|
|
11
|
-
import { ObserversModule } from '@angular/cdk/observers';
|
|
9
|
+
import { ContentObserver, ObserversModule } from '@angular/cdk/observers';
|
|
12
10
|
import { coerceElement } from '@angular/cdk/coercion';
|
|
13
11
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
14
12
|
|
|
@@ -78,20 +76,15 @@ let nextId = 0;
|
|
|
78
76
|
* content.
|
|
79
77
|
*/
|
|
80
78
|
class AriaDescriber {
|
|
81
|
-
constructor(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
* @breaking-change 14.0.0
|
|
85
|
-
*/
|
|
86
|
-
_platform) {
|
|
87
|
-
this._platform = _platform;
|
|
79
|
+
constructor() {
|
|
80
|
+
this._platform = inject(Platform);
|
|
81
|
+
this._document = inject(DOCUMENT);
|
|
88
82
|
/** Map of all registered message elements that have been placed into the document. */
|
|
89
83
|
this._messageRegistry = new Map();
|
|
90
84
|
/** Container for all registered messages. */
|
|
91
85
|
this._messagesContainer = null;
|
|
92
86
|
/** Unique ID for the service. */
|
|
93
87
|
this._id = `${nextId++}`;
|
|
94
|
-
this._document = _document;
|
|
95
88
|
this._id = inject(APP_ID) + '-' + nextId++;
|
|
96
89
|
}
|
|
97
90
|
describe(hostElement, message, role) {
|
|
@@ -187,8 +180,7 @@ class AriaDescriber {
|
|
|
187
180
|
// the description element doesn't impact page layout.
|
|
188
181
|
messagesContainer.classList.add(containerClassName);
|
|
189
182
|
messagesContainer.classList.add('cdk-visually-hidden');
|
|
190
|
-
|
|
191
|
-
if (this._platform && !this._platform.isBrowser) {
|
|
183
|
+
if (!this._platform.isBrowser) {
|
|
192
184
|
messagesContainer.setAttribute('platform', 'server');
|
|
193
185
|
}
|
|
194
186
|
this._document.body.appendChild(messagesContainer);
|
|
@@ -250,16 +242,13 @@ class AriaDescriber {
|
|
|
250
242
|
_isElementNode(element) {
|
|
251
243
|
return element.nodeType === this._document.ELEMENT_NODE;
|
|
252
244
|
}
|
|
253
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: AriaDescriber, deps: [
|
|
245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: AriaDescriber, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
254
246
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: AriaDescriber, providedIn: 'root' }); }
|
|
255
247
|
}
|
|
256
248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: AriaDescriber, decorators: [{
|
|
257
249
|
type: Injectable,
|
|
258
250
|
args: [{ providedIn: 'root' }]
|
|
259
|
-
}], ctorParameters: () => [
|
|
260
|
-
type: Inject,
|
|
261
|
-
args: [DOCUMENT]
|
|
262
|
-
}] }, { type: i1.Platform }] });
|
|
251
|
+
}], ctorParameters: () => [] });
|
|
263
252
|
/** Gets a key that can be used to look messages up in the registry. */
|
|
264
253
|
function getKey(message, role) {
|
|
265
254
|
return typeof message === 'string' ? `${role || ''}/${message}` : message;
|
|
@@ -1178,8 +1167,8 @@ class IsFocusableConfig {
|
|
|
1178
1167
|
* tabbable.
|
|
1179
1168
|
*/
|
|
1180
1169
|
class InteractivityChecker {
|
|
1181
|
-
constructor(
|
|
1182
|
-
this._platform =
|
|
1170
|
+
constructor() {
|
|
1171
|
+
this._platform = inject(Platform);
|
|
1183
1172
|
}
|
|
1184
1173
|
/**
|
|
1185
1174
|
* Gets whether an element is disabled.
|
|
@@ -1285,13 +1274,13 @@ class InteractivityChecker {
|
|
|
1285
1274
|
!this.isDisabled(element) &&
|
|
1286
1275
|
(config?.ignoreVisibility || this.isVisible(element)));
|
|
1287
1276
|
}
|
|
1288
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InteractivityChecker, deps: [
|
|
1277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InteractivityChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1289
1278
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InteractivityChecker, providedIn: 'root' }); }
|
|
1290
1279
|
}
|
|
1291
1280
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InteractivityChecker, decorators: [{
|
|
1292
1281
|
type: Injectable,
|
|
1293
1282
|
args: [{ providedIn: 'root' }]
|
|
1294
|
-
}], ctorParameters: () => [
|
|
1283
|
+
}], ctorParameters: () => [] });
|
|
1295
1284
|
/**
|
|
1296
1285
|
* Returns the frame element from a window object. Since browsers like MS Edge throw errors if
|
|
1297
1286
|
* the frameElement property is being accessed from a different host address, this property
|
|
@@ -1663,11 +1652,11 @@ class FocusTrap {
|
|
|
1663
1652
|
* Factory that allows easy instantiation of focus traps.
|
|
1664
1653
|
*/
|
|
1665
1654
|
class FocusTrapFactory {
|
|
1666
|
-
constructor(
|
|
1667
|
-
this._checker =
|
|
1668
|
-
this._ngZone =
|
|
1655
|
+
constructor() {
|
|
1656
|
+
this._checker = inject(InteractivityChecker);
|
|
1657
|
+
this._ngZone = inject(NgZone);
|
|
1658
|
+
this._document = inject(DOCUMENT);
|
|
1669
1659
|
this._injector = inject(Injector);
|
|
1670
|
-
this._document = _document;
|
|
1671
1660
|
}
|
|
1672
1661
|
/**
|
|
1673
1662
|
* Creates a focus-trapped region around the given element.
|
|
@@ -1679,16 +1668,13 @@ class FocusTrapFactory {
|
|
|
1679
1668
|
create(element, deferCaptureElements = false) {
|
|
1680
1669
|
return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements, this._injector);
|
|
1681
1670
|
}
|
|
1682
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapFactory, deps: [
|
|
1671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1683
1672
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' }); }
|
|
1684
1673
|
}
|
|
1685
1674
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapFactory, decorators: [{
|
|
1686
1675
|
type: Injectable,
|
|
1687
1676
|
args: [{ providedIn: 'root' }]
|
|
1688
|
-
}], ctorParameters: () => [
|
|
1689
|
-
type: Inject,
|
|
1690
|
-
args: [DOCUMENT]
|
|
1691
|
-
}] }] });
|
|
1677
|
+
}], ctorParameters: () => [] });
|
|
1692
1678
|
/** Directive for trapping focus within a region. */
|
|
1693
1679
|
class CdkTrapFocus {
|
|
1694
1680
|
/** Whether the focus trap is active. */
|
|
@@ -1700,14 +1686,9 @@ class CdkTrapFocus {
|
|
|
1700
1686
|
this.focusTrap.enabled = value;
|
|
1701
1687
|
}
|
|
1702
1688
|
}
|
|
1703
|
-
constructor(
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
* @breaking-change 13.0.0
|
|
1707
|
-
*/
|
|
1708
|
-
_document) {
|
|
1709
|
-
this._elementRef = _elementRef;
|
|
1710
|
-
this._focusTrapFactory = _focusTrapFactory;
|
|
1689
|
+
constructor() {
|
|
1690
|
+
this._elementRef = inject(ElementRef);
|
|
1691
|
+
this._focusTrapFactory = inject(FocusTrapFactory);
|
|
1711
1692
|
/** Previously focused element to restore focus to upon destroy when using autoCapture. */
|
|
1712
1693
|
this._previouslyFocusedElement = null;
|
|
1713
1694
|
const platform = inject(Platform);
|
|
@@ -1748,7 +1729,7 @@ class CdkTrapFocus {
|
|
|
1748
1729
|
this._previouslyFocusedElement = _getFocusedElementPierceShadowDom();
|
|
1749
1730
|
this.focusTrap?.focusInitialElementWhenReady();
|
|
1750
1731
|
}
|
|
1751
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTrapFocus, deps: [
|
|
1732
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTrapFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1752
1733
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.3", type: CdkTrapFocus, isStandalone: true, selector: "[cdkTrapFocus]", inputs: { enabled: ["cdkTrapFocus", "enabled", booleanAttribute], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture", booleanAttribute] }, exportAs: ["cdkTrapFocus"], usesOnChanges: true, ngImport: i0 }); }
|
|
1753
1734
|
}
|
|
1754
1735
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTrapFocus, decorators: [{
|
|
@@ -1758,10 +1739,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
1758
1739
|
exportAs: 'cdkTrapFocus',
|
|
1759
1740
|
standalone: true,
|
|
1760
1741
|
}]
|
|
1761
|
-
}], ctorParameters: () => [
|
|
1762
|
-
type: Inject,
|
|
1763
|
-
args: [DOCUMENT]
|
|
1764
|
-
}] }], propDecorators: { enabled: [{
|
|
1742
|
+
}], ctorParameters: () => [], propDecorators: { enabled: [{
|
|
1765
1743
|
type: Input,
|
|
1766
1744
|
args: [{ alias: 'cdkTrapFocus', transform: booleanAttribute }]
|
|
1767
1745
|
}], autoCapture: [{
|
|
@@ -1915,14 +1893,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
1915
1893
|
|
|
1916
1894
|
/** Factory that allows easy instantiation of configurable focus traps. */
|
|
1917
1895
|
class ConfigurableFocusTrapFactory {
|
|
1918
|
-
constructor(
|
|
1919
|
-
this._checker =
|
|
1920
|
-
this._ngZone =
|
|
1921
|
-
this._focusTrapManager =
|
|
1896
|
+
constructor() {
|
|
1897
|
+
this._checker = inject(InteractivityChecker);
|
|
1898
|
+
this._ngZone = inject(NgZone);
|
|
1899
|
+
this._focusTrapManager = inject(FocusTrapManager);
|
|
1900
|
+
this._document = inject(DOCUMENT);
|
|
1922
1901
|
this._injector = inject(Injector);
|
|
1923
|
-
|
|
1902
|
+
const inertStrategy = inject(FOCUS_TRAP_INERT_STRATEGY, { optional: true });
|
|
1924
1903
|
// TODO split up the strategies into different modules, similar to DateAdapter.
|
|
1925
|
-
this._inertStrategy =
|
|
1904
|
+
this._inertStrategy = inertStrategy || new EventListenerFocusTrapInertStrategy();
|
|
1926
1905
|
}
|
|
1927
1906
|
create(element, config = { defer: false }) {
|
|
1928
1907
|
let configObject;
|
|
@@ -1934,21 +1913,13 @@ class ConfigurableFocusTrapFactory {
|
|
|
1934
1913
|
}
|
|
1935
1914
|
return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject, this._injector);
|
|
1936
1915
|
}
|
|
1937
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [
|
|
1916
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1938
1917
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' }); }
|
|
1939
1918
|
}
|
|
1940
1919
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{
|
|
1941
1920
|
type: Injectable,
|
|
1942
1921
|
args: [{ providedIn: 'root' }]
|
|
1943
|
-
}], ctorParameters: () => [
|
|
1944
|
-
type: Inject,
|
|
1945
|
-
args: [DOCUMENT]
|
|
1946
|
-
}] }, { type: undefined, decorators: [{
|
|
1947
|
-
type: Optional
|
|
1948
|
-
}, {
|
|
1949
|
-
type: Inject,
|
|
1950
|
-
args: [FOCUS_TRAP_INERT_STRATEGY]
|
|
1951
|
-
}] }] });
|
|
1922
|
+
}], ctorParameters: () => [] });
|
|
1952
1923
|
|
|
1953
1924
|
/** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */
|
|
1954
1925
|
function isFakeMousedownFromScreenReader(event) {
|
|
@@ -2031,8 +2002,8 @@ class InputModalityDetector {
|
|
|
2031
2002
|
get mostRecentModality() {
|
|
2032
2003
|
return this._modality.value;
|
|
2033
2004
|
}
|
|
2034
|
-
constructor(
|
|
2035
|
-
this._platform =
|
|
2005
|
+
constructor() {
|
|
2006
|
+
this._platform = inject(Platform);
|
|
2036
2007
|
/**
|
|
2037
2008
|
* The most recently detected input modality event target. Is null if no input modality has been
|
|
2038
2009
|
* detected or if the associated event target is null for some unknown reason.
|
|
@@ -2091,6 +2062,9 @@ class InputModalityDetector {
|
|
|
2091
2062
|
this._modality.next('touch');
|
|
2092
2063
|
this._mostRecentTarget = _getEventTarget(event);
|
|
2093
2064
|
};
|
|
2065
|
+
const ngZone = inject(NgZone);
|
|
2066
|
+
const document = inject(DOCUMENT);
|
|
2067
|
+
const options = inject(INPUT_MODALITY_DETECTOR_OPTIONS, { optional: true });
|
|
2094
2068
|
this._options = {
|
|
2095
2069
|
...INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS,
|
|
2096
2070
|
...options,
|
|
@@ -2100,7 +2074,7 @@ class InputModalityDetector {
|
|
|
2100
2074
|
this.modalityChanged = this.modalityDetected.pipe(distinctUntilChanged());
|
|
2101
2075
|
// If we're not in a browser, this service should do nothing, as there's no relevant input
|
|
2102
2076
|
// modality to detect.
|
|
2103
|
-
if (_platform.isBrowser) {
|
|
2077
|
+
if (this._platform.isBrowser) {
|
|
2104
2078
|
ngZone.runOutsideAngular(() => {
|
|
2105
2079
|
document.addEventListener('keydown', this._onKeydown, modalityEventListenerOptions);
|
|
2106
2080
|
document.addEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);
|
|
@@ -2116,21 +2090,13 @@ class InputModalityDetector {
|
|
|
2116
2090
|
document.removeEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);
|
|
2117
2091
|
}
|
|
2118
2092
|
}
|
|
2119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InputModalityDetector, deps: [
|
|
2093
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InputModalityDetector, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2120
2094
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InputModalityDetector, providedIn: 'root' }); }
|
|
2121
2095
|
}
|
|
2122
2096
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InputModalityDetector, decorators: [{
|
|
2123
2097
|
type: Injectable,
|
|
2124
2098
|
args: [{ providedIn: 'root' }]
|
|
2125
|
-
}], ctorParameters: () => [
|
|
2126
|
-
type: Inject,
|
|
2127
|
-
args: [DOCUMENT]
|
|
2128
|
-
}] }, { type: undefined, decorators: [{
|
|
2129
|
-
type: Optional
|
|
2130
|
-
}, {
|
|
2131
|
-
type: Inject,
|
|
2132
|
-
args: [INPUT_MODALITY_DETECTOR_OPTIONS]
|
|
2133
|
-
}] }] });
|
|
2099
|
+
}], ctorParameters: () => [] });
|
|
2134
2100
|
|
|
2135
2101
|
const LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken('liveAnnouncerElement', {
|
|
2136
2102
|
providedIn: 'root',
|
|
@@ -2145,13 +2111,13 @@ const LIVE_ANNOUNCER_DEFAULT_OPTIONS = new InjectionToken('LIVE_ANNOUNCER_DEFAUL
|
|
|
2145
2111
|
|
|
2146
2112
|
let uniqueIds = 0;
|
|
2147
2113
|
class LiveAnnouncer {
|
|
2148
|
-
constructor(
|
|
2149
|
-
this._ngZone =
|
|
2150
|
-
this._defaultOptions =
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2114
|
+
constructor() {
|
|
2115
|
+
this._ngZone = inject(NgZone);
|
|
2116
|
+
this._defaultOptions = inject(LIVE_ANNOUNCER_DEFAULT_OPTIONS, {
|
|
2117
|
+
optional: true,
|
|
2118
|
+
});
|
|
2119
|
+
this._document = inject(DOCUMENT);
|
|
2120
|
+
const elementToken = inject(LIVE_ANNOUNCER_ELEMENT_TOKEN, { optional: true });
|
|
2155
2121
|
this._liveElement = elementToken || this._createLiveElement();
|
|
2156
2122
|
}
|
|
2157
2123
|
announce(message, ...args) {
|
|
@@ -2258,26 +2224,13 @@ class LiveAnnouncer {
|
|
|
2258
2224
|
}
|
|
2259
2225
|
}
|
|
2260
2226
|
}
|
|
2261
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: LiveAnnouncer, deps: [
|
|
2227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: LiveAnnouncer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2262
2228
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' }); }
|
|
2263
2229
|
}
|
|
2264
2230
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: LiveAnnouncer, decorators: [{
|
|
2265
2231
|
type: Injectable,
|
|
2266
2232
|
args: [{ providedIn: 'root' }]
|
|
2267
|
-
}], ctorParameters: () => [
|
|
2268
|
-
type: Optional
|
|
2269
|
-
}, {
|
|
2270
|
-
type: Inject,
|
|
2271
|
-
args: [LIVE_ANNOUNCER_ELEMENT_TOKEN]
|
|
2272
|
-
}] }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
2273
|
-
type: Inject,
|
|
2274
|
-
args: [DOCUMENT]
|
|
2275
|
-
}] }, { type: undefined, decorators: [{
|
|
2276
|
-
type: Optional
|
|
2277
|
-
}, {
|
|
2278
|
-
type: Inject,
|
|
2279
|
-
args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS]
|
|
2280
|
-
}] }] });
|
|
2233
|
+
}], ctorParameters: () => [] });
|
|
2281
2234
|
/**
|
|
2282
2235
|
* A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
|
|
2283
2236
|
* with a wider range of browsers and screen readers.
|
|
@@ -2310,11 +2263,11 @@ class CdkAriaLive {
|
|
|
2310
2263
|
});
|
|
2311
2264
|
}
|
|
2312
2265
|
}
|
|
2313
|
-
constructor(
|
|
2314
|
-
this._elementRef =
|
|
2315
|
-
this._liveAnnouncer =
|
|
2316
|
-
this._contentObserver =
|
|
2317
|
-
this._ngZone =
|
|
2266
|
+
constructor() {
|
|
2267
|
+
this._elementRef = inject(ElementRef);
|
|
2268
|
+
this._liveAnnouncer = inject(LiveAnnouncer);
|
|
2269
|
+
this._contentObserver = inject(ContentObserver);
|
|
2270
|
+
this._ngZone = inject(NgZone);
|
|
2318
2271
|
this._politeness = 'polite';
|
|
2319
2272
|
}
|
|
2320
2273
|
ngOnDestroy() {
|
|
@@ -2322,7 +2275,7 @@ class CdkAriaLive {
|
|
|
2322
2275
|
this._subscription.unsubscribe();
|
|
2323
2276
|
}
|
|
2324
2277
|
}
|
|
2325
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkAriaLive, deps: [
|
|
2278
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkAriaLive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2326
2279
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkAriaLive, isStandalone: true, selector: "[cdkAriaLive]", inputs: { politeness: ["cdkAriaLive", "politeness"], duration: ["cdkAriaLiveDuration", "duration"] }, exportAs: ["cdkAriaLive"], ngImport: i0 }); }
|
|
2327
2280
|
}
|
|
2328
2281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkAriaLive, decorators: [{
|
|
@@ -2332,7 +2285,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
2332
2285
|
exportAs: 'cdkAriaLive',
|
|
2333
2286
|
standalone: true,
|
|
2334
2287
|
}]
|
|
2335
|
-
}], ctorParameters: () => [
|
|
2288
|
+
}], ctorParameters: () => [], propDecorators: { politeness: [{
|
|
2336
2289
|
type: Input,
|
|
2337
2290
|
args: ['cdkAriaLive']
|
|
2338
2291
|
}], duration: [{
|
|
@@ -2367,12 +2320,10 @@ const captureEventListenerOptions = normalizePassiveListenerOptions({
|
|
|
2367
2320
|
});
|
|
2368
2321
|
/** Monitors mouse and keyboard events to determine the cause of focus events. */
|
|
2369
2322
|
class FocusMonitor {
|
|
2370
|
-
constructor(
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
this.
|
|
2374
|
-
this._platform = _platform;
|
|
2375
|
-
this._inputModalityDetector = _inputModalityDetector;
|
|
2323
|
+
constructor() {
|
|
2324
|
+
this._ngZone = inject(NgZone);
|
|
2325
|
+
this._platform = inject(Platform);
|
|
2326
|
+
this._inputModalityDetector = inject(InputModalityDetector);
|
|
2376
2327
|
/** The focus origin that the next focus event is a result of. */
|
|
2377
2328
|
this._origin = null;
|
|
2378
2329
|
/** Whether the window has just been focused. */
|
|
@@ -2403,6 +2354,8 @@ class FocusMonitor {
|
|
|
2403
2354
|
this._windowFocused = true;
|
|
2404
2355
|
this._windowFocusTimeoutId = window.setTimeout(() => (this._windowFocused = false));
|
|
2405
2356
|
};
|
|
2357
|
+
/** Used to reference correct document/window */
|
|
2358
|
+
this._document = inject(DOCUMENT, { optional: true });
|
|
2406
2359
|
/** Subject for stopping our InputModalityDetector subscription. */
|
|
2407
2360
|
this._stopInputModalityDetector = new Subject();
|
|
2408
2361
|
/**
|
|
@@ -2421,7 +2374,9 @@ class FocusMonitor {
|
|
|
2421
2374
|
}
|
|
2422
2375
|
}
|
|
2423
2376
|
};
|
|
2424
|
-
|
|
2377
|
+
const options = inject(FOCUS_MONITOR_DEFAULT_OPTIONS, {
|
|
2378
|
+
optional: true,
|
|
2379
|
+
});
|
|
2425
2380
|
this._detectionMode = options?.detectionMode || FocusMonitorDetectionMode.IMMEDIATE;
|
|
2426
2381
|
}
|
|
2427
2382
|
monitor(element, checkChildren = false) {
|
|
@@ -2726,23 +2681,13 @@ class FocusMonitor {
|
|
|
2726
2681
|
}
|
|
2727
2682
|
return false;
|
|
2728
2683
|
}
|
|
2729
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusMonitor, deps: [
|
|
2684
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusMonitor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2730
2685
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusMonitor, providedIn: 'root' }); }
|
|
2731
2686
|
}
|
|
2732
2687
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusMonitor, decorators: [{
|
|
2733
2688
|
type: Injectable,
|
|
2734
2689
|
args: [{ providedIn: 'root' }]
|
|
2735
|
-
}], ctorParameters: () => [
|
|
2736
|
-
type: Optional
|
|
2737
|
-
}, {
|
|
2738
|
-
type: Inject,
|
|
2739
|
-
args: [DOCUMENT]
|
|
2740
|
-
}] }, { type: undefined, decorators: [{
|
|
2741
|
-
type: Optional
|
|
2742
|
-
}, {
|
|
2743
|
-
type: Inject,
|
|
2744
|
-
args: [FOCUS_MONITOR_DEFAULT_OPTIONS]
|
|
2745
|
-
}] }] });
|
|
2690
|
+
}], ctorParameters: () => [] });
|
|
2746
2691
|
/**
|
|
2747
2692
|
* Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
|
|
2748
2693
|
* programmatically) and adds corresponding classes to the element.
|
|
@@ -2753,9 +2698,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
2753
2698
|
* 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.
|
|
2754
2699
|
*/
|
|
2755
2700
|
class CdkMonitorFocus {
|
|
2756
|
-
constructor(
|
|
2757
|
-
this._elementRef =
|
|
2758
|
-
this._focusMonitor =
|
|
2701
|
+
constructor() {
|
|
2702
|
+
this._elementRef = inject(ElementRef);
|
|
2703
|
+
this._focusMonitor = inject(FocusMonitor);
|
|
2759
2704
|
this._focusOrigin = null;
|
|
2760
2705
|
this.cdkFocusChange = new EventEmitter();
|
|
2761
2706
|
}
|
|
@@ -2777,7 +2722,7 @@ class CdkMonitorFocus {
|
|
|
2777
2722
|
this._monitorSubscription.unsubscribe();
|
|
2778
2723
|
}
|
|
2779
2724
|
}
|
|
2780
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkMonitorFocus, deps: [
|
|
2725
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkMonitorFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2781
2726
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkMonitorFocus, isStandalone: true, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: { cdkFocusChange: "cdkFocusChange" }, exportAs: ["cdkMonitorFocus"], ngImport: i0 }); }
|
|
2782
2727
|
}
|
|
2783
2728
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkMonitorFocus, decorators: [{
|
|
@@ -2787,7 +2732,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
2787
2732
|
exportAs: 'cdkMonitorFocus',
|
|
2788
2733
|
standalone: true,
|
|
2789
2734
|
}]
|
|
2790
|
-
}], ctorParameters: () => [
|
|
2735
|
+
}], ctorParameters: () => [], propDecorators: { cdkFocusChange: [{
|
|
2791
2736
|
type: Output
|
|
2792
2737
|
}] } });
|
|
2793
2738
|
|
|
@@ -2816,9 +2761,9 @@ const HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = 'cdk-high-contrast-active';
|
|
|
2816
2761
|
* browser extension.
|
|
2817
2762
|
*/
|
|
2818
2763
|
class HighContrastModeDetector {
|
|
2819
|
-
constructor(
|
|
2820
|
-
this._platform =
|
|
2821
|
-
this._document =
|
|
2764
|
+
constructor() {
|
|
2765
|
+
this._platform = inject(Platform);
|
|
2766
|
+
this._document = inject(DOCUMENT);
|
|
2822
2767
|
this._breakpointSubscription = inject(BreakpointObserver)
|
|
2823
2768
|
.observe('(forced-colors: active)')
|
|
2824
2769
|
.subscribe(() => {
|
|
@@ -2883,22 +2828,19 @@ class HighContrastModeDetector {
|
|
|
2883
2828
|
}
|
|
2884
2829
|
}
|
|
2885
2830
|
}
|
|
2886
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HighContrastModeDetector, deps: [
|
|
2831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HighContrastModeDetector, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2887
2832
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' }); }
|
|
2888
2833
|
}
|
|
2889
2834
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HighContrastModeDetector, decorators: [{
|
|
2890
2835
|
type: Injectable,
|
|
2891
2836
|
args: [{ providedIn: 'root' }]
|
|
2892
|
-
}], ctorParameters: () => [
|
|
2893
|
-
type: Inject,
|
|
2894
|
-
args: [DOCUMENT]
|
|
2895
|
-
}] }] });
|
|
2837
|
+
}], ctorParameters: () => [] });
|
|
2896
2838
|
|
|
2897
2839
|
class A11yModule {
|
|
2898
|
-
constructor(
|
|
2899
|
-
|
|
2840
|
+
constructor() {
|
|
2841
|
+
inject(HighContrastModeDetector)._applyBodyHighContrastModeCssClasses();
|
|
2900
2842
|
}
|
|
2901
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, deps: [
|
|
2843
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2902
2844
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] }); }
|
|
2903
2845
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, imports: [ObserversModule] }); }
|
|
2904
2846
|
}
|
|
@@ -2908,7 +2850,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
2908
2850
|
imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
|
|
2909
2851
|
exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
|
|
2910
2852
|
}]
|
|
2911
|
-
}], ctorParameters: () => [
|
|
2853
|
+
}], ctorParameters: () => [] });
|
|
2912
2854
|
|
|
2913
2855
|
/**
|
|
2914
2856
|
* Generated bundle index. Do not edit.
|