@angular/cdk 14.0.0-next.7 → 14.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/_index.scss +11 -0
- package/a11y/index.d.ts +1119 -5
- package/a11y-prebuilt.css +1 -1
- package/accordion/index.d.ts +108 -6
- package/bidi/index.d.ts +77 -5
- package/clipboard/index.d.ts +112 -5
- package/coercion/index.d.ts +64 -5
- package/collections/index.d.ts +348 -5
- package/dialog/index.d.ts +410 -0
- package/drag-drop/index.d.ts +1456 -5
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +16 -14
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +10 -10
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
- package/esm2020/a11y/live-announcer/live-announcer.mjs +22 -17
- package/esm2020/accordion/accordion-item.mjs +4 -4
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +4 -4
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/dir.mjs +4 -4
- package/esm2020/bidi/directionality.mjs +4 -4
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +4 -4
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +4 -4
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/dialog/dialog-config.mjs +63 -0
- package/esm2020/dialog/dialog-container.mjs +278 -0
- package/esm2020/dialog/dialog-injectors.mjs +26 -0
- package/esm2020/dialog/dialog-module.mjs +42 -0
- package/esm2020/dialog/dialog-ref.mjs +76 -0
- package/esm2020/dialog/dialog.mjs +298 -0
- package/esm2020/dialog/dialog_public_index.mjs +5 -0
- package/esm2020/dialog/index.mjs +9 -0
- package/esm2020/dialog/public-api.mjs +14 -0
- package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
- package/esm2020/drag-drop/directives/drag.mjs +11 -4
- package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
- package/esm2020/drag-drop/directives/drop-list.mjs +4 -4
- package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
- package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
- package/esm2020/drag-drop/drag-drop.mjs +4 -4
- package/esm2020/drag-drop/drop-list-ref.mjs +23 -23
- package/esm2020/layout/breakpoints-observer.mjs +4 -4
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/media-matcher.mjs +4 -4
- package/esm2020/menu/context-menu-trigger.mjs +229 -0
- package/esm2020/menu/index.mjs +9 -0
- package/esm2020/menu/menu-aim.mjs +204 -0
- package/esm2020/menu/menu-bar.mjs +159 -0
- package/esm2020/menu/menu-base.mjs +203 -0
- package/esm2020/menu/menu-errors.mjs +22 -0
- package/esm2020/menu/menu-group.mjs +30 -0
- package/esm2020/menu/menu-interface.mjs +11 -0
- package/esm2020/menu/menu-item-checkbox.mjs +48 -0
- package/esm2020/menu/menu-item-radio.mjs +114 -0
- package/esm2020/menu/menu-item-selectable.mjs +42 -0
- package/esm2020/menu/menu-item.mjs +289 -0
- package/esm2020/menu/menu-module.mjs +62 -0
- package/esm2020/menu/menu-stack.mjs +156 -0
- package/esm2020/menu/menu-trigger-base.mjs +114 -0
- package/esm2020/menu/menu-trigger.mjs +304 -0
- package/esm2020/menu/menu.mjs +168 -0
- package/esm2020/menu/menu_public_index.mjs +5 -0
- package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
- package/esm2020/menu/public-api.mjs +24 -0
- package/esm2020/observers/observe-content.mjs +14 -14
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
- package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-directives.mjs +7 -7
- package/esm2020/overlay/overlay-module.mjs +5 -5
- package/esm2020/overlay/overlay-ref.mjs +14 -5
- package/esm2020/overlay/overlay.mjs +14 -8
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +13 -1
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/public-api.mjs +2 -2
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/features/scrolling.mjs +4 -4
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +4 -4
- package/esm2020/portal/dom-portal-outlet.mjs +26 -4
- package/esm2020/portal/portal-directives.mjs +17 -17
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
- package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
- package/esm2020/scrolling/scrollable.mjs +9 -9
- package/esm2020/scrolling/scrolling-module.mjs +9 -9
- package/esm2020/scrolling/viewport-ruler.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.mjs +7 -5
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +6 -6
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +7 -7
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
- package/esm2020/table/row.mjs +28 -28
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +22 -22
- package/esm2020/table/text-column.mjs +5 -5
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +2 -2
- package/esm2020/text-field/autofill.mjs +7 -7
- package/esm2020/text-field/autosize.mjs +4 -4
- package/esm2020/text-field/text-field-module.mjs +5 -5
- package/esm2020/tree/nested-node.mjs +4 -4
- package/esm2020/tree/node.mjs +4 -4
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +7 -7
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +71 -64
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -10
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +10 -10
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -10
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/collections.mjs +9 -9
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/dialog.mjs +780 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +57 -50
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/layout.mjs +10 -10
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/menu.mjs +2135 -0
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/observers.mjs +13 -13
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +70 -43
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +10 -10
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +41 -20
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +36 -34
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -22
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +80 -80
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +1 -1
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +13 -13
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -25
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +70 -63
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -10
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +10 -10
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -10
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/collections.mjs +9 -9
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/dialog.mjs +784 -0
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/drag-drop.mjs +57 -50
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/layout.mjs +10 -10
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/menu.mjs +2108 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/observers.mjs +13 -13
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +70 -43
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +10 -10
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +41 -20
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +36 -34
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -22
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +80 -80
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +1 -1
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +13 -13
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -25
- package/fesm2020/tree.mjs.map +1 -1
- package/index.d.ts +6 -8
- package/keycodes/index.d.ts +247 -6
- package/layout/index.d.ts +91 -8
- package/menu/index.d.ts +992 -0
- package/observers/index.d.ts +89 -6
- package/overlay/_index.scss +4 -0
- package/overlay/index.d.ts +1202 -5
- package/overlay-prebuilt.css +1 -1
- package/package.json +34 -18
- package/platform/index.d.ts +104 -6
- package/portal/index.d.ts +325 -5
- package/schematics/collection.json +2 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/data/constructor-checks.js +3 -3
- package/schematics/ng-update/data/constructor-checks.mjs +3 -3
- 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 +7 -2
- package/schematics/utils/get-project.mjs +7 -2
- package/schematics/utils/schematic-options.js +2 -2
- package/schematics/utils/schematic-options.mjs +2 -2
- package/scrolling/index.d.ts +647 -6
- package/stepper/index.d.ts +328 -6
- package/table/index.d.ts +1172 -5
- package/testing/index.d.ts +726 -5
- package/testing/selenium-webdriver/index.d.ts +134 -8
- package/testing/testbed/index.d.ts +161 -8
- package/text-field/index.d.ts +175 -6
- package/text-field-prebuilt.css +1 -1
- package/tree/index.d.ts +498 -6
- package/a11y/a11y-module.d.ts +0 -12
- package/a11y/a11y_public_index.d.ts +0 -4
- package/a11y/aria-describer/aria-describer.d.ts +0 -101
- package/a11y/aria-describer/aria-reference.d.ts +0 -22
- package/a11y/fake-event-detection.d.ts +0 -11
- package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
- package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
- package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
- package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
- package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
- package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
- package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
- package/a11y/focus-trap/focus-trap.d.ts +0 -163
- package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
- package/a11y/input-modality/input-modality-detector.d.ts +0 -99
- package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
- package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
- package/a11y/key-manager/focus-key-manager.d.ts +0 -37
- package/a11y/key-manager/list-key-manager.d.ts +0 -152
- package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
- package/a11y/live-announcer/live-announcer.d.ts +0 -83
- package/a11y/package.json +0 -9
- package/a11y/public-api.d.ts +0 -25
- package/accordion/accordion-item.d.ts +0 -59
- package/accordion/accordion-module.d.ts +0 -8
- package/accordion/accordion.d.ts +0 -40
- package/accordion/accordion_public_index.d.ts +0 -4
- package/accordion/package.json +0 -9
- package/accordion/public-api.d.ts +0 -10
- package/bidi/bidi-module.d.ts +0 -7
- package/bidi/bidi_public_index.d.ts +0 -4
- package/bidi/dir-document-token.d.ts +0 -26
- package/bidi/dir.d.ts +0 -36
- package/bidi/directionality.d.ts +0 -26
- package/bidi/package.json +0 -9
- package/bidi/public-api.d.ts +0 -11
- package/clipboard/clipboard-module.d.ts +0 -7
- package/clipboard/clipboard.d.ts +0 -28
- package/clipboard/clipboard_public_index.d.ts +0 -4
- package/clipboard/copy-to-clipboard.d.ts +0 -49
- package/clipboard/package.json +0 -9
- package/clipboard/pending-copy.d.ts +0 -29
- package/clipboard/public-api.d.ts +0 -11
- package/coercion/array.d.ts +0 -10
- package/coercion/boolean-property.d.ts +0 -14
- package/coercion/css-pixel-value.d.ts +0 -9
- package/coercion/element.d.ts +0 -13
- package/coercion/number-property.d.ts +0 -20
- package/coercion/package.json +0 -9
- package/coercion/public-api.d.ts +0 -13
- package/coercion/string-array.d.ts +0 -25
- package/collections/array-data-source.d.ts +0 -16
- package/collections/collection-viewer.d.ts +0 -24
- package/collections/collections_public_index.d.ts +0 -4
- package/collections/data-source.d.ts +0 -30
- package/collections/dispose-view-repeater-strategy.d.ts +0 -22
- package/collections/package.json +0 -9
- package/collections/public-api.d.ts +0 -16
- package/collections/recycle-view-repeater-strategy.d.ts +0 -54
- package/collections/selection-model.d.ts +0 -95
- package/collections/tree-adapter.d.ts +0 -26
- package/collections/unique-selection-dispatcher.d.ts +0 -36
- package/collections/view-repeater.d.ts +0 -92
- package/drag-drop/client-rect.d.ts +0 -38
- package/drag-drop/clone-node.d.ts +0 -9
- package/drag-drop/directives/assertions.d.ts +0 -13
- package/drag-drop/directives/config.d.ts +0 -43
- package/drag-drop/directives/drag-handle.d.ts +0 -33
- package/drag-drop/directives/drag-placeholder.d.ts +0 -27
- package/drag-drop/directives/drag-preview.d.ts +0 -32
- package/drag-drop/directives/drag.d.ts +0 -160
- package/drag-drop/directives/drop-list-group.d.ts +0 -33
- package/drag-drop/directives/drop-list.d.ts +0 -123
- package/drag-drop/drag-drop-module.d.ts +0 -13
- package/drag-drop/drag-drop-registry.d.ts +0 -89
- package/drag-drop/drag-drop.d.ts +0 -36
- package/drag-drop/drag-drop_public_index.d.ts +0 -4
- package/drag-drop/drag-events.d.ts +0 -124
- package/drag-drop/drag-parent.d.ts +0 -15
- package/drag-drop/drag-ref.d.ts +0 -448
- package/drag-drop/drag-styling.d.ts +0 -42
- package/drag-drop/drag-utils.d.ts +0 -32
- package/drag-drop/drop-list-ref.d.ts +0 -312
- package/drag-drop/package.json +0 -9
- package/drag-drop/parent-position-tracker.d.ts +0 -39
- package/drag-drop/public-api.d.ts +0 -22
- package/drag-drop/transition-duration.d.ts +0 -9
- package/keycodes/keycodes.d.ts +0 -126
- package/keycodes/keycodes_public_index.d.ts +0 -4
- package/keycodes/modifiers.d.ts +0 -14
- package/keycodes/package.json +0 -9
- package/keycodes/public-api.d.ts +0 -9
- package/layout/breakpoints-observer.d.ts +0 -45
- package/layout/breakpoints.d.ts +0 -23
- package/layout/layout-module.d.ts +0 -6
- package/layout/layout_public_index.d.ts +0 -4
- package/layout/media-matcher.d.ts +0 -18
- package/layout/package.json +0 -9
- package/layout/public-api.d.ts +0 -11
- package/observers/observe-content.d.ts +0 -87
- package/observers/observers_public_index.d.ts +0 -4
- package/observers/package.json +0 -9
- package/observers/public-api.d.ts +0 -8
- package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
- package/overlay/dispatchers/index.d.ts +0 -9
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
- package/overlay/fullscreen-overlay-container.d.ts +0 -35
- package/overlay/overlay-config.d.ts +0 -47
- package/overlay/overlay-container.d.ts +0 -25
- package/overlay/overlay-directives.d.ts +0 -148
- package/overlay/overlay-module.d.ts +0 -10
- package/overlay/overlay-ref.d.ts +0 -144
- package/overlay/overlay-reference.d.ts +0 -38
- package/overlay/overlay.d.ts +0 -75
- package/overlay/overlay_public_index.d.ts +0 -4
- package/overlay/package.json +0 -9
- package/overlay/position/connected-position.d.ts +0 -102
- package/overlay/position/flexible-connected-position-strategy.d.ts +0 -280
- package/overlay/position/global-position-strategy.d.ts +0 -99
- package/overlay/position/overlay-position-builder.d.ts +0 -32
- package/overlay/position/position-strategy.d.ts +0 -19
- package/overlay/position/scroll-clip.d.ts +0 -26
- package/overlay/public-api.d.ts +0 -23
- package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
- package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
- package/overlay/scroll/index.d.ts +0 -14
- package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
- package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
- package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
- package/overlay/scroll/scroll-strategy.d.ts +0 -25
- package/platform/features/input-types.d.ts +0 -9
- package/platform/features/passive-listeners.d.ts +0 -19
- package/platform/features/scrolling.d.ts +0 -32
- package/platform/features/shadow-dom.d.ts +0 -18
- package/platform/features/test-environment.d.ts +0 -9
- package/platform/package.json +0 -9
- package/platform/platform-module.d.ts +0 -6
- package/platform/platform.d.ts +0 -29
- package/platform/platform_public_index.d.ts +0 -4
- package/platform/public-api.d.ts +0 -14
- package/portal/dom-portal-outlet.d.ts +0 -60
- package/portal/package.json +0 -9
- package/portal/portal-directives.d.ts +0 -99
- package/portal/portal-errors.d.ts +0 -37
- package/portal/portal-injector.d.ts +0 -21
- package/portal/portal.d.ts +0 -140
- package/portal/portal_public_index.d.ts +0 -4
- package/portal/public-api.d.ts +0 -11
- package/public-api.d.ts +0 -8
- package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
- package/scrolling/package.json +0 -9
- package/scrolling/public-api.d.ts +0 -16
- package/scrolling/scroll-dispatcher.d.ts +0 -71
- package/scrolling/scrollable.d.ts +0 -85
- package/scrolling/scrolling-module.d.ts +0 -19
- package/scrolling/scrolling_public_index.d.ts +0 -4
- package/scrolling/viewport-ruler.d.ts +0 -63
- package/scrolling/virtual-for-of.d.ts +0 -117
- package/scrolling/virtual-scroll-repeater.d.ts +0 -16
- package/scrolling/virtual-scroll-strategy.d.ts +0 -38
- package/scrolling/virtual-scroll-viewport.d.ts +0 -147
- package/stepper/package.json +0 -9
- package/stepper/public-api.d.ts +0 -12
- package/stepper/step-header.d.ts +0 -18
- package/stepper/step-label.d.ts +0 -15
- package/stepper/stepper-button.d.ts +0 -20
- package/stepper/stepper-module.d.ts +0 -11
- package/stepper/stepper.d.ts +0 -233
- package/stepper/stepper_public_index.d.ts +0 -4
- package/table/can-stick.d.ts +0 -34
- package/table/cell.d.ts +0 -126
- package/table/coalesced-style-scheduler.d.ts +0 -46
- package/table/package.json +0 -9
- package/table/public-api.d.ts +0 -19
- package/table/row.d.ts +0 -175
- package/table/sticky-position-listener.d.ts +0 -31
- package/table/sticky-styler.d.ts +0 -126
- package/table/table-errors.d.ts +0 -48
- package/table/table-module.d.ts +0 -11
- package/table/table.d.ts +0 -494
- package/table/table_public_index.d.ts +0 -4
- package/table/text-column.d.ts +0 -73
- package/table/tokens.d.ts +0 -25
- package/testing/change-detection.d.ts +0 -83
- package/testing/component-harness.d.ts +0 -426
- package/testing/element-dimensions.d.ts +0 -16
- package/testing/harness-environment.d.ts +0 -62
- package/testing/package.json +0 -9
- package/testing/public-api.d.ts +0 -14
- package/testing/selenium-webdriver/package.json +0 -9
- package/testing/selenium-webdriver/public-api.d.ts +0 -9
- package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
- package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
- package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
- package/testing/test-element-errors.d.ts +0 -12
- package/testing/test-element.d.ts +0 -135
- package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
- package/testing/testbed/fake-events/element-focus.d.ts +0 -18
- package/testing/testbed/fake-events/event-objects.d.ts +0 -39
- package/testing/testbed/fake-events/index.d.ts +0 -11
- package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
- package/testing/testbed/package.json +0 -9
- package/testing/testbed/proxy-zone-types.d.ts +0 -29
- package/testing/testbed/public-api.d.ts +0 -9
- package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
- package/testing/testbed/testbed-harness-environment.d.ts +0 -64
- package/testing/testbed/unit-test-element.d.ts +0 -98
- package/testing/testbed/zone-types.d.ts +0 -22
- package/testing/text-filtering.d.ts +0 -13
- package/text-field/autofill.d.ts +0 -66
- package/text-field/autosize.d.ts +0 -95
- package/text-field/package.json +0 -9
- package/text-field/public-api.d.ts +0 -10
- package/text-field/text-field-module.d.ts +0 -8
- package/text-field/text-field_public_index.d.ts +0 -4
- package/tree/control/base-tree-control.d.ts +0 -54
- package/tree/control/flat-tree-control.d.ts +0 -34
- package/tree/control/nested-tree-control.d.ts +0 -31
- package/tree/control/tree-control.d.ts +0 -49
- package/tree/nested-node.d.ts +0 -38
- package/tree/node.d.ts +0 -40
- package/tree/outlet.d.ts +0 -26
- package/tree/package.json +0 -9
- package/tree/padding.d.ts +0 -60
- package/tree/public-api.d.ts +0 -19
- package/tree/toggle.d.ts +0 -25
- package/tree/tree-errors.d.ts +0 -32
- package/tree/tree-module.d.ts +0 -12
- package/tree/tree.d.ts +0 -128
- package/tree/tree_public_index.d.ts +0 -4
- package/version.d.ts +0 -10
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, OnDestroy, NgZone } from '@angular/core';
|
|
2
|
-
import { Platform } from '@angular/cdk/platform';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* The input modalities detected by this service. Null is used if the input modality is unknown.
|
|
7
|
-
*/
|
|
8
|
-
export declare type InputModality = 'keyboard' | 'mouse' | 'touch' | null;
|
|
9
|
-
/** Options to configure the behavior of the InputModalityDetector. */
|
|
10
|
-
export interface InputModalityDetectorOptions {
|
|
11
|
-
/** Keys to ignore when detecting keyboard input modality. */
|
|
12
|
-
ignoreKeys?: number[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Injectable options for the InputModalityDetector. These are shallowly merged with the default
|
|
16
|
-
* options.
|
|
17
|
-
*/
|
|
18
|
-
export declare const INPUT_MODALITY_DETECTOR_OPTIONS: InjectionToken<InputModalityDetectorOptions>;
|
|
19
|
-
/**
|
|
20
|
-
* Default options for the InputModalityDetector.
|
|
21
|
-
*
|
|
22
|
-
* Modifier keys are ignored by default (i.e. when pressed won't cause the service to detect
|
|
23
|
-
* keyboard input modality) for two reasons:
|
|
24
|
-
*
|
|
25
|
-
* 1. Modifier keys are commonly used with mouse to perform actions such as 'right click' or 'open
|
|
26
|
-
* in new tab', and are thus less representative of actual keyboard interaction.
|
|
27
|
-
* 2. VoiceOver triggers some keyboard events when linearly navigating with Control + Option (but
|
|
28
|
-
* confusingly not with Caps Lock). Thus, to have parity with other screen readers, we ignore
|
|
29
|
-
* these keys so as to not update the input modality.
|
|
30
|
-
*
|
|
31
|
-
* Note that we do not by default ignore the right Meta key on Safari because it has the same key
|
|
32
|
-
* code as the ContextMenu key on other browsers. When we switch to using event.key, we can
|
|
33
|
-
* distinguish between the two.
|
|
34
|
-
*/
|
|
35
|
-
export declare const INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS: InputModalityDetectorOptions;
|
|
36
|
-
/**
|
|
37
|
-
* The amount of time needed to pass after a touchstart event in order for a subsequent mousedown
|
|
38
|
-
* event to be attributed as mouse and not touch.
|
|
39
|
-
*
|
|
40
|
-
* This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found
|
|
41
|
-
* that a value of around 650ms seems appropriate.
|
|
42
|
-
*/
|
|
43
|
-
export declare const TOUCH_BUFFER_MS = 650;
|
|
44
|
-
/**
|
|
45
|
-
* Service that detects the user's input modality.
|
|
46
|
-
*
|
|
47
|
-
* This service does not update the input modality when a user navigates with a screen reader
|
|
48
|
-
* (e.g. linear navigation with VoiceOver, object navigation / browse mode with NVDA, virtual PC
|
|
49
|
-
* cursor mode with JAWS). This is in part due to technical limitations (i.e. keyboard events do not
|
|
50
|
-
* fire as expected in these modes) but is also arguably the correct behavior. Navigating with a
|
|
51
|
-
* screen reader is akin to visually scanning a page, and should not be interpreted as actual user
|
|
52
|
-
* input interaction.
|
|
53
|
-
*
|
|
54
|
-
* When a user is not navigating but *interacting* with a screen reader, this service attempts to
|
|
55
|
-
* update the input modality to keyboard, but in general this service's behavior is largely
|
|
56
|
-
* undefined.
|
|
57
|
-
*/
|
|
58
|
-
export declare class InputModalityDetector implements OnDestroy {
|
|
59
|
-
private readonly _platform;
|
|
60
|
-
/** Emits whenever an input modality is detected. */
|
|
61
|
-
readonly modalityDetected: Observable<InputModality>;
|
|
62
|
-
/** Emits when the input modality changes. */
|
|
63
|
-
readonly modalityChanged: Observable<InputModality>;
|
|
64
|
-
/** The most recently detected input modality. */
|
|
65
|
-
get mostRecentModality(): InputModality;
|
|
66
|
-
/**
|
|
67
|
-
* The most recently detected input modality event target. Is null if no input modality has been
|
|
68
|
-
* detected or if the associated event target is null for some unknown reason.
|
|
69
|
-
*/
|
|
70
|
-
_mostRecentTarget: HTMLElement | null;
|
|
71
|
-
/** The underlying BehaviorSubject that emits whenever an input modality is detected. */
|
|
72
|
-
private readonly _modality;
|
|
73
|
-
/** Options for this InputModalityDetector. */
|
|
74
|
-
private readonly _options;
|
|
75
|
-
/**
|
|
76
|
-
* The timestamp of the last touch input modality. Used to determine whether mousedown events
|
|
77
|
-
* should be attributed to mouse or touch.
|
|
78
|
-
*/
|
|
79
|
-
private _lastTouchMs;
|
|
80
|
-
/**
|
|
81
|
-
* Handles keydown events. Must be an arrow function in order to preserve the context when it gets
|
|
82
|
-
* bound.
|
|
83
|
-
*/
|
|
84
|
-
private _onKeydown;
|
|
85
|
-
/**
|
|
86
|
-
* Handles mousedown events. Must be an arrow function in order to preserve the context when it
|
|
87
|
-
* gets bound.
|
|
88
|
-
*/
|
|
89
|
-
private _onMousedown;
|
|
90
|
-
/**
|
|
91
|
-
* Handles touchstart events. Must be an arrow function in order to preserve the context when it
|
|
92
|
-
* gets bound.
|
|
93
|
-
*/
|
|
94
|
-
private _onTouchstart;
|
|
95
|
-
constructor(_platform: Platform, ngZone: NgZone, document: Document, options?: InputModalityDetectorOptions);
|
|
96
|
-
ngOnDestroy(): void;
|
|
97
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputModalityDetector, [null, null, null, { optional: true; }]>;
|
|
98
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InputModalityDetector>;
|
|
99
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { Platform } from '@angular/cdk/platform';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Configuration for the isFocusable method.
|
|
12
|
-
*/
|
|
13
|
-
export declare class IsFocusableConfig {
|
|
14
|
-
/**
|
|
15
|
-
* Whether to count an element as focusable even if it is not currently visible.
|
|
16
|
-
*/
|
|
17
|
-
ignoreVisibility: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Utility for checking the interactivity of an element, such as whether is is focusable or
|
|
21
|
-
* tabbable.
|
|
22
|
-
*/
|
|
23
|
-
export declare class InteractivityChecker {
|
|
24
|
-
private _platform;
|
|
25
|
-
constructor(_platform: Platform);
|
|
26
|
-
/**
|
|
27
|
-
* Gets whether an element is disabled.
|
|
28
|
-
*
|
|
29
|
-
* @param element Element to be checked.
|
|
30
|
-
* @returns Whether the element is disabled.
|
|
31
|
-
*/
|
|
32
|
-
isDisabled(element: HTMLElement): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Gets whether an element is visible for the purposes of interactivity.
|
|
35
|
-
*
|
|
36
|
-
* This will capture states like `display: none` and `visibility: hidden`, but not things like
|
|
37
|
-
* being clipped by an `overflow: hidden` parent or being outside the viewport.
|
|
38
|
-
*
|
|
39
|
-
* @returns Whether the element is visible.
|
|
40
|
-
*/
|
|
41
|
-
isVisible(element: HTMLElement): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Gets whether an element can be reached via Tab key.
|
|
44
|
-
* Assumes that the element has already been checked with isFocusable.
|
|
45
|
-
*
|
|
46
|
-
* @param element Element to be checked.
|
|
47
|
-
* @returns Whether the element is tabbable.
|
|
48
|
-
*/
|
|
49
|
-
isTabbable(element: HTMLElement): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Gets whether an element can be focused by the user.
|
|
52
|
-
*
|
|
53
|
-
* @param element Element to be checked.
|
|
54
|
-
* @param config The config object with options to customize this method's behavior
|
|
55
|
-
* @returns Whether the element is focusable.
|
|
56
|
-
*/
|
|
57
|
-
isFocusable(element: HTMLElement, config?: IsFocusableConfig): boolean;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InteractivityChecker, never>;
|
|
59
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InteractivityChecker>;
|
|
60
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ListKeyManager, ListKeyManagerOption } from './list-key-manager';
|
|
9
|
-
/**
|
|
10
|
-
* This is the interface for highlightable items (used by the ActiveDescendantKeyManager).
|
|
11
|
-
* Each item must know how to style itself as active or inactive and whether or not it is
|
|
12
|
-
* currently disabled.
|
|
13
|
-
*/
|
|
14
|
-
export interface Highlightable extends ListKeyManagerOption {
|
|
15
|
-
/** Applies the styles for an active item to this item. */
|
|
16
|
-
setActiveStyles(): void;
|
|
17
|
-
/** Applies the styles for an inactive item to this item. */
|
|
18
|
-
setInactiveStyles(): void;
|
|
19
|
-
}
|
|
20
|
-
export declare class ActiveDescendantKeyManager<T> extends ListKeyManager<Highlightable & T> {
|
|
21
|
-
/**
|
|
22
|
-
* Sets the active item to the item at the specified index and adds the
|
|
23
|
-
* active styles to the newly active item. Also removes active styles
|
|
24
|
-
* from the previously active item.
|
|
25
|
-
* @param index Index of the item to be set as active.
|
|
26
|
-
*/
|
|
27
|
-
setActiveItem(index: number): void;
|
|
28
|
-
/**
|
|
29
|
-
* Sets the active item to the item to the specified one and adds the
|
|
30
|
-
* active styles to the it. Also removes active styles from the
|
|
31
|
-
* previously active item.
|
|
32
|
-
* @param item Item to be set as active.
|
|
33
|
-
*/
|
|
34
|
-
setActiveItem(item: T): void;
|
|
35
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ListKeyManager, ListKeyManagerOption } from './list-key-manager';
|
|
9
|
-
import { FocusOrigin } from '../focus-monitor/focus-monitor';
|
|
10
|
-
/**
|
|
11
|
-
* This is the interface for focusable items (used by the FocusKeyManager).
|
|
12
|
-
* Each item must know how to focus itself, whether or not it is currently disabled
|
|
13
|
-
* and be able to supply its label.
|
|
14
|
-
*/
|
|
15
|
-
export interface FocusableOption extends ListKeyManagerOption {
|
|
16
|
-
/** Focuses the `FocusableOption`. */
|
|
17
|
-
focus(origin?: FocusOrigin): void;
|
|
18
|
-
}
|
|
19
|
-
export declare class FocusKeyManager<T> extends ListKeyManager<FocusableOption & T> {
|
|
20
|
-
private _origin;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
|
|
23
|
-
* @param origin Focus origin to be used when focusing items.
|
|
24
|
-
*/
|
|
25
|
-
setFocusOrigin(origin: FocusOrigin): this;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the active item to the item at the specified
|
|
28
|
-
* index and focuses the newly active item.
|
|
29
|
-
* @param index Index of the item to be set as active.
|
|
30
|
-
*/
|
|
31
|
-
setActiveItem(index: number): void;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the active item to the item that is specified and focuses it.
|
|
34
|
-
* @param item Item to be set as active.
|
|
35
|
-
*/
|
|
36
|
-
setActiveItem(item: T): void;
|
|
37
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { QueryList } from '@angular/core';
|
|
9
|
-
import { Subject } from 'rxjs';
|
|
10
|
-
/** This interface is for items that can be passed to a ListKeyManager. */
|
|
11
|
-
export interface ListKeyManagerOption {
|
|
12
|
-
/** Whether the option is disabled. */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** Gets the label for this option. */
|
|
15
|
-
getLabel?(): string;
|
|
16
|
-
}
|
|
17
|
-
/** Modifier keys handled by the ListKeyManager. */
|
|
18
|
-
export declare type ListKeyManagerModifierKey = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';
|
|
19
|
-
/**
|
|
20
|
-
* This class manages keyboard events for selectable lists. If you pass it a query list
|
|
21
|
-
* of items, it will set the active item correctly when arrow events occur.
|
|
22
|
-
*/
|
|
23
|
-
export declare class ListKeyManager<T extends ListKeyManagerOption> {
|
|
24
|
-
private _items;
|
|
25
|
-
private _activeItemIndex;
|
|
26
|
-
private _activeItem;
|
|
27
|
-
private _wrap;
|
|
28
|
-
private readonly _letterKeyStream;
|
|
29
|
-
private _typeaheadSubscription;
|
|
30
|
-
private _vertical;
|
|
31
|
-
private _horizontal;
|
|
32
|
-
private _allowedModifierKeys;
|
|
33
|
-
private _homeAndEnd;
|
|
34
|
-
/**
|
|
35
|
-
* Predicate function that can be used to check whether an item should be skipped
|
|
36
|
-
* by the key manager. By default, disabled items are skipped.
|
|
37
|
-
*/
|
|
38
|
-
private _skipPredicateFn;
|
|
39
|
-
private _pressedLetters;
|
|
40
|
-
constructor(_items: QueryList<T> | T[]);
|
|
41
|
-
/**
|
|
42
|
-
* Stream that emits any time the TAB key is pressed, so components can react
|
|
43
|
-
* when focus is shifted off of the list.
|
|
44
|
-
*/
|
|
45
|
-
readonly tabOut: Subject<void>;
|
|
46
|
-
/** Stream that emits whenever the active item of the list manager changes. */
|
|
47
|
-
readonly change: Subject<number>;
|
|
48
|
-
/**
|
|
49
|
-
* Sets the predicate function that determines which items should be skipped by the
|
|
50
|
-
* list key manager.
|
|
51
|
-
* @param predicate Function that determines whether the given item should be skipped.
|
|
52
|
-
*/
|
|
53
|
-
skipPredicate(predicate: (item: T) => boolean): this;
|
|
54
|
-
/**
|
|
55
|
-
* Configures wrapping mode, which determines whether the active item will wrap to
|
|
56
|
-
* the other end of list when there are no more items in the given direction.
|
|
57
|
-
* @param shouldWrap Whether the list should wrap when reaching the end.
|
|
58
|
-
*/
|
|
59
|
-
withWrap(shouldWrap?: boolean): this;
|
|
60
|
-
/**
|
|
61
|
-
* Configures whether the key manager should be able to move the selection vertically.
|
|
62
|
-
* @param enabled Whether vertical selection should be enabled.
|
|
63
|
-
*/
|
|
64
|
-
withVerticalOrientation(enabled?: boolean): this;
|
|
65
|
-
/**
|
|
66
|
-
* Configures the key manager to move the selection horizontally.
|
|
67
|
-
* Passing in `null` will disable horizontal movement.
|
|
68
|
-
* @param direction Direction in which the selection can be moved.
|
|
69
|
-
*/
|
|
70
|
-
withHorizontalOrientation(direction: 'ltr' | 'rtl' | null): this;
|
|
71
|
-
/**
|
|
72
|
-
* Modifier keys which are allowed to be held down and whose default actions will be prevented
|
|
73
|
-
* as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
|
|
74
|
-
*/
|
|
75
|
-
withAllowedModifierKeys(keys: ListKeyManagerModifierKey[]): this;
|
|
76
|
-
/**
|
|
77
|
-
* Turns on typeahead mode which allows users to set the active item by typing.
|
|
78
|
-
* @param debounceInterval Time to wait after the last keystroke before setting the active item.
|
|
79
|
-
*/
|
|
80
|
-
withTypeAhead(debounceInterval?: number): this;
|
|
81
|
-
/**
|
|
82
|
-
* Configures the key manager to activate the first and last items
|
|
83
|
-
* respectively when the Home or End key is pressed.
|
|
84
|
-
* @param enabled Whether pressing the Home or End key activates the first/last item.
|
|
85
|
-
*/
|
|
86
|
-
withHomeAndEnd(enabled?: boolean): this;
|
|
87
|
-
/**
|
|
88
|
-
* Sets the active item to the item at the index specified.
|
|
89
|
-
* @param index The index of the item to be set as active.
|
|
90
|
-
*/
|
|
91
|
-
setActiveItem(index: number): void;
|
|
92
|
-
/**
|
|
93
|
-
* Sets the active item to the specified item.
|
|
94
|
-
* @param item The item to be set as active.
|
|
95
|
-
*/
|
|
96
|
-
setActiveItem(item: T): void;
|
|
97
|
-
/**
|
|
98
|
-
* Sets the active item depending on the key event passed in.
|
|
99
|
-
* @param event Keyboard event to be used for determining which element should be active.
|
|
100
|
-
*/
|
|
101
|
-
onKeydown(event: KeyboardEvent): void;
|
|
102
|
-
/** Index of the currently active item. */
|
|
103
|
-
get activeItemIndex(): number | null;
|
|
104
|
-
/** The active item. */
|
|
105
|
-
get activeItem(): T | null;
|
|
106
|
-
/** Gets whether the user is currently typing into the manager using the typeahead feature. */
|
|
107
|
-
isTyping(): boolean;
|
|
108
|
-
/** Sets the active item to the first enabled item in the list. */
|
|
109
|
-
setFirstItemActive(): void;
|
|
110
|
-
/** Sets the active item to the last enabled item in the list. */
|
|
111
|
-
setLastItemActive(): void;
|
|
112
|
-
/** Sets the active item to the next enabled item in the list. */
|
|
113
|
-
setNextItemActive(): void;
|
|
114
|
-
/** Sets the active item to a previous enabled item in the list. */
|
|
115
|
-
setPreviousItemActive(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Allows setting the active without any other effects.
|
|
118
|
-
* @param index Index of the item to be set as active.
|
|
119
|
-
*/
|
|
120
|
-
updateActiveItem(index: number): void;
|
|
121
|
-
/**
|
|
122
|
-
* Allows setting the active item without any other effects.
|
|
123
|
-
* @param item Item to be set as active.
|
|
124
|
-
*/
|
|
125
|
-
updateActiveItem(item: T): void;
|
|
126
|
-
/**
|
|
127
|
-
* This method sets the active item, given a list of items and the delta between the
|
|
128
|
-
* currently active item and the new active item. It will calculate differently
|
|
129
|
-
* depending on whether wrap mode is turned on.
|
|
130
|
-
*/
|
|
131
|
-
private _setActiveItemByDelta;
|
|
132
|
-
/**
|
|
133
|
-
* Sets the active item properly given "wrap" mode. In other words, it will continue to move
|
|
134
|
-
* down the list until it finds an item that is not disabled, and it will wrap if it
|
|
135
|
-
* encounters either end of the list.
|
|
136
|
-
*/
|
|
137
|
-
private _setActiveInWrapMode;
|
|
138
|
-
/**
|
|
139
|
-
* Sets the active item properly given the default mode. In other words, it will
|
|
140
|
-
* continue to move down the list until it finds an item that is not disabled. If
|
|
141
|
-
* it encounters either end of the list, it will stop and not wrap.
|
|
142
|
-
*/
|
|
143
|
-
private _setActiveInDefaultMode;
|
|
144
|
-
/**
|
|
145
|
-
* Sets the active item to the first enabled item starting at the index specified. If the
|
|
146
|
-
* item is disabled, it will move in the fallbackDelta direction until it either
|
|
147
|
-
* finds an enabled item or encounters the end of the list.
|
|
148
|
-
*/
|
|
149
|
-
private _setActiveItemByIndex;
|
|
150
|
-
/** Returns the items as an array. */
|
|
151
|
-
private _getItemsArray;
|
|
152
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { InjectionToken } from '@angular/core';
|
|
9
|
-
/** Possible politeness levels. */
|
|
10
|
-
export declare type AriaLivePoliteness = 'off' | 'polite' | 'assertive';
|
|
11
|
-
export declare const LIVE_ANNOUNCER_ELEMENT_TOKEN: InjectionToken<HTMLElement | null>;
|
|
12
|
-
/** @docs-private */
|
|
13
|
-
export declare function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY(): null;
|
|
14
|
-
/** Object that can be used to configure the default options for the LiveAnnouncer. */
|
|
15
|
-
export interface LiveAnnouncerDefaultOptions {
|
|
16
|
-
/** Default politeness for the announcements. */
|
|
17
|
-
politeness?: AriaLivePoliteness;
|
|
18
|
-
/** Default duration for the announcement messages. */
|
|
19
|
-
duration?: number;
|
|
20
|
-
}
|
|
21
|
-
/** Injection token that can be used to configure the default options for the LiveAnnouncer. */
|
|
22
|
-
export declare const LIVE_ANNOUNCER_DEFAULT_OPTIONS: InjectionToken<LiveAnnouncerDefaultOptions>;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ContentObserver } from '@angular/cdk/observers';
|
|
9
|
-
import { ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
10
|
-
import { AriaLivePoliteness, LiveAnnouncerDefaultOptions } from './live-announcer-tokens';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class LiveAnnouncer implements OnDestroy {
|
|
13
|
-
private _ngZone;
|
|
14
|
-
private _defaultOptions?;
|
|
15
|
-
private _liveElement;
|
|
16
|
-
private _document;
|
|
17
|
-
private _previousTimeout;
|
|
18
|
-
constructor(elementToken: any, _ngZone: NgZone, _document: any, _defaultOptions?: LiveAnnouncerDefaultOptions | undefined);
|
|
19
|
-
/**
|
|
20
|
-
* Announces a message to screenreaders.
|
|
21
|
-
* @param message Message to be announced to the screenreader.
|
|
22
|
-
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
23
|
-
*/
|
|
24
|
-
announce(message: string): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Announces a message to screenreaders.
|
|
27
|
-
* @param message Message to be announced to the screenreader.
|
|
28
|
-
* @param politeness The politeness of the announcer element.
|
|
29
|
-
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
30
|
-
*/
|
|
31
|
-
announce(message: string, politeness?: AriaLivePoliteness): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Announces a message to screenreaders.
|
|
34
|
-
* @param message Message to be announced to the screenreader.
|
|
35
|
-
* @param duration Time in milliseconds after which to clear out the announcer element. Note
|
|
36
|
-
* that this takes effect after the message has been added to the DOM, which can be up to
|
|
37
|
-
* 100ms after `announce` has been called.
|
|
38
|
-
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
39
|
-
*/
|
|
40
|
-
announce(message: string, duration?: number): Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
* Announces a message to screenreaders.
|
|
43
|
-
* @param message Message to be announced to the screenreader.
|
|
44
|
-
* @param politeness The politeness of the announcer element.
|
|
45
|
-
* @param duration Time in milliseconds after which to clear out the announcer element. Note
|
|
46
|
-
* that this takes effect after the message has been added to the DOM, which can be up to
|
|
47
|
-
* 100ms after `announce` has been called.
|
|
48
|
-
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
49
|
-
*/
|
|
50
|
-
announce(message: string, politeness?: AriaLivePoliteness, duration?: number): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Clears the current text from the announcer element. Can be used to prevent
|
|
53
|
-
* screen readers from reading the text out again while the user is going
|
|
54
|
-
* through the page landmarks.
|
|
55
|
-
*/
|
|
56
|
-
clear(): void;
|
|
57
|
-
ngOnDestroy(): void;
|
|
58
|
-
private _createLiveElement;
|
|
59
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LiveAnnouncer, [{ optional: true; }, null, null, { optional: true; }]>;
|
|
60
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LiveAnnouncer>;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
|
|
64
|
-
* with a wider range of browsers and screen readers.
|
|
65
|
-
*/
|
|
66
|
-
export declare class CdkAriaLive implements OnDestroy {
|
|
67
|
-
private _elementRef;
|
|
68
|
-
private _liveAnnouncer;
|
|
69
|
-
private _contentObserver;
|
|
70
|
-
private _ngZone;
|
|
71
|
-
/** The aria-live politeness level to use when announcing messages. */
|
|
72
|
-
get politeness(): AriaLivePoliteness;
|
|
73
|
-
set politeness(value: AriaLivePoliteness);
|
|
74
|
-
private _politeness;
|
|
75
|
-
/** Time in milliseconds after which to clear out the announcer element. */
|
|
76
|
-
duration: number;
|
|
77
|
-
private _previousAnnouncedText?;
|
|
78
|
-
private _subscription;
|
|
79
|
-
constructor(_elementRef: ElementRef, _liveAnnouncer: LiveAnnouncer, _contentObserver: ContentObserver, _ngZone: NgZone);
|
|
80
|
-
ngOnDestroy(): void;
|
|
81
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAriaLive, never>;
|
|
82
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { "politeness": "cdkAriaLive"; "duration": "cdkAriaLiveDuration"; }, {}, never>;
|
|
83
|
-
}
|
package/a11y/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/a11y",
|
|
3
|
-
"fesm2020": "../fesm2020/a11y.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/a11y.mjs",
|
|
5
|
-
"esm2020": "../esm2020/a11y/a11y_public_index.mjs",
|
|
6
|
-
"typings": "./a11y_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/a11y.mjs",
|
|
8
|
-
"es2020": "../fesm2020/a11y.mjs"
|
|
9
|
-
}
|
package/a11y/public-api.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
export * from './aria-describer/aria-describer';
|
|
9
|
-
export * from './key-manager/activedescendant-key-manager';
|
|
10
|
-
export * from './key-manager/focus-key-manager';
|
|
11
|
-
export * from './key-manager/list-key-manager';
|
|
12
|
-
export * from './focus-trap/configurable-focus-trap';
|
|
13
|
-
export * from './focus-trap/configurable-focus-trap-config';
|
|
14
|
-
export * from './focus-trap/configurable-focus-trap-factory';
|
|
15
|
-
export * from './focus-trap/event-listener-inert-strategy';
|
|
16
|
-
export * from './focus-trap/focus-trap';
|
|
17
|
-
export * from './focus-trap/focus-trap-inert-strategy';
|
|
18
|
-
export * from './interactivity-checker/interactivity-checker';
|
|
19
|
-
export { InputModality, InputModalityDetector, InputModalityDetectorOptions, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, } from './input-modality/input-modality-detector';
|
|
20
|
-
export * from './live-announcer/live-announcer';
|
|
21
|
-
export * from './live-announcer/live-announcer-tokens';
|
|
22
|
-
export * from './focus-monitor/focus-monitor';
|
|
23
|
-
export * from './fake-event-detection';
|
|
24
|
-
export * from './a11y-module';
|
|
25
|
-
export { HighContrastModeDetector, HighContrastMode, } from './high-contrast-mode/high-contrast-mode-detector';
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { EventEmitter, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
9
|
-
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
|
|
10
|
-
import { CdkAccordion } from './accordion';
|
|
11
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
/**
|
|
14
|
-
* An basic directive expected to be extended and decorated as a component. Sets up all
|
|
15
|
-
* events and attributes needed to be managed by a CdkAccordion parent.
|
|
16
|
-
*/
|
|
17
|
-
export declare class CdkAccordionItem implements OnDestroy {
|
|
18
|
-
accordion: CdkAccordion;
|
|
19
|
-
private _changeDetectorRef;
|
|
20
|
-
protected _expansionDispatcher: UniqueSelectionDispatcher;
|
|
21
|
-
/** Subscription to openAll/closeAll events. */
|
|
22
|
-
private _openCloseAllSubscription;
|
|
23
|
-
/** Event emitted every time the AccordionItem is closed. */
|
|
24
|
-
readonly closed: EventEmitter<void>;
|
|
25
|
-
/** Event emitted every time the AccordionItem is opened. */
|
|
26
|
-
readonly opened: EventEmitter<void>;
|
|
27
|
-
/** Event emitted when the AccordionItem is destroyed. */
|
|
28
|
-
readonly destroyed: EventEmitter<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Emits whenever the expanded state of the accordion changes.
|
|
31
|
-
* Primarily used to facilitate two-way binding.
|
|
32
|
-
* @docs-private
|
|
33
|
-
*/
|
|
34
|
-
readonly expandedChange: EventEmitter<boolean>;
|
|
35
|
-
/** The unique AccordionItem id. */
|
|
36
|
-
readonly id: string;
|
|
37
|
-
/** Whether the AccordionItem is expanded. */
|
|
38
|
-
get expanded(): boolean;
|
|
39
|
-
set expanded(expanded: BooleanInput);
|
|
40
|
-
private _expanded;
|
|
41
|
-
/** Whether the AccordionItem is disabled. */
|
|
42
|
-
get disabled(): boolean;
|
|
43
|
-
set disabled(disabled: BooleanInput);
|
|
44
|
-
private _disabled;
|
|
45
|
-
/** Unregister function for _expansionDispatcher. */
|
|
46
|
-
private _removeUniqueSelectionListener;
|
|
47
|
-
constructor(accordion: CdkAccordion, _changeDetectorRef: ChangeDetectorRef, _expansionDispatcher: UniqueSelectionDispatcher);
|
|
48
|
-
/** Emits an event for the accordion item being destroyed. */
|
|
49
|
-
ngOnDestroy(): void;
|
|
50
|
-
/** Toggles the expanded state of the accordion item. */
|
|
51
|
-
toggle(): void;
|
|
52
|
-
/** Sets the expanded state of the accordion item to false. */
|
|
53
|
-
close(): void;
|
|
54
|
-
/** Sets the expanded state of the accordion item to true. */
|
|
55
|
-
open(): void;
|
|
56
|
-
private _subscribeToOpenCloseAllActions;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordionItem, [{ optional: true; skipSelf: true; }, null, null]>;
|
|
58
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { "expanded": "expanded"; "disabled": "disabled"; }, { "closed": "closed"; "opened": "opened"; "destroyed": "destroyed"; "expandedChange": "expandedChange"; }, never>;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./accordion";
|
|
3
|
-
import * as i2 from "./accordion-item";
|
|
4
|
-
export declare class CdkAccordionModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordionModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkAccordionModule, [typeof i1.CdkAccordion, typeof i2.CdkAccordionItem], never, [typeof i1.CdkAccordion, typeof i2.CdkAccordionItem]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkAccordionModule>;
|
|
8
|
-
}
|
package/accordion/accordion.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
9
|
-
import { InjectionToken, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
10
|
-
import { Subject } from 'rxjs';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Injection token that can be used to reference instances of `CdkAccordion`. It serves
|
|
14
|
-
* as alternative token to the actual `CdkAccordion` class which could cause unnecessary
|
|
15
|
-
* retention of the class and its directive metadata.
|
|
16
|
-
*/
|
|
17
|
-
export declare const CDK_ACCORDION: InjectionToken<CdkAccordion>;
|
|
18
|
-
/**
|
|
19
|
-
* Directive whose purpose is to manage the expanded state of CdkAccordionItem children.
|
|
20
|
-
*/
|
|
21
|
-
export declare class CdkAccordion implements OnDestroy, OnChanges {
|
|
22
|
-
/** Emits when the state of the accordion changes */
|
|
23
|
-
readonly _stateChanges: Subject<SimpleChanges>;
|
|
24
|
-
/** Stream that emits true/false when openAll/closeAll is triggered. */
|
|
25
|
-
readonly _openCloseAllActions: Subject<boolean>;
|
|
26
|
-
/** A readonly id value to use for unique selection coordination. */
|
|
27
|
-
readonly id: string;
|
|
28
|
-
/** Whether the accordion should allow multiple expanded accordion items simultaneously. */
|
|
29
|
-
get multi(): boolean;
|
|
30
|
-
set multi(multi: BooleanInput);
|
|
31
|
-
private _multi;
|
|
32
|
-
/** Opens all enabled accordion items in an accordion where multi is enabled. */
|
|
33
|
-
openAll(): void;
|
|
34
|
-
/** Closes all enabled accordion items in an accordion where multi is enabled. */
|
|
35
|
-
closeAll(): void;
|
|
36
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
37
|
-
ngOnDestroy(): void;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordion, never>;
|
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never>;
|
|
40
|
-
}
|
package/accordion/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/accordion",
|
|
3
|
-
"fesm2020": "../fesm2020/accordion.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/accordion.mjs",
|
|
5
|
-
"esm2020": "../esm2020/accordion/accordion_public_index.mjs",
|
|
6
|
-
"typings": "./accordion_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/accordion.mjs",
|
|
8
|
-
"es2020": "../fesm2020/accordion.mjs"
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
export { CdkAccordionItem } from './accordion-item';
|
|
9
|
-
export { CdkAccordion } from './accordion';
|
|
10
|
-
export * from './accordion-module';
|