@angular/cdk 13.0.0-next.8 → 13.0.0-rc.3
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 -35
- 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 +15 -6
- package/schematics/ng-generate/drag-drop/index.mjs +15 -6
- 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 +16 -6
- package/schematics/ng-update/devkit-migration-rule.mjs +16 -6
- 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 +3 -2
- package/schematics/ng-update/html-parsing/elements.mjs +3 -2
- package/schematics/ng-update/index.js +11 -9
- package/schematics/ng-update/index.mjs +11 -9
- 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 +3 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +3 -2
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.d.ts +14 -0
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +38 -0
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +38 -0
- 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 +22 -11
- package/schematics/utils/ast.mjs +22 -11
- package/schematics/utils/build-component.js +25 -26
- package/schematics/utils/build-component.mjs +25 -26
- 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-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- 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 +4 -3
- package/schematics/utils/project-targets.mjs +4 -3
- package/schematics/utils/project-tsconfig-paths.js +28 -16
- package/schematics/utils/project-tsconfig-paths.mjs +28 -16
- 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/overlay.mjs
CHANGED
|
@@ -320,9 +320,9 @@ class ScrollStrategyOptions {
|
|
|
320
320
|
this._document = document;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
ScrollStrategyOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
324
|
-
ScrollStrategyOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
323
|
+
ScrollStrategyOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollStrategyOptions, deps: [{ token: i1.ScrollDispatcher }, { token: i1.ViewportRuler }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
324
|
+
ScrollStrategyOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollStrategyOptions, providedIn: 'root' });
|
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollStrategyOptions, decorators: [{
|
|
326
326
|
type: Injectable,
|
|
327
327
|
args: [{ providedIn: 'root' }]
|
|
328
328
|
}], ctorParameters: function () { return [{ type: i1.ScrollDispatcher }, { type: i1.ViewportRuler }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -514,9 +514,9 @@ class BaseOverlayDispatcher {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
BaseOverlayDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
518
|
-
BaseOverlayDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
517
|
+
BaseOverlayDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: BaseOverlayDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
518
|
+
BaseOverlayDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: BaseOverlayDispatcher, providedIn: 'root' });
|
|
519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: BaseOverlayDispatcher, decorators: [{
|
|
520
520
|
type: Injectable,
|
|
521
521
|
args: [{ providedIn: 'root' }]
|
|
522
522
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -573,9 +573,9 @@ class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
OverlayKeyboardDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
577
|
-
OverlayKeyboardDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
576
|
+
OverlayKeyboardDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayKeyboardDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
577
|
+
OverlayKeyboardDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayKeyboardDispatcher, providedIn: 'root' });
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayKeyboardDispatcher, decorators: [{
|
|
579
579
|
type: Injectable,
|
|
580
580
|
args: [{ providedIn: 'root' }]
|
|
581
581
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -600,9 +600,24 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
600
600
|
super(document);
|
|
601
601
|
this._platform = _platform;
|
|
602
602
|
this._cursorStyleIsSet = false;
|
|
603
|
+
/** Store pointerdown event target to track origin of click. */
|
|
604
|
+
this._pointerDownListener = (event) => {
|
|
605
|
+
this._pointerDownEventTarget = _getEventTarget(event);
|
|
606
|
+
};
|
|
603
607
|
/** Click event listener that will be attached to the body propagate phase. */
|
|
604
608
|
this._clickListener = (event) => {
|
|
605
609
|
const target = _getEventTarget(event);
|
|
610
|
+
// In case of a click event, we want to check the origin of the click
|
|
611
|
+
// (e.g. in case where a user starts a click inside the overlay and
|
|
612
|
+
// releases the click outside of it).
|
|
613
|
+
// This is done by using the event target of the preceding pointerdown event.
|
|
614
|
+
// Every click event caused by a pointer device has a preceding pointerdown
|
|
615
|
+
// event, unless the click was programmatically triggered (e.g. in a unit test).
|
|
616
|
+
const origin = event.type === 'click' && this._pointerDownEventTarget
|
|
617
|
+
? this._pointerDownEventTarget : target;
|
|
618
|
+
// Reset the stored pointerdown event target, to avoid having it interfere
|
|
619
|
+
// in subsequent events.
|
|
620
|
+
this._pointerDownEventTarget = null;
|
|
606
621
|
// We copy the array because the original may be modified asynchronously if the
|
|
607
622
|
// outsidePointerEvents listener decides to detach overlays resulting in index errors inside
|
|
608
623
|
// the for loop.
|
|
@@ -617,8 +632,10 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
617
632
|
continue;
|
|
618
633
|
}
|
|
619
634
|
// If it's a click inside the overlay, just break - we should do nothing
|
|
620
|
-
// If it's an outside click
|
|
621
|
-
|
|
635
|
+
// If it's an outside click (both origin and target of the click) dispatch the mouse event,
|
|
636
|
+
// and proceed with the next overlay
|
|
637
|
+
if (overlayRef.overlayElement.contains(target) ||
|
|
638
|
+
overlayRef.overlayElement.contains(origin)) {
|
|
622
639
|
break;
|
|
623
640
|
}
|
|
624
641
|
overlayRef._outsidePointerEvents.next(event);
|
|
@@ -636,6 +653,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
636
653
|
// https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
|
|
637
654
|
if (!this._isAttached) {
|
|
638
655
|
const body = this._document.body;
|
|
656
|
+
body.addEventListener('pointerdown', this._pointerDownListener, true);
|
|
639
657
|
body.addEventListener('click', this._clickListener, true);
|
|
640
658
|
body.addEventListener('auxclick', this._clickListener, true);
|
|
641
659
|
body.addEventListener('contextmenu', this._clickListener, true);
|
|
@@ -653,6 +671,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
653
671
|
detach() {
|
|
654
672
|
if (this._isAttached) {
|
|
655
673
|
const body = this._document.body;
|
|
674
|
+
body.removeEventListener('pointerdown', this._pointerDownListener, true);
|
|
656
675
|
body.removeEventListener('click', this._clickListener, true);
|
|
657
676
|
body.removeEventListener('auxclick', this._clickListener, true);
|
|
658
677
|
body.removeEventListener('contextmenu', this._clickListener, true);
|
|
@@ -664,9 +683,9 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
664
683
|
}
|
|
665
684
|
}
|
|
666
685
|
}
|
|
667
|
-
OverlayOutsideClickDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
668
|
-
OverlayOutsideClickDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
686
|
+
OverlayOutsideClickDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayOutsideClickDispatcher, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
687
|
+
OverlayOutsideClickDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayOutsideClickDispatcher, providedIn: 'root' });
|
|
688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayOutsideClickDispatcher, decorators: [{
|
|
670
689
|
type: Injectable,
|
|
671
690
|
args: [{ providedIn: 'root' }]
|
|
672
691
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -712,8 +731,7 @@ class OverlayContainer {
|
|
|
712
731
|
// module or Angular starts tearing down the testing `NgModule`. See:
|
|
713
732
|
// https://github.com/angular/angular/issues/18831
|
|
714
733
|
if (this._platform.isBrowser || _isTestEnvironment()) {
|
|
715
|
-
const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform="server"], ` +
|
|
716
|
-
`.${containerClass}[platform="test"]`);
|
|
734
|
+
const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform="server"], ` + `.${containerClass}[platform="test"]`);
|
|
717
735
|
// Remove any old containers from the opposite platform.
|
|
718
736
|
// This can happen when transitioning from the server to the client.
|
|
719
737
|
for (let i = 0; i < oppositePlatformContainers.length; i++) {
|
|
@@ -741,9 +759,9 @@ class OverlayContainer {
|
|
|
741
759
|
this._containerElement = container;
|
|
742
760
|
}
|
|
743
761
|
}
|
|
744
|
-
OverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
745
|
-
OverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
762
|
+
OverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
763
|
+
OverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayContainer, providedIn: 'root' });
|
|
764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayContainer, decorators: [{
|
|
747
765
|
type: Injectable,
|
|
748
766
|
args: [{ providedIn: 'root' }]
|
|
749
767
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -830,9 +848,7 @@ class OverlayRef {
|
|
|
830
848
|
// Update the position once the zone is stable so that the overlay will be fully rendered
|
|
831
849
|
// before attempting to position it, as the position may depend on the size of the rendered
|
|
832
850
|
// content.
|
|
833
|
-
this._ngZone.onStable
|
|
834
|
-
.pipe(take(1))
|
|
835
|
-
.subscribe(() => {
|
|
851
|
+
this._ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
836
852
|
// The overlay could've been detached before the zone has stabilized.
|
|
837
853
|
if (this.hasAttached()) {
|
|
838
854
|
this.updatePosition();
|
|
@@ -1216,7 +1232,8 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1216
1232
|
}
|
|
1217
1233
|
/** Attaches this position strategy to an overlay. */
|
|
1218
1234
|
attach(overlayRef) {
|
|
1219
|
-
if (this._overlayRef &&
|
|
1235
|
+
if (this._overlayRef &&
|
|
1236
|
+
overlayRef !== this._overlayRef &&
|
|
1220
1237
|
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1221
1238
|
throw Error('This position strategy is already attached to an overlay');
|
|
1222
1239
|
}
|
|
@@ -1305,7 +1322,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1305
1322
|
position: pos,
|
|
1306
1323
|
origin: originPoint,
|
|
1307
1324
|
overlayRect,
|
|
1308
|
-
boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos)
|
|
1325
|
+
boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos),
|
|
1309
1326
|
});
|
|
1310
1327
|
continue;
|
|
1311
1328
|
}
|
|
@@ -1498,7 +1515,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1498
1515
|
if (pos.originX == 'center') {
|
|
1499
1516
|
// Note: when centering we should always use the `left`
|
|
1500
1517
|
// offset, otherwise the position will be wrong in RTL.
|
|
1501
|
-
x = originRect.left +
|
|
1518
|
+
x = originRect.left + originRect.width / 2;
|
|
1502
1519
|
}
|
|
1503
1520
|
else {
|
|
1504
1521
|
const startX = this._isRtl() ? originRect.right : originRect.left;
|
|
@@ -1507,7 +1524,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1507
1524
|
}
|
|
1508
1525
|
let y;
|
|
1509
1526
|
if (pos.originY == 'center') {
|
|
1510
|
-
y = originRect.top +
|
|
1527
|
+
y = originRect.top + originRect.height / 2;
|
|
1511
1528
|
}
|
|
1512
1529
|
else {
|
|
1513
1530
|
y = pos.originY == 'top' ? originRect.top : originRect.bottom;
|
|
@@ -1561,16 +1578,16 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1561
1578
|
}
|
|
1562
1579
|
// How much the overlay would overflow at this position, on each side.
|
|
1563
1580
|
let leftOverflow = 0 - x;
|
|
1564
|
-
let rightOverflow =
|
|
1581
|
+
let rightOverflow = x + overlay.width - viewport.width;
|
|
1565
1582
|
let topOverflow = 0 - y;
|
|
1566
|
-
let bottomOverflow =
|
|
1583
|
+
let bottomOverflow = y + overlay.height - viewport.height;
|
|
1567
1584
|
// Visible parts of the element on each axis.
|
|
1568
1585
|
let visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);
|
|
1569
1586
|
let visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);
|
|
1570
1587
|
let visibleArea = visibleWidth * visibleHeight;
|
|
1571
1588
|
return {
|
|
1572
1589
|
visibleArea,
|
|
1573
|
-
isCompletelyWithinViewport:
|
|
1590
|
+
isCompletelyWithinViewport: overlay.width * overlay.height === visibleArea,
|
|
1574
1591
|
fitsInViewportVertically: visibleHeight === overlay.height,
|
|
1575
1592
|
fitsInViewportHorizontally: visibleWidth == overlay.width,
|
|
1576
1593
|
};
|
|
@@ -1587,10 +1604,8 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1587
1604
|
const availableWidth = viewport.right - point.x;
|
|
1588
1605
|
const minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);
|
|
1589
1606
|
const minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);
|
|
1590
|
-
const verticalFit = fit.fitsInViewportVertically ||
|
|
1591
|
-
|
|
1592
|
-
const horizontalFit = fit.fitsInViewportHorizontally ||
|
|
1593
|
-
(minWidth != null && minWidth <= availableWidth);
|
|
1607
|
+
const verticalFit = fit.fitsInViewportVertically || (minHeight != null && minHeight <= availableHeight);
|
|
1608
|
+
const horizontalFit = fit.fitsInViewportHorizontally || (minWidth != null && minWidth <= availableWidth);
|
|
1594
1609
|
return verticalFit && horizontalFit;
|
|
1595
1610
|
}
|
|
1596
1611
|
return false;
|
|
@@ -1613,7 +1628,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1613
1628
|
if (this._previousPushAmount && this._positionLocked) {
|
|
1614
1629
|
return {
|
|
1615
1630
|
x: start.x + this._previousPushAmount.x,
|
|
1616
|
-
y: start.y + this._previousPushAmount.y
|
|
1631
|
+
y: start.y + this._previousPushAmount.y,
|
|
1617
1632
|
};
|
|
1618
1633
|
}
|
|
1619
1634
|
// Round the overlay rect when comparing against the
|
|
@@ -1636,13 +1651,13 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1636
1651
|
pushX = overflowLeft || -overflowRight;
|
|
1637
1652
|
}
|
|
1638
1653
|
else {
|
|
1639
|
-
pushX = start.x < this._viewportMargin ?
|
|
1654
|
+
pushX = start.x < this._viewportMargin ? viewport.left - scrollPosition.left - start.x : 0;
|
|
1640
1655
|
}
|
|
1641
1656
|
if (overlay.height <= viewport.height) {
|
|
1642
1657
|
pushY = overflowTop || -overflowBottom;
|
|
1643
1658
|
}
|
|
1644
1659
|
else {
|
|
1645
|
-
pushY = start.y < this._viewportMargin ?
|
|
1660
|
+
pushY = start.y < this._viewportMargin ? viewport.top - scrollPosition.top - start.y : 0;
|
|
1646
1661
|
}
|
|
1647
1662
|
this._previousPushAmount = { x: pushX, y: pushY };
|
|
1648
1663
|
return {
|
|
@@ -1727,15 +1742,13 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1727
1742
|
height = smallestDistanceToViewportEdge * 2;
|
|
1728
1743
|
top = origin.y - smallestDistanceToViewportEdge;
|
|
1729
1744
|
if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {
|
|
1730
|
-
top = origin.y -
|
|
1745
|
+
top = origin.y - previousHeight / 2;
|
|
1731
1746
|
}
|
|
1732
1747
|
}
|
|
1733
1748
|
// The overlay is opening 'right-ward' (the content flows to the right).
|
|
1734
|
-
const isBoundedByRightViewportEdge = (position.overlayX === 'start' && !isRtl) ||
|
|
1735
|
-
(position.overlayX === 'end' && isRtl);
|
|
1749
|
+
const isBoundedByRightViewportEdge = (position.overlayX === 'start' && !isRtl) || (position.overlayX === 'end' && isRtl);
|
|
1736
1750
|
// The overlay is opening 'left-ward' (the content flows to the left).
|
|
1737
|
-
const isBoundedByLeftViewportEdge = (position.overlayX === 'end' && !isRtl) ||
|
|
1738
|
-
(position.overlayX === 'start' && isRtl);
|
|
1751
|
+
const isBoundedByLeftViewportEdge = (position.overlayX === 'end' && !isRtl) || (position.overlayX === 'start' && isRtl);
|
|
1739
1752
|
let width, left, right;
|
|
1740
1753
|
if (isBoundedByLeftViewportEdge) {
|
|
1741
1754
|
right = viewport.width - origin.x + this._viewportMargin;
|
|
@@ -1755,7 +1768,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1755
1768
|
width = smallestDistanceToViewportEdge * 2;
|
|
1756
1769
|
left = origin.x - smallestDistanceToViewportEdge;
|
|
1757
1770
|
if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {
|
|
1758
|
-
left = origin.x -
|
|
1771
|
+
left = origin.x - previousWidth / 2;
|
|
1759
1772
|
}
|
|
1760
1773
|
}
|
|
1761
1774
|
return { top: top, left: left, bottom: bottom, right: right, width, height };
|
|
@@ -1898,7 +1911,9 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1898
1911
|
if (this._isPushed) {
|
|
1899
1912
|
overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);
|
|
1900
1913
|
}
|
|
1901
|
-
let virtualKeyboardOffset = this._overlayContainer
|
|
1914
|
+
let virtualKeyboardOffset = this._overlayContainer
|
|
1915
|
+
.getContainerElement()
|
|
1916
|
+
.getBoundingClientRect().top;
|
|
1902
1917
|
// Normally this would be zero, however when the overlay is attached to an input (e.g. in an
|
|
1903
1918
|
// autocomplete), mobile browsers will shift everything in order to put the input in the middle
|
|
1904
1919
|
// of the screen and to make space for the virtual keyboard. We need to account for this offset,
|
|
@@ -1990,8 +2005,8 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1990
2005
|
left: scrollPosition.left + this._viewportMargin,
|
|
1991
2006
|
right: scrollPosition.left + width - this._viewportMargin,
|
|
1992
2007
|
bottom: scrollPosition.top + height - this._viewportMargin,
|
|
1993
|
-
width: width -
|
|
1994
|
-
height: height -
|
|
2008
|
+
width: width - 2 * this._viewportMargin,
|
|
2009
|
+
height: height - 2 * this._viewportMargin,
|
|
1995
2010
|
};
|
|
1996
2011
|
}
|
|
1997
2012
|
/** Whether the we're dealing with an RTL context */
|
|
@@ -2066,7 +2081,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
2066
2081
|
left: origin.x,
|
|
2067
2082
|
right: origin.x + width,
|
|
2068
2083
|
height,
|
|
2069
|
-
width
|
|
2084
|
+
width,
|
|
2070
2085
|
};
|
|
2071
2086
|
}
|
|
2072
2087
|
}
|
|
@@ -2086,7 +2101,7 @@ function extendStyles(destination, source) {
|
|
|
2086
2101
|
function getPixelValue(input) {
|
|
2087
2102
|
if (typeof input !== 'number' && input != null) {
|
|
2088
2103
|
const [value, units] = input.split(cssUnitPattern);
|
|
2089
|
-
return
|
|
2104
|
+
return !units || units === 'px' ? parseFloat(value) : null;
|
|
2090
2105
|
}
|
|
2091
2106
|
return input || null;
|
|
2092
2107
|
}
|
|
@@ -2103,7 +2118,7 @@ function getRoundedBoundingClientRect(clientRect) {
|
|
|
2103
2118
|
bottom: Math.floor(clientRect.bottom),
|
|
2104
2119
|
left: Math.floor(clientRect.left),
|
|
2105
2120
|
width: Math.floor(clientRect.width),
|
|
2106
|
-
height: Math.floor(clientRect.height)
|
|
2121
|
+
height: Math.floor(clientRect.height),
|
|
2107
2122
|
};
|
|
2108
2123
|
}
|
|
2109
2124
|
|
|
@@ -2297,8 +2312,14 @@ class GlobalPositionStrategy {
|
|
|
2297
2312
|
const parent = this._overlayRef.hostElement;
|
|
2298
2313
|
const parentStyles = parent.style;
|
|
2299
2314
|
parent.classList.remove(wrapperClass);
|
|
2300
|
-
parentStyles.justifyContent =
|
|
2301
|
-
|
|
2315
|
+
parentStyles.justifyContent =
|
|
2316
|
+
parentStyles.alignItems =
|
|
2317
|
+
styles.marginTop =
|
|
2318
|
+
styles.marginBottom =
|
|
2319
|
+
styles.marginLeft =
|
|
2320
|
+
styles.marginRight =
|
|
2321
|
+
styles.position =
|
|
2322
|
+
'';
|
|
2302
2323
|
this._overlayRef = null;
|
|
2303
2324
|
this._isDisposed = true;
|
|
2304
2325
|
}
|
|
@@ -2333,9 +2354,9 @@ class OverlayPositionBuilder {
|
|
|
2333
2354
|
return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);
|
|
2334
2355
|
}
|
|
2335
2356
|
}
|
|
2336
|
-
OverlayPositionBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2337
|
-
OverlayPositionBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2357
|
+
OverlayPositionBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayPositionBuilder, deps: [{ token: i1.ViewportRuler }, { token: DOCUMENT }, { token: i1$1.Platform }, { token: OverlayContainer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2358
|
+
OverlayPositionBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayPositionBuilder, providedIn: 'root' });
|
|
2359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayPositionBuilder, decorators: [{
|
|
2339
2360
|
type: Injectable,
|
|
2340
2361
|
args: [{ providedIn: 'root' }]
|
|
2341
2362
|
}], ctorParameters: function () { return [{ type: i1.ViewportRuler }, { type: undefined, decorators: [{
|
|
@@ -2434,9 +2455,9 @@ class Overlay {
|
|
|
2434
2455
|
return new DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);
|
|
2435
2456
|
}
|
|
2436
2457
|
}
|
|
2437
|
-
Overlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2438
|
-
Overlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2458
|
+
Overlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: Overlay, deps: [{ token: ScrollStrategyOptions }, { token: OverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: OverlayPositionBuilder }, { token: OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i5.Directionality }, { token: i6.Location }, { token: OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2459
|
+
Overlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: Overlay });
|
|
2460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: Overlay, decorators: [{
|
|
2440
2461
|
type: Injectable
|
|
2441
2462
|
}], ctorParameters: function () { return [{ type: ScrollStrategyOptions }, { type: OverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: OverlayPositionBuilder }, { type: OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
2442
2463
|
type: Inject,
|
|
@@ -2456,26 +2477,26 @@ const defaultPositionList = [
|
|
|
2456
2477
|
originX: 'start',
|
|
2457
2478
|
originY: 'bottom',
|
|
2458
2479
|
overlayX: 'start',
|
|
2459
|
-
overlayY: 'top'
|
|
2480
|
+
overlayY: 'top',
|
|
2460
2481
|
},
|
|
2461
2482
|
{
|
|
2462
2483
|
originX: 'start',
|
|
2463
2484
|
originY: 'top',
|
|
2464
2485
|
overlayX: 'start',
|
|
2465
|
-
overlayY: 'bottom'
|
|
2486
|
+
overlayY: 'bottom',
|
|
2466
2487
|
},
|
|
2467
2488
|
{
|
|
2468
2489
|
originX: 'end',
|
|
2469
2490
|
originY: 'top',
|
|
2470
2491
|
overlayX: 'end',
|
|
2471
|
-
overlayY: 'bottom'
|
|
2492
|
+
overlayY: 'bottom',
|
|
2472
2493
|
},
|
|
2473
2494
|
{
|
|
2474
2495
|
originX: 'end',
|
|
2475
2496
|
originY: 'bottom',
|
|
2476
2497
|
overlayX: 'end',
|
|
2477
|
-
overlayY: 'top'
|
|
2478
|
-
}
|
|
2498
|
+
overlayY: 'top',
|
|
2499
|
+
},
|
|
2479
2500
|
];
|
|
2480
2501
|
/** Injection token that determines the scroll handling while the connected overlay is open. */
|
|
2481
2502
|
const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new InjectionToken('cdk-connected-overlay-scroll-strategy');
|
|
@@ -2490,9 +2511,9 @@ class CdkOverlayOrigin {
|
|
|
2490
2511
|
this.elementRef = elementRef;
|
|
2491
2512
|
}
|
|
2492
2513
|
}
|
|
2493
|
-
CdkOverlayOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2494
|
-
CdkOverlayOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2514
|
+
CdkOverlayOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkOverlayOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2515
|
+
CdkOverlayOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"], ngImport: i0 });
|
|
2516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkOverlayOrigin, decorators: [{
|
|
2496
2517
|
type: Directive,
|
|
2497
2518
|
args: [{
|
|
2498
2519
|
selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',
|
|
@@ -2540,7 +2561,9 @@ class CdkConnectedOverlay {
|
|
|
2540
2561
|
this.scrollStrategy = this._scrollStrategyFactory();
|
|
2541
2562
|
}
|
|
2542
2563
|
/** The offset in pixels for the overlay connection point on the x-axis */
|
|
2543
|
-
get offsetX() {
|
|
2564
|
+
get offsetX() {
|
|
2565
|
+
return this._offsetX;
|
|
2566
|
+
}
|
|
2544
2567
|
set offsetX(offsetX) {
|
|
2545
2568
|
this._offsetX = offsetX;
|
|
2546
2569
|
if (this._position) {
|
|
@@ -2548,7 +2571,9 @@ class CdkConnectedOverlay {
|
|
|
2548
2571
|
}
|
|
2549
2572
|
}
|
|
2550
2573
|
/** The offset in pixels for the overlay connection point on the y-axis */
|
|
2551
|
-
get offsetY() {
|
|
2574
|
+
get offsetY() {
|
|
2575
|
+
return this._offsetY;
|
|
2576
|
+
}
|
|
2552
2577
|
set offsetY(offsetY) {
|
|
2553
2578
|
this._offsetY = offsetY;
|
|
2554
2579
|
if (this._position) {
|
|
@@ -2556,22 +2581,40 @@ class CdkConnectedOverlay {
|
|
|
2556
2581
|
}
|
|
2557
2582
|
}
|
|
2558
2583
|
/** Whether or not the overlay should attach a backdrop. */
|
|
2559
|
-
get hasBackdrop() {
|
|
2560
|
-
|
|
2584
|
+
get hasBackdrop() {
|
|
2585
|
+
return this._hasBackdrop;
|
|
2586
|
+
}
|
|
2587
|
+
set hasBackdrop(value) {
|
|
2588
|
+
this._hasBackdrop = coerceBooleanProperty(value);
|
|
2589
|
+
}
|
|
2561
2590
|
/** Whether or not the overlay should be locked when scrolling. */
|
|
2562
|
-
get lockPosition() {
|
|
2563
|
-
|
|
2591
|
+
get lockPosition() {
|
|
2592
|
+
return this._lockPosition;
|
|
2593
|
+
}
|
|
2594
|
+
set lockPosition(value) {
|
|
2595
|
+
this._lockPosition = coerceBooleanProperty(value);
|
|
2596
|
+
}
|
|
2564
2597
|
/** Whether the overlay's width and height can be constrained to fit within the viewport. */
|
|
2565
|
-
get flexibleDimensions() {
|
|
2598
|
+
get flexibleDimensions() {
|
|
2599
|
+
return this._flexibleDimensions;
|
|
2600
|
+
}
|
|
2566
2601
|
set flexibleDimensions(value) {
|
|
2567
2602
|
this._flexibleDimensions = coerceBooleanProperty(value);
|
|
2568
2603
|
}
|
|
2569
2604
|
/** Whether the overlay can grow after the initial open when flexible positioning is turned on. */
|
|
2570
|
-
get growAfterOpen() {
|
|
2571
|
-
|
|
2605
|
+
get growAfterOpen() {
|
|
2606
|
+
return this._growAfterOpen;
|
|
2607
|
+
}
|
|
2608
|
+
set growAfterOpen(value) {
|
|
2609
|
+
this._growAfterOpen = coerceBooleanProperty(value);
|
|
2610
|
+
}
|
|
2572
2611
|
/** Whether the overlay can be pushed on-screen if none of the provided positions fit. */
|
|
2573
|
-
get push() {
|
|
2574
|
-
|
|
2612
|
+
get push() {
|
|
2613
|
+
return this._push;
|
|
2614
|
+
}
|
|
2615
|
+
set push(value) {
|
|
2616
|
+
this._push = coerceBooleanProperty(value);
|
|
2617
|
+
}
|
|
2575
2618
|
/** The associated overlay reference. */
|
|
2576
2619
|
get overlayRef() {
|
|
2577
2620
|
return this._overlayRef;
|
|
@@ -2611,7 +2654,7 @@ class CdkConnectedOverlay {
|
|
|
2611
2654
|
if (!this.positions || !this.positions.length) {
|
|
2612
2655
|
this.positions = defaultPositionList;
|
|
2613
2656
|
}
|
|
2614
|
-
const overlayRef = this._overlayRef = this._overlay.create(this._buildConfig());
|
|
2657
|
+
const overlayRef = (this._overlayRef = this._overlay.create(this._buildConfig()));
|
|
2615
2658
|
this._attachSubscription = overlayRef.attachments().subscribe(() => this.attach.emit());
|
|
2616
2659
|
this._detachSubscription = overlayRef.detachments().subscribe(() => this.detach.emit());
|
|
2617
2660
|
overlayRef.keydownEvents().subscribe((event) => {
|
|
@@ -2627,13 +2670,13 @@ class CdkConnectedOverlay {
|
|
|
2627
2670
|
}
|
|
2628
2671
|
/** Builds the overlay config based on the directive's inputs */
|
|
2629
2672
|
_buildConfig() {
|
|
2630
|
-
const positionStrategy = this._position =
|
|
2631
|
-
this.positionStrategy || this._createPositionStrategy();
|
|
2673
|
+
const positionStrategy = (this._position =
|
|
2674
|
+
this.positionStrategy || this._createPositionStrategy());
|
|
2632
2675
|
const overlayConfig = new OverlayConfig({
|
|
2633
2676
|
direction: this._dir,
|
|
2634
2677
|
positionStrategy,
|
|
2635
2678
|
scrollStrategy: this.scrollStrategy,
|
|
2636
|
-
hasBackdrop: this.hasBackdrop
|
|
2679
|
+
hasBackdrop: this.hasBackdrop,
|
|
2637
2680
|
});
|
|
2638
2681
|
if (this.width || this.width === 0) {
|
|
2639
2682
|
overlayConfig.width = this.width;
|
|
@@ -2666,7 +2709,8 @@ class CdkConnectedOverlay {
|
|
|
2666
2709
|
offsetY: currentPosition.offsetY || this.offsetY,
|
|
2667
2710
|
panelClass: currentPosition.panelClass || undefined,
|
|
2668
2711
|
}));
|
|
2669
|
-
return positionStrategy
|
|
2712
|
+
return positionStrategy
|
|
2713
|
+
.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin())
|
|
2670
2714
|
.withPositions(positions)
|
|
2671
2715
|
.withFlexibleDimensions(this.flexibleDimensions)
|
|
2672
2716
|
.withPush(this.push)
|
|
@@ -2677,7 +2721,9 @@ class CdkConnectedOverlay {
|
|
|
2677
2721
|
}
|
|
2678
2722
|
/** Returns the position strategy of the overlay to be set on the overlay config */
|
|
2679
2723
|
_createPositionStrategy() {
|
|
2680
|
-
const strategy = this._overlay
|
|
2724
|
+
const strategy = this._overlay
|
|
2725
|
+
.position()
|
|
2726
|
+
.flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());
|
|
2681
2727
|
this._updatePositionStrategy(strategy);
|
|
2682
2728
|
return strategy;
|
|
2683
2729
|
}
|
|
@@ -2732,13 +2778,13 @@ class CdkConnectedOverlay {
|
|
|
2732
2778
|
this._positionSubscription.unsubscribe();
|
|
2733
2779
|
}
|
|
2734
2780
|
}
|
|
2735
|
-
CdkConnectedOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2736
|
-
CdkConnectedOverlay.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2781
|
+
CdkConnectedOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkConnectedOverlay, deps: [{ token: Overlay }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY }, { token: i5.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2782
|
+
CdkConnectedOverlay.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: { origin: ["cdkConnectedOverlayOrigin", "origin"], positions: ["cdkConnectedOverlayPositions", "positions"], positionStrategy: ["cdkConnectedOverlayPositionStrategy", "positionStrategy"], offsetX: ["cdkConnectedOverlayOffsetX", "offsetX"], offsetY: ["cdkConnectedOverlayOffsetY", "offsetY"], width: ["cdkConnectedOverlayWidth", "width"], height: ["cdkConnectedOverlayHeight", "height"], minWidth: ["cdkConnectedOverlayMinWidth", "minWidth"], minHeight: ["cdkConnectedOverlayMinHeight", "minHeight"], backdropClass: ["cdkConnectedOverlayBackdropClass", "backdropClass"], panelClass: ["cdkConnectedOverlayPanelClass", "panelClass"], viewportMargin: ["cdkConnectedOverlayViewportMargin", "viewportMargin"], scrollStrategy: ["cdkConnectedOverlayScrollStrategy", "scrollStrategy"], open: ["cdkConnectedOverlayOpen", "open"], disableClose: ["cdkConnectedOverlayDisableClose", "disableClose"], transformOriginSelector: ["cdkConnectedOverlayTransformOriginOn", "transformOriginSelector"], hasBackdrop: ["cdkConnectedOverlayHasBackdrop", "hasBackdrop"], lockPosition: ["cdkConnectedOverlayLockPosition", "lockPosition"], flexibleDimensions: ["cdkConnectedOverlayFlexibleDimensions", "flexibleDimensions"], growAfterOpen: ["cdkConnectedOverlayGrowAfterOpen", "growAfterOpen"], push: ["cdkConnectedOverlayPush", "push"] }, outputs: { backdropClick: "backdropClick", positionChange: "positionChange", attach: "attach", detach: "detach", overlayKeydown: "overlayKeydown", overlayOutsideClick: "overlayOutsideClick" }, exportAs: ["cdkConnectedOverlay"], usesOnChanges: true, ngImport: i0 });
|
|
2783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkConnectedOverlay, decorators: [{
|
|
2738
2784
|
type: Directive,
|
|
2739
2785
|
args: [{
|
|
2740
2786
|
selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',
|
|
2741
|
-
exportAs: 'cdkConnectedOverlay'
|
|
2787
|
+
exportAs: 'cdkConnectedOverlay',
|
|
2742
2788
|
}]
|
|
2743
2789
|
}], ctorParameters: function () { return [{ type: Overlay }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
2744
2790
|
type: Inject,
|
|
@@ -2841,22 +2887,16 @@ const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {
|
|
|
2841
2887
|
*/
|
|
2842
2888
|
class OverlayModule {
|
|
2843
2889
|
}
|
|
2844
|
-
OverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2845
|
-
OverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
2846
|
-
OverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
2847
|
-
|
|
2848
|
-
CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER,
|
|
2849
|
-
], imports: [[BidiModule, PortalModule, ScrollingModule], ScrollingModule] });
|
|
2850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayModule, decorators: [{
|
|
2890
|
+
OverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2891
|
+
OverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayModule, declarations: [CdkConnectedOverlay, CdkOverlayOrigin], imports: [BidiModule, PortalModule, ScrollingModule], exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule] });
|
|
2892
|
+
OverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayModule, providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER], imports: [[BidiModule, PortalModule, ScrollingModule], ScrollingModule] });
|
|
2893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: OverlayModule, decorators: [{
|
|
2851
2894
|
type: NgModule,
|
|
2852
2895
|
args: [{
|
|
2853
2896
|
imports: [BidiModule, PortalModule, ScrollingModule],
|
|
2854
2897
|
exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule],
|
|
2855
2898
|
declarations: [CdkConnectedOverlay, CdkOverlayOrigin],
|
|
2856
|
-
providers: [
|
|
2857
|
-
Overlay,
|
|
2858
|
-
CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER,
|
|
2859
|
-
],
|
|
2899
|
+
providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],
|
|
2860
2900
|
}]
|
|
2861
2901
|
}] });
|
|
2862
2902
|
|
|
@@ -2939,16 +2979,16 @@ class FullscreenOverlayContainer extends OverlayContainer {
|
|
|
2939
2979
|
*/
|
|
2940
2980
|
getFullscreenElement() {
|
|
2941
2981
|
const _document = this._document;
|
|
2942
|
-
return _document.fullscreenElement ||
|
|
2982
|
+
return (_document.fullscreenElement ||
|
|
2943
2983
|
_document.webkitFullscreenElement ||
|
|
2944
2984
|
_document.mozFullScreenElement ||
|
|
2945
2985
|
_document.msFullscreenElement ||
|
|
2946
|
-
null;
|
|
2986
|
+
null);
|
|
2947
2987
|
}
|
|
2948
2988
|
}
|
|
2949
|
-
FullscreenOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2950
|
-
FullscreenOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2989
|
+
FullscreenOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FullscreenOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2990
|
+
FullscreenOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FullscreenOverlayContainer, providedIn: 'root' });
|
|
2991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FullscreenOverlayContainer, decorators: [{
|
|
2952
2992
|
type: Injectable,
|
|
2953
2993
|
args: [{ providedIn: 'root' }]
|
|
2954
2994
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -2964,6 +3004,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2964
3004
|
* found in the LICENSE file at https://angular.io/license
|
|
2965
3005
|
*/
|
|
2966
3006
|
|
|
3007
|
+
/**
|
|
3008
|
+
* @license
|
|
3009
|
+
* Copyright Google LLC All Rights Reserved.
|
|
3010
|
+
*
|
|
3011
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
3012
|
+
* found in the LICENSE file at https://angular.io/license
|
|
3013
|
+
*/
|
|
3014
|
+
|
|
2967
3015
|
/**
|
|
2968
3016
|
* Generated bundle index. Do not edit.
|
|
2969
3017
|
*/
|