@angular/cdk 16.0.0-next.3 → 16.0.0-next.5
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 +2 -2
- package/accordion/index.d.ts +2 -2
- package/bidi/index.d.ts +1 -1
- package/clipboard/index.d.ts +1 -1
- package/drag-drop/index.d.ts +6 -6
- package/esm2020/a11y/a11y-module.mjs +4 -4
- package/esm2020/a11y/aria-describer/aria-describer.mjs +3 -3
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +6 -6
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap.mjs +6 -6
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +3 -3
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
- package/esm2020/a11y/live-announcer/live-announcer.mjs +6 -6
- package/esm2020/accordion/accordion-item.mjs +3 -3
- package/esm2020/accordion/accordion-module.mjs +4 -4
- package/esm2020/accordion/accordion.mjs +3 -3
- package/esm2020/bidi/bidi-module.mjs +4 -4
- package/esm2020/bidi/dir.mjs +3 -3
- package/esm2020/bidi/directionality.mjs +3 -3
- package/esm2020/clipboard/clipboard-module.mjs +4 -4
- package/esm2020/clipboard/clipboard.mjs +3 -3
- package/esm2020/clipboard/copy-to-clipboard.mjs +3 -3
- package/esm2020/collections/unique-selection-dispatcher.mjs +3 -3
- package/esm2020/dialog/dialog-container.mjs +3 -3
- package/esm2020/dialog/dialog-module.mjs +4 -4
- package/esm2020/dialog/dialog.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-handle.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-preview.mjs +3 -3
- package/esm2020/drag-drop/directives/drag.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list-group.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list.mjs +3 -3
- package/esm2020/drag-drop/drag-drop-module.mjs +4 -4
- package/esm2020/drag-drop/drag-drop-registry.mjs +3 -3
- package/esm2020/drag-drop/drag-drop.mjs +3 -3
- package/esm2020/layout/breakpoints-observer.mjs +3 -3
- package/esm2020/layout/layout-module.mjs +4 -4
- package/esm2020/layout/media-matcher.mjs +3 -3
- package/esm2020/listbox/listbox-module.mjs +4 -4
- package/esm2020/listbox/listbox.mjs +6 -6
- package/esm2020/menu/context-menu-trigger.mjs +6 -6
- package/esm2020/menu/menu-aim.mjs +6 -6
- package/esm2020/menu/menu-bar.mjs +3 -3
- package/esm2020/menu/menu-base.mjs +3 -3
- package/esm2020/menu/menu-group.mjs +3 -3
- package/esm2020/menu/menu-item-checkbox.mjs +3 -3
- package/esm2020/menu/menu-item-radio.mjs +3 -3
- package/esm2020/menu/menu-item-selectable.mjs +3 -3
- package/esm2020/menu/menu-item.mjs +3 -3
- package/esm2020/menu/menu-module.mjs +4 -4
- package/esm2020/menu/menu-stack.mjs +3 -3
- package/esm2020/menu/menu-trigger-base.mjs +3 -3
- package/esm2020/menu/menu-trigger.mjs +5 -4
- package/esm2020/menu/menu.mjs +3 -3
- package/esm2020/observers/observe-content.mjs +13 -13
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +3 -3
- package/esm2020/overlay/fullscreen-overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-directives.mjs +6 -6
- package/esm2020/overlay/overlay-module.mjs +4 -4
- package/esm2020/overlay/overlay.mjs +3 -3
- package/esm2020/overlay/position/overlay-position-builder.mjs +3 -3
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +6 -2
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +3 -3
- package/esm2020/platform/platform-module.mjs +4 -4
- package/esm2020/platform/platform.mjs +3 -3
- package/esm2020/portal/portal-directives.mjs +16 -16
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +3 -3
- package/esm2020/scrolling/scroll-dispatcher.mjs +3 -3
- package/esm2020/scrolling/scrollable.mjs +3 -3
- package/esm2020/scrolling/scrolling-module.mjs +8 -8
- package/esm2020/scrolling/viewport-ruler.mjs +3 -3
- package/esm2020/scrolling/virtual-for-of.mjs +3 -3
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +3 -3
- package/esm2020/scrolling/virtual-scrollable-element.mjs +3 -3
- package/esm2020/scrolling/virtual-scrollable-window.mjs +3 -3
- package/esm2020/scrolling/virtual-scrollable.mjs +3 -3
- package/esm2020/stepper/step-header.mjs +3 -3
- package/esm2020/stepper/step-label.mjs +3 -3
- package/esm2020/stepper/stepper-button.mjs +6 -6
- package/esm2020/stepper/stepper-module.mjs +4 -4
- package/esm2020/stepper/stepper.mjs +6 -6
- package/esm2020/table/cell.mjs +21 -21
- package/esm2020/table/coalesced-style-scheduler.mjs +3 -3
- package/esm2020/table/row.mjs +27 -27
- package/esm2020/table/table-module.mjs +4 -4
- package/esm2020/table/table.mjs +18 -18
- package/esm2020/table/text-column.mjs +3 -3
- package/esm2020/text-field/autofill.mjs +6 -6
- package/esm2020/text-field/autosize.mjs +3 -3
- package/esm2020/text-field/text-field-module.mjs +4 -4
- package/esm2020/tree/nested-node.mjs +3 -3
- package/esm2020/tree/node.mjs +3 -3
- package/esm2020/tree/outlet.mjs +3 -3
- package/esm2020/tree/padding.mjs +3 -3
- package/esm2020/tree/toggle.mjs +3 -3
- package/esm2020/tree/tree-module.mjs +4 -4
- package/esm2020/tree/tree.mjs +6 -6
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +40 -175
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -47
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +10 -54
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -24
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -54
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/coercion.mjs +0 -58
- package/fesm2015/coercion.mjs.map +1 -1
- package/fesm2015/collections.mjs +3 -68
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/dialog.mjs +10 -61
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +28 -184
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/keycodes.mjs +0 -30
- package/fesm2015/keycodes.mjs.map +1 -1
- package/fesm2015/layout.mjs +10 -54
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/listbox.mjs +10 -40
- package/fesm2015/listbox.mjs.map +1 -1
- package/fesm2015/menu.mjs +51 -184
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/observers.mjs +13 -36
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +39 -180
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -72
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +16 -67
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +35 -86
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -73
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +76 -162
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs +0 -23
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +1 -58
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs +0 -37
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +13 -50
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -104
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +40 -197
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -47
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +10 -54
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -24
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -54
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/coercion.mjs +0 -58
- package/fesm2020/coercion.mjs.map +1 -1
- package/fesm2020/collections.mjs +3 -84
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/dialog.mjs +10 -68
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +28 -199
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/keycodes.mjs +0 -30
- package/fesm2020/keycodes.mjs.map +1 -1
- package/fesm2020/layout.mjs +10 -54
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/listbox.mjs +10 -40
- package/fesm2020/listbox.mjs.map +1 -1
- package/fesm2020/menu.mjs +50 -184
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/observers.mjs +13 -36
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +39 -208
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -72
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +16 -67
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +35 -136
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -73
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +76 -169
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs +0 -37
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +1 -72
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs +0 -66
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +13 -50
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -111
- package/fesm2020/tree.mjs.map +1 -1
- package/listbox/index.d.ts +2 -2
- package/menu/index.d.ts +5 -5
- package/observers/index.d.ts +1 -1
- package/overlay/index.d.ts +1 -1
- package/package.json +1 -1
- package/portal/index.d.ts +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/scrolling/index.d.ts +3 -3
- package/stepper/index.d.ts +4 -4
- package/table/index.d.ts +6 -6
- package/text-field/index.d.ts +1 -1
- package/tree/index.d.ts +6 -6
package/fesm2015/menu.mjs
CHANGED
|
@@ -11,21 +11,14 @@ import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
|
11
11
|
import { Directionality } from '@angular/cdk/bidi';
|
|
12
12
|
import { _getEventTarget } from '@angular/cdk/platform';
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright Google LLC All Rights Reserved.
|
|
17
|
-
*
|
|
18
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
19
|
-
* found in the LICENSE file at https://angular.io/license
|
|
20
|
-
*/
|
|
21
14
|
/**
|
|
22
15
|
* A grouping container for `CdkMenuItemRadio` instances, similar to a `role="radiogroup"` element.
|
|
23
16
|
*/
|
|
24
17
|
class CdkMenuGroup {
|
|
25
18
|
}
|
|
26
|
-
CdkMenuGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
27
|
-
CdkMenuGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
19
|
+
CdkMenuGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
CdkMenuGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuGroup, isStandalone: true, selector: "[cdkMenuGroup]", host: { attributes: { "role": "group" }, classAttribute: "cdk-menu-group" }, providers: [{ provide: UniqueSelectionDispatcher, useClass: UniqueSelectionDispatcher }], exportAs: ["cdkMenuGroup"], ngImport: i0 });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuGroup, decorators: [{
|
|
29
22
|
type: Directive,
|
|
30
23
|
args: [{
|
|
31
24
|
selector: '[cdkMenuGroup]',
|
|
@@ -39,23 +32,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
39
32
|
}]
|
|
40
33
|
}] });
|
|
41
34
|
|
|
42
|
-
/**
|
|
43
|
-
* @license
|
|
44
|
-
* Copyright Google LLC All Rights Reserved.
|
|
45
|
-
*
|
|
46
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
47
|
-
* found in the LICENSE file at https://angular.io/license
|
|
48
|
-
*/
|
|
49
35
|
/** Injection token used to return classes implementing the Menu interface */
|
|
50
36
|
const CDK_MENU = new InjectionToken('cdk-menu');
|
|
51
37
|
|
|
52
|
-
/**
|
|
53
|
-
* @license
|
|
54
|
-
* Copyright Google LLC All Rights Reserved.
|
|
55
|
-
*
|
|
56
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
57
|
-
* found in the LICENSE file at https://angular.io/license
|
|
58
|
-
*/
|
|
59
38
|
/** Injection token used for an implementation of MenuStack. */
|
|
60
39
|
const MENU_STACK = new InjectionToken('cdk-menu-stack');
|
|
61
40
|
/** Provider that provides the parent menu stack, or a new menu stack if there is no parent one. */
|
|
@@ -195,19 +174,12 @@ class MenuStack {
|
|
|
195
174
|
this._hasFocus.next(hasFocus);
|
|
196
175
|
}
|
|
197
176
|
}
|
|
198
|
-
MenuStack.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
199
|
-
MenuStack.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
177
|
+
MenuStack.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MenuStack, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
178
|
+
MenuStack.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MenuStack });
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MenuStack, decorators: [{
|
|
201
180
|
type: Injectable
|
|
202
181
|
}] });
|
|
203
182
|
|
|
204
|
-
/**
|
|
205
|
-
* @license
|
|
206
|
-
* Copyright Google LLC All Rights Reserved.
|
|
207
|
-
*
|
|
208
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
209
|
-
* found in the LICENSE file at https://angular.io/license
|
|
210
|
-
*/
|
|
211
183
|
/** Injection token used for an implementation of MenuStack. */
|
|
212
184
|
const MENU_TRIGGER = new InjectionToken('cdk-menu-trigger');
|
|
213
185
|
/**
|
|
@@ -294,9 +266,9 @@ class CdkMenuTriggerBase {
|
|
|
294
266
|
return this._childMenuInjector;
|
|
295
267
|
}
|
|
296
268
|
}
|
|
297
|
-
CdkMenuTriggerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
298
|
-
CdkMenuTriggerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
269
|
+
CdkMenuTriggerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuTriggerBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
270
|
+
CdkMenuTriggerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuTriggerBase, host: { properties: { "attr.aria-controls": "childMenu?.id", "attr.data-cdk-menu-stack-id": "menuStack.id" } }, ngImport: i0 });
|
|
271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuTriggerBase, decorators: [{
|
|
300
272
|
type: Directive,
|
|
301
273
|
args: [{
|
|
302
274
|
host: {
|
|
@@ -306,13 +278,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
306
278
|
}]
|
|
307
279
|
}] });
|
|
308
280
|
|
|
309
|
-
/**
|
|
310
|
-
* @license
|
|
311
|
-
* Copyright Google LLC All Rights Reserved.
|
|
312
|
-
*
|
|
313
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
314
|
-
* found in the LICENSE file at https://angular.io/license
|
|
315
|
-
*/
|
|
316
281
|
/**
|
|
317
282
|
* Throws an exception when an instance of the PointerFocusTracker is not provided.
|
|
318
283
|
* @docs-private
|
|
@@ -328,13 +293,6 @@ function throwMissingMenuReference() {
|
|
|
328
293
|
throw Error('expected a reference to the parent menu');
|
|
329
294
|
}
|
|
330
295
|
|
|
331
|
-
/**
|
|
332
|
-
* @license
|
|
333
|
-
* Copyright Google LLC All Rights Reserved.
|
|
334
|
-
*
|
|
335
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
336
|
-
* found in the LICENSE file at https://angular.io/license
|
|
337
|
-
*/
|
|
338
296
|
/** Injection token used for an implementation of MenuAim. */
|
|
339
297
|
const MENU_AIM = new InjectionToken('cdk-menu-aim');
|
|
340
298
|
/** Capture every nth mouse move event. */
|
|
@@ -505,9 +463,9 @@ class TargetMenuAim {
|
|
|
505
463
|
});
|
|
506
464
|
}
|
|
507
465
|
}
|
|
508
|
-
TargetMenuAim.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
509
|
-
TargetMenuAim.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
466
|
+
TargetMenuAim.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: TargetMenuAim, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
467
|
+
TargetMenuAim.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: TargetMenuAim });
|
|
468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: TargetMenuAim, decorators: [{
|
|
511
469
|
type: Injectable
|
|
512
470
|
}] });
|
|
513
471
|
/**
|
|
@@ -516,9 +474,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
516
474
|
*/
|
|
517
475
|
class CdkTargetMenuAim {
|
|
518
476
|
}
|
|
519
|
-
CdkTargetMenuAim.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
520
|
-
CdkTargetMenuAim.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
477
|
+
CdkTargetMenuAim.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTargetMenuAim, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
478
|
+
CdkTargetMenuAim.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkTargetMenuAim, isStandalone: true, selector: "[cdkTargetMenuAim]", providers: [{ provide: MENU_AIM, useClass: TargetMenuAim }], exportAs: ["cdkTargetMenuAim"], ngImport: i0 });
|
|
479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTargetMenuAim, decorators: [{
|
|
522
480
|
type: Directive,
|
|
523
481
|
args: [{
|
|
524
482
|
selector: '[cdkTargetMenuAim]',
|
|
@@ -528,13 +486,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
528
486
|
}]
|
|
529
487
|
}] });
|
|
530
488
|
|
|
531
|
-
/**
|
|
532
|
-
* @license
|
|
533
|
-
* Copyright Google LLC All Rights Reserved.
|
|
534
|
-
*
|
|
535
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
536
|
-
* found in the LICENSE file at https://angular.io/license
|
|
537
|
-
*/
|
|
538
489
|
/**
|
|
539
490
|
* A directive that turns its host element into a trigger for a popup menu.
|
|
540
491
|
* It can be combined with cdkMenuItem to create sub-menus. If the element is in a top level
|
|
@@ -637,10 +588,12 @@ class CdkMenuTrigger extends CdkMenuTriggerBase {
|
|
|
637
588
|
}
|
|
638
589
|
/** Handles clicks on the menu trigger. */
|
|
639
590
|
_handleClick() {
|
|
591
|
+
var _a;
|
|
640
592
|
// Don't handle clicks originating from the keyboard since we
|
|
641
593
|
// already do the same on `keydown` events for enter and space.
|
|
642
594
|
if (this._inputModalityDetector.mostRecentModality !== 'keyboard') {
|
|
643
595
|
this.toggle();
|
|
596
|
+
(_a = this.childMenu) === null || _a === void 0 ? void 0 : _a.focusFirstItem('mouse');
|
|
644
597
|
}
|
|
645
598
|
}
|
|
646
599
|
/**
|
|
@@ -788,12 +741,12 @@ class CdkMenuTrigger extends CdkMenuTriggerBase {
|
|
|
788
741
|
}
|
|
789
742
|
}
|
|
790
743
|
}
|
|
791
|
-
CdkMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
792
|
-
CdkMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
744
|
+
CdkMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
745
|
+
CdkMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuTrigger, isStandalone: true, selector: "[cdkMenuTriggerFor]", inputs: { menuTemplateRef: ["cdkMenuTriggerFor", "menuTemplateRef"], menuPosition: ["cdkMenuPosition", "menuPosition"], menuData: ["cdkMenuTriggerData", "menuData"] }, outputs: { opened: "cdkMenuOpened", closed: "cdkMenuClosed" }, host: { listeners: { "focusin": "_setHasFocus(true)", "focusout": "_setHasFocus(false)", "keydown": "_toggleOnKeydown($event)", "click": "_handleClick()" }, properties: { "attr.aria-haspopup": "menuTemplateRef ? \"menu\" : null", "attr.aria-expanded": "menuTemplateRef == null ? null : isOpen()" }, classAttribute: "cdk-menu-trigger" }, providers: [
|
|
793
746
|
{ provide: MENU_TRIGGER, useExisting: CdkMenuTrigger },
|
|
794
747
|
PARENT_OR_NEW_MENU_STACK_PROVIDER,
|
|
795
748
|
], exportAs: ["cdkMenuTriggerFor"], usesInheritance: true, ngImport: i0 });
|
|
796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuTrigger, decorators: [{
|
|
797
750
|
type: Directive,
|
|
798
751
|
args: [{
|
|
799
752
|
selector: '[cdkMenuTriggerFor]',
|
|
@@ -821,13 +774,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
821
774
|
}]
|
|
822
775
|
}], ctorParameters: function () { return []; } });
|
|
823
776
|
|
|
824
|
-
/**
|
|
825
|
-
* @license
|
|
826
|
-
* Copyright Google LLC All Rights Reserved.
|
|
827
|
-
*
|
|
828
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
829
|
-
* found in the LICENSE file at https://angular.io/license
|
|
830
|
-
*/
|
|
831
777
|
/**
|
|
832
778
|
* Directive which provides the ability for an element to be focused and navigated to using the
|
|
833
779
|
* keyboard when residing in a CdkMenu, CdkMenuBar, or CdkMenuGroup. It performs user defined
|
|
@@ -1062,9 +1008,9 @@ class CdkMenuItem {
|
|
|
1062
1008
|
}
|
|
1063
1009
|
}
|
|
1064
1010
|
}
|
|
1065
|
-
CdkMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1066
|
-
CdkMenuItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1011
|
+
CdkMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1012
|
+
CdkMenuItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuItem, isStandalone: true, selector: "[cdkMenuItem]", inputs: { disabled: ["cdkMenuItemDisabled", "disabled"], typeaheadLabel: ["cdkMenuitemTypeaheadLabel", "typeaheadLabel"] }, outputs: { triggered: "cdkMenuItemTriggered" }, host: { attributes: { "role": "menuitem" }, listeners: { "blur": "_resetTabIndex()", "focus": "_setTabIndex()", "click": "_handleClick()", "keydown": "_onKeydown($event)" }, properties: { "tabindex": "_tabindex", "attr.aria-disabled": "disabled || null" }, classAttribute: "cdk-menu-item" }, exportAs: ["cdkMenuItem"], ngImport: i0 });
|
|
1013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItem, decorators: [{
|
|
1068
1014
|
type: Directive,
|
|
1069
1015
|
args: [{
|
|
1070
1016
|
selector: '[cdkMenuItem]',
|
|
@@ -1092,13 +1038,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1092
1038
|
args: ['cdkMenuItemTriggered']
|
|
1093
1039
|
}] } });
|
|
1094
1040
|
|
|
1095
|
-
/**
|
|
1096
|
-
* @license
|
|
1097
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1098
|
-
*
|
|
1099
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1100
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1101
|
-
*/
|
|
1102
1041
|
/**
|
|
1103
1042
|
* PointerFocusTracker keeps track of the currently active item under mouse focus. It also has
|
|
1104
1043
|
* observables which emit when the users mouse enters and leaves a tracked element.
|
|
@@ -1141,13 +1080,6 @@ class PointerFocusTracker {
|
|
|
1141
1080
|
}
|
|
1142
1081
|
}
|
|
1143
1082
|
|
|
1144
|
-
/**
|
|
1145
|
-
* @license
|
|
1146
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1147
|
-
*
|
|
1148
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1149
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1150
|
-
*/
|
|
1151
1083
|
/** Counter used to create unique IDs for menus. */
|
|
1152
1084
|
let nextId$1 = 0;
|
|
1153
1085
|
/**
|
|
@@ -1297,9 +1229,9 @@ class CdkMenuBase extends CdkMenuGroup {
|
|
|
1297
1229
|
}
|
|
1298
1230
|
}
|
|
1299
1231
|
}
|
|
1300
|
-
CdkMenuBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1301
|
-
CdkMenuBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1232
|
+
CdkMenuBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1233
|
+
CdkMenuBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuBase, inputs: { id: "id" }, host: { attributes: { "role": "menu" }, listeners: { "focus": "focusFirstItem()", "focusin": "menuStack.setHasFocus(true)", "focusout": "menuStack.setHasFocus(false)" }, properties: { "tabindex": "_getTabIndex()", "id": "id", "attr.aria-orientation": "orientation", "attr.data-cdk-menu-stack-id": "menuStack.id" } }, queries: [{ propertyName: "items", predicate: CdkMenuItem, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
1234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuBase, decorators: [{
|
|
1303
1235
|
type: Directive,
|
|
1304
1236
|
args: [{
|
|
1305
1237
|
host: {
|
|
@@ -1321,13 +1253,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1321
1253
|
args: [CdkMenuItem, { descendants: true }]
|
|
1322
1254
|
}] } });
|
|
1323
1255
|
|
|
1324
|
-
/**
|
|
1325
|
-
* @license
|
|
1326
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1327
|
-
*
|
|
1328
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1329
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1330
|
-
*/
|
|
1331
1256
|
/**
|
|
1332
1257
|
* Directive which configures the element as a Menu which should contain child elements marked as
|
|
1333
1258
|
* CdkMenuItem or CdkMenuGroup. Sets the appropriate role and aria-attributes for a menu and
|
|
@@ -1420,13 +1345,13 @@ class CdkMenu extends CdkMenuBase {
|
|
|
1420
1345
|
.subscribe(event => this._toggleMenuFocus(event));
|
|
1421
1346
|
}
|
|
1422
1347
|
}
|
|
1423
|
-
CdkMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1424
|
-
CdkMenu.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1348
|
+
CdkMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenu, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1349
|
+
CdkMenu.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenu, isStandalone: true, selector: "[cdkMenu]", outputs: { closed: "closed" }, host: { attributes: { "role": "menu" }, listeners: { "keydown": "_handleKeyEvent($event)" }, properties: { "class.cdk-menu-inline": "isInline" }, classAttribute: "cdk-menu" }, providers: [
|
|
1425
1350
|
{ provide: CdkMenuGroup, useExisting: CdkMenu },
|
|
1426
1351
|
{ provide: CDK_MENU, useExisting: CdkMenu },
|
|
1427
1352
|
PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER('vertical'),
|
|
1428
1353
|
], exportAs: ["cdkMenu"], usesInheritance: true, ngImport: i0 });
|
|
1429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenu, decorators: [{
|
|
1430
1355
|
type: Directive,
|
|
1431
1356
|
args: [{
|
|
1432
1357
|
selector: '[cdkMenu]',
|
|
@@ -1448,13 +1373,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1448
1373
|
type: Output
|
|
1449
1374
|
}] } });
|
|
1450
1375
|
|
|
1451
|
-
/**
|
|
1452
|
-
* @license
|
|
1453
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1454
|
-
*
|
|
1455
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1456
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1457
|
-
*/
|
|
1458
1376
|
/**
|
|
1459
1377
|
* Directive applied to an element which configures it as a MenuBar by setting the appropriate
|
|
1460
1378
|
* role, aria attributes, and accessible keyboard and mouse handling logic. The component that
|
|
@@ -1550,13 +1468,13 @@ class CdkMenuBar extends CdkMenuBase {
|
|
|
1550
1468
|
(_a = this.menuStack) === null || _a === void 0 ? void 0 : _a.emptied.pipe(takeUntil(this.destroyed)).subscribe(event => this._toggleOpenMenu(event));
|
|
1551
1469
|
}
|
|
1552
1470
|
}
|
|
1553
|
-
CdkMenuBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1554
|
-
CdkMenuBar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1471
|
+
CdkMenuBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuBar, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1472
|
+
CdkMenuBar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuBar, isStandalone: true, selector: "[cdkMenuBar]", host: { attributes: { "role": "menubar" }, listeners: { "keydown": "_handleKeyEvent($event)" }, classAttribute: "cdk-menu-bar" }, providers: [
|
|
1555
1473
|
{ provide: CdkMenuGroup, useExisting: CdkMenuBar },
|
|
1556
1474
|
{ provide: CDK_MENU, useExisting: CdkMenuBar },
|
|
1557
1475
|
{ provide: MENU_STACK, useFactory: () => MenuStack.inline('horizontal') },
|
|
1558
1476
|
], exportAs: ["cdkMenuBar"], usesInheritance: true, ngImport: i0 });
|
|
1559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuBar, decorators: [{
|
|
1560
1478
|
type: Directive,
|
|
1561
1479
|
args: [{
|
|
1562
1480
|
selector: '[cdkMenuBar]',
|
|
@@ -1575,13 +1493,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1575
1493
|
}]
|
|
1576
1494
|
}] });
|
|
1577
1495
|
|
|
1578
|
-
/**
|
|
1579
|
-
* @license
|
|
1580
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1581
|
-
*
|
|
1582
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1583
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1584
|
-
*/
|
|
1585
1496
|
/** Base class providing checked state for selectable MenuItems. */
|
|
1586
1497
|
class CdkMenuItemSelectable extends CdkMenuItem {
|
|
1587
1498
|
constructor() {
|
|
@@ -1598,9 +1509,9 @@ class CdkMenuItemSelectable extends CdkMenuItem {
|
|
|
1598
1509
|
this._checked = coerceBooleanProperty(value);
|
|
1599
1510
|
}
|
|
1600
1511
|
}
|
|
1601
|
-
CdkMenuItemSelectable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1602
|
-
CdkMenuItemSelectable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1512
|
+
CdkMenuItemSelectable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItemSelectable, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1513
|
+
CdkMenuItemSelectable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuItemSelectable, inputs: { checked: ["cdkMenuItemChecked", "checked"] }, host: { properties: { "attr.aria-checked": "!!checked", "attr.aria-disabled": "disabled || null" } }, usesInheritance: true, ngImport: i0 });
|
|
1514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItemSelectable, decorators: [{
|
|
1604
1515
|
type: Directive,
|
|
1605
1516
|
args: [{
|
|
1606
1517
|
host: {
|
|
@@ -1613,13 +1524,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1613
1524
|
args: ['cdkMenuItemChecked']
|
|
1614
1525
|
}] } });
|
|
1615
1526
|
|
|
1616
|
-
/**
|
|
1617
|
-
* @license
|
|
1618
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1619
|
-
*
|
|
1620
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1621
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1622
|
-
*/
|
|
1623
1527
|
/** Counter used to set a unique id and name for a selectable item */
|
|
1624
1528
|
let nextId = 0;
|
|
1625
1529
|
/**
|
|
@@ -1658,12 +1562,12 @@ class CdkMenuItemRadio extends CdkMenuItemSelectable {
|
|
|
1658
1562
|
});
|
|
1659
1563
|
}
|
|
1660
1564
|
}
|
|
1661
|
-
CdkMenuItemRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1662
|
-
CdkMenuItemRadio.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1565
|
+
CdkMenuItemRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItemRadio, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1566
|
+
CdkMenuItemRadio.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuItemRadio, isStandalone: true, selector: "[cdkMenuItemRadio]", host: { attributes: { "role": "menuitemradio" }, properties: { "class.cdk-menu-item-radio": "true" } }, providers: [
|
|
1663
1567
|
{ provide: CdkMenuItemSelectable, useExisting: CdkMenuItemRadio },
|
|
1664
1568
|
{ provide: CdkMenuItem, useExisting: CdkMenuItemSelectable },
|
|
1665
1569
|
], exportAs: ["cdkMenuItemRadio"], usesInheritance: true, ngImport: i0 });
|
|
1666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItemRadio, decorators: [{
|
|
1667
1571
|
type: Directive,
|
|
1668
1572
|
args: [{
|
|
1669
1573
|
selector: '[cdkMenuItemRadio]',
|
|
@@ -1680,13 +1584,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1680
1584
|
}]
|
|
1681
1585
|
}], ctorParameters: function () { return []; } });
|
|
1682
1586
|
|
|
1683
|
-
/**
|
|
1684
|
-
* @license
|
|
1685
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1686
|
-
*
|
|
1687
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1688
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1689
|
-
*/
|
|
1690
1587
|
/**
|
|
1691
1588
|
* A directive providing behavior for the "menuitemcheckbox" ARIA role, which behaves similarly to a
|
|
1692
1589
|
* conventional checkbox.
|
|
@@ -1704,12 +1601,12 @@ class CdkMenuItemCheckbox extends CdkMenuItemSelectable {
|
|
|
1704
1601
|
}
|
|
1705
1602
|
}
|
|
1706
1603
|
}
|
|
1707
|
-
CdkMenuItemCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1708
|
-
CdkMenuItemCheckbox.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1604
|
+
CdkMenuItemCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItemCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1605
|
+
CdkMenuItemCheckbox.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkMenuItemCheckbox, isStandalone: true, selector: "[cdkMenuItemCheckbox]", host: { attributes: { "role": "menuitemcheckbox" }, properties: { "class.cdk-menu-item-checkbox": "true" } }, providers: [
|
|
1709
1606
|
{ provide: CdkMenuItemSelectable, useExisting: CdkMenuItemCheckbox },
|
|
1710
1607
|
{ provide: CdkMenuItem, useExisting: CdkMenuItemSelectable },
|
|
1711
1608
|
], exportAs: ["cdkMenuItemCheckbox"], usesInheritance: true, ngImport: i0 });
|
|
1712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuItemCheckbox, decorators: [{
|
|
1713
1610
|
type: Directive,
|
|
1714
1611
|
args: [{
|
|
1715
1612
|
selector: '[cdkMenuItemCheckbox]',
|
|
@@ -1726,13 +1623,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1726
1623
|
}]
|
|
1727
1624
|
}] });
|
|
1728
1625
|
|
|
1729
|
-
/**
|
|
1730
|
-
* @license
|
|
1731
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1732
|
-
*
|
|
1733
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1734
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1735
|
-
*/
|
|
1736
1626
|
/** The preferred menu positions for the context menu. */
|
|
1737
1627
|
const CONTEXT_MENU_POSITIONS = STANDARD_DROPDOWN_BELOW_POSITIONS.map(position => {
|
|
1738
1628
|
// In cases where the first menu item in the context menu is a trigger the submenu opens on a
|
|
@@ -1755,9 +1645,9 @@ class ContextMenuTracker {
|
|
|
1755
1645
|
}
|
|
1756
1646
|
}
|
|
1757
1647
|
}
|
|
1758
|
-
ContextMenuTracker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1759
|
-
ContextMenuTracker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1648
|
+
ContextMenuTracker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ContextMenuTracker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1649
|
+
ContextMenuTracker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ContextMenuTracker, providedIn: 'root' });
|
|
1650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ContextMenuTracker, decorators: [{
|
|
1761
1651
|
type: Injectable,
|
|
1762
1652
|
args: [{ providedIn: 'root' }]
|
|
1763
1653
|
}] });
|
|
@@ -1906,12 +1796,12 @@ class CdkContextMenuTrigger extends CdkMenuTriggerBase {
|
|
|
1906
1796
|
}
|
|
1907
1797
|
}
|
|
1908
1798
|
}
|
|
1909
|
-
CdkContextMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1910
|
-
CdkContextMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1799
|
+
CdkContextMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkContextMenuTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1800
|
+
CdkContextMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkContextMenuTrigger, isStandalone: true, selector: "[cdkContextMenuTriggerFor]", inputs: { menuTemplateRef: ["cdkContextMenuTriggerFor", "menuTemplateRef"], menuPosition: ["cdkContextMenuPosition", "menuPosition"], menuData: ["cdkContextMenuTriggerData", "menuData"], disabled: ["cdkContextMenuDisabled", "disabled"] }, outputs: { opened: "cdkContextMenuOpened", closed: "cdkContextMenuClosed" }, host: { listeners: { "contextmenu": "_openOnContextMenu($event)" }, properties: { "attr.data-cdk-menu-stack-id": "null" } }, providers: [
|
|
1911
1801
|
{ provide: MENU_TRIGGER, useExisting: CdkContextMenuTrigger },
|
|
1912
1802
|
{ provide: MENU_STACK, useClass: MenuStack },
|
|
1913
1803
|
], exportAs: ["cdkContextMenuTriggerFor"], usesInheritance: true, ngImport: i0 });
|
|
1914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkContextMenuTrigger, decorators: [{
|
|
1915
1805
|
type: Directive,
|
|
1916
1806
|
args: [{
|
|
1917
1807
|
selector: '[cdkContextMenuTriggerFor]',
|
|
@@ -1937,13 +1827,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1937
1827
|
args: ['cdkContextMenuDisabled']
|
|
1938
1828
|
}] } });
|
|
1939
1829
|
|
|
1940
|
-
/**
|
|
1941
|
-
* @license
|
|
1942
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1943
|
-
*
|
|
1944
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1945
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1946
|
-
*/
|
|
1947
1830
|
const MENU_DIRECTIVES = [
|
|
1948
1831
|
CdkMenuBar,
|
|
1949
1832
|
CdkMenu,
|
|
@@ -1958,8 +1841,8 @@ const MENU_DIRECTIVES = [
|
|
|
1958
1841
|
/** Module that declares components and directives for the CDK menu. */
|
|
1959
1842
|
class CdkMenuModule {
|
|
1960
1843
|
}
|
|
1961
|
-
CdkMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1962
|
-
CdkMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
1844
|
+
CdkMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1845
|
+
CdkMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuModule, imports: [OverlayModule, CdkMenuBar,
|
|
1963
1846
|
CdkMenu,
|
|
1964
1847
|
CdkMenuItem,
|
|
1965
1848
|
CdkMenuItemRadio,
|
|
@@ -1976,8 +1859,8 @@ CdkMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
1976
1859
|
CdkMenuGroup,
|
|
1977
1860
|
CdkContextMenuTrigger,
|
|
1978
1861
|
CdkTargetMenuAim] });
|
|
1979
|
-
CdkMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1862
|
+
CdkMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuModule, imports: [OverlayModule] });
|
|
1863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkMenuModule, decorators: [{
|
|
1981
1864
|
type: NgModule,
|
|
1982
1865
|
args: [{
|
|
1983
1866
|
imports: [OverlayModule, ...MENU_DIRECTIVES],
|
|
@@ -1985,22 +1868,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
1985
1868
|
}]
|
|
1986
1869
|
}] });
|
|
1987
1870
|
|
|
1988
|
-
/**
|
|
1989
|
-
* @license
|
|
1990
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1991
|
-
*
|
|
1992
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1993
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1994
|
-
*/
|
|
1995
|
-
|
|
1996
|
-
/**
|
|
1997
|
-
* @license
|
|
1998
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1999
|
-
*
|
|
2000
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2001
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2002
|
-
*/
|
|
2003
|
-
|
|
2004
1871
|
/**
|
|
2005
1872
|
* Generated bundle index. Do not edit.
|
|
2006
1873
|
*/
|