@angular/cdk 13.0.0-next.6 → 13.0.0-rc.1
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/a11y-module.d.ts +9 -7
- package/a11y/aria-describer/aria-describer.d.ts +3 -7
- package/a11y/focus-monitor/focus-monitor.d.ts +5 -0
- package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +3 -7
- package/a11y/focus-trap/focus-trap-manager.d.ts +3 -7
- package/a11y/focus-trap/focus-trap.d.ts +5 -0
- package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +3 -0
- package/a11y/index.d.ts +0 -1
- package/a11y/input-modality/input-modality-detector.d.ts +3 -7
- package/a11y/interactivity-checker/interactivity-checker.d.ts +3 -0
- package/a11y/live-announcer/live-announcer.d.ts +6 -1
- package/a11y/package.json +5 -5
- package/accordion/accordion-item.d.ts +3 -0
- package/accordion/accordion-module.d.ts +6 -7
- package/accordion/accordion.d.ts +3 -0
- package/accordion/index.d.ts +0 -1
- package/accordion/package.json +5 -5
- package/bidi/bidi-module.d.ts +5 -7
- package/bidi/dir.d.ts +3 -0
- package/bidi/directionality.d.ts +3 -0
- package/bidi/index.d.ts +0 -1
- package/bidi/package.json +5 -5
- package/clipboard/clipboard-module.d.ts +5 -7
- package/clipboard/clipboard.d.ts +3 -7
- package/clipboard/copy-to-clipboard.d.ts +3 -0
- package/clipboard/package.json +5 -5
- package/coercion/package.json +5 -5
- package/collections/package.json +5 -5
- package/collections/unique-selection-dispatcher.d.ts +3 -0
- package/drag-drop/client-rect.d.ts +8 -1
- package/drag-drop/directives/drag-handle.d.ts +3 -0
- package/drag-drop/directives/drag-placeholder.d.ts +3 -0
- package/drag-drop/directives/drag-preview.d.ts +3 -0
- package/drag-drop/directives/drag.d.ts +3 -0
- package/drag-drop/directives/drop-list-group.d.ts +3 -0
- package/drag-drop/directives/drop-list.d.ts +3 -0
- package/drag-drop/drag-drop-module.d.ts +11 -7
- package/drag-drop/drag-drop-registry.d.ts +3 -0
- package/drag-drop/drag-drop.d.ts +3 -0
- package/drag-drop/index.d.ts +0 -1
- package/drag-drop/package.json +5 -5
- package/esm2020/a11y/a11y-module.mjs +33 -0
- package/esm2020/a11y/aria-describer/aria-describer.mjs +208 -0
- package/{esm2015/a11y/aria-describer/aria-reference.js → esm2020/a11y/aria-describer/aria-reference.mjs} +1 -1
- package/esm2020/a11y/fake-event-detection.mjs +29 -0
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +400 -0
- package/{esm2015/a11y/focus-trap/configurable-focus-trap-config.js → esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs} +0 -0
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
- package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
- package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
- package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
- package/esm2020/a11y/focus-trap/focus-trap.mjs +399 -0
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +95 -0
- package/esm2020/a11y/index.mjs +5 -0
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
- package/{esm2015/a11y/key-manager/activedescendant-key-manager.js → esm2020/a11y/key-manager/activedescendant-key-manager.mjs} +1 -1
- package/{esm2015/a11y/key-manager/focus-key-manager.js → esm2020/a11y/key-manager/focus-key-manager.mjs} +0 -0
- package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
- package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
- package/esm2020/a11y/live-announcer/live-announcer.mjs +170 -0
- package/{esm2015/a11y/public-api.js → esm2020/a11y/public-api.mjs} +0 -0
- package/esm2020/accordion/accordion-item.mjs +167 -0
- package/esm2020/accordion/accordion-module.mjs +24 -0
- package/esm2020/accordion/accordion.mjs +70 -0
- package/esm2020/accordion/index.mjs +5 -0
- package/{esm2015/accordion/public-api.js → esm2020/accordion/public-api.mjs} +0 -0
- package/esm2020/bidi/bidi-module.mjs +23 -0
- package/{esm2015/bidi/dir-document-token.js → esm2020/bidi/dir-document-token.mjs} +1 -1
- package/esm2020/bidi/dir.mjs +67 -0
- package/esm2020/bidi/directionality.mjs +47 -0
- package/esm2020/bidi/index.mjs +5 -0
- package/{esm2015/bidi/public-api.js → esm2020/bidi/public-api.mjs} +1 -1
- package/esm2020/clipboard/clipboard-module.mjs +23 -0
- package/esm2020/clipboard/clipboard.mjs +53 -0
- package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
- package/{esm2015/clipboard/index.js → esm2020/clipboard/index.mjs} +0 -0
- package/esm2020/clipboard/pending-copy.mjs +67 -0
- package/{esm2015/clipboard/public-api.js → esm2020/clipboard/public-api.mjs} +0 -0
- package/{esm2015/coercion/array.js → esm2020/coercion/array.mjs} +0 -0
- package/{esm2015/coercion/boolean-property.js → esm2020/coercion/boolean-property.mjs} +0 -0
- package/{esm2015/coercion/css-pixel-value.js → esm2020/coercion/css-pixel-value.mjs} +0 -0
- package/{esm2015/coercion/element.js → esm2020/coercion/element.mjs} +0 -0
- package/{esm2015/coercion/index.js → esm2020/coercion/index.mjs} +0 -0
- package/{esm2015/coercion/number-property.js → esm2020/coercion/number-property.mjs} +0 -0
- package/{esm2015/coercion/public-api.js → esm2020/coercion/public-api.mjs} +0 -0
- package/{esm2015/coercion/string-array.js → esm2020/coercion/string-array.mjs} +0 -0
- package/{esm2015/collections/array-data-source.js → esm2020/collections/array-data-source.mjs} +1 -1
- package/esm2020/collections/collection-viewer.mjs +9 -0
- package/{esm2015/collections/data-source.js → esm2020/collections/data-source.mjs} +0 -0
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
- package/{esm2015/collections/index.js → esm2020/collections/index.mjs} +0 -0
- package/{esm2015/collections/public-api.js → esm2020/collections/public-api.mjs} +0 -0
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
- package/{esm2015/collections/selection-model.js → esm2020/collections/selection-model.mjs} +2 -2
- package/esm2020/collections/tree-adapter.mjs +9 -0
- package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
- package/esm2020/collections/view-repeater.mjs +14 -0
- package/esm2020/drag-drop/client-rect.mjs +64 -0
- package/esm2020/drag-drop/clone-node.mjs +65 -0
- package/esm2020/drag-drop/directives/assertions.mjs +18 -0
- package/{esm2015/drag-drop/directives/config.js → esm2020/drag-drop/directives/config.mjs} +1 -1
- package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
- package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
- package/esm2020/drag-drop/directives/drag.mjs +483 -0
- package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
- package/esm2020/drag-drop/directives/drop-list.mjs +344 -0
- package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
- package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
- package/esm2020/drag-drop/drag-drop.mjs +57 -0
- package/esm2020/drag-drop/drag-events.mjs +9 -0
- package/{esm2015/drag-drop/drag-parent.js → esm2020/drag-drop/drag-parent.mjs} +0 -0
- package/esm2020/drag-drop/drag-ref.mjs +1108 -0
- package/esm2020/drag-drop/drag-styling.mjs +69 -0
- package/esm2020/drag-drop/drag-utils.mjs +60 -0
- package/esm2020/drag-drop/drop-list-ref.mjs +830 -0
- package/{esm2015/drag-drop/index.js → esm2020/drag-drop/index.mjs} +1 -1
- package/{esm2015/drag-drop/parent-position-tracker.js → esm2020/drag-drop/parent-position-tracker.mjs} +2 -2
- package/{esm2015/drag-drop/public-api.js → esm2020/drag-drop/public-api.mjs} +0 -0
- package/esm2020/drag-drop/transition-duration.mjs +36 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/keycodes/index.js → esm2020/keycodes/index.mjs} +0 -0
- package/{esm2015/keycodes/keycodes.js → esm2020/keycodes/keycodes.mjs} +1 -1
- package/{esm2015/keycodes/modifiers.js → esm2020/keycodes/modifiers.mjs} +0 -0
- package/{esm2015/keycodes/public-api.js → esm2020/keycodes/public-api.mjs} +0 -0
- package/esm2020/layout/breakpoints-observer.mjs +105 -0
- package/{esm2015/layout/breakpoints.js → esm2020/layout/breakpoints.mjs} +1 -1
- package/{esm2015/layout/index.js → esm2020/layout/index.mjs} +0 -0
- package/esm2020/layout/layout-module.mjs +19 -0
- package/esm2020/layout/media-matcher.mjs +85 -0
- package/{esm2015/layout/public-api.js → esm2020/layout/public-api.mjs} +0 -0
- package/{esm2015/observers/index.js → esm2020/observers/index.mjs} +0 -0
- package/esm2020/observers/observe-content.mjs +187 -0
- package/{esm2015/observers/public-api.js → esm2020/observers/public-api.mjs} +0 -0
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
- package/{esm2015/overlay/dispatchers/index.js → esm2020/overlay/dispatchers/index.mjs} +0 -0
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +63 -0
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +116 -0
- package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
- package/esm2020/overlay/index.mjs +5 -0
- package/esm2020/overlay/overlay-config.mjs +45 -0
- package/esm2020/overlay/overlay-container.mjs +81 -0
- package/esm2020/overlay/overlay-directives.mjs +427 -0
- package/esm2020/overlay/overlay-module.mjs +29 -0
- package/esm2020/overlay/overlay-ref.mjs +402 -0
- package/{esm2015/overlay/overlay-reference.js → esm2020/overlay/overlay-reference.mjs} +0 -0
- package/esm2020/overlay/overlay.mjs +119 -0
- package/esm2020/overlay/position/connected-position.mjs +97 -0
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +959 -0
- package/esm2020/overlay/position/global-position-strategy.mjs +203 -0
- package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
- package/{esm2015/overlay/position/position-strategy.js → esm2020/overlay/position/position-strategy.mjs} +0 -0
- package/esm2020/overlay/position/scroll-clip.mjs +40 -0
- package/{esm2015/overlay/public-api.js → esm2020/overlay/public-api.mjs} +0 -0
- package/{esm2015/overlay/scroll/block-scroll-strategy.js → esm2020/overlay/scroll/block-scroll-strategy.mjs} +1 -1
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
- package/{esm2015/overlay/scroll/index.js → esm2020/overlay/scroll/index.mjs} +2 -2
- package/{esm2015/overlay/scroll/noop-scroll-strategy.js → esm2020/overlay/scroll/noop-scroll-strategy.mjs} +1 -1
- package/{esm2015/overlay/scroll/reposition-scroll-strategy.js → esm2020/overlay/scroll/reposition-scroll-strategy.mjs} +1 -1
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
- package/{esm2015/overlay/scroll/scroll-strategy.js → esm2020/overlay/scroll/scroll-strategy.mjs} +0 -0
- package/{esm2015/platform/features/input-types.js → esm2020/platform/features/input-types.mjs} +1 -1
- package/esm2020/platform/features/passive-listeners.mjs +36 -0
- package/esm2020/platform/features/scrolling.mjs +85 -0
- package/{esm2015/platform/features/shadow-dom.js → esm2020/platform/features/shadow-dom.mjs} +4 -3
- package/esm2020/platform/features/test-environment.mjs +27 -0
- package/{esm2015/platform/index.js → esm2020/platform/index.mjs} +0 -0
- package/esm2020/platform/platform-module.mjs +19 -0
- package/esm2020/platform/platform.mjs +85 -0
- package/{esm2015/platform/public-api.js → esm2020/platform/public-api.mjs} +0 -0
- package/esm2020/portal/dom-portal-outlet.mjs +134 -0
- package/{esm2015/portal/index.js → esm2020/portal/index.mjs} +0 -0
- package/esm2020/portal/portal-directives.mjs +244 -0
- package/{esm2015/portal/portal-errors.js → esm2020/portal/portal-errors.mjs} +1 -1
- package/esm2020/portal/portal-injector.mjs +28 -0
- package/esm2020/portal/portal.mjs +179 -0
- package/{esm2015/portal/public-api.js → esm2020/portal/public-api.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
- package/{esm2015/scrolling/index.js → esm2020/scrolling/index.mjs} +0 -0
- package/{esm2015/scrolling/public-api.js → esm2020/scrolling/public-api.mjs} +0 -0
- package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
- package/esm2020/scrolling/scrollable.mjs +176 -0
- package/esm2020/scrolling/scrolling-module.mjs +52 -0
- package/esm2020/scrolling/viewport-ruler.mjs +146 -0
- package/esm2020/scrolling/virtual-for-of.mjs +296 -0
- package/{esm2015/scrolling/virtual-scroll-repeater.js → esm2020/scrolling/virtual-scroll-repeater.mjs} +0 -0
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +378 -0
- package/{esm2015/stepper/index.js → esm2020/stepper/index.mjs} +0 -0
- package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
- package/esm2020/stepper/step-header.mjs +30 -0
- package/esm2020/stepper/step-label.mjs +23 -0
- package/esm2020/stepper/stepper-button.mjs +76 -0
- package/esm2020/stepper/stepper-module.mjs +40 -0
- package/esm2020/stepper/stepper.mjs +471 -0
- package/esm2020/table/can-stick.mjs +44 -0
- package/esm2020/table/cell.mjs +222 -0
- package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/esm2020/table/row.mjs +254 -0
- package/esm2020/table/sticky-position-listener.mjs +11 -0
- package/esm2020/table/sticky-styler.mjs +345 -0
- package/{esm2015/table/table-errors.js → esm2020/table/table-errors.mjs} +1 -1
- package/esm2020/table/table-module.mjs +94 -0
- package/esm2020/table/table.mjs +1023 -0
- package/esm2020/table/text-column.mjs +153 -0
- package/{esm2015/table/tokens.js → esm2020/table/tokens.mjs} +1 -1
- package/esm2020/testing/change-detection.mjs +102 -0
- package/esm2020/testing/component-harness.mjs +322 -0
- package/{esm2015/testing/element-dimensions.js → esm2020/testing/element-dimensions.mjs} +1 -1
- package/esm2020/testing/harness-environment.mjs +202 -0
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/protractor/index.js → esm2020/testing/protractor/index.mjs} +0 -0
- package/esm2020/testing/protractor/protractor-element.mjs +234 -0
- package/esm2020/testing/protractor/protractor-harness-environment.mjs +72 -0
- package/{esm2015/testing/protractor/public-api.js → esm2020/testing/protractor/public-api.mjs} +0 -0
- package/{esm2015/testing/public-api.js → esm2020/testing/public-api.mjs} +0 -0
- package/{esm2015/testing/selenium-webdriver/index.js → esm2020/testing/selenium-webdriver/index.mjs} +0 -0
- package/{esm2015/testing/selenium-webdriver/public-api.js → esm2020/testing/selenium-webdriver/public-api.mjs} +0 -0
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +199 -0
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +87 -0
- package/{esm2015/testing/selenium-webdriver/selenium-webdriver-keys.js → esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs} +2 -2
- package/esm2020/testing/test-element.mjs +48 -0
- package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +53 -0
- package/esm2020/testing/testbed/fake-events/element-focus.mjs +39 -0
- package/esm2020/testing/testbed/fake-events/event-objects.mjs +113 -0
- package/{esm2015/testing/testbed/fake-events/index.js → esm2020/testing/testbed/fake-events/index.mjs} +0 -0
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +88 -0
- package/{esm2015/testing/testbed/index.js → esm2020/testing/testbed/index.mjs} +0 -0
- package/{esm2015/testing/testbed/public-api.js → esm2020/testing/testbed/public-api.mjs} +0 -0
- package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +82 -0
- package/esm2020/testing/testbed/testbed-harness-environment.mjs +162 -0
- package/esm2020/testing/testbed/unit-test-element.mjs +224 -0
- package/esm2020/testing/text-filtering.mjs +21 -0
- package/esm2020/text-field/autofill.mjs +113 -0
- package/esm2020/text-field/autosize.mjs +310 -0
- package/{esm2015/text-field/index.js → esm2020/text-field/index.mjs} +0 -0
- package/{esm2015/text-field/public-api.js → esm2020/text-field/public-api.mjs} +0 -0
- package/esm2020/text-field/text-field-module.mjs +26 -0
- package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +4 -4
- package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +1 -1
- package/esm2020/tree/control/nested-tree-control.mjs +58 -0
- package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/esm2020/tree/nested-node.mjs +117 -0
- package/esm2020/tree/node.mjs +35 -0
- package/esm2020/tree/outlet.mjs +39 -0
- package/esm2020/tree/padding.mjs +131 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/esm2020/tree/toggle.mjs +53 -0
- package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
- package/esm2020/tree/tree-module.mjs +49 -0
- package/esm2020/tree/tree.mjs +361 -0
- package/{esm2015/version.js → esm2020/version.mjs} +1 -1
- package/fesm2015/a11y.mjs +2356 -0
- package/fesm2015/a11y.mjs.map +1 -0
- package/fesm2015/accordion.mjs +267 -0
- package/fesm2015/accordion.mjs.map +1 -0
- package/fesm2015/bidi.mjs +179 -0
- package/fesm2015/bidi.mjs.map +1 -0
- package/fesm2015/{cdk.js → cdk.mjs} +2 -2
- package/fesm2015/cdk.mjs.map +1 -0
- package/fesm2015/clipboard.mjs +253 -0
- package/fesm2015/clipboard.mjs.map +1 -0
- package/fesm2015/{coercion.js → coercion.mjs} +1 -1
- package/fesm2015/coercion.mjs.map +1 -0
- package/fesm2015/{collections.js → collections.mjs} +15 -27
- package/fesm2015/collections.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +3667 -0
- package/fesm2015/drag-drop.mjs.map +1 -0
- package/fesm2015/{keycodes.js → keycodes.mjs} +1 -1
- package/fesm2015/keycodes.mjs.map +1 -0
- package/fesm2015/{layout.js → layout.mjs} +30 -28
- package/fesm2015/layout.mjs.map +1 -0
- package/fesm2015/{observers.js → observers.mjs} +50 -41
- package/fesm2015/observers.mjs.map +1 -0
- package/fesm2015/overlay.mjs +3004 -0
- package/fesm2015/overlay.mjs.map +1 -0
- package/fesm2015/platform.mjs +380 -0
- package/fesm2015/platform.mjs.map +1 -0
- package/fesm2015/portal.mjs +649 -0
- package/fesm2015/portal.mjs.map +1 -0
- package/fesm2015/scrolling.mjs +1394 -0
- package/fesm2015/scrolling.mjs.map +1 -0
- package/fesm2015/{stepper.js → stepper.mjs} +186 -133
- package/fesm2015/stepper.mjs.map +1 -0
- package/fesm2015/{table.js → table.mjs} +500 -359
- package/fesm2015/table.mjs.map +1 -0
- package/fesm2015/testing/{protractor.js → protractor.mjs} +12 -25
- package/fesm2015/testing/protractor.mjs.map +1 -0
- package/fesm2015/testing/{selenium-webdriver.js → selenium-webdriver.mjs} +14 -28
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -0
- package/fesm2015/testing/{testbed.js → testbed.mjs} +23 -29
- package/fesm2015/testing/testbed.mjs.map +1 -0
- package/fesm2015/{testing.js → testing.mjs} +19 -45
- package/fesm2015/testing.mjs.map +1 -0
- package/fesm2015/text-field.mjs +455 -0
- package/fesm2015/text-field.mjs.map +1 -0
- package/fesm2015/{tree.js → tree.mjs} +198 -152
- package/fesm2015/tree.mjs.map +1 -0
- package/{fesm2015/a11y.js → fesm2020/a11y.mjs} +272 -233
- package/fesm2020/a11y.mjs.map +1 -0
- package/{fesm2015/accordion.js → fesm2020/accordion.mjs} +87 -57
- package/fesm2020/accordion.mjs.map +1 -0
- package/{fesm2015/bidi.js → fesm2020/bidi.mjs} +47 -31
- package/fesm2020/bidi.mjs.map +1 -0
- package/fesm2020/cdk.mjs +30 -0
- package/fesm2020/cdk.mjs.map +1 -0
- package/{fesm2015/clipboard.js → fesm2020/clipboard.mjs} +51 -40
- package/fesm2020/clipboard.mjs.map +1 -0
- package/fesm2020/coercion.mjs +132 -0
- package/fesm2020/coercion.mjs.map +1 -0
- package/fesm2020/collections.mjs +472 -0
- package/fesm2020/collections.mjs.map +1 -0
- package/{fesm2015/drag-drop.js → fesm2020/drag-drop.mjs} +523 -366
- package/fesm2020/drag-drop.mjs.map +1 -0
- package/fesm2020/keycodes.mjs +159 -0
- package/fesm2020/keycodes.mjs.map +1 -0
- package/fesm2020/layout.mjs +246 -0
- package/fesm2020/layout.mjs.map +1 -0
- package/fesm2020/observers.mjs +202 -0
- package/fesm2020/observers.mjs.map +1 -0
- package/{fesm2015/overlay.js → fesm2020/overlay.mjs} +312 -228
- package/fesm2020/overlay.mjs.map +1 -0
- package/{fesm2015/platform.js → fesm2020/platform.mjs} +52 -28
- package/fesm2020/platform.mjs.map +1 -0
- package/{fesm2015/portal.js → fesm2020/portal.mjs} +85 -64
- package/fesm2020/portal.mjs.map +1 -0
- package/{fesm2015/scrolling.js → fesm2020/scrolling.mjs} +213 -170
- package/fesm2020/scrolling.mjs.map +1 -0
- package/fesm2020/stepper.mjs +638 -0
- package/fesm2020/stepper.mjs.map +1 -0
- package/fesm2020/table.mjs +2295 -0
- package/fesm2020/table.mjs.map +1 -0
- package/fesm2020/testing/protractor.mjs +322 -0
- package/fesm2020/testing/protractor.mjs.map +1 -0
- package/fesm2020/testing/selenium-webdriver.mjs +362 -0
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -0
- package/fesm2020/testing/testbed.mjs +780 -0
- package/fesm2020/testing/testbed.mjs.map +1 -0
- package/fesm2020/testing.mjs +719 -0
- package/fesm2020/testing.mjs.map +1 -0
- package/{fesm2015/text-field.js → fesm2020/text-field.mjs} +83 -68
- package/fesm2020/text-field.mjs.map +1 -0
- package/fesm2020/tree.mjs +967 -0
- package/fesm2020/tree.mjs.map +1 -0
- package/keycodes/package.json +5 -5
- package/layout/breakpoints-observer.d.ts +3 -7
- package/layout/layout-module.d.ts +4 -0
- package/layout/media-matcher.d.ts +3 -0
- package/layout/package.json +5 -5
- package/observers/observe-content.d.ts +10 -0
- package/observers/package.json +5 -5
- package/overlay/dispatchers/base-overlay-dispatcher.d.ts +3 -7
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +3 -7
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +6 -7
- package/overlay/fullscreen-overlay-container.d.ts +3 -0
- package/overlay/index.d.ts +0 -2
- package/overlay/overlay-container.d.ts +3 -7
- package/overlay/overlay-directives.d.ts +5 -0
- package/overlay/overlay-module.d.ts +8 -7
- package/overlay/overlay.d.ts +3 -0
- package/overlay/package.json +5 -5
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
- package/overlay/position/overlay-position-builder.d.ts +3 -0
- package/overlay/position/scroll-clip.d.ts +5 -2
- package/overlay/scroll/index.d.ts +1 -1
- package/overlay/scroll/scroll-strategy-options.d.ts +3 -0
- package/package.json +219 -7
- package/platform/package.json +5 -5
- package/platform/platform-module.d.ts +4 -7
- package/platform/platform.d.ts +3 -7
- package/portal/package.json +5 -5
- package/portal/portal-directives.d.ts +12 -0
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- 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 +6 -6
- package/schematics/ng-generate/drag-drop/index.mjs +6 -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-file-system.js +2 -2
- package/schematics/ng-update/devkit-file-system.mjs +2 -2
- package/schematics/ng-update/devkit-migration-rule.js +8 -7
- package/schematics/ng-update/devkit-migration-rule.mjs +8 -7
- package/schematics/ng-update/devkit-migration.d.ts +1 -1
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.mjs +1 -1
- package/schematics/ng-update/find-stylesheets.js +3 -3
- package/schematics/ng-update/find-stylesheets.mjs +3 -3
- package/schematics/ng-update/html-parsing/angular.js +7 -7
- package/schematics/ng-update/html-parsing/angular.mjs +7 -7
- package/schematics/ng-update/html-parsing/elements.js +2 -2
- package/schematics/ng-update/html-parsing/elements.mjs +2 -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 +11 -7
- package/schematics/ng-update/migrations/attribute-selectors.mjs +11 -7
- package/schematics/ng-update/migrations/class-inheritance.js +3 -3
- package/schematics/ng-update/migrations/class-inheritance.mjs +3 -3
- package/schematics/ng-update/migrations/class-names.js +7 -6
- package/schematics/ng-update/migrations/class-names.mjs +7 -6
- package/schematics/ng-update/migrations/constructor-signature.js +16 -13
- package/schematics/ng-update/migrations/constructor-signature.mjs +16 -13
- package/schematics/ng-update/migrations/css-selectors.js +7 -6
- package/schematics/ng-update/migrations/css-selectors.mjs +7 -6
- package/schematics/ng-update/migrations/element-selectors.js +7 -6
- package/schematics/ng-update/migrations/element-selectors.mjs +7 -6
- package/schematics/ng-update/migrations/input-names.js +8 -9
- package/schematics/ng-update/migrations/input-names.mjs +8 -9
- package/schematics/ng-update/migrations/method-call-arguments.js +4 -3
- package/schematics/ng-update/migrations/method-call-arguments.mjs +4 -3
- package/schematics/ng-update/migrations/misc-template.js +3 -3
- package/schematics/ng-update/migrations/misc-template.mjs +3 -3
- package/schematics/ng-update/migrations/output-names.js +7 -8
- package/schematics/ng-update/migrations/output-names.mjs +7 -8
- package/schematics/ng-update/migrations/property-names.js +4 -3
- package/schematics/ng-update/migrations/property-names.mjs +4 -3
- package/schematics/ng-update/migrations/symbol-removal.js +2 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -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 +5 -5
- package/schematics/ng-update/typescript/module-specifiers.mjs +5 -5
- package/schematics/ng-update/upgrade-data.js +2 -2
- package/schematics/ng-update/upgrade-data.mjs +2 -2
- package/schematics/package.json +3 -0
- package/schematics/paths.js +3 -3
- package/schematics/paths.mjs +3 -3
- package/schematics/update-tool/component-resource-collector.js +10 -10
- package/schematics/update-tool/component-resource-collector.mjs +10 -10
- 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 +9 -5
- package/schematics/update-tool/index.mjs +9 -5
- 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 +8 -4
- package/schematics/update-tool/utils/decorators.mjs +8 -4
- 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 +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
- 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.d.ts +1 -1
- package/schematics/update-tool/utils/virtual-host.js +3 -3
- package/schematics/update-tool/utils/virtual-host.mjs +3 -3
- 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 +5 -5
- package/schematics/utils/ast.mjs +5 -5
- package/schematics/utils/build-component.js +32 -38
- package/schematics/utils/build-component.mjs +32 -38
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/get-project.mjs +1 -1
- package/schematics/utils/html-manipulation.js +8 -7
- package/schematics/utils/html-manipulation.mjs +8 -7
- 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 +2 -2
- package/schematics/utils/project-main-file.mjs +2 -2
- package/schematics/utils/project-style-file.js +7 -9
- package/schematics/utils/project-style-file.mjs +7 -9
- package/schematics/utils/project-targets.js +1 -1
- package/schematics/utils/project-targets.mjs +1 -1
- package/schematics/utils/project-tsconfig-paths.js +4 -4
- package/schematics/utils/project-tsconfig-paths.mjs +4 -4
- package/schematics/utils/schematic-options.js +7 -5
- package/schematics/utils/schematic-options.mjs +7 -5
- package/schematics/utils/vendored-ast-utils/index.js +17 -18
- package/schematics/utils/vendored-ast-utils/index.mjs +17 -18
- package/scrolling/fixed-size-virtual-scroll.d.ts +3 -0
- package/scrolling/package.json +5 -5
- package/scrolling/scroll-dispatcher.d.ts +3 -7
- package/scrolling/scrollable.d.ts +3 -0
- package/scrolling/scrolling-module.d.ts +13 -7
- package/scrolling/viewport-ruler.d.ts +11 -1
- package/scrolling/virtual-for-of.d.ts +3 -0
- package/scrolling/virtual-scroll-viewport.d.ts +3 -0
- package/stepper/package.json +5 -5
- package/stepper/step-header.d.ts +3 -0
- package/stepper/step-label.d.ts +3 -0
- package/stepper/stepper-button.d.ts +5 -7
- package/stepper/stepper-module.d.ts +9 -7
- package/stepper/stepper.d.ts +5 -7
- package/table/cell.d.ts +15 -0
- package/table/coalesced-style-scheduler.d.ts +3 -0
- package/table/package.json +5 -5
- package/table/row.d.ts +19 -0
- package/table/table-module.d.ts +9 -7
- package/table/table.d.ts +13 -0
- package/table/text-column.d.ts +3 -0
- package/testing/package.json +5 -5
- package/testing/protractor/package.json +5 -5
- package/testing/selenium-webdriver/package.json +5 -5
- package/testing/testbed/package.json +5 -5
- package/testing/testbed/proxy-zone-types.d.ts +1 -1
- package/testing/testbed/zone-types.d.ts +1 -1
- package/text-field/autofill.d.ts +5 -0
- package/text-field/autosize.d.ts +3 -0
- package/text-field/package.json +5 -5
- package/text-field/text-field-module.d.ts +7 -7
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/nested-tree-control.d.ts +2 -2
- package/tree/nested-node.d.ts +3 -0
- package/tree/node.d.ts +3 -0
- package/tree/outlet.d.ts +3 -0
- package/tree/package.json +5 -5
- package/tree/padding.d.ts +3 -0
- package/tree/toggle.d.ts +3 -0
- package/tree/tree-module.d.ts +10 -7
- package/tree/tree.d.ts +5 -0
- package/a11y/index.metadata.json +0 -1
- package/accordion/index.metadata.json +0 -1
- package/bidi/index.metadata.json +0 -1
- package/bundles/cdk-a11y.umd.js +0 -2752
- package/bundles/cdk-a11y.umd.js.map +0 -1
- package/bundles/cdk-accordion.umd.js +0 -262
- package/bundles/cdk-accordion.umd.js.map +0 -1
- package/bundles/cdk-bidi.umd.js +0 -206
- package/bundles/cdk-bidi.umd.js.map +0 -1
- package/bundles/cdk-clipboard.umd.js +0 -278
- package/bundles/cdk-clipboard.umd.js.map +0 -1
- package/bundles/cdk-coercion.umd.js +0 -477
- package/bundles/cdk-coercion.umd.js.map +0 -1
- package/bundles/cdk-collections.umd.js +0 -846
- package/bundles/cdk-collections.umd.js.map +0 -1
- package/bundles/cdk-drag-drop.umd.js +0 -3915
- package/bundles/cdk-drag-drop.umd.js.map +0 -1
- package/bundles/cdk-keycodes.umd.js +0 -292
- package/bundles/cdk-keycodes.umd.js.map +0 -1
- package/bundles/cdk-layout.umd.js +0 -284
- package/bundles/cdk-layout.umd.js.map +0 -1
- package/bundles/cdk-observers.umd.js +0 -242
- package/bundles/cdk-observers.umd.js.map +0 -1
- package/bundles/cdk-overlay.umd.js +0 -3417
- package/bundles/cdk-overlay.umd.js.map +0 -1
- package/bundles/cdk-platform.umd.js +0 -397
- package/bundles/cdk-platform.umd.js.map +0 -1
- package/bundles/cdk-portal.umd.js +0 -1008
- package/bundles/cdk-portal.umd.js.map +0 -1
- package/bundles/cdk-scrolling.umd.js +0 -1787
- package/bundles/cdk-scrolling.umd.js.map +0 -1
- package/bundles/cdk-stepper.umd.js +0 -648
- package/bundles/cdk-stepper.umd.js.map +0 -1
- package/bundles/cdk-table.umd.js +0 -2730
- package/bundles/cdk-table.umd.js.map +0 -1
- package/bundles/cdk-testing-protractor.umd.js +0 -833
- package/bundles/cdk-testing-protractor.umd.js.map +0 -1
- package/bundles/cdk-testing-selenium-webdriver.umd.js +0 -1002
- package/bundles/cdk-testing-selenium-webdriver.umd.js.map +0 -1
- package/bundles/cdk-testing-testbed.umd.js +0 -1396
- package/bundles/cdk-testing-testbed.umd.js.map +0 -1
- package/bundles/cdk-testing.umd.js +0 -1285
- package/bundles/cdk-testing.umd.js.map +0 -1
- package/bundles/cdk-text-field.umd.js +0 -494
- package/bundles/cdk-text-field.umd.js.map +0 -1
- package/bundles/cdk-tree.umd.js +0 -1308
- package/bundles/cdk-tree.umd.js.map +0 -1
- package/bundles/cdk.umd.js +0 -38
- package/bundles/cdk.umd.js.map +0 -1
- package/clipboard/index.metadata.json +0 -1
- package/collections/index.metadata.json +0 -1
- package/drag-drop/index.metadata.json +0 -1
- package/esm2015/a11y/a11y-module.js +0 -30
- package/esm2015/a11y/a11y.externs.js +0 -6
- package/esm2015/a11y/aria-describer/aria-describer.js +0 -213
- package/esm2015/a11y/fake-event-detection.js +0 -28
- package/esm2015/a11y/focus-monitor/focus-monitor.js +0 -394
- package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +0 -52
- package/esm2015/a11y/focus-trap/configurable-focus-trap.js +0 -49
- package/esm2015/a11y/focus-trap/event-listener-inert-strategy.js +0 -62
- package/esm2015/a11y/focus-trap/focus-trap-inert-strategy.js +0 -11
- package/esm2015/a11y/focus-trap/focus-trap-manager.js +0 -51
- package/esm2015/a11y/focus-trap/focus-trap.js +0 -391
- package/esm2015/a11y/high-contrast-mode/high-contrast-mode-detector.js +0 -92
- package/esm2015/a11y/index.js +0 -6
- package/esm2015/a11y/input-modality/input-modality-detector.js +0 -171
- package/esm2015/a11y/interactivity-checker/interactivity-checker.js +0 -237
- package/esm2015/a11y/key-manager/list-key-manager.js +0 -317
- package/esm2015/a11y/live-announcer/live-announcer-tokens.js +0 -19
- package/esm2015/a11y/live-announcer/live-announcer.js +0 -167
- package/esm2015/accordion/accordion-item.js +0 -146
- package/esm2015/accordion/accordion-module.js +0 -19
- package/esm2015/accordion/accordion.externs.js +0 -6
- package/esm2015/accordion/accordion.js +0 -63
- package/esm2015/accordion/index.js +0 -6
- package/esm2015/bidi/bidi-module.js +0 -18
- package/esm2015/bidi/bidi.externs.js +0 -6
- package/esm2015/bidi/dir.js +0 -58
- package/esm2015/bidi/directionality.js +0 -44
- package/esm2015/bidi/index.js +0 -6
- package/esm2015/cdk.externs.js +0 -0
- package/esm2015/clipboard/clipboard-module.js +0 -18
- package/esm2015/clipboard/clipboard.externs.js +0 -6
- package/esm2015/clipboard/clipboard.js +0 -52
- package/esm2015/clipboard/copy-to-clipboard.js +0 -90
- package/esm2015/clipboard/pending-copy.js +0 -68
- package/esm2015/coercion/coercion.externs.js +0 -0
- package/esm2015/collections/collection-viewer.js +0 -9
- package/esm2015/collections/collections.externs.js +0 -6
- package/esm2015/collections/dispose-view-repeater-strategy.js +0 -48
- package/esm2015/collections/recycle-view-repeater-strategy.js +0 -125
- package/esm2015/collections/tree-adapter.js +0 -9
- package/esm2015/collections/unique-selection-dispatcher.js +0 -53
- package/esm2015/collections/view-repeater.js +0 -14
- package/esm2015/drag-drop/client-rect.js +0 -60
- package/esm2015/drag-drop/clone-node.js +0 -65
- package/esm2015/drag-drop/directives/assertions.js +0 -19
- package/esm2015/drag-drop/directives/drag-handle.js +0 -57
- package/esm2015/drag-drop/directives/drag-placeholder.js +0 -36
- package/esm2015/drag-drop/directives/drag-preview.js +0 -42
- package/esm2015/drag-drop/directives/drag.js +0 -407
- package/esm2015/drag-drop/directives/drop-list-group.js +0 -47
- package/esm2015/drag-drop/directives/drop-list.js +0 -301
- package/esm2015/drag-drop/drag-drop-module.js +0 -43
- package/esm2015/drag-drop/drag-drop-registry.js +0 -231
- package/esm2015/drag-drop/drag-drop.externs.js +0 -6
- package/esm2015/drag-drop/drag-drop.js +0 -59
- package/esm2015/drag-drop/drag-events.js +0 -9
- package/esm2015/drag-drop/drag-ref.js +0 -1110
- package/esm2015/drag-drop/drag-styling.js +0 -69
- package/esm2015/drag-drop/drag-utils.js +0 -60
- package/esm2015/drag-drop/drop-list-ref.js +0 -813
- package/esm2015/drag-drop/transition-duration.js +0 -36
- package/esm2015/keycodes/keycodes.externs.js +0 -6
- package/esm2015/layout/breakpoints-observer.js +0 -106
- package/esm2015/layout/layout-module.js +0 -14
- package/esm2015/layout/layout.externs.js +0 -6
- package/esm2015/layout/media-matcher.js +0 -85
- package/esm2015/observers/observe-content.js +0 -179
- package/esm2015/observers/observers.externs.js +0 -6
- package/esm2015/overlay/dispatchers/base-overlay-dispatcher.js +0 -51
- package/esm2015/overlay/dispatchers/overlay-keyboard-dispatcher.js +0 -62
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +0 -97
- package/esm2015/overlay/fullscreen-overlay-container.js +0 -94
- package/esm2015/overlay/index.js +0 -7
- package/esm2015/overlay/overlay-config.js +0 -45
- package/esm2015/overlay/overlay-container.js +0 -85
- package/esm2015/overlay/overlay-directives.js +0 -352
- package/esm2015/overlay/overlay-module.js +0 -27
- package/esm2015/overlay/overlay-ref.js +0 -409
- package/esm2015/overlay/overlay.externs.js +0 -6
- package/esm2015/overlay/overlay.js +0 -119
- package/esm2015/overlay/position/connected-position.js +0 -94
- package/esm2015/overlay/position/flexible-connected-position-strategy.js +0 -960
- package/esm2015/overlay/position/global-position-strategy.js +0 -197
- package/esm2015/overlay/position/overlay-position-builder.js +0 -52
- package/esm2015/overlay/position/scroll-clip.js +0 -42
- package/esm2015/overlay/scroll/close-scroll-strategy.js +0 -61
- package/esm2015/overlay/scroll/scroll-strategy-options.js +0 -57
- package/esm2015/platform/features/passive-listeners.js +0 -36
- package/esm2015/platform/features/scrolling.js +0 -85
- package/esm2015/platform/features/test-environment.js +0 -16
- package/esm2015/platform/platform-module.js +0 -14
- package/esm2015/platform/platform.externs.js +0 -6
- package/esm2015/platform/platform.js +0 -77
- package/esm2015/portal/dom-portal-outlet.js +0 -136
- package/esm2015/portal/portal-directives.js +0 -221
- package/esm2015/portal/portal-injector.js +0 -28
- package/esm2015/portal/portal.externs.js +0 -6
- package/esm2015/portal/portal.js +0 -179
- package/esm2015/scrolling/fixed-size-virtual-scroll.js +0 -188
- package/esm2015/scrolling/scroll-dispatcher.js +0 -163
- package/esm2015/scrolling/scrollable.js +0 -173
- package/esm2015/scrolling/scrolling-module.js +0 -49
- package/esm2015/scrolling/scrolling.externs.js +0 -6
- package/esm2015/scrolling/viewport-ruler.js +0 -139
- package/esm2015/scrolling/virtual-for-of.js +0 -293
- package/esm2015/scrolling/virtual-scroll-strategy.js +0 -11
- package/esm2015/scrolling/virtual-scroll-viewport.js +0 -371
- package/esm2015/stepper/step-header.js +0 -29
- package/esm2015/stepper/step-label.js +0 -22
- package/esm2015/stepper/stepper-button.js +0 -72
- package/esm2015/stepper/stepper-module.js +0 -37
- package/esm2015/stepper/stepper.externs.js +0 -6
- package/esm2015/stepper/stepper.js +0 -428
- package/esm2015/table/can-stick.js +0 -42
- package/esm2015/table/cell.js +0 -211
- package/esm2015/table/coalesced-style-scheduler.js +0 -89
- package/esm2015/table/row.js +0 -244
- package/esm2015/table/sticky-position-listener.js +0 -11
- package/esm2015/table/sticky-styler.js +0 -336
- package/esm2015/table/table-module.js +0 -47
- package/esm2015/table/table.externs.js +0 -6
- package/esm2015/table/table.js +0 -987
- package/esm2015/table/text-column.js +0 -127
- package/esm2015/testing/change-detection.js +0 -110
- package/esm2015/testing/component-harness.js +0 -344
- package/esm2015/testing/harness-environment.js +0 -219
- package/esm2015/testing/protractor/protractor-element.js +0 -274
- package/esm2015/testing/protractor/protractor-harness-environment.js +0 -79
- package/esm2015/testing/protractor/protractor.externs.js +0 -0
- package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +0 -241
- package/esm2015/testing/selenium-webdriver/selenium-web-driver-harness-environment.js +0 -97
- package/esm2015/testing/selenium-webdriver/selenium-webdriver.externs.js +0 -0
- package/esm2015/testing/test-element.js +0 -48
- package/esm2015/testing/testbed/fake-events/dispatch-events.js +0 -53
- package/esm2015/testing/testbed/fake-events/element-focus.js +0 -39
- package/esm2015/testing/testbed/fake-events/event-objects.js +0 -107
- package/esm2015/testing/testbed/fake-events/type-in-element.js +0 -79
- package/esm2015/testing/testbed/task-state-zone-interceptor.js +0 -82
- package/esm2015/testing/testbed/testbed-harness-environment.js +0 -173
- package/esm2015/testing/testbed/testbed.externs.js +0 -0
- package/esm2015/testing/testbed/unit-test-element.js +0 -266
- package/esm2015/testing/testing.externs.js +0 -0
- package/esm2015/testing/text-filtering.js +0 -23
- package/esm2015/text-field/autofill.js +0 -117
- package/esm2015/text-field/autosize.js +0 -293
- package/esm2015/text-field/text-field-module.js +0 -21
- package/esm2015/text-field/text-field.externs.js +0 -6
- package/esm2015/tree/control/nested-tree-control.js +0 -59
- package/esm2015/tree/nested-node.js +0 -112
- package/esm2015/tree/node.js +0 -36
- package/esm2015/tree/outlet.js +0 -34
- package/esm2015/tree/padding.js +0 -119
- package/esm2015/tree/toggle.js +0 -46
- package/esm2015/tree/tree-module.js +0 -32
- package/esm2015/tree/tree.externs.js +0 -6
- package/esm2015/tree/tree.js +0 -345
- package/fesm2015/a11y.js.map +0 -1
- package/fesm2015/accordion.js.map +0 -1
- package/fesm2015/bidi.js.map +0 -1
- package/fesm2015/cdk.js.map +0 -1
- package/fesm2015/clipboard.js.map +0 -1
- package/fesm2015/coercion.js.map +0 -1
- package/fesm2015/collections.js.map +0 -1
- package/fesm2015/drag-drop.js.map +0 -1
- package/fesm2015/keycodes.js.map +0 -1
- package/fesm2015/layout.js.map +0 -1
- package/fesm2015/observers.js.map +0 -1
- package/fesm2015/overlay.js.map +0 -1
- package/fesm2015/platform.js.map +0 -1
- package/fesm2015/portal.js.map +0 -1
- package/fesm2015/scrolling.js.map +0 -1
- package/fesm2015/stepper.js.map +0 -1
- package/fesm2015/table.js.map +0 -1
- package/fesm2015/testing/protractor.js.map +0 -1
- package/fesm2015/testing/selenium-webdriver.js.map +0 -1
- package/fesm2015/testing/testbed.js.map +0 -1
- package/fesm2015/testing.js.map +0 -1
- package/fesm2015/text-field.js.map +0 -1
- package/fesm2015/tree.js.map +0 -1
- package/keycodes/index.metadata.json +0 -1
- package/layout/index.metadata.json +0 -1
- package/observers/index.metadata.json +0 -1
- package/overlay/index.metadata.json +0 -1
- package/platform/index.metadata.json +0 -1
- package/portal/index.metadata.json +0 -1
- package/scrolling/index.metadata.json +0 -1
- package/stepper/index.metadata.json +0 -1
- package/table/index.metadata.json +0 -1
- package/text-field/index.metadata.json +0 -1
- package/tree/index.metadata.json +0 -1
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as i1 from '@angular/cdk/scrolling';
|
|
2
|
-
import {
|
|
2
|
+
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
3
3
|
export { CdkScrollable, ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
|
|
4
|
-
import * as
|
|
5
|
-
import { DOCUMENT
|
|
4
|
+
import * as i6 from '@angular/common';
|
|
5
|
+
import { DOCUMENT } from '@angular/common';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { Injectable,
|
|
7
|
+
import { Injectable, Inject, Optional, ElementRef, ApplicationRef, InjectionToken, Directive, EventEmitter, Input, Output, NgModule } from '@angular/core';
|
|
8
8
|
import { coerceCssPixelValue, coerceArray, coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
9
|
-
import * as
|
|
10
|
-
import { supportsScrollBehavior, _getEventTarget,
|
|
11
|
-
import {
|
|
9
|
+
import * as i1$1 from '@angular/cdk/platform';
|
|
10
|
+
import { supportsScrollBehavior, _getEventTarget, _isTestEnvironment } from '@angular/cdk/platform';
|
|
11
|
+
import { __decorate, __param, __metadata } from 'tslib';
|
|
12
|
+
import * as i5 from '@angular/cdk/bidi';
|
|
13
|
+
import { BidiModule } from '@angular/cdk/bidi';
|
|
12
14
|
import { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
13
15
|
import { Subject, Subscription, merge } from 'rxjs';
|
|
14
16
|
import { take, takeUntil, takeWhile } from 'rxjs/operators';
|
|
@@ -190,8 +192,6 @@ class NoopScrollStrategy {
|
|
|
190
192
|
* Use of this source code is governed by an MIT-style license that can be
|
|
191
193
|
* found in the LICENSE file at https://angular.io/license
|
|
192
194
|
*/
|
|
193
|
-
// TODO(jelbourn): move this to live with the rest of the scrolling code
|
|
194
|
-
// TODO(jelbourn): someday replace this with IntersectionObservers
|
|
195
195
|
/**
|
|
196
196
|
* Gets whether an element is scrolled outside of view by any of its parent scrolling containers.
|
|
197
197
|
* @param element Dimensions of the element (from getBoundingClientRect)
|
|
@@ -320,16 +320,15 @@ class ScrollStrategyOptions {
|
|
|
320
320
|
this._document = document;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
ScrollStrategyOptions.ɵ
|
|
324
|
-
ScrollStrategyOptions
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
];
|
|
323
|
+
ScrollStrategyOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", ngImport: i0, type: ScrollStrategyOptions, providedIn: 'root' });
|
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: ScrollStrategyOptions, decorators: [{
|
|
326
|
+
type: Injectable,
|
|
327
|
+
args: [{ providedIn: 'root' }]
|
|
328
|
+
}], ctorParameters: function () { return [{ type: i1.ScrollDispatcher }, { type: i1.ViewportRuler }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
329
|
+
type: Inject,
|
|
330
|
+
args: [DOCUMENT]
|
|
331
|
+
}] }]; } });
|
|
333
332
|
|
|
334
333
|
/**
|
|
335
334
|
* @license
|
|
@@ -436,7 +435,7 @@ class ConnectionPositionPair {
|
|
|
436
435
|
class ScrollingVisibility {
|
|
437
436
|
}
|
|
438
437
|
/** The change event emitted by the strategy when a fallback position is used. */
|
|
439
|
-
class ConnectedOverlayPositionChange {
|
|
438
|
+
let ConnectedOverlayPositionChange = class ConnectedOverlayPositionChange {
|
|
440
439
|
constructor(
|
|
441
440
|
/** The position used as a result of this change. */
|
|
442
441
|
connectionPair,
|
|
@@ -445,11 +444,12 @@ class ConnectedOverlayPositionChange {
|
|
|
445
444
|
this.connectionPair = connectionPair;
|
|
446
445
|
this.scrollableViewProperties = scrollableViewProperties;
|
|
447
446
|
}
|
|
448
|
-
}
|
|
449
|
-
ConnectedOverlayPositionChange
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
]
|
|
447
|
+
};
|
|
448
|
+
ConnectedOverlayPositionChange = __decorate([
|
|
449
|
+
__param(1, Optional()),
|
|
450
|
+
__metadata("design:paramtypes", [ConnectionPositionPair,
|
|
451
|
+
ScrollingVisibility])
|
|
452
|
+
], ConnectedOverlayPositionChange);
|
|
453
453
|
/**
|
|
454
454
|
* Validates whether a vertical position property matches the expected values.
|
|
455
455
|
* @param property Name of the property being validated.
|
|
@@ -514,13 +514,15 @@ class BaseOverlayDispatcher {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
BaseOverlayDispatcher.ɵ
|
|
518
|
-
BaseOverlayDispatcher
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
517
|
+
BaseOverlayDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: BaseOverlayDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
518
|
+
BaseOverlayDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: BaseOverlayDispatcher, providedIn: 'root' });
|
|
519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: BaseOverlayDispatcher, decorators: [{
|
|
520
|
+
type: Injectable,
|
|
521
|
+
args: [{ providedIn: 'root' }]
|
|
522
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
523
|
+
type: Inject,
|
|
524
|
+
args: [DOCUMENT]
|
|
525
|
+
}] }]; } });
|
|
524
526
|
|
|
525
527
|
/**
|
|
526
528
|
* @license
|
|
@@ -571,13 +573,15 @@ class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
|
|
|
571
573
|
}
|
|
572
574
|
}
|
|
573
575
|
}
|
|
574
|
-
OverlayKeyboardDispatcher.ɵ
|
|
575
|
-
OverlayKeyboardDispatcher
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
576
|
+
OverlayKeyboardDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayKeyboardDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
577
|
+
OverlayKeyboardDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayKeyboardDispatcher, providedIn: 'root' });
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayKeyboardDispatcher, decorators: [{
|
|
579
|
+
type: Injectable,
|
|
580
|
+
args: [{ providedIn: 'root' }]
|
|
581
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
582
|
+
type: Inject,
|
|
583
|
+
args: [DOCUMENT]
|
|
584
|
+
}] }]; } });
|
|
581
585
|
|
|
582
586
|
/**
|
|
583
587
|
* @license
|
|
@@ -596,9 +600,24 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
596
600
|
super(document);
|
|
597
601
|
this._platform = _platform;
|
|
598
602
|
this._cursorStyleIsSet = false;
|
|
603
|
+
/** Store pointerdown event target to track origin of click. */
|
|
604
|
+
this._pointerDownListener = (event) => {
|
|
605
|
+
this._pointerDownEventTarget = _getEventTarget(event);
|
|
606
|
+
};
|
|
599
607
|
/** Click event listener that will be attached to the body propagate phase. */
|
|
600
608
|
this._clickListener = (event) => {
|
|
601
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;
|
|
602
621
|
// We copy the array because the original may be modified asynchronously if the
|
|
603
622
|
// outsidePointerEvents listener decides to detach overlays resulting in index errors inside
|
|
604
623
|
// the for loop.
|
|
@@ -613,8 +632,10 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
613
632
|
continue;
|
|
614
633
|
}
|
|
615
634
|
// If it's a click inside the overlay, just break - we should do nothing
|
|
616
|
-
// If it's an outside click
|
|
617
|
-
|
|
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)) {
|
|
618
639
|
break;
|
|
619
640
|
}
|
|
620
641
|
overlayRef._outsidePointerEvents.next(event);
|
|
@@ -632,6 +653,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
632
653
|
// https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
|
|
633
654
|
if (!this._isAttached) {
|
|
634
655
|
const body = this._document.body;
|
|
656
|
+
body.addEventListener('pointerdown', this._pointerDownListener, true);
|
|
635
657
|
body.addEventListener('click', this._clickListener, true);
|
|
636
658
|
body.addEventListener('auxclick', this._clickListener, true);
|
|
637
659
|
body.addEventListener('contextmenu', this._clickListener, true);
|
|
@@ -649,6 +671,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
649
671
|
detach() {
|
|
650
672
|
if (this._isAttached) {
|
|
651
673
|
const body = this._document.body;
|
|
674
|
+
body.removeEventListener('pointerdown', this._pointerDownListener, true);
|
|
652
675
|
body.removeEventListener('click', this._clickListener, true);
|
|
653
676
|
body.removeEventListener('auxclick', this._clickListener, true);
|
|
654
677
|
body.removeEventListener('contextmenu', this._clickListener, true);
|
|
@@ -660,14 +683,15 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
660
683
|
}
|
|
661
684
|
}
|
|
662
685
|
}
|
|
663
|
-
OverlayOutsideClickDispatcher.ɵ
|
|
664
|
-
OverlayOutsideClickDispatcher
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
]
|
|
686
|
+
OverlayOutsideClickDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", ngImport: i0, type: OverlayOutsideClickDispatcher, providedIn: 'root' });
|
|
688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayOutsideClickDispatcher, decorators: [{
|
|
689
|
+
type: Injectable,
|
|
690
|
+
args: [{ providedIn: 'root' }]
|
|
691
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
692
|
+
type: Inject,
|
|
693
|
+
args: [DOCUMENT]
|
|
694
|
+
}] }, { type: i1$1.Platform }]; } });
|
|
671
695
|
|
|
672
696
|
/**
|
|
673
697
|
* @license
|
|
@@ -683,10 +707,7 @@ class OverlayContainer {
|
|
|
683
707
|
this._document = document;
|
|
684
708
|
}
|
|
685
709
|
ngOnDestroy() {
|
|
686
|
-
|
|
687
|
-
if (container && container.parentNode) {
|
|
688
|
-
container.parentNode.removeChild(container);
|
|
689
|
-
}
|
|
710
|
+
this._containerElement?.remove();
|
|
690
711
|
}
|
|
691
712
|
/**
|
|
692
713
|
* This method returns the overlay container element. It will lazily
|
|
@@ -710,12 +731,11 @@ class OverlayContainer {
|
|
|
710
731
|
// module or Angular starts tearing down the testing `NgModule`. See:
|
|
711
732
|
// https://github.com/angular/angular/issues/18831
|
|
712
733
|
if (this._platform.isBrowser || _isTestEnvironment()) {
|
|
713
|
-
const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform="server"], ` +
|
|
714
|
-
`.${containerClass}[platform="test"]`);
|
|
734
|
+
const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform="server"], ` + `.${containerClass}[platform="test"]`);
|
|
715
735
|
// Remove any old containers from the opposite platform.
|
|
716
736
|
// This can happen when transitioning from the server to the client.
|
|
717
737
|
for (let i = 0; i < oppositePlatformContainers.length; i++) {
|
|
718
|
-
oppositePlatformContainers[i].
|
|
738
|
+
oppositePlatformContainers[i].remove();
|
|
719
739
|
}
|
|
720
740
|
}
|
|
721
741
|
const container = this._document.createElement('div');
|
|
@@ -739,14 +759,15 @@ class OverlayContainer {
|
|
|
739
759
|
this._containerElement = container;
|
|
740
760
|
}
|
|
741
761
|
}
|
|
742
|
-
OverlayContainer.ɵ
|
|
743
|
-
OverlayContainer
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
]
|
|
762
|
+
OverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", ngImport: i0, type: OverlayContainer, providedIn: 'root' });
|
|
764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayContainer, decorators: [{
|
|
765
|
+
type: Injectable,
|
|
766
|
+
args: [{ providedIn: 'root' }]
|
|
767
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
768
|
+
type: Inject,
|
|
769
|
+
args: [DOCUMENT]
|
|
770
|
+
}] }, { type: i1$1.Platform }]; } });
|
|
750
771
|
|
|
751
772
|
/**
|
|
752
773
|
* @license
|
|
@@ -827,9 +848,7 @@ class OverlayRef {
|
|
|
827
848
|
// Update the position once the zone is stable so that the overlay will be fully rendered
|
|
828
849
|
// before attempting to position it, as the position may depend on the size of the rendered
|
|
829
850
|
// content.
|
|
830
|
-
this._ngZone.onStable
|
|
831
|
-
.pipe(take(1))
|
|
832
|
-
.subscribe(() => {
|
|
851
|
+
this._ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
833
852
|
// The overlay could've been detached before the zone has stabilized.
|
|
834
853
|
if (this.hasAttached()) {
|
|
835
854
|
this.updatePosition();
|
|
@@ -900,11 +919,8 @@ class OverlayRef {
|
|
|
900
919
|
this._keydownEvents.complete();
|
|
901
920
|
this._outsidePointerEvents.complete();
|
|
902
921
|
this._outsideClickDispatcher.remove(this);
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
this._host = null;
|
|
906
|
-
}
|
|
907
|
-
this._previousHostParent = this._pane = null;
|
|
922
|
+
this._host?.remove();
|
|
923
|
+
this._previousHostParent = this._pane = this._host = null;
|
|
908
924
|
if (isAttached) {
|
|
909
925
|
this._detachments.next();
|
|
910
926
|
}
|
|
@@ -960,12 +976,12 @@ class OverlayRef {
|
|
|
960
976
|
}
|
|
961
977
|
/** Update the size properties of the overlay. */
|
|
962
978
|
updateSize(sizeConfig) {
|
|
963
|
-
this._config =
|
|
979
|
+
this._config = { ...this._config, ...sizeConfig };
|
|
964
980
|
this._updateElementSize();
|
|
965
981
|
}
|
|
966
982
|
/** Sets the LTR/RTL direction for the overlay. */
|
|
967
983
|
setDirection(dir) {
|
|
968
|
-
this._config =
|
|
984
|
+
this._config = { ...this._config, direction: dir };
|
|
969
985
|
this._updateElementDirection();
|
|
970
986
|
}
|
|
971
987
|
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
@@ -1121,7 +1137,7 @@ class OverlayRef {
|
|
|
1121
1137
|
}
|
|
1122
1138
|
if (this._host && this._host.parentElement) {
|
|
1123
1139
|
this._previousHostParent = this._host.parentElement;
|
|
1124
|
-
this.
|
|
1140
|
+
this._host.remove();
|
|
1125
1141
|
}
|
|
1126
1142
|
subscription.unsubscribe();
|
|
1127
1143
|
}
|
|
@@ -1141,9 +1157,7 @@ class OverlayRef {
|
|
|
1141
1157
|
/** Removes a backdrop element from the DOM. */
|
|
1142
1158
|
_disposeBackdrop(backdrop) {
|
|
1143
1159
|
if (backdrop) {
|
|
1144
|
-
|
|
1145
|
-
backdrop.parentNode.removeChild(backdrop);
|
|
1146
|
-
}
|
|
1160
|
+
backdrop.remove();
|
|
1147
1161
|
// It is possible that a new portal has been attached to this overlay since we started
|
|
1148
1162
|
// removing the backdrop. If that is the case, only clear the backdrop reference if it
|
|
1149
1163
|
// is still the same instance that we started to remove.
|
|
@@ -1218,7 +1232,8 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1218
1232
|
}
|
|
1219
1233
|
/** Attaches this position strategy to an overlay. */
|
|
1220
1234
|
attach(overlayRef) {
|
|
1221
|
-
if (this._overlayRef &&
|
|
1235
|
+
if (this._overlayRef &&
|
|
1236
|
+
overlayRef !== this._overlayRef &&
|
|
1222
1237
|
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1223
1238
|
throw Error('This position strategy is already attached to an overlay');
|
|
1224
1239
|
}
|
|
@@ -1307,7 +1322,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1307
1322
|
position: pos,
|
|
1308
1323
|
origin: originPoint,
|
|
1309
1324
|
overlayRect,
|
|
1310
|
-
boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos)
|
|
1325
|
+
boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos),
|
|
1311
1326
|
});
|
|
1312
1327
|
continue;
|
|
1313
1328
|
}
|
|
@@ -1500,7 +1515,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1500
1515
|
if (pos.originX == 'center') {
|
|
1501
1516
|
// Note: when centering we should always use the `left`
|
|
1502
1517
|
// offset, otherwise the position will be wrong in RTL.
|
|
1503
|
-
x = originRect.left +
|
|
1518
|
+
x = originRect.left + originRect.width / 2;
|
|
1504
1519
|
}
|
|
1505
1520
|
else {
|
|
1506
1521
|
const startX = this._isRtl() ? originRect.right : originRect.left;
|
|
@@ -1509,7 +1524,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1509
1524
|
}
|
|
1510
1525
|
let y;
|
|
1511
1526
|
if (pos.originY == 'center') {
|
|
1512
|
-
y = originRect.top +
|
|
1527
|
+
y = originRect.top + originRect.height / 2;
|
|
1513
1528
|
}
|
|
1514
1529
|
else {
|
|
1515
1530
|
y = pos.originY == 'top' ? originRect.top : originRect.bottom;
|
|
@@ -1563,16 +1578,16 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1563
1578
|
}
|
|
1564
1579
|
// How much the overlay would overflow at this position, on each side.
|
|
1565
1580
|
let leftOverflow = 0 - x;
|
|
1566
|
-
let rightOverflow =
|
|
1581
|
+
let rightOverflow = x + overlay.width - viewport.width;
|
|
1567
1582
|
let topOverflow = 0 - y;
|
|
1568
|
-
let bottomOverflow =
|
|
1583
|
+
let bottomOverflow = y + overlay.height - viewport.height;
|
|
1569
1584
|
// Visible parts of the element on each axis.
|
|
1570
1585
|
let visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);
|
|
1571
1586
|
let visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);
|
|
1572
1587
|
let visibleArea = visibleWidth * visibleHeight;
|
|
1573
1588
|
return {
|
|
1574
1589
|
visibleArea,
|
|
1575
|
-
isCompletelyWithinViewport:
|
|
1590
|
+
isCompletelyWithinViewport: overlay.width * overlay.height === visibleArea,
|
|
1576
1591
|
fitsInViewportVertically: visibleHeight === overlay.height,
|
|
1577
1592
|
fitsInViewportHorizontally: visibleWidth == overlay.width,
|
|
1578
1593
|
};
|
|
@@ -1589,10 +1604,8 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1589
1604
|
const availableWidth = viewport.right - point.x;
|
|
1590
1605
|
const minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);
|
|
1591
1606
|
const minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);
|
|
1592
|
-
const verticalFit = fit.fitsInViewportVertically ||
|
|
1593
|
-
|
|
1594
|
-
const horizontalFit = fit.fitsInViewportHorizontally ||
|
|
1595
|
-
(minWidth != null && minWidth <= availableWidth);
|
|
1607
|
+
const verticalFit = fit.fitsInViewportVertically || (minHeight != null && minHeight <= availableHeight);
|
|
1608
|
+
const horizontalFit = fit.fitsInViewportHorizontally || (minWidth != null && minWidth <= availableWidth);
|
|
1596
1609
|
return verticalFit && horizontalFit;
|
|
1597
1610
|
}
|
|
1598
1611
|
return false;
|
|
@@ -1615,7 +1628,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1615
1628
|
if (this._previousPushAmount && this._positionLocked) {
|
|
1616
1629
|
return {
|
|
1617
1630
|
x: start.x + this._previousPushAmount.x,
|
|
1618
|
-
y: start.y + this._previousPushAmount.y
|
|
1631
|
+
y: start.y + this._previousPushAmount.y,
|
|
1619
1632
|
};
|
|
1620
1633
|
}
|
|
1621
1634
|
// Round the overlay rect when comparing against the
|
|
@@ -1638,13 +1651,13 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1638
1651
|
pushX = overflowLeft || -overflowRight;
|
|
1639
1652
|
}
|
|
1640
1653
|
else {
|
|
1641
|
-
pushX = start.x < this._viewportMargin ?
|
|
1654
|
+
pushX = start.x < this._viewportMargin ? viewport.left - scrollPosition.left - start.x : 0;
|
|
1642
1655
|
}
|
|
1643
1656
|
if (overlay.height <= viewport.height) {
|
|
1644
1657
|
pushY = overflowTop || -overflowBottom;
|
|
1645
1658
|
}
|
|
1646
1659
|
else {
|
|
1647
|
-
pushY = start.y < this._viewportMargin ?
|
|
1660
|
+
pushY = start.y < this._viewportMargin ? viewport.top - scrollPosition.top - start.y : 0;
|
|
1648
1661
|
}
|
|
1649
1662
|
this._previousPushAmount = { x: pushX, y: pushY };
|
|
1650
1663
|
return {
|
|
@@ -1729,15 +1742,13 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1729
1742
|
height = smallestDistanceToViewportEdge * 2;
|
|
1730
1743
|
top = origin.y - smallestDistanceToViewportEdge;
|
|
1731
1744
|
if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {
|
|
1732
|
-
top = origin.y -
|
|
1745
|
+
top = origin.y - previousHeight / 2;
|
|
1733
1746
|
}
|
|
1734
1747
|
}
|
|
1735
1748
|
// The overlay is opening 'right-ward' (the content flows to the right).
|
|
1736
|
-
const isBoundedByRightViewportEdge = (position.overlayX === 'start' && !isRtl) ||
|
|
1737
|
-
(position.overlayX === 'end' && isRtl);
|
|
1749
|
+
const isBoundedByRightViewportEdge = (position.overlayX === 'start' && !isRtl) || (position.overlayX === 'end' && isRtl);
|
|
1738
1750
|
// The overlay is opening 'left-ward' (the content flows to the left).
|
|
1739
|
-
const isBoundedByLeftViewportEdge = (position.overlayX === 'end' && !isRtl) ||
|
|
1740
|
-
(position.overlayX === 'start' && isRtl);
|
|
1751
|
+
const isBoundedByLeftViewportEdge = (position.overlayX === 'end' && !isRtl) || (position.overlayX === 'start' && isRtl);
|
|
1741
1752
|
let width, left, right;
|
|
1742
1753
|
if (isBoundedByLeftViewportEdge) {
|
|
1743
1754
|
right = viewport.width - origin.x + this._viewportMargin;
|
|
@@ -1757,7 +1768,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1757
1768
|
width = smallestDistanceToViewportEdge * 2;
|
|
1758
1769
|
left = origin.x - smallestDistanceToViewportEdge;
|
|
1759
1770
|
if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {
|
|
1760
|
-
left = origin.x -
|
|
1771
|
+
left = origin.x - previousWidth / 2;
|
|
1761
1772
|
}
|
|
1762
1773
|
}
|
|
1763
1774
|
return { top: top, left: left, bottom: bottom, right: right, width, height };
|
|
@@ -1900,7 +1911,9 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1900
1911
|
if (this._isPushed) {
|
|
1901
1912
|
overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);
|
|
1902
1913
|
}
|
|
1903
|
-
let virtualKeyboardOffset = this._overlayContainer
|
|
1914
|
+
let virtualKeyboardOffset = this._overlayContainer
|
|
1915
|
+
.getContainerElement()
|
|
1916
|
+
.getBoundingClientRect().top;
|
|
1904
1917
|
// Normally this would be zero, however when the overlay is attached to an input (e.g. in an
|
|
1905
1918
|
// autocomplete), mobile browsers will shift everything in order to put the input in the middle
|
|
1906
1919
|
// of the screen and to make space for the virtual keyboard. We need to account for this offset,
|
|
@@ -1992,8 +2005,8 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1992
2005
|
left: scrollPosition.left + this._viewportMargin,
|
|
1993
2006
|
right: scrollPosition.left + width - this._viewportMargin,
|
|
1994
2007
|
bottom: scrollPosition.top + height - this._viewportMargin,
|
|
1995
|
-
width: width -
|
|
1996
|
-
height: height -
|
|
2008
|
+
width: width - 2 * this._viewportMargin,
|
|
2009
|
+
height: height - 2 * this._viewportMargin,
|
|
1997
2010
|
};
|
|
1998
2011
|
}
|
|
1999
2012
|
/** Whether the we're dealing with an RTL context */
|
|
@@ -2068,7 +2081,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
2068
2081
|
left: origin.x,
|
|
2069
2082
|
right: origin.x + width,
|
|
2070
2083
|
height,
|
|
2071
|
-
width
|
|
2084
|
+
width,
|
|
2072
2085
|
};
|
|
2073
2086
|
}
|
|
2074
2087
|
}
|
|
@@ -2088,7 +2101,7 @@ function extendStyles(destination, source) {
|
|
|
2088
2101
|
function getPixelValue(input) {
|
|
2089
2102
|
if (typeof input !== 'number' && input != null) {
|
|
2090
2103
|
const [value, units] = input.split(cssUnitPattern);
|
|
2091
|
-
return
|
|
2104
|
+
return !units || units === 'px' ? parseFloat(value) : null;
|
|
2092
2105
|
}
|
|
2093
2106
|
return input || null;
|
|
2094
2107
|
}
|
|
@@ -2105,7 +2118,7 @@ function getRoundedBoundingClientRect(clientRect) {
|
|
|
2105
2118
|
bottom: Math.floor(clientRect.bottom),
|
|
2106
2119
|
left: Math.floor(clientRect.left),
|
|
2107
2120
|
width: Math.floor(clientRect.width),
|
|
2108
|
-
height: Math.floor(clientRect.height)
|
|
2121
|
+
height: Math.floor(clientRect.height),
|
|
2109
2122
|
};
|
|
2110
2123
|
}
|
|
2111
2124
|
|
|
@@ -2299,8 +2312,14 @@ class GlobalPositionStrategy {
|
|
|
2299
2312
|
const parent = this._overlayRef.hostElement;
|
|
2300
2313
|
const parentStyles = parent.style;
|
|
2301
2314
|
parent.classList.remove(wrapperClass);
|
|
2302
|
-
parentStyles.justifyContent =
|
|
2303
|
-
|
|
2315
|
+
parentStyles.justifyContent =
|
|
2316
|
+
parentStyles.alignItems =
|
|
2317
|
+
styles.marginTop =
|
|
2318
|
+
styles.marginBottom =
|
|
2319
|
+
styles.marginLeft =
|
|
2320
|
+
styles.marginRight =
|
|
2321
|
+
styles.position =
|
|
2322
|
+
'';
|
|
2304
2323
|
this._overlayRef = null;
|
|
2305
2324
|
this._isDisposed = true;
|
|
2306
2325
|
}
|
|
@@ -2335,16 +2354,15 @@ class OverlayPositionBuilder {
|
|
|
2335
2354
|
return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);
|
|
2336
2355
|
}
|
|
2337
2356
|
}
|
|
2338
|
-
OverlayPositionBuilder.ɵ
|
|
2339
|
-
OverlayPositionBuilder
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
];
|
|
2357
|
+
OverlayPositionBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", ngImport: i0, type: OverlayPositionBuilder, providedIn: 'root' });
|
|
2359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayPositionBuilder, decorators: [{
|
|
2360
|
+
type: Injectable,
|
|
2361
|
+
args: [{ providedIn: 'root' }]
|
|
2362
|
+
}], ctorParameters: function () { return [{ type: i1.ViewportRuler }, { type: undefined, decorators: [{
|
|
2363
|
+
type: Inject,
|
|
2364
|
+
args: [DOCUMENT]
|
|
2365
|
+
}] }, { type: i1$1.Platform }, { type: OverlayContainer }]; } });
|
|
2348
2366
|
|
|
2349
2367
|
/**
|
|
2350
2368
|
* @license
|
|
@@ -2437,22 +2455,14 @@ class Overlay {
|
|
|
2437
2455
|
return new DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);
|
|
2438
2456
|
}
|
|
2439
2457
|
}
|
|
2440
|
-
Overlay
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
{ type: OverlayKeyboardDispatcher },
|
|
2449
|
-
{ type: Injector },
|
|
2450
|
-
{ type: NgZone },
|
|
2451
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
2452
|
-
{ type: Directionality },
|
|
2453
|
-
{ type: Location },
|
|
2454
|
-
{ type: OverlayOutsideClickDispatcher }
|
|
2455
|
-
];
|
|
2458
|
+
Overlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", ngImport: i0, type: Overlay });
|
|
2460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: Overlay, decorators: [{
|
|
2461
|
+
type: Injectable
|
|
2462
|
+
}], ctorParameters: function () { return [{ type: ScrollStrategyOptions }, { type: OverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: OverlayPositionBuilder }, { type: OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
2463
|
+
type: Inject,
|
|
2464
|
+
args: [DOCUMENT]
|
|
2465
|
+
}] }, { type: i5.Directionality }, { type: i6.Location }, { type: OverlayOutsideClickDispatcher }]; } });
|
|
2456
2466
|
|
|
2457
2467
|
/**
|
|
2458
2468
|
* @license
|
|
@@ -2467,26 +2477,26 @@ const defaultPositionList = [
|
|
|
2467
2477
|
originX: 'start',
|
|
2468
2478
|
originY: 'bottom',
|
|
2469
2479
|
overlayX: 'start',
|
|
2470
|
-
overlayY: 'top'
|
|
2480
|
+
overlayY: 'top',
|
|
2471
2481
|
},
|
|
2472
2482
|
{
|
|
2473
2483
|
originX: 'start',
|
|
2474
2484
|
originY: 'top',
|
|
2475
2485
|
overlayX: 'start',
|
|
2476
|
-
overlayY: 'bottom'
|
|
2486
|
+
overlayY: 'bottom',
|
|
2477
2487
|
},
|
|
2478
2488
|
{
|
|
2479
2489
|
originX: 'end',
|
|
2480
2490
|
originY: 'top',
|
|
2481
2491
|
overlayX: 'end',
|
|
2482
|
-
overlayY: 'bottom'
|
|
2492
|
+
overlayY: 'bottom',
|
|
2483
2493
|
},
|
|
2484
2494
|
{
|
|
2485
2495
|
originX: 'end',
|
|
2486
2496
|
originY: 'bottom',
|
|
2487
2497
|
overlayX: 'end',
|
|
2488
|
-
overlayY: 'top'
|
|
2489
|
-
}
|
|
2498
|
+
overlayY: 'top',
|
|
2499
|
+
},
|
|
2490
2500
|
];
|
|
2491
2501
|
/** Injection token that determines the scroll handling while the connected overlay is open. */
|
|
2492
2502
|
const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new InjectionToken('cdk-connected-overlay-scroll-strategy');
|
|
@@ -2501,15 +2511,15 @@ class CdkOverlayOrigin {
|
|
|
2501
2511
|
this.elementRef = elementRef;
|
|
2502
2512
|
}
|
|
2503
2513
|
}
|
|
2504
|
-
CdkOverlayOrigin
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
]
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
];
|
|
2514
|
+
CdkOverlayOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"], ngImport: i0 });
|
|
2516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkOverlayOrigin, decorators: [{
|
|
2517
|
+
type: Directive,
|
|
2518
|
+
args: [{
|
|
2519
|
+
selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',
|
|
2520
|
+
exportAs: 'cdkOverlayOrigin',
|
|
2521
|
+
}]
|
|
2522
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
2513
2523
|
/**
|
|
2514
2524
|
* Directive to facilitate declarative creation of an
|
|
2515
2525
|
* Overlay using a FlexibleConnectedPositionStrategy.
|
|
@@ -2551,7 +2561,9 @@ class CdkConnectedOverlay {
|
|
|
2551
2561
|
this.scrollStrategy = this._scrollStrategyFactory();
|
|
2552
2562
|
}
|
|
2553
2563
|
/** The offset in pixels for the overlay connection point on the x-axis */
|
|
2554
|
-
get offsetX() {
|
|
2564
|
+
get offsetX() {
|
|
2565
|
+
return this._offsetX;
|
|
2566
|
+
}
|
|
2555
2567
|
set offsetX(offsetX) {
|
|
2556
2568
|
this._offsetX = offsetX;
|
|
2557
2569
|
if (this._position) {
|
|
@@ -2559,7 +2571,9 @@ class CdkConnectedOverlay {
|
|
|
2559
2571
|
}
|
|
2560
2572
|
}
|
|
2561
2573
|
/** The offset in pixels for the overlay connection point on the y-axis */
|
|
2562
|
-
get offsetY() {
|
|
2574
|
+
get offsetY() {
|
|
2575
|
+
return this._offsetY;
|
|
2576
|
+
}
|
|
2563
2577
|
set offsetY(offsetY) {
|
|
2564
2578
|
this._offsetY = offsetY;
|
|
2565
2579
|
if (this._position) {
|
|
@@ -2567,22 +2581,40 @@ class CdkConnectedOverlay {
|
|
|
2567
2581
|
}
|
|
2568
2582
|
}
|
|
2569
2583
|
/** Whether or not the overlay should attach a backdrop. */
|
|
2570
|
-
get hasBackdrop() {
|
|
2571
|
-
|
|
2584
|
+
get hasBackdrop() {
|
|
2585
|
+
return this._hasBackdrop;
|
|
2586
|
+
}
|
|
2587
|
+
set hasBackdrop(value) {
|
|
2588
|
+
this._hasBackdrop = coerceBooleanProperty(value);
|
|
2589
|
+
}
|
|
2572
2590
|
/** Whether or not the overlay should be locked when scrolling. */
|
|
2573
|
-
get lockPosition() {
|
|
2574
|
-
|
|
2591
|
+
get lockPosition() {
|
|
2592
|
+
return this._lockPosition;
|
|
2593
|
+
}
|
|
2594
|
+
set lockPosition(value) {
|
|
2595
|
+
this._lockPosition = coerceBooleanProperty(value);
|
|
2596
|
+
}
|
|
2575
2597
|
/** Whether the overlay's width and height can be constrained to fit within the viewport. */
|
|
2576
|
-
get flexibleDimensions() {
|
|
2598
|
+
get flexibleDimensions() {
|
|
2599
|
+
return this._flexibleDimensions;
|
|
2600
|
+
}
|
|
2577
2601
|
set flexibleDimensions(value) {
|
|
2578
2602
|
this._flexibleDimensions = coerceBooleanProperty(value);
|
|
2579
2603
|
}
|
|
2580
2604
|
/** Whether the overlay can grow after the initial open when flexible positioning is turned on. */
|
|
2581
|
-
get growAfterOpen() {
|
|
2582
|
-
|
|
2605
|
+
get growAfterOpen() {
|
|
2606
|
+
return this._growAfterOpen;
|
|
2607
|
+
}
|
|
2608
|
+
set growAfterOpen(value) {
|
|
2609
|
+
this._growAfterOpen = coerceBooleanProperty(value);
|
|
2610
|
+
}
|
|
2583
2611
|
/** Whether the overlay can be pushed on-screen if none of the provided positions fit. */
|
|
2584
|
-
get push() {
|
|
2585
|
-
|
|
2612
|
+
get push() {
|
|
2613
|
+
return this._push;
|
|
2614
|
+
}
|
|
2615
|
+
set push(value) {
|
|
2616
|
+
this._push = coerceBooleanProperty(value);
|
|
2617
|
+
}
|
|
2586
2618
|
/** The associated overlay reference. */
|
|
2587
2619
|
get overlayRef() {
|
|
2588
2620
|
return this._overlayRef;
|
|
@@ -2622,7 +2654,7 @@ class CdkConnectedOverlay {
|
|
|
2622
2654
|
if (!this.positions || !this.positions.length) {
|
|
2623
2655
|
this.positions = defaultPositionList;
|
|
2624
2656
|
}
|
|
2625
|
-
const overlayRef = this._overlayRef = this._overlay.create(this._buildConfig());
|
|
2657
|
+
const overlayRef = (this._overlayRef = this._overlay.create(this._buildConfig()));
|
|
2626
2658
|
this._attachSubscription = overlayRef.attachments().subscribe(() => this.attach.emit());
|
|
2627
2659
|
this._detachSubscription = overlayRef.detachments().subscribe(() => this.detach.emit());
|
|
2628
2660
|
overlayRef.keydownEvents().subscribe((event) => {
|
|
@@ -2638,13 +2670,13 @@ class CdkConnectedOverlay {
|
|
|
2638
2670
|
}
|
|
2639
2671
|
/** Builds the overlay config based on the directive's inputs */
|
|
2640
2672
|
_buildConfig() {
|
|
2641
|
-
const positionStrategy = this._position =
|
|
2642
|
-
this.positionStrategy || this._createPositionStrategy();
|
|
2673
|
+
const positionStrategy = (this._position =
|
|
2674
|
+
this.positionStrategy || this._createPositionStrategy());
|
|
2643
2675
|
const overlayConfig = new OverlayConfig({
|
|
2644
2676
|
direction: this._dir,
|
|
2645
2677
|
positionStrategy,
|
|
2646
2678
|
scrollStrategy: this.scrollStrategy,
|
|
2647
|
-
hasBackdrop: this.hasBackdrop
|
|
2679
|
+
hasBackdrop: this.hasBackdrop,
|
|
2648
2680
|
});
|
|
2649
2681
|
if (this.width || this.width === 0) {
|
|
2650
2682
|
overlayConfig.width = this.width;
|
|
@@ -2677,7 +2709,8 @@ class CdkConnectedOverlay {
|
|
|
2677
2709
|
offsetY: currentPosition.offsetY || this.offsetY,
|
|
2678
2710
|
panelClass: currentPosition.panelClass || undefined,
|
|
2679
2711
|
}));
|
|
2680
|
-
return positionStrategy
|
|
2712
|
+
return positionStrategy
|
|
2713
|
+
.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin())
|
|
2681
2714
|
.withPositions(positions)
|
|
2682
2715
|
.withFlexibleDimensions(this.flexibleDimensions)
|
|
2683
2716
|
.withPush(this.push)
|
|
@@ -2688,7 +2721,9 @@ class CdkConnectedOverlay {
|
|
|
2688
2721
|
}
|
|
2689
2722
|
/** Returns the position strategy of the overlay to be set on the overlay config */
|
|
2690
2723
|
_createPositionStrategy() {
|
|
2691
|
-
const strategy = this._overlay
|
|
2724
|
+
const strategy = this._overlay
|
|
2725
|
+
.position()
|
|
2726
|
+
.flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());
|
|
2692
2727
|
this._updatePositionStrategy(strategy);
|
|
2693
2728
|
return strategy;
|
|
2694
2729
|
}
|
|
@@ -2743,48 +2778,95 @@ class CdkConnectedOverlay {
|
|
|
2743
2778
|
this._positionSubscription.unsubscribe();
|
|
2744
2779
|
}
|
|
2745
2780
|
}
|
|
2746
|
-
CdkConnectedOverlay
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
]
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2781
|
+
CdkConnectedOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", 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-next.15", ngImport: i0, type: CdkConnectedOverlay, decorators: [{
|
|
2784
|
+
type: Directive,
|
|
2785
|
+
args: [{
|
|
2786
|
+
selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',
|
|
2787
|
+
exportAs: 'cdkConnectedOverlay',
|
|
2788
|
+
}]
|
|
2789
|
+
}], ctorParameters: function () { return [{ type: Overlay }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
2790
|
+
type: Inject,
|
|
2791
|
+
args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY]
|
|
2792
|
+
}] }, { type: i5.Directionality, decorators: [{
|
|
2793
|
+
type: Optional
|
|
2794
|
+
}] }]; }, propDecorators: { origin: [{
|
|
2795
|
+
type: Input,
|
|
2796
|
+
args: ['cdkConnectedOverlayOrigin']
|
|
2797
|
+
}], positions: [{
|
|
2798
|
+
type: Input,
|
|
2799
|
+
args: ['cdkConnectedOverlayPositions']
|
|
2800
|
+
}], positionStrategy: [{
|
|
2801
|
+
type: Input,
|
|
2802
|
+
args: ['cdkConnectedOverlayPositionStrategy']
|
|
2803
|
+
}], offsetX: [{
|
|
2804
|
+
type: Input,
|
|
2805
|
+
args: ['cdkConnectedOverlayOffsetX']
|
|
2806
|
+
}], offsetY: [{
|
|
2807
|
+
type: Input,
|
|
2808
|
+
args: ['cdkConnectedOverlayOffsetY']
|
|
2809
|
+
}], width: [{
|
|
2810
|
+
type: Input,
|
|
2811
|
+
args: ['cdkConnectedOverlayWidth']
|
|
2812
|
+
}], height: [{
|
|
2813
|
+
type: Input,
|
|
2814
|
+
args: ['cdkConnectedOverlayHeight']
|
|
2815
|
+
}], minWidth: [{
|
|
2816
|
+
type: Input,
|
|
2817
|
+
args: ['cdkConnectedOverlayMinWidth']
|
|
2818
|
+
}], minHeight: [{
|
|
2819
|
+
type: Input,
|
|
2820
|
+
args: ['cdkConnectedOverlayMinHeight']
|
|
2821
|
+
}], backdropClass: [{
|
|
2822
|
+
type: Input,
|
|
2823
|
+
args: ['cdkConnectedOverlayBackdropClass']
|
|
2824
|
+
}], panelClass: [{
|
|
2825
|
+
type: Input,
|
|
2826
|
+
args: ['cdkConnectedOverlayPanelClass']
|
|
2827
|
+
}], viewportMargin: [{
|
|
2828
|
+
type: Input,
|
|
2829
|
+
args: ['cdkConnectedOverlayViewportMargin']
|
|
2830
|
+
}], scrollStrategy: [{
|
|
2831
|
+
type: Input,
|
|
2832
|
+
args: ['cdkConnectedOverlayScrollStrategy']
|
|
2833
|
+
}], open: [{
|
|
2834
|
+
type: Input,
|
|
2835
|
+
args: ['cdkConnectedOverlayOpen']
|
|
2836
|
+
}], disableClose: [{
|
|
2837
|
+
type: Input,
|
|
2838
|
+
args: ['cdkConnectedOverlayDisableClose']
|
|
2839
|
+
}], transformOriginSelector: [{
|
|
2840
|
+
type: Input,
|
|
2841
|
+
args: ['cdkConnectedOverlayTransformOriginOn']
|
|
2842
|
+
}], hasBackdrop: [{
|
|
2843
|
+
type: Input,
|
|
2844
|
+
args: ['cdkConnectedOverlayHasBackdrop']
|
|
2845
|
+
}], lockPosition: [{
|
|
2846
|
+
type: Input,
|
|
2847
|
+
args: ['cdkConnectedOverlayLockPosition']
|
|
2848
|
+
}], flexibleDimensions: [{
|
|
2849
|
+
type: Input,
|
|
2850
|
+
args: ['cdkConnectedOverlayFlexibleDimensions']
|
|
2851
|
+
}], growAfterOpen: [{
|
|
2852
|
+
type: Input,
|
|
2853
|
+
args: ['cdkConnectedOverlayGrowAfterOpen']
|
|
2854
|
+
}], push: [{
|
|
2855
|
+
type: Input,
|
|
2856
|
+
args: ['cdkConnectedOverlayPush']
|
|
2857
|
+
}], backdropClick: [{
|
|
2858
|
+
type: Output
|
|
2859
|
+
}], positionChange: [{
|
|
2860
|
+
type: Output
|
|
2861
|
+
}], attach: [{
|
|
2862
|
+
type: Output
|
|
2863
|
+
}], detach: [{
|
|
2864
|
+
type: Output
|
|
2865
|
+
}], overlayKeydown: [{
|
|
2866
|
+
type: Output
|
|
2867
|
+
}], overlayOutsideClick: [{
|
|
2868
|
+
type: Output
|
|
2869
|
+
}] } });
|
|
2788
2870
|
/** @docs-private */
|
|
2789
2871
|
function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
|
|
2790
2872
|
return () => overlay.scrollStrategies.reposition();
|
|
@@ -2805,17 +2887,18 @@ const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {
|
|
|
2805
2887
|
*/
|
|
2806
2888
|
class OverlayModule {
|
|
2807
2889
|
}
|
|
2808
|
-
OverlayModule
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
]
|
|
2890
|
+
OverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: OverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2891
|
+
OverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", 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-next.15", ngImport: i0, type: OverlayModule, decorators: [{
|
|
2894
|
+
type: NgModule,
|
|
2895
|
+
args: [{
|
|
2896
|
+
imports: [BidiModule, PortalModule, ScrollingModule],
|
|
2897
|
+
exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule],
|
|
2898
|
+
declarations: [CdkConnectedOverlay, CdkOverlayOrigin],
|
|
2899
|
+
providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],
|
|
2900
|
+
}]
|
|
2901
|
+
}] });
|
|
2819
2902
|
|
|
2820
2903
|
/**
|
|
2821
2904
|
* @license
|
|
@@ -2896,21 +2979,22 @@ class FullscreenOverlayContainer extends OverlayContainer {
|
|
|
2896
2979
|
*/
|
|
2897
2980
|
getFullscreenElement() {
|
|
2898
2981
|
const _document = this._document;
|
|
2899
|
-
return _document.fullscreenElement ||
|
|
2982
|
+
return (_document.fullscreenElement ||
|
|
2900
2983
|
_document.webkitFullscreenElement ||
|
|
2901
2984
|
_document.mozFullScreenElement ||
|
|
2902
2985
|
_document.msFullscreenElement ||
|
|
2903
|
-
null;
|
|
2986
|
+
null);
|
|
2904
2987
|
}
|
|
2905
2988
|
}
|
|
2906
|
-
FullscreenOverlayContainer.ɵ
|
|
2907
|
-
FullscreenOverlayContainer
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
]
|
|
2989
|
+
FullscreenOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", ngImport: i0, type: FullscreenOverlayContainer, providedIn: 'root' });
|
|
2991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FullscreenOverlayContainer, decorators: [{
|
|
2992
|
+
type: Injectable,
|
|
2993
|
+
args: [{ providedIn: 'root' }]
|
|
2994
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2995
|
+
type: Inject,
|
|
2996
|
+
args: [DOCUMENT]
|
|
2997
|
+
}] }, { type: i1$1.Platform }]; } });
|
|
2914
2998
|
|
|
2915
2999
|
/**
|
|
2916
3000
|
* @license
|
|
@@ -2924,5 +3008,5 @@ FullscreenOverlayContainer.ctorParameters = () => [
|
|
|
2924
3008
|
* Generated bundle index. Do not edit.
|
|
2925
3009
|
*/
|
|
2926
3010
|
|
|
2927
|
-
export { BlockScrollStrategy, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, ScrollStrategyOptions, ScrollingVisibility, validateHorizontalPosition, validateVerticalPosition
|
|
2928
|
-
//# sourceMappingURL=overlay.
|
|
3011
|
+
export { BlockScrollStrategy, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, ScrollStrategyOptions, ScrollingVisibility, validateHorizontalPosition, validateVerticalPosition };
|
|
3012
|
+
//# sourceMappingURL=overlay.mjs.map
|