@angular/cdk 19.0.0-rc.0 → 19.0.0-rc.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/a11y/index.d.ts +12 -0
- package/dialog/index.d.ts +1 -0
- package/fesm2022/a11y.mjs +83 -50
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +14 -17
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +10 -10
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/collections.mjs +3 -3
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +13 -14
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +33 -35
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +10 -10
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +38 -28
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +54 -60
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +3 -3
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +13 -13
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +40 -40
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +7 -7
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +16 -16
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +6 -6
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +35 -35
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +26 -28
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +81 -80
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs +3 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +3 -1
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/text-field.mjs +16 -16
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +38 -38
- package/fesm2022/tree.mjs.map +1 -1
- package/listbox/index.d.ts +14 -10
- package/overlay/index.d.ts +1 -0
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- 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/stepper/index.d.ts +1 -1
- package/tree/index.d.ts +4 -3
package/a11y/index.d.ts
CHANGED
|
@@ -731,6 +731,18 @@ declare namespace i4 {
|
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
+
/** Service that generates unique IDs for DOM nodes. */
|
|
735
|
+
export declare class _IdGenerator {
|
|
736
|
+
private _appId;
|
|
737
|
+
/**
|
|
738
|
+
* Generates a unique ID with a specific prefix.
|
|
739
|
+
* @param prefix Prefix to add to the ID.
|
|
740
|
+
*/
|
|
741
|
+
getId(prefix: string): string;
|
|
742
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_IdGenerator, never>;
|
|
743
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<_IdGenerator>;
|
|
744
|
+
}
|
|
745
|
+
|
|
734
746
|
/**
|
|
735
747
|
* Default options for the InputModalityDetector.
|
|
736
748
|
*
|
package/dialog/index.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export declare class Dialog implements OnDestroy {
|
|
|
137
137
|
private _defaultOptions;
|
|
138
138
|
private _parentDialog;
|
|
139
139
|
private _overlayContainer;
|
|
140
|
+
private _idGenerator;
|
|
140
141
|
private _openDialogsAtThisLevel;
|
|
141
142
|
private readonly _afterAllClosedAtThisLevel;
|
|
142
143
|
private readonly _afterOpenedAtThisLevel;
|
package/fesm2022/a11y.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DOCUMENT } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, APP_ID, Injectable, QueryList, isSignal, effect, InjectionToken, afterNextRender, NgZone, Injector, ElementRef, booleanAttribute, Directive, Input, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
+
import { inject, APP_ID, Injectable, signal, QueryList, isSignal, effect, InjectionToken, afterNextRender, NgZone, Injector, ElementRef, booleanAttribute, Directive, Input, EventEmitter, Output, NgModule } from '@angular/core';
|
|
4
4
|
import { Platform, _getFocusedElementPierceShadowDom, normalizePassiveListenerOptions, _getEventTarget, _getShadowRoot } from '@angular/cdk/platform';
|
|
5
5
|
import { _CdkPrivateStyleLoader, _VisuallyHiddenLoader } from '@angular/cdk/private';
|
|
6
|
-
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';
|
|
7
|
+
import { Subject, Subscription, isObservable, of, BehaviorSubject } from 'rxjs';
|
|
8
8
|
import { tap, debounceTime, filter, map, take, skip, distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
9
9
|
import { coerceObservable } from '@angular/cdk/coercion/private';
|
|
10
10
|
import { ContentObserver, ObserversModule } from '@angular/cdk/observers';
|
|
@@ -244,10 +244,10 @@ class AriaDescriber {
|
|
|
244
244
|
_isElementNode(element) {
|
|
245
245
|
return element.nodeType === this._document.ELEMENT_NODE;
|
|
246
246
|
}
|
|
247
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
248
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
247
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: AriaDescriber, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
248
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: AriaDescriber, providedIn: 'root' });
|
|
249
249
|
}
|
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: AriaDescriber, decorators: [{
|
|
251
251
|
type: Injectable,
|
|
252
252
|
args: [{ providedIn: 'root' }]
|
|
253
253
|
}], ctorParameters: () => [] });
|
|
@@ -351,7 +351,7 @@ class Typeahead {
|
|
|
351
351
|
class ListKeyManager {
|
|
352
352
|
_items;
|
|
353
353
|
_activeItemIndex = -1;
|
|
354
|
-
_activeItem = null;
|
|
354
|
+
_activeItem = signal(null);
|
|
355
355
|
_wrap = false;
|
|
356
356
|
_typeaheadSubscription = Subscription.EMPTY;
|
|
357
357
|
_itemChangesSubscription;
|
|
@@ -479,9 +479,9 @@ class ListKeyManager {
|
|
|
479
479
|
return this;
|
|
480
480
|
}
|
|
481
481
|
setActiveItem(item) {
|
|
482
|
-
const previousActiveItem = this._activeItem;
|
|
482
|
+
const previousActiveItem = this._activeItem();
|
|
483
483
|
this.updateActiveItem(item);
|
|
484
|
-
if (this._activeItem !== previousActiveItem) {
|
|
484
|
+
if (this._activeItem() !== previousActiveItem) {
|
|
485
485
|
this.change.next(this._activeItemIndex);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
@@ -583,7 +583,7 @@ class ListKeyManager {
|
|
|
583
583
|
}
|
|
584
584
|
/** The active item. */
|
|
585
585
|
get activeItem() {
|
|
586
|
-
return this._activeItem;
|
|
586
|
+
return this._activeItem();
|
|
587
587
|
}
|
|
588
588
|
/** Gets whether the user is currently typing into the manager using the typeahead feature. */
|
|
589
589
|
isTyping() {
|
|
@@ -612,7 +612,7 @@ class ListKeyManager {
|
|
|
612
612
|
const index = typeof item === 'number' ? item : itemArray.indexOf(item);
|
|
613
613
|
const activeItem = itemArray[index];
|
|
614
614
|
// Explicitly check for `null` and `undefined` because other falsy values are valid.
|
|
615
|
-
this._activeItem
|
|
615
|
+
this._activeItem.set(activeItem == null ? null : activeItem);
|
|
616
616
|
this._activeItemIndex = index;
|
|
617
617
|
this._typeahead?.setCurrentSelectedItemIndex(index);
|
|
618
618
|
}
|
|
@@ -685,8 +685,9 @@ class ListKeyManager {
|
|
|
685
685
|
/** Callback for when the items have changed. */
|
|
686
686
|
_itemsChanged(newItems) {
|
|
687
687
|
this._typeahead?.setItems(newItems);
|
|
688
|
-
|
|
689
|
-
|
|
688
|
+
const activeItem = this._activeItem();
|
|
689
|
+
if (activeItem) {
|
|
690
|
+
const newIndex = newItems.indexOf(activeItem);
|
|
690
691
|
if (newIndex > -1 && newIndex !== this._activeItemIndex) {
|
|
691
692
|
this._activeItemIndex = newIndex;
|
|
692
693
|
this._typeahead?.setCurrentSelectedItemIndex(newIndex);
|
|
@@ -1275,10 +1276,10 @@ class InteractivityChecker {
|
|
|
1275
1276
|
!this.isDisabled(element) &&
|
|
1276
1277
|
(config?.ignoreVisibility || this.isVisible(element)));
|
|
1277
1278
|
}
|
|
1278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
1279
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
1279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: InteractivityChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1280
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });
|
|
1280
1281
|
}
|
|
1281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: InteractivityChecker, decorators: [{
|
|
1282
1283
|
type: Injectable,
|
|
1283
1284
|
args: [{ providedIn: 'root' }]
|
|
1284
1285
|
}], ctorParameters: () => [] });
|
|
@@ -1677,10 +1678,10 @@ class FocusTrapFactory {
|
|
|
1677
1678
|
create(element, deferCaptureElements = false) {
|
|
1678
1679
|
return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements, this._injector);
|
|
1679
1680
|
}
|
|
1680
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
1681
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
1681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusTrapFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1682
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });
|
|
1682
1683
|
}
|
|
1683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusTrapFactory, decorators: [{
|
|
1684
1685
|
type: Injectable,
|
|
1685
1686
|
args: [{ providedIn: 'root' }]
|
|
1686
1687
|
}], ctorParameters: () => [] });
|
|
@@ -1745,10 +1746,10 @@ class CdkTrapFocus {
|
|
|
1745
1746
|
this._previouslyFocusedElement = _getFocusedElementPierceShadowDom();
|
|
1746
1747
|
this.focusTrap?.focusInitialElementWhenReady();
|
|
1747
1748
|
}
|
|
1748
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
1749
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-
|
|
1749
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: CdkTrapFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1750
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-rc.0", type: CdkTrapFocus, isStandalone: true, selector: "[cdkTrapFocus]", inputs: { enabled: ["cdkTrapFocus", "enabled", booleanAttribute], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture", booleanAttribute] }, exportAs: ["cdkTrapFocus"], usesOnChanges: true, ngImport: i0 });
|
|
1750
1751
|
}
|
|
1751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: CdkTrapFocus, decorators: [{
|
|
1752
1753
|
type: Directive,
|
|
1753
1754
|
args: [{
|
|
1754
1755
|
selector: '[cdkTrapFocus]',
|
|
@@ -1896,10 +1897,10 @@ class FocusTrapManager {
|
|
|
1896
1897
|
}
|
|
1897
1898
|
}
|
|
1898
1899
|
}
|
|
1899
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
1900
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
1900
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1901
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });
|
|
1901
1902
|
}
|
|
1902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusTrapManager, decorators: [{
|
|
1903
1904
|
type: Injectable,
|
|
1904
1905
|
args: [{ providedIn: 'root' }]
|
|
1905
1906
|
}] });
|
|
@@ -1927,10 +1928,10 @@ class ConfigurableFocusTrapFactory {
|
|
|
1927
1928
|
}
|
|
1928
1929
|
return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject, this._injector);
|
|
1929
1930
|
}
|
|
1930
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
1931
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
1931
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1932
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' });
|
|
1932
1933
|
}
|
|
1933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{
|
|
1934
1935
|
type: Injectable,
|
|
1935
1936
|
args: [{ providedIn: 'root' }]
|
|
1936
1937
|
}], ctorParameters: () => [] });
|
|
@@ -2110,10 +2111,10 @@ class InputModalityDetector {
|
|
|
2110
2111
|
document.removeEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);
|
|
2111
2112
|
}
|
|
2112
2113
|
}
|
|
2113
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
2114
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
2114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: InputModalityDetector, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2115
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: InputModalityDetector, providedIn: 'root' });
|
|
2115
2116
|
}
|
|
2116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: InputModalityDetector, decorators: [{
|
|
2117
2118
|
type: Injectable,
|
|
2118
2119
|
args: [{ providedIn: 'root' }]
|
|
2119
2120
|
}], ctorParameters: () => [] });
|
|
@@ -2248,10 +2249,10 @@ class LiveAnnouncer {
|
|
|
2248
2249
|
}
|
|
2249
2250
|
}
|
|
2250
2251
|
}
|
|
2251
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
2252
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
2252
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: LiveAnnouncer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2253
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' });
|
|
2253
2254
|
}
|
|
2254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: LiveAnnouncer, decorators: [{
|
|
2255
2256
|
type: Injectable,
|
|
2256
2257
|
args: [{ providedIn: 'root' }]
|
|
2257
2258
|
}], ctorParameters: () => [] });
|
|
@@ -2304,10 +2305,10 @@ class CdkAriaLive {
|
|
|
2304
2305
|
this._subscription.unsubscribe();
|
|
2305
2306
|
}
|
|
2306
2307
|
}
|
|
2307
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
2308
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-
|
|
2308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: CdkAriaLive, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2309
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: CdkAriaLive, isStandalone: true, selector: "[cdkAriaLive]", inputs: { politeness: ["cdkAriaLive", "politeness"], duration: ["cdkAriaLiveDuration", "duration"] }, exportAs: ["cdkAriaLive"], ngImport: i0 });
|
|
2309
2310
|
}
|
|
2310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: CdkAriaLive, decorators: [{
|
|
2311
2312
|
type: Directive,
|
|
2312
2313
|
args: [{
|
|
2313
2314
|
selector: '[cdkAriaLive]',
|
|
@@ -2720,10 +2721,10 @@ class FocusMonitor {
|
|
|
2720
2721
|
}
|
|
2721
2722
|
return false;
|
|
2722
2723
|
}
|
|
2723
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
2724
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
2724
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusMonitor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2725
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusMonitor, providedIn: 'root' });
|
|
2725
2726
|
}
|
|
2726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2727
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: FocusMonitor, decorators: [{
|
|
2727
2728
|
type: Injectable,
|
|
2728
2729
|
args: [{ providedIn: 'root' }]
|
|
2729
2730
|
}], ctorParameters: () => [] });
|
|
@@ -2761,10 +2762,10 @@ class CdkMonitorFocus {
|
|
|
2761
2762
|
this._monitorSubscription.unsubscribe();
|
|
2762
2763
|
}
|
|
2763
2764
|
}
|
|
2764
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
2765
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-
|
|
2765
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: CdkMonitorFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2766
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: CdkMonitorFocus, isStandalone: true, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: { cdkFocusChange: "cdkFocusChange" }, exportAs: ["cdkMonitorFocus"], ngImport: i0 });
|
|
2766
2767
|
}
|
|
2767
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: CdkMonitorFocus, decorators: [{
|
|
2768
2769
|
type: Directive,
|
|
2769
2770
|
args: [{
|
|
2770
2771
|
selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
|
|
@@ -2872,10 +2873,10 @@ class HighContrastModeDetector {
|
|
|
2872
2873
|
}
|
|
2873
2874
|
}
|
|
2874
2875
|
}
|
|
2875
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
2876
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-
|
|
2876
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HighContrastModeDetector, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2877
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' });
|
|
2877
2878
|
}
|
|
2878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HighContrastModeDetector, decorators: [{
|
|
2879
2880
|
type: Injectable,
|
|
2880
2881
|
args: [{ providedIn: 'root' }]
|
|
2881
2882
|
}], ctorParameters: () => [] });
|
|
@@ -2884,11 +2885,11 @@ class A11yModule {
|
|
|
2884
2885
|
constructor() {
|
|
2885
2886
|
inject(HighContrastModeDetector)._applyBodyHighContrastModeCssClasses();
|
|
2886
2887
|
}
|
|
2887
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-
|
|
2888
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-
|
|
2889
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-
|
|
2888
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: A11yModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2889
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-rc.0", ngImport: i0, type: A11yModule, imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] });
|
|
2890
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: A11yModule, imports: [ObserversModule] });
|
|
2890
2891
|
}
|
|
2891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: A11yModule, decorators: [{
|
|
2892
2893
|
type: NgModule,
|
|
2893
2894
|
args: [{
|
|
2894
2895
|
imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
|
|
@@ -2896,9 +2897,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
2896
2897
|
}]
|
|
2897
2898
|
}], ctorParameters: () => [] });
|
|
2898
2899
|
|
|
2900
|
+
/**
|
|
2901
|
+
* Keeps track of the ID count per prefix. This helps us make the IDs a bit more deterministic
|
|
2902
|
+
* like they were before the service was introduced. Note that ideally we wouldn't have to do
|
|
2903
|
+
* this, but there are some internal tests that rely on the IDs.
|
|
2904
|
+
*/
|
|
2905
|
+
const counters = {};
|
|
2906
|
+
/** Service that generates unique IDs for DOM nodes. */
|
|
2907
|
+
class _IdGenerator {
|
|
2908
|
+
_appId = inject(APP_ID);
|
|
2909
|
+
/**
|
|
2910
|
+
* Generates a unique ID with a specific prefix.
|
|
2911
|
+
* @param prefix Prefix to add to the ID.
|
|
2912
|
+
*/
|
|
2913
|
+
getId(prefix) {
|
|
2914
|
+
// Omit the app ID if it's the default `ng`. Since the vast majority of pages have one
|
|
2915
|
+
// Angular app on them, we can reduce the amount of breakages by not adding it.
|
|
2916
|
+
if (this._appId !== 'ng') {
|
|
2917
|
+
prefix += this._appId;
|
|
2918
|
+
}
|
|
2919
|
+
if (!counters.hasOwnProperty(prefix)) {
|
|
2920
|
+
counters[prefix] = 0;
|
|
2921
|
+
}
|
|
2922
|
+
return `${prefix}${counters[prefix]++}`;
|
|
2923
|
+
}
|
|
2924
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: _IdGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2925
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: _IdGenerator, providedIn: 'root' });
|
|
2926
|
+
}
|
|
2927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: _IdGenerator, decorators: [{
|
|
2928
|
+
type: Injectable,
|
|
2929
|
+
args: [{ providedIn: 'root' }]
|
|
2930
|
+
}] });
|
|
2931
|
+
|
|
2899
2932
|
/**
|
|
2900
2933
|
* Generated bundle index. Do not edit.
|
|
2901
2934
|
*/
|
|
2902
2935
|
|
|
2903
|
-
export { A11yModule, ActiveDescendantKeyManager, AriaDescriber, CDK_DESCRIBEDBY_HOST_ATTRIBUTE, CDK_DESCRIBEDBY_ID_PREFIX, CdkAriaLive, CdkMonitorFocus, CdkTrapFocus, ConfigurableFocusTrap, ConfigurableFocusTrapFactory, EventListenerFocusTrapInertStrategy, FOCUS_MONITOR_DEFAULT_OPTIONS, FOCUS_TRAP_INERT_STRATEGY, FocusKeyManager, FocusMonitor, FocusMonitorDetectionMode, FocusTrap, FocusTrapFactory, HighContrastMode, HighContrastModeDetector, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector, InteractivityChecker, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, ListKeyManager, LiveAnnouncer, MESSAGES_CONTAINER_ID, NOOP_TREE_KEY_MANAGER_FACTORY, NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER, NoopTreeKeyManager, TREE_KEY_MANAGER, TREE_KEY_MANAGER_FACTORY, TREE_KEY_MANAGER_FACTORY_PROVIDER, TreeKeyManager, addAriaReferencedId, getAriaReferenceIds, isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader, removeAriaReferencedId };
|
|
2936
|
+
export { A11yModule, ActiveDescendantKeyManager, AriaDescriber, CDK_DESCRIBEDBY_HOST_ATTRIBUTE, CDK_DESCRIBEDBY_ID_PREFIX, CdkAriaLive, CdkMonitorFocus, CdkTrapFocus, ConfigurableFocusTrap, ConfigurableFocusTrapFactory, EventListenerFocusTrapInertStrategy, FOCUS_MONITOR_DEFAULT_OPTIONS, FOCUS_TRAP_INERT_STRATEGY, FocusKeyManager, FocusMonitor, FocusMonitorDetectionMode, FocusTrap, FocusTrapFactory, HighContrastMode, HighContrastModeDetector, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector, InteractivityChecker, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, ListKeyManager, LiveAnnouncer, MESSAGES_CONTAINER_ID, NOOP_TREE_KEY_MANAGER_FACTORY, NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER, NoopTreeKeyManager, TREE_KEY_MANAGER, TREE_KEY_MANAGER_FACTORY, TREE_KEY_MANAGER_FACTORY_PROVIDER, TreeKeyManager, _IdGenerator, addAriaReferencedId, getAriaReferenceIds, isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader, removeAriaReferencedId };
|
|
2904
2937
|
//# sourceMappingURL=a11y.mjs.map
|