@angular/cdk 13.0.0-rc.0 → 13.0.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 +1 -1
- package/a11y/a11y_public_index.d.ts +4 -0
- package/a11y/index.d.ts +5 -1
- package/a11y/package.json +2 -2
- package/accordion/accordion_public_index.d.ts +4 -0
- package/accordion/index.d.ts +5 -1
- package/accordion/package.json +2 -2
- package/bidi/bidi_public_index.d.ts +4 -0
- package/bidi/index.d.ts +5 -1
- package/bidi/package.json +2 -2
- package/clipboard/clipboard_public_index.d.ts +4 -0
- package/clipboard/index.d.ts +5 -1
- package/clipboard/package.json +2 -2
- package/collections/collections_public_index.d.ts +4 -0
- package/collections/index.d.ts +5 -1
- package/collections/package.json +2 -2
- package/drag-drop/drag-drop_public_index.d.ts +4 -0
- package/drag-drop/index.d.ts +5 -1
- package/drag-drop/package.json +2 -2
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/a11y_public_index.mjs +5 -0
- package/esm2020/a11y/aria-describer/aria-describer.mjs +6 -7
- package/esm2020/a11y/aria-describer/aria-reference.mjs +1 -1
- package/esm2020/a11y/fake-event-detection.mjs +6 -5
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +26 -22
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +5 -5
- package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +4 -2
- package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +1 -1
- package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +2 -2
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +5 -5
- package/esm2020/a11y/focus-trap/focus-trap.mjs +36 -26
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +12 -9
- package/esm2020/a11y/index.mjs +6 -2
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +18 -16
- package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +1 -1
- package/esm2020/a11y/key-manager/list-key-manager.mjs +10 -6
- package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +1 -1
- package/esm2020/a11y/live-announcer/live-announcer.mjs +12 -12
- package/esm2020/accordion/accordion-item.mjs +21 -14
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +10 -6
- package/esm2020/accordion/accordion_public_index.mjs +5 -0
- package/esm2020/accordion/index.mjs +6 -2
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/bidi_public_index.mjs +5 -0
- package/esm2020/bidi/dir-document-token.mjs +1 -1
- package/esm2020/bidi/dir.mjs +12 -8
- package/esm2020/bidi/directionality.mjs +5 -5
- package/esm2020/bidi/index.mjs +6 -2
- package/esm2020/bidi/public-api.mjs +1 -1
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
- package/esm2020/clipboard/copy-to-clipboard.mjs +5 -5
- package/esm2020/clipboard/index.mjs +6 -2
- package/esm2020/clipboard/pending-copy.mjs +4 -3
- package/esm2020/collections/array-data-source.mjs +1 -1
- package/esm2020/collections/collection-viewer.mjs +1 -1
- package/esm2020/collections/collections_public_index.mjs +5 -0
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +2 -3
- package/esm2020/collections/index.mjs +6 -2
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +7 -4
- package/esm2020/collections/selection-model.mjs +2 -2
- package/esm2020/collections/tree-adapter.mjs +1 -1
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/collections/view-repeater.mjs +2 -2
- package/esm2020/drag-drop/client-rect.mjs +6 -4
- package/esm2020/drag-drop/clone-node.mjs +1 -1
- package/esm2020/drag-drop/directives/assertions.mjs +2 -3
- package/esm2020/drag-drop/directives/config.mjs +1 -1
- package/esm2020/drag-drop/directives/drag-handle.mjs +8 -6
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +10 -6
- package/esm2020/drag-drop/directives/drag.mjs +49 -40
- package/esm2020/drag-drop/directives/drop-list-group.mjs +7 -5
- package/esm2020/drag-drop/directives/drop-list.mjs +15 -14
- package/esm2020/drag-drop/drag-drop-module.mjs +6 -10
- package/esm2020/drag-drop/drag-drop-registry.mjs +9 -9
- package/esm2020/drag-drop/drag-drop.mjs +5 -5
- package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
- package/esm2020/drag-drop/drag-events.mjs +1 -1
- package/esm2020/drag-drop/drag-ref.mjs +56 -41
- package/esm2020/drag-drop/drag-styling.mjs +6 -6
- package/esm2020/drag-drop/drag-utils.mjs +1 -1
- package/esm2020/drag-drop/drop-list-ref.mjs +55 -37
- package/esm2020/drag-drop/index.mjs +6 -2
- package/esm2020/drag-drop/parent-position-tracker.mjs +2 -2
- package/esm2020/drag-drop/transition-duration.mjs +3 -3
- package/esm2020/keycodes/index.mjs +6 -2
- package/esm2020/keycodes/keycodes.mjs +1 -1
- package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
- package/esm2020/layout/breakpoints-observer.mjs +6 -5
- package/esm2020/layout/breakpoints.mjs +1 -1
- package/esm2020/layout/index.mjs +6 -2
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/layout_public_index.mjs +5 -0
- package/esm2020/layout/media-matcher.mjs +11 -10
- package/esm2020/observers/index.mjs +6 -2
- package/esm2020/observers/observe-content.mjs +24 -21
- package/esm2020/observers/observers_public_index.mjs +5 -0
- 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 +25 -6
- package/esm2020/overlay/fullscreen-overlay-container.mjs +6 -6
- package/esm2020/overlay/index.mjs +6 -2
- package/esm2020/overlay/overlay-config.mjs +1 -1
- package/esm2020/overlay/overlay-container.mjs +5 -6
- package/esm2020/overlay/overlay-directives.mjs +55 -30
- package/esm2020/overlay/overlay-module.mjs +6 -12
- package/esm2020/overlay/overlay-ref.mjs +2 -4
- package/esm2020/overlay/overlay.mjs +4 -4
- package/esm2020/overlay/overlay_public_index.mjs +5 -0
- package/esm2020/overlay/position/connected-position.mjs +1 -1
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +26 -27
- package/esm2020/overlay/position/global-position-strategy.mjs +9 -3
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/position/scroll-clip.mjs +1 -1
- package/esm2020/overlay/scroll/block-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/index.mjs +2 -2
- package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/features/input-types.mjs +1 -1
- package/esm2020/platform/features/passive-listeners.mjs +2 -2
- package/esm2020/platform/features/scrolling.mjs +1 -1
- package/esm2020/platform/features/shadow-dom.mjs +4 -3
- package/esm2020/platform/features/test-environment.mjs +3 -3
- package/esm2020/platform/index.mjs +6 -2
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +18 -12
- package/esm2020/platform/platform_public_index.mjs +5 -0
- package/esm2020/portal/dom-portal-outlet.mjs +3 -3
- package/esm2020/portal/index.mjs +6 -2
- package/esm2020/portal/portal-directives.mjs +40 -33
- package/esm2020/portal/portal-errors.mjs +1 -1
- package/esm2020/portal/portal-injector.mjs +1 -1
- package/esm2020/portal/portal.mjs +2 -2
- package/esm2020/portal/portal_public_index.mjs +5 -0
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +36 -16
- package/esm2020/scrolling/index.mjs +6 -2
- package/esm2020/scrolling/scroll-dispatcher.mjs +9 -10
- package/esm2020/scrolling/scrollable.mjs +8 -7
- package/esm2020/scrolling/scrolling-module.mjs +12 -27
- package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
- package/esm2020/scrolling/viewport-ruler.mjs +18 -12
- package/esm2020/scrolling/virtual-for-of.mjs +14 -18
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +1 -1
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +17 -13
- package/esm2020/stepper/index.mjs +6 -2
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +9 -9
- package/esm2020/stepper/stepper-module.mjs +8 -20
- package/esm2020/stepper/stepper.mjs +30 -19
- package/esm2020/stepper/stepper_public_index.mjs +5 -0
- package/esm2020/table/can-stick.mjs +4 -2
- package/esm2020/table/cell.mjs +33 -31
- package/esm2020/table/coalesced-style-scheduler.mjs +10 -8
- package/esm2020/table/index.mjs +6 -2
- package/esm2020/table/row.mjs +30 -30
- package/esm2020/table/sticky-position-listener.mjs +1 -1
- package/esm2020/table/sticky-styler.mjs +26 -16
- package/esm2020/table/table-errors.mjs +1 -1
- package/esm2020/table/table-module.mjs +8 -8
- package/esm2020/table/table.mjs +42 -37
- package/esm2020/table/table_public_index.mjs +5 -0
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/table/tokens.mjs +1 -1
- package/esm2020/testing/change-detection.mjs +2 -2
- package/esm2020/testing/component-harness.mjs +4 -3
- package/esm2020/testing/element-dimensions.mjs +1 -1
- package/esm2020/testing/harness-environment.mjs +15 -11
- package/esm2020/testing/protractor/protractor-element.mjs +11 -10
- package/esm2020/testing/protractor/protractor-harness-environment.mjs +2 -2
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +12 -11
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +3 -4
- package/esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs +2 -2
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/element-focus.mjs +2 -2
- package/esm2020/testing/testbed/fake-events/event-objects.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +17 -8
- package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +2 -2
- package/esm2020/testing/testbed/testbed-harness-environment.mjs +3 -3
- package/esm2020/testing/testbed/unit-test-element.mjs +4 -5
- package/esm2020/text-field/autofill.mjs +8 -8
- package/esm2020/text-field/autosize.mjs +22 -16
- package/esm2020/text-field/index.mjs +6 -2
- package/esm2020/text-field/text-field-module.mjs +5 -5
- package/esm2020/text-field/text-field_public_index.mjs +5 -0
- package/esm2020/tree/control/base-tree-control.mjs +4 -4
- package/esm2020/tree/control/flat-tree-control.mjs +1 -1
- package/esm2020/tree/control/nested-tree-control.mjs +2 -3
- package/esm2020/tree/index.mjs +6 -2
- package/esm2020/tree/nested-node.mjs +12 -10
- package/esm2020/tree/node.mjs +5 -7
- package/esm2020/tree/outlet.mjs +6 -6
- package/esm2020/tree/padding.mjs +17 -9
- package/esm2020/tree/toggle.mjs +10 -6
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +31 -19
- package/esm2020/tree/tree_public_index.mjs +5 -0
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +142 -109
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +41 -22
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +26 -14
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +22 -13
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/collections.mjs +19 -9
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +233 -177
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/keycodes.mjs +8 -0
- package/fesm2015/keycodes.mjs.map +1 -1
- package/fesm2015/layout.mjs +27 -17
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/observers.mjs +30 -19
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +149 -101
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +35 -20
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +49 -34
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +114 -95
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +57 -50
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +152 -123
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/protractor.mjs +11 -10
- package/fesm2015/testing/protractor.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs +13 -13
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +22 -14
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs +17 -12
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +39 -25
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +88 -57
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +142 -109
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +41 -22
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +26 -14
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +22 -13
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/collections.mjs +19 -9
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +233 -177
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/keycodes.mjs +8 -0
- package/fesm2020/keycodes.mjs.map +1 -1
- package/fesm2020/layout.mjs +27 -17
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/observers.mjs +30 -19
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +149 -101
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +35 -20
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +49 -34
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +114 -95
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +57 -50
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +152 -123
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/protractor.mjs +11 -10
- package/fesm2020/testing/protractor.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs +13 -13
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +22 -14
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs +18 -13
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +39 -25
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +88 -57
- package/fesm2020/tree.mjs.map +1 -1
- package/keycodes/index.d.ts +5 -1
- package/keycodes/keycodes_public_index.d.ts +4 -0
- package/keycodes/package.json +2 -2
- package/layout/index.d.ts +5 -1
- package/layout/layout_public_index.d.ts +4 -0
- package/layout/package.json +2 -2
- package/observers/index.d.ts +5 -1
- package/observers/observers_public_index.d.ts +4 -0
- package/observers/package.json +2 -2
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +3 -0
- package/overlay/index.d.ts +5 -1
- package/overlay/overlay_public_index.d.ts +4 -0
- package/overlay/package.json +2 -2
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
- package/overlay/scroll/index.d.ts +1 -1
- package/package.json +38 -38
- package/platform/index.d.ts +5 -1
- package/platform/package.json +2 -2
- package/platform/platform_public_index.d.ts +4 -0
- package/portal/index.d.ts +5 -1
- package/portal/package.json +2 -2
- package/portal/portal_public_index.d.ts +4 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-add/package-config.js +4 -2
- package/schematics/ng-add/package-config.mjs +4 -2
- package/schematics/ng-add/schema.js +1 -1
- package/schematics/ng-add/schema.mjs +1 -1
- package/schematics/ng-generate/drag-drop/index.js +2 -2
- package/schematics/ng-generate/drag-drop/index.mjs +2 -2
- package/schematics/ng-update/data/attribute-selectors.js +7 -5
- package/schematics/ng-update/data/attribute-selectors.mjs +7 -5
- package/schematics/ng-update/data/class-names.js +13 -11
- package/schematics/ng-update/data/class-names.mjs +13 -11
- package/schematics/ng-update/data/constructor-checks.js +28 -20
- package/schematics/ng-update/data/constructor-checks.mjs +28 -20
- package/schematics/ng-update/data/css-selectors.js +2 -2
- package/schematics/ng-update/data/css-selectors.mjs +2 -2
- package/schematics/ng-update/data/element-selectors.js +2 -2
- package/schematics/ng-update/data/element-selectors.mjs +2 -2
- package/schematics/ng-update/data/input-names.js +40 -16
- package/schematics/ng-update/data/input-names.mjs +40 -16
- package/schematics/ng-update/data/method-call-checks.js +32 -18
- package/schematics/ng-update/data/method-call-checks.mjs +32 -18
- package/schematics/ng-update/data/output-names.js +8 -6
- package/schematics/ng-update/data/output-names.mjs +8 -6
- package/schematics/ng-update/data/property-names.js +40 -32
- package/schematics/ng-update/data/property-names.mjs +40 -32
- package/schematics/ng-update/devkit-migration-rule.js +4 -3
- package/schematics/ng-update/devkit-migration-rule.mjs +4 -3
- package/schematics/ng-update/devkit-migration.d.ts +3 -2
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.mjs +1 -1
- package/schematics/ng-update/html-parsing/elements.js +1 -1
- package/schematics/ng-update/html-parsing/elements.mjs +1 -1
- package/schematics/ng-update/index.js +2 -4
- package/schematics/ng-update/index.mjs +2 -4
- package/schematics/ng-update/migrations/attribute-selectors.js +7 -3
- package/schematics/ng-update/migrations/attribute-selectors.mjs +7 -3
- package/schematics/ng-update/migrations/class-inheritance.js +1 -1
- package/schematics/ng-update/migrations/class-inheritance.mjs +1 -1
- package/schematics/ng-update/migrations/class-names.js +3 -2
- package/schematics/ng-update/migrations/class-names.mjs +3 -2
- package/schematics/ng-update/migrations/constructor-signature.js +15 -12
- package/schematics/ng-update/migrations/constructor-signature.mjs +15 -12
- package/schematics/ng-update/migrations/css-selectors.js +3 -2
- package/schematics/ng-update/migrations/css-selectors.mjs +3 -2
- package/schematics/ng-update/migrations/element-selectors.js +3 -2
- package/schematics/ng-update/migrations/element-selectors.mjs +3 -2
- package/schematics/ng-update/migrations/input-names.js +4 -5
- package/schematics/ng-update/migrations/input-names.mjs +4 -5
- package/schematics/ng-update/migrations/method-call-arguments.js +3 -2
- package/schematics/ng-update/migrations/method-call-arguments.mjs +3 -2
- package/schematics/ng-update/migrations/misc-template.js +2 -2
- package/schematics/ng-update/migrations/misc-template.mjs +2 -2
- package/schematics/ng-update/migrations/output-names.js +4 -5
- package/schematics/ng-update/migrations/output-names.mjs +4 -5
- package/schematics/ng-update/migrations/property-names.js +3 -2
- package/schematics/ng-update/migrations/property-names.mjs +3 -2
- package/schematics/ng-update/migrations/symbol-removal.js +1 -1
- package/schematics/ng-update/migrations/symbol-removal.mjs +1 -1
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +4 -3
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +4 -3
- package/schematics/ng-update/typescript/base-types.js +1 -1
- package/schematics/ng-update/typescript/base-types.mjs +1 -1
- package/schematics/ng-update/typescript/literal.d.ts +1 -1
- package/schematics/ng-update/typescript/literal.js +1 -1
- package/schematics/ng-update/typescript/literal.mjs +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js +3 -3
- package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
- package/schematics/ng-update/upgrade-data.js +1 -1
- package/schematics/ng-update/upgrade-data.mjs +1 -1
- package/schematics/update-tool/component-resource-collector.js +2 -2
- package/schematics/update-tool/component-resource-collector.mjs +2 -2
- package/schematics/update-tool/file-system.js +1 -1
- package/schematics/update-tool/file-system.mjs +1 -1
- package/schematics/update-tool/index.d.ts +4 -1
- package/schematics/update-tool/index.js +7 -3
- package/schematics/update-tool/index.mjs +7 -3
- package/schematics/update-tool/migration.d.ts +1 -1
- package/schematics/update-tool/migration.js +1 -1
- package/schematics/update-tool/migration.mjs +1 -1
- package/schematics/update-tool/target-version.js +1 -1
- package/schematics/update-tool/target-version.mjs +1 -1
- package/schematics/update-tool/utils/decorators.js +7 -3
- package/schematics/update-tool/utils/decorators.mjs +7 -3
- package/schematics/update-tool/utils/functions.js +1 -1
- package/schematics/update-tool/utils/functions.mjs +1 -1
- package/schematics/update-tool/utils/imports.js +2 -2
- package/schematics/update-tool/utils/imports.mjs +2 -2
- package/schematics/update-tool/utils/line-mappings.js +1 -1
- package/schematics/update-tool/utils/line-mappings.mjs +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.mjs +1 -1
- package/schematics/update-tool/utils/property-name.js +1 -1
- package/schematics/update-tool/utils/property-name.mjs +1 -1
- package/schematics/update-tool/utils/virtual-host.js +2 -2
- package/schematics/update-tool/utils/virtual-host.mjs +2 -2
- package/schematics/update-tool/version-changes.js +1 -1
- package/schematics/update-tool/version-changes.mjs +1 -1
- package/schematics/utils/ast/ng-module-imports.js +5 -3
- package/schematics/utils/ast/ng-module-imports.mjs +5 -3
- package/schematics/utils/ast.js +1 -1
- package/schematics/utils/ast.mjs +1 -1
- package/schematics/utils/build-component.js +12 -18
- package/schematics/utils/build-component.mjs +12 -18
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/get-project.mjs +1 -1
- package/schematics/utils/html-manipulation.js +6 -5
- package/schematics/utils/html-manipulation.mjs +6 -5
- package/schematics/utils/parse5-element.js +9 -10
- package/schematics/utils/parse5-element.mjs +9 -10
- package/schematics/utils/project-main-file.js +1 -1
- package/schematics/utils/project-main-file.mjs +1 -1
- package/schematics/utils/project-style-file.js +3 -5
- package/schematics/utils/project-style-file.mjs +3 -5
- package/schematics/utils/project-targets.js +1 -1
- package/schematics/utils/project-targets.mjs +1 -1
- package/schematics/utils/project-tsconfig-paths.js +2 -2
- package/schematics/utils/project-tsconfig-paths.mjs +2 -2
- package/schematics/utils/schematic-options.js +7 -5
- package/schematics/utils/schematic-options.mjs +7 -5
- package/schematics/utils/vendored-ast-utils/index.js +15 -16
- package/schematics/utils/vendored-ast-utils/index.mjs +15 -16
- package/scrolling/index.d.ts +5 -1
- package/scrolling/package.json +2 -2
- package/scrolling/scrolling_public_index.d.ts +4 -0
- package/stepper/index.d.ts +5 -1
- package/stepper/package.json +2 -2
- package/stepper/stepper_public_index.d.ts +4 -0
- package/table/index.d.ts +5 -1
- package/table/package.json +2 -2
- package/table/table_public_index.d.ts +4 -0
- package/testing/testbed/proxy-zone-types.d.ts +1 -1
- package/testing/testbed/zone-types.d.ts +1 -1
- package/text-field/index.d.ts +5 -1
- package/text-field/package.json +2 -2
- package/text-field/text-field_public_index.d.ts +4 -0
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/nested-tree-control.d.ts +2 -2
- package/tree/index.d.ts +5 -1
- package/tree/package.json +2 -2
- package/tree/tree_public_index.d.ts +4 -0
package/fesm2020/a11y.mjs
CHANGED
|
@@ -184,8 +184,7 @@ class AriaDescriber {
|
|
|
184
184
|
/** Removes all cdk-describedby messages that are hosted through the element. */
|
|
185
185
|
_removeCdkDescribedByReferenceIds(element) {
|
|
186
186
|
// Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX
|
|
187
|
-
const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby')
|
|
188
|
-
.filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);
|
|
187
|
+
const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby').filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);
|
|
189
188
|
element.setAttribute('aria-describedby', originalReferenceIds.join(' '));
|
|
190
189
|
}
|
|
191
190
|
/**
|
|
@@ -232,16 +231,16 @@ class AriaDescriber {
|
|
|
232
231
|
const ariaLabel = element.getAttribute('aria-label');
|
|
233
232
|
// We shouldn't set descriptions if they're exactly the same as the `aria-label` of the
|
|
234
233
|
// element, because screen readers will end up reading out the same text twice in a row.
|
|
235
|
-
return trimmedMessage ?
|
|
234
|
+
return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;
|
|
236
235
|
}
|
|
237
236
|
/** Checks whether a node is an Element node. */
|
|
238
237
|
_isElementNode(element) {
|
|
239
238
|
return element.nodeType === this._document.ELEMENT_NODE;
|
|
240
239
|
}
|
|
241
240
|
}
|
|
242
|
-
AriaDescriber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
243
|
-
AriaDescriber.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
241
|
+
AriaDescriber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AriaDescriber, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
242
|
+
AriaDescriber.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AriaDescriber, providedIn: 'root' });
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AriaDescriber, decorators: [{
|
|
245
244
|
type: Injectable,
|
|
246
245
|
args: [{ providedIn: 'root' }]
|
|
247
246
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -358,15 +357,18 @@ class ListKeyManager {
|
|
|
358
357
|
* @param debounceInterval Time to wait after the last keystroke before setting the active item.
|
|
359
358
|
*/
|
|
360
359
|
withTypeAhead(debounceInterval = 200) {
|
|
361
|
-
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
362
|
-
this._items.
|
|
360
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
361
|
+
this._items.length &&
|
|
362
|
+
this._items.some(item => typeof item.getLabel !== 'function')) {
|
|
363
363
|
throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');
|
|
364
364
|
}
|
|
365
365
|
this._typeaheadSubscription.unsubscribe();
|
|
366
366
|
// Debounce the presses of non-navigational keys, collect the ones that correspond to letters
|
|
367
367
|
// and convert those letters back into a string. Afterwards find the first item that starts
|
|
368
368
|
// with that string and select it.
|
|
369
|
-
this._typeaheadSubscription = this._letterKeyStream
|
|
369
|
+
this._typeaheadSubscription = this._letterKeyStream
|
|
370
|
+
.pipe(tap(letter => this._pressedLetters.push(letter)), debounceTime(debounceInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join('')))
|
|
371
|
+
.subscribe(inputString => {
|
|
370
372
|
const items = this._getItemsArray();
|
|
371
373
|
// Start at 1 because we want to start searching at the item immediately
|
|
372
374
|
// following the current active item.
|
|
@@ -505,7 +507,8 @@ class ListKeyManager {
|
|
|
505
507
|
}
|
|
506
508
|
/** Sets the active item to a previous enabled item in the list. */
|
|
507
509
|
setPreviousItemActive() {
|
|
508
|
-
this._activeItemIndex < 0 && this._wrap
|
|
510
|
+
this._activeItemIndex < 0 && this._wrap
|
|
511
|
+
? this.setLastItemActive()
|
|
509
512
|
: this._setActiveItemByDelta(-1);
|
|
510
513
|
}
|
|
511
514
|
updateActiveItem(item) {
|
|
@@ -532,7 +535,7 @@ class ListKeyManager {
|
|
|
532
535
|
_setActiveInWrapMode(delta) {
|
|
533
536
|
const items = this._getItemsArray();
|
|
534
537
|
for (let i = 1; i <= items.length; i++) {
|
|
535
|
-
const index = (this._activeItemIndex +
|
|
538
|
+
const index = (this._activeItemIndex + delta * i + items.length) % items.length;
|
|
536
539
|
const item = items[index];
|
|
537
540
|
if (!this._skipPredicateFn(item)) {
|
|
538
541
|
this.setActiveItem(index);
|
|
@@ -748,13 +751,14 @@ class InteractivityChecker {
|
|
|
748
751
|
isFocusable(element, config) {
|
|
749
752
|
// Perform checks in order of left to most expensive.
|
|
750
753
|
// Again, naive approach that does not capture many edge cases and browser quirks.
|
|
751
|
-
return isPotentiallyFocusable(element) &&
|
|
752
|
-
|
|
754
|
+
return (isPotentiallyFocusable(element) &&
|
|
755
|
+
!this.isDisabled(element) &&
|
|
756
|
+
(config?.ignoreVisibility || this.isVisible(element)));
|
|
753
757
|
}
|
|
754
758
|
}
|
|
755
|
-
InteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
756
|
-
InteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
759
|
+
InteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InteractivityChecker, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
760
|
+
InteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });
|
|
761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InteractivityChecker, decorators: [{
|
|
758
762
|
type: Injectable,
|
|
759
763
|
args: [{ providedIn: 'root' }]
|
|
760
764
|
}], ctorParameters: function () { return [{ type: i1.Platform }]; } });
|
|
@@ -775,16 +779,17 @@ function getFrameElement(window) {
|
|
|
775
779
|
function hasGeometry(element) {
|
|
776
780
|
// Use logic from jQuery to check for an invisible element.
|
|
777
781
|
// See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12
|
|
778
|
-
return !!(element.offsetWidth ||
|
|
782
|
+
return !!(element.offsetWidth ||
|
|
783
|
+
element.offsetHeight ||
|
|
779
784
|
(typeof element.getClientRects === 'function' && element.getClientRects().length));
|
|
780
785
|
}
|
|
781
786
|
/** Gets whether an element's */
|
|
782
787
|
function isNativeFormElement(element) {
|
|
783
788
|
let nodeName = element.nodeName.toLowerCase();
|
|
784
|
-
return nodeName === 'input' ||
|
|
789
|
+
return (nodeName === 'input' ||
|
|
785
790
|
nodeName === 'select' ||
|
|
786
791
|
nodeName === 'button' ||
|
|
787
|
-
nodeName === 'textarea';
|
|
792
|
+
nodeName === 'textarea');
|
|
788
793
|
}
|
|
789
794
|
/** Gets whether an element is an `<input type="hidden">`. */
|
|
790
795
|
function isHiddenInput(element) {
|
|
@@ -826,10 +831,10 @@ function getTabIndexValue(element) {
|
|
|
826
831
|
function isPotentiallyTabbableIOS(element) {
|
|
827
832
|
let nodeName = element.nodeName.toLowerCase();
|
|
828
833
|
let inputType = nodeName === 'input' && element.type;
|
|
829
|
-
return inputType === 'text'
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
834
|
+
return (inputType === 'text' ||
|
|
835
|
+
inputType === 'password' ||
|
|
836
|
+
nodeName === 'select' ||
|
|
837
|
+
nodeName === 'textarea');
|
|
833
838
|
}
|
|
834
839
|
/**
|
|
835
840
|
* Gets whether an element is potentially focusable without taking current visible/disabled state
|
|
@@ -840,15 +845,15 @@ function isPotentiallyFocusable(element) {
|
|
|
840
845
|
if (isHiddenInput(element)) {
|
|
841
846
|
return false;
|
|
842
847
|
}
|
|
843
|
-
return isNativeFormElement(element) ||
|
|
848
|
+
return (isNativeFormElement(element) ||
|
|
844
849
|
isAnchorWithHref(element) ||
|
|
845
850
|
element.hasAttribute('contenteditable') ||
|
|
846
|
-
hasValidTabIndex(element);
|
|
851
|
+
hasValidTabIndex(element));
|
|
847
852
|
}
|
|
848
853
|
/** Gets the parent window of a DOM node with regards of being inside of an iframe. */
|
|
849
854
|
function getWindow(node) {
|
|
850
855
|
// ownerDocument is null if `node` itself *is* a document.
|
|
851
|
-
return node.ownerDocument && node.ownerDocument.defaultView || window;
|
|
856
|
+
return (node.ownerDocument && node.ownerDocument.defaultView) || window;
|
|
852
857
|
}
|
|
853
858
|
|
|
854
859
|
/**
|
|
@@ -884,7 +889,9 @@ class FocusTrap {
|
|
|
884
889
|
}
|
|
885
890
|
}
|
|
886
891
|
/** Whether the focus trap is active. */
|
|
887
|
-
get enabled() {
|
|
892
|
+
get enabled() {
|
|
893
|
+
return this._enabled;
|
|
894
|
+
}
|
|
888
895
|
set enabled(value) {
|
|
889
896
|
this._enabled = value;
|
|
890
897
|
if (this._startAnchor && this._endAnchor) {
|
|
@@ -974,9 +981,7 @@ class FocusTrap {
|
|
|
974
981
|
*/
|
|
975
982
|
_getRegionBoundary(bound) {
|
|
976
983
|
// Contains the deprecated version of selector, for temporary backwards comparability.
|
|
977
|
-
let markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` +
|
|
978
|
-
`[cdkFocusRegion${bound}], ` +
|
|
979
|
-
`[cdk-focus-${bound}]`);
|
|
984
|
+
let markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` + `[cdkFocusRegion${bound}], ` + `[cdk-focus-${bound}]`);
|
|
980
985
|
for (let i = 0; i < markers.length; i++) {
|
|
981
986
|
// @breaking-change 8.0.0
|
|
982
987
|
if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {
|
|
@@ -993,8 +998,9 @@ class FocusTrap {
|
|
|
993
998
|
if (bound == 'start') {
|
|
994
999
|
return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);
|
|
995
1000
|
}
|
|
996
|
-
return markers.length
|
|
997
|
-
markers[markers.length - 1]
|
|
1001
|
+
return markers.length
|
|
1002
|
+
? markers[markers.length - 1]
|
|
1003
|
+
: this._getLastTabbableElement(this._element);
|
|
998
1004
|
}
|
|
999
1005
|
/**
|
|
1000
1006
|
* Focuses the element that should be focused when the focus trap is initialized.
|
|
@@ -1002,8 +1008,7 @@ class FocusTrap {
|
|
|
1002
1008
|
*/
|
|
1003
1009
|
focusInitialElement(options) {
|
|
1004
1010
|
// Contains the deprecated version of selector, for temporary backwards comparability.
|
|
1005
|
-
const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` +
|
|
1006
|
-
`[cdkFocusInitial]`);
|
|
1011
|
+
const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` + `[cdkFocusInitial]`);
|
|
1007
1012
|
if (redirectToElement) {
|
|
1008
1013
|
// @breaking-change 8.0.0
|
|
1009
1014
|
if (redirectToElement.hasAttribute(`cdk-focus-initial`)) {
|
|
@@ -1062,9 +1067,9 @@ class FocusTrap {
|
|
|
1062
1067
|
}
|
|
1063
1068
|
const children = root.children;
|
|
1064
1069
|
for (let i = 0; i < children.length; i++) {
|
|
1065
|
-
const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE
|
|
1066
|
-
this._getFirstTabbableElement(children[i])
|
|
1067
|
-
null;
|
|
1070
|
+
const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE
|
|
1071
|
+
? this._getFirstTabbableElement(children[i])
|
|
1072
|
+
: null;
|
|
1068
1073
|
if (tabbableChild) {
|
|
1069
1074
|
return tabbableChild;
|
|
1070
1075
|
}
|
|
@@ -1079,9 +1084,9 @@ class FocusTrap {
|
|
|
1079
1084
|
// Iterate in reverse DOM order.
|
|
1080
1085
|
const children = root.children;
|
|
1081
1086
|
for (let i = children.length - 1; i >= 0; i--) {
|
|
1082
|
-
const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE
|
|
1083
|
-
this._getLastTabbableElement(children[i])
|
|
1084
|
-
null;
|
|
1087
|
+
const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE
|
|
1088
|
+
? this._getLastTabbableElement(children[i])
|
|
1089
|
+
: null;
|
|
1085
1090
|
if (tabbableChild) {
|
|
1086
1091
|
return tabbableChild;
|
|
1087
1092
|
}
|
|
@@ -1149,9 +1154,9 @@ class FocusTrapFactory {
|
|
|
1149
1154
|
return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);
|
|
1150
1155
|
}
|
|
1151
1156
|
}
|
|
1152
|
-
FocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1153
|
-
FocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
1154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1157
|
+
FocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1158
|
+
FocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });
|
|
1159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapFactory, decorators: [{
|
|
1155
1160
|
type: Injectable,
|
|
1156
1161
|
args: [{ providedIn: 'root' }]
|
|
1157
1162
|
}], ctorParameters: function () { return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -1173,14 +1178,22 @@ class CdkTrapFocus {
|
|
|
1173
1178
|
this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);
|
|
1174
1179
|
}
|
|
1175
1180
|
/** Whether the focus trap is active. */
|
|
1176
|
-
get enabled() {
|
|
1177
|
-
|
|
1181
|
+
get enabled() {
|
|
1182
|
+
return this.focusTrap.enabled;
|
|
1183
|
+
}
|
|
1184
|
+
set enabled(value) {
|
|
1185
|
+
this.focusTrap.enabled = coerceBooleanProperty(value);
|
|
1186
|
+
}
|
|
1178
1187
|
/**
|
|
1179
1188
|
* Whether the directive should automatically move focus into the trapped region upon
|
|
1180
1189
|
* initialization and return focus to the previous activeElement upon destruction.
|
|
1181
1190
|
*/
|
|
1182
|
-
get autoCapture() {
|
|
1183
|
-
|
|
1191
|
+
get autoCapture() {
|
|
1192
|
+
return this._autoCapture;
|
|
1193
|
+
}
|
|
1194
|
+
set autoCapture(value) {
|
|
1195
|
+
this._autoCapture = coerceBooleanProperty(value);
|
|
1196
|
+
}
|
|
1184
1197
|
ngOnDestroy() {
|
|
1185
1198
|
this.focusTrap.destroy();
|
|
1186
1199
|
// If we stored a previously focused element when using autoCapture, return focus to that
|
|
@@ -1203,7 +1216,9 @@ class CdkTrapFocus {
|
|
|
1203
1216
|
}
|
|
1204
1217
|
ngOnChanges(changes) {
|
|
1205
1218
|
const autoCaptureChange = changes['autoCapture'];
|
|
1206
|
-
if (autoCaptureChange &&
|
|
1219
|
+
if (autoCaptureChange &&
|
|
1220
|
+
!autoCaptureChange.firstChange &&
|
|
1221
|
+
this.autoCapture &&
|
|
1207
1222
|
this.focusTrap.hasAttached()) {
|
|
1208
1223
|
this._captureFocus();
|
|
1209
1224
|
}
|
|
@@ -1213,9 +1228,9 @@ class CdkTrapFocus {
|
|
|
1213
1228
|
this.focusTrap.focusInitialElementWhenReady();
|
|
1214
1229
|
}
|
|
1215
1230
|
}
|
|
1216
|
-
CdkTrapFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1217
|
-
CdkTrapFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1231
|
+
CdkTrapFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTrapFocus, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1232
|
+
CdkTrapFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: { enabled: ["cdkTrapFocus", "enabled"], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"] }, exportAs: ["cdkTrapFocus"], usesOnChanges: true, ngImport: i0 });
|
|
1233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTrapFocus, decorators: [{
|
|
1219
1234
|
type: Directive,
|
|
1220
1235
|
args: [{
|
|
1221
1236
|
selector: '[cdkTrapFocus]',
|
|
@@ -1253,7 +1268,9 @@ class ConfigurableFocusTrap extends FocusTrap {
|
|
|
1253
1268
|
this._focusTrapManager.register(this);
|
|
1254
1269
|
}
|
|
1255
1270
|
/** Whether the FocusTrap is enabled. */
|
|
1256
|
-
get enabled() {
|
|
1271
|
+
get enabled() {
|
|
1272
|
+
return this._enabled;
|
|
1273
|
+
}
|
|
1257
1274
|
set enabled(value) {
|
|
1258
1275
|
this._enabled = value;
|
|
1259
1276
|
if (this._enabled) {
|
|
@@ -1379,7 +1396,7 @@ class FocusTrapManager {
|
|
|
1379
1396
|
*/
|
|
1380
1397
|
register(focusTrap) {
|
|
1381
1398
|
// Dedupe focusTraps that register multiple times.
|
|
1382
|
-
this._focusTrapStack = this._focusTrapStack.filter(
|
|
1399
|
+
this._focusTrapStack = this._focusTrapStack.filter(ft => ft !== focusTrap);
|
|
1383
1400
|
let stack = this._focusTrapStack;
|
|
1384
1401
|
if (stack.length) {
|
|
1385
1402
|
stack[stack.length - 1]._disable();
|
|
@@ -1403,9 +1420,9 @@ class FocusTrapManager {
|
|
|
1403
1420
|
}
|
|
1404
1421
|
}
|
|
1405
1422
|
}
|
|
1406
|
-
FocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1407
|
-
FocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
1408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1423
|
+
FocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1424
|
+
FocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });
|
|
1425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapManager, decorators: [{
|
|
1409
1426
|
type: Injectable,
|
|
1410
1427
|
args: [{ providedIn: 'root' }]
|
|
1411
1428
|
}] });
|
|
@@ -1438,9 +1455,9 @@ class ConfigurableFocusTrapFactory {
|
|
|
1438
1455
|
return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject);
|
|
1439
1456
|
}
|
|
1440
1457
|
}
|
|
1441
|
-
ConfigurableFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1442
|
-
ConfigurableFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
1443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1458
|
+
ConfigurableFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: FocusTrapManager }, { token: DOCUMENT }, { token: FOCUS_TRAP_INERT_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1459
|
+
ConfigurableFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' });
|
|
1460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{
|
|
1444
1461
|
type: Injectable,
|
|
1445
1462
|
args: [{ providedIn: 'root' }]
|
|
1446
1463
|
}], ctorParameters: function () { return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: FocusTrapManager }, { type: undefined, decorators: [{
|
|
@@ -1471,14 +1488,15 @@ function isFakeMousedownFromScreenReader(event) {
|
|
|
1471
1488
|
}
|
|
1472
1489
|
/** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */
|
|
1473
1490
|
function isFakeTouchstartFromScreenReader(event) {
|
|
1474
|
-
const touch = (event.touches && event.touches[0]) ||
|
|
1475
|
-
(event.changedTouches && event.changedTouches[0]);
|
|
1491
|
+
const touch = (event.touches && event.touches[0]) || (event.changedTouches && event.changedTouches[0]);
|
|
1476
1492
|
// A fake `touchstart` can be distinguished from a real one by looking at the `identifier`
|
|
1477
1493
|
// which is typically >= 0 on a real device versus -1 from a screen reader. Just to be safe,
|
|
1478
1494
|
// we can also look at `radiusX` and `radiusY`. This behavior was observed against a Windows 10
|
|
1479
1495
|
// device with a touch screen running NVDA v2020.4 and Firefox 85 or Chrome 88.
|
|
1480
|
-
return !!touch &&
|
|
1481
|
-
|
|
1496
|
+
return (!!touch &&
|
|
1497
|
+
touch.identifier === -1 &&
|
|
1498
|
+
(touch.radiusX == null || touch.radiusX === 1) &&
|
|
1499
|
+
(touch.radiusY == null || touch.radiusY === 1));
|
|
1482
1500
|
}
|
|
1483
1501
|
|
|
1484
1502
|
/**
|
|
@@ -1633,9 +1651,9 @@ class InputModalityDetector {
|
|
|
1633
1651
|
}
|
|
1634
1652
|
}
|
|
1635
1653
|
}
|
|
1636
|
-
InputModalityDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1637
|
-
InputModalityDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
1638
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1654
|
+
InputModalityDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InputModalityDetector, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT }, { token: INPUT_MODALITY_DETECTOR_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1655
|
+
InputModalityDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InputModalityDetector, providedIn: 'root' });
|
|
1656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InputModalityDetector, decorators: [{
|
|
1639
1657
|
type: Injectable,
|
|
1640
1658
|
args: [{ providedIn: 'root' }]
|
|
1641
1659
|
}], ctorParameters: function () { return [{ type: i1.Platform }, { type: i0.NgZone }, { type: Document, decorators: [{
|
|
@@ -1697,7 +1715,7 @@ class LiveAnnouncer {
|
|
|
1697
1715
|
clearTimeout(this._previousTimeout);
|
|
1698
1716
|
if (!politeness) {
|
|
1699
1717
|
politeness =
|
|
1700
|
-
|
|
1718
|
+
defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : 'polite';
|
|
1701
1719
|
}
|
|
1702
1720
|
if (duration == null && defaultOptions) {
|
|
1703
1721
|
duration = defaultOptions.duration;
|
|
@@ -1753,9 +1771,9 @@ class LiveAnnouncer {
|
|
|
1753
1771
|
return liveEl;
|
|
1754
1772
|
}
|
|
1755
1773
|
}
|
|
1756
|
-
LiveAnnouncer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1757
|
-
LiveAnnouncer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
1758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1774
|
+
LiveAnnouncer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: LiveAnnouncer, deps: [{ token: LIVE_ANNOUNCER_ELEMENT_TOKEN, optional: true }, { token: i0.NgZone }, { token: DOCUMENT }, { token: LIVE_ANNOUNCER_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1775
|
+
LiveAnnouncer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' });
|
|
1776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: LiveAnnouncer, decorators: [{
|
|
1759
1777
|
type: Injectable,
|
|
1760
1778
|
args: [{ providedIn: 'root' }]
|
|
1761
1779
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -1785,7 +1803,9 @@ class CdkAriaLive {
|
|
|
1785
1803
|
this._politeness = 'polite';
|
|
1786
1804
|
}
|
|
1787
1805
|
/** The aria-live politeness level to use when announcing messages. */
|
|
1788
|
-
get politeness() {
|
|
1806
|
+
get politeness() {
|
|
1807
|
+
return this._politeness;
|
|
1808
|
+
}
|
|
1789
1809
|
set politeness(value) {
|
|
1790
1810
|
this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';
|
|
1791
1811
|
if (this._politeness === 'off') {
|
|
@@ -1796,9 +1816,7 @@ class CdkAriaLive {
|
|
|
1796
1816
|
}
|
|
1797
1817
|
else if (!this._subscription) {
|
|
1798
1818
|
this._subscription = this._ngZone.runOutsideAngular(() => {
|
|
1799
|
-
return this._contentObserver
|
|
1800
|
-
.observe(this._elementRef)
|
|
1801
|
-
.subscribe(() => {
|
|
1819
|
+
return this._contentObserver.observe(this._elementRef).subscribe(() => {
|
|
1802
1820
|
// Note that we use textContent here, rather than innerText, in order to avoid a reflow.
|
|
1803
1821
|
const elementText = this._elementRef.nativeElement.textContent;
|
|
1804
1822
|
// The `MutationObserver` fires also for attribute
|
|
@@ -1817,9 +1835,9 @@ class CdkAriaLive {
|
|
|
1817
1835
|
}
|
|
1818
1836
|
}
|
|
1819
1837
|
}
|
|
1820
|
-
CdkAriaLive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1821
|
-
CdkAriaLive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1838
|
+
CdkAriaLive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkAriaLive, deps: [{ token: i0.ElementRef }, { token: LiveAnnouncer }, { token: i1$1.ContentObserver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1839
|
+
CdkAriaLive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkAriaLive, selector: "[cdkAriaLive]", inputs: { politeness: ["cdkAriaLive", "politeness"] }, exportAs: ["cdkAriaLive"], ngImport: i0 });
|
|
1840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkAriaLive, decorators: [{
|
|
1823
1841
|
type: Directive,
|
|
1824
1842
|
args: [{
|
|
1825
1843
|
selector: '[cdkAriaLive]',
|
|
@@ -1845,7 +1863,7 @@ const FOCUS_MONITOR_DEFAULT_OPTIONS = new InjectionToken('cdk-focus-monitor-defa
|
|
|
1845
1863
|
*/
|
|
1846
1864
|
const captureEventListenerOptions = normalizePassiveListenerOptions({
|
|
1847
1865
|
passive: true,
|
|
1848
|
-
capture: true
|
|
1866
|
+
capture: true,
|
|
1849
1867
|
});
|
|
1850
1868
|
/** Monitors mouse and keyboard events to determine the cause of focus events. */
|
|
1851
1869
|
class FocusMonitor {
|
|
@@ -1883,7 +1901,7 @@ class FocusMonitor {
|
|
|
1883
1901
|
// Make a note of when the window regains focus, so we can
|
|
1884
1902
|
// restore the origin info for the focused element.
|
|
1885
1903
|
this._windowFocused = true;
|
|
1886
|
-
this._windowFocusTimeoutId = setTimeout(() => this._windowFocused = false);
|
|
1904
|
+
this._windowFocusTimeoutId = setTimeout(() => (this._windowFocused = false));
|
|
1887
1905
|
};
|
|
1888
1906
|
/** Subject for stopping our InputModalityDetector subscription. */
|
|
1889
1907
|
this._stopInputModalityDetector = new Subject();
|
|
@@ -1927,7 +1945,7 @@ class FocusMonitor {
|
|
|
1927
1945
|
const info = {
|
|
1928
1946
|
checkChildren: checkChildren,
|
|
1929
1947
|
subject: new Subject(),
|
|
1930
|
-
rootNode
|
|
1948
|
+
rootNode,
|
|
1931
1949
|
};
|
|
1932
1950
|
this._elementInfo.set(nativeElement, info);
|
|
1933
1951
|
this._registerGlobalListeners(info);
|
|
@@ -1950,8 +1968,7 @@ class FocusMonitor {
|
|
|
1950
1968
|
// which means that the focus classes won't be updated. If that's the case, update the classes
|
|
1951
1969
|
// directly without waiting for an event.
|
|
1952
1970
|
if (nativeElement === focusedElement) {
|
|
1953
|
-
this._getClosestElementsInfo(nativeElement)
|
|
1954
|
-
.forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));
|
|
1971
|
+
this._getClosestElementsInfo(nativeElement).forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));
|
|
1955
1972
|
}
|
|
1956
1973
|
else {
|
|
1957
1974
|
this._setOrigin(origin);
|
|
@@ -1993,7 +2010,7 @@ class FocusMonitor {
|
|
|
1993
2010
|
// events).
|
|
1994
2011
|
//
|
|
1995
2012
|
// Because we can't distinguish between these two cases, we default to setting `program`.
|
|
1996
|
-
return
|
|
2013
|
+
return this._windowFocused && this._lastFocusOrigin ? this._lastFocusOrigin : 'program';
|
|
1997
2014
|
}
|
|
1998
2015
|
/**
|
|
1999
2016
|
* Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a
|
|
@@ -2014,8 +2031,8 @@ class FocusMonitor {
|
|
|
2014
2031
|
// #child, #parent is programmatically focused. This code will attribute the focus to touch
|
|
2015
2032
|
// instead of program. This is a relatively minor edge-case that can be worked around by using
|
|
2016
2033
|
// focusVia(parent, 'program') to focus #parent.
|
|
2017
|
-
return (this._detectionMode === 1 /* EVENTUAL */
|
|
2018
|
-
!!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget);
|
|
2034
|
+
return (this._detectionMode === 1 /* EVENTUAL */ ||
|
|
2035
|
+
!!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget));
|
|
2019
2036
|
}
|
|
2020
2037
|
/**
|
|
2021
2038
|
* Sets the focus classes on the element based on the given focus origin.
|
|
@@ -2039,7 +2056,7 @@ class FocusMonitor {
|
|
|
2039
2056
|
_setOrigin(origin, isFromInteraction = false) {
|
|
2040
2057
|
this._ngZone.runOutsideAngular(() => {
|
|
2041
2058
|
this._origin = origin;
|
|
2042
|
-
this._originFromTouchInteraction =
|
|
2059
|
+
this._originFromTouchInteraction = origin === 'touch' && isFromInteraction;
|
|
2043
2060
|
// If we're in IMMEDIATE mode, reset the origin at the next tick (or in `TOUCH_BUFFER_MS` ms
|
|
2044
2061
|
// for a touch event). We reset the origin at the next tick because Firefox focuses one tick
|
|
2045
2062
|
// after the interaction event. We wait `TOUCH_BUFFER_MS` ms before resetting the origin for
|
|
@@ -2048,7 +2065,7 @@ class FocusMonitor {
|
|
|
2048
2065
|
if (this._detectionMode === 0 /* IMMEDIATE */) {
|
|
2049
2066
|
clearTimeout(this._originTimeoutId);
|
|
2050
2067
|
const ms = this._originFromTouchInteraction ? TOUCH_BUFFER_MS : 1;
|
|
2051
|
-
this._originTimeoutId = setTimeout(() => this._origin = null, ms);
|
|
2068
|
+
this._originTimeoutId = setTimeout(() => (this._origin = null), ms);
|
|
2052
2069
|
}
|
|
2053
2070
|
});
|
|
2054
2071
|
}
|
|
@@ -2080,8 +2097,10 @@ class FocusMonitor {
|
|
|
2080
2097
|
// If we are counting child-element-focus as focused, make sure that we aren't just blurring in
|
|
2081
2098
|
// order to focus another child of the monitored element.
|
|
2082
2099
|
const elementInfo = this._elementInfo.get(element);
|
|
2083
|
-
if (!elementInfo ||
|
|
2084
|
-
|
|
2100
|
+
if (!elementInfo ||
|
|
2101
|
+
(elementInfo.checkChildren &&
|
|
2102
|
+
event.relatedTarget instanceof Node &&
|
|
2103
|
+
element.contains(event.relatedTarget))) {
|
|
2085
2104
|
return;
|
|
2086
2105
|
}
|
|
2087
2106
|
this._setClasses(element);
|
|
@@ -2114,7 +2133,9 @@ class FocusMonitor {
|
|
|
2114
2133
|
// The InputModalityDetector is also just a collection of global listeners.
|
|
2115
2134
|
this._inputModalityDetector.modalityDetected
|
|
2116
2135
|
.pipe(takeUntil(this._stopInputModalityDetector))
|
|
2117
|
-
.subscribe(modality => {
|
|
2136
|
+
.subscribe(modality => {
|
|
2137
|
+
this._setOrigin(modality, true /* isFromInteraction */);
|
|
2138
|
+
});
|
|
2118
2139
|
}
|
|
2119
2140
|
}
|
|
2120
2141
|
_removeGlobalListeners(elementInfo) {
|
|
@@ -2162,9 +2183,9 @@ class FocusMonitor {
|
|
|
2162
2183
|
return results;
|
|
2163
2184
|
}
|
|
2164
2185
|
}
|
|
2165
|
-
FocusMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2166
|
-
FocusMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2186
|
+
FocusMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusMonitor, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: InputModalityDetector }, { token: DOCUMENT, optional: true }, { token: FOCUS_MONITOR_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2187
|
+
FocusMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusMonitor, providedIn: 'root' });
|
|
2188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusMonitor, decorators: [{
|
|
2168
2189
|
type: Injectable,
|
|
2169
2190
|
args: [{ providedIn: 'root' }]
|
|
2170
2191
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.Platform }, { type: InputModalityDetector }, { type: undefined, decorators: [{
|
|
@@ -2195,7 +2216,8 @@ class CdkMonitorFocus {
|
|
|
2195
2216
|
}
|
|
2196
2217
|
ngAfterViewInit() {
|
|
2197
2218
|
const element = this._elementRef.nativeElement;
|
|
2198
|
-
this._monitorSubscription = this._focusMonitor
|
|
2219
|
+
this._monitorSubscription = this._focusMonitor
|
|
2220
|
+
.monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus'))
|
|
2199
2221
|
.subscribe(origin => this.cdkFocusChange.emit(origin));
|
|
2200
2222
|
}
|
|
2201
2223
|
ngOnDestroy() {
|
|
@@ -2205,9 +2227,9 @@ class CdkMonitorFocus {
|
|
|
2205
2227
|
}
|
|
2206
2228
|
}
|
|
2207
2229
|
}
|
|
2208
|
-
CdkMonitorFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2209
|
-
CdkMonitorFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2230
|
+
CdkMonitorFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkMonitorFocus, deps: [{ token: i0.ElementRef }, { token: FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2231
|
+
CdkMonitorFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: { cdkFocusChange: "cdkFocusChange" }, ngImport: i0 });
|
|
2232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkMonitorFocus, decorators: [{
|
|
2211
2233
|
type: Directive,
|
|
2212
2234
|
args: [{
|
|
2213
2235
|
selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
|
|
@@ -2262,13 +2284,16 @@ class HighContrastModeDetector {
|
|
|
2262
2284
|
// via the document so we can fake it in tests. Note that we have extra null checks, because
|
|
2263
2285
|
// this logic will likely run during app bootstrap and throwing can break the entire app.
|
|
2264
2286
|
const documentWindow = this._document.defaultView || window;
|
|
2265
|
-
const computedStyle =
|
|
2266
|
-
documentWindow.getComputedStyle(testElement)
|
|
2267
|
-
|
|
2287
|
+
const computedStyle = documentWindow && documentWindow.getComputedStyle
|
|
2288
|
+
? documentWindow.getComputedStyle(testElement)
|
|
2289
|
+
: null;
|
|
2290
|
+
const computedColor = ((computedStyle && computedStyle.backgroundColor) || '').replace(/ /g, '');
|
|
2268
2291
|
testElement.remove();
|
|
2269
2292
|
switch (computedColor) {
|
|
2270
|
-
case 'rgb(0,0,0)':
|
|
2271
|
-
|
|
2293
|
+
case 'rgb(0,0,0)':
|
|
2294
|
+
return 2 /* WHITE_ON_BLACK */;
|
|
2295
|
+
case 'rgb(255,255,255)':
|
|
2296
|
+
return 1 /* BLACK_ON_WHITE */;
|
|
2272
2297
|
}
|
|
2273
2298
|
return 0 /* NONE */;
|
|
2274
2299
|
}
|
|
@@ -2293,9 +2318,9 @@ class HighContrastModeDetector {
|
|
|
2293
2318
|
}
|
|
2294
2319
|
}
|
|
2295
2320
|
}
|
|
2296
|
-
HighContrastModeDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2297
|
-
HighContrastModeDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2321
|
+
HighContrastModeDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HighContrastModeDetector, deps: [{ token: i1.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2322
|
+
HighContrastModeDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' });
|
|
2323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HighContrastModeDetector, decorators: [{
|
|
2299
2324
|
type: Injectable,
|
|
2300
2325
|
args: [{ providedIn: 'root' }]
|
|
2301
2326
|
}], ctorParameters: function () { return [{ type: i1.Platform }, { type: undefined, decorators: [{
|
|
@@ -2315,10 +2340,10 @@ class A11yModule {
|
|
|
2315
2340
|
highContrastModeDetector._applyBodyHighContrastModeCssClasses();
|
|
2316
2341
|
}
|
|
2317
2342
|
}
|
|
2318
|
-
A11yModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2319
|
-
A11yModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
2320
|
-
A11yModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
2321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2343
|
+
A11yModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, deps: [{ token: HighContrastModeDetector }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2344
|
+
A11yModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], imports: [PlatformModule, ObserversModule], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] });
|
|
2345
|
+
A11yModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, imports: [[PlatformModule, ObserversModule]] });
|
|
2346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, decorators: [{
|
|
2322
2347
|
type: NgModule,
|
|
2323
2348
|
args: [{
|
|
2324
2349
|
imports: [PlatformModule, ObserversModule],
|
|
@@ -2335,6 +2360,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2335
2360
|
* found in the LICENSE file at https://angular.io/license
|
|
2336
2361
|
*/
|
|
2337
2362
|
|
|
2363
|
+
/**
|
|
2364
|
+
* @license
|
|
2365
|
+
* Copyright Google LLC All Rights Reserved.
|
|
2366
|
+
*
|
|
2367
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
2368
|
+
* found in the LICENSE file at https://angular.io/license
|
|
2369
|
+
*/
|
|
2370
|
+
|
|
2338
2371
|
/**
|
|
2339
2372
|
* Generated bundle index. Do not edit.
|
|
2340
2373
|
*/
|