@angular/cdk 14.0.0-next.10 → 14.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/index.d.ts +1119 -5
- package/accordion/index.d.ts +108 -6
- package/bidi/index.d.ts +77 -5
- package/clipboard/index.d.ts +112 -5
- package/coercion/index.d.ts +64 -5
- package/collections/index.d.ts +348 -5
- package/dialog/index.d.ts +410 -0
- package/drag-drop/index.d.ts +1456 -5
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +7 -7
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +4 -4
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
- package/esm2020/a11y/live-announcer/live-announcer.mjs +7 -7
- package/esm2020/accordion/accordion-item.mjs +4 -4
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +4 -4
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/dir.mjs +4 -4
- package/esm2020/bidi/directionality.mjs +4 -4
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/dialog/dialog-config.mjs +63 -0
- package/esm2020/dialog/dialog-container.mjs +278 -0
- package/esm2020/dialog/dialog-injectors.mjs +26 -0
- package/esm2020/dialog/dialog-module.mjs +42 -0
- package/esm2020/dialog/dialog-ref.mjs +76 -0
- package/esm2020/dialog/dialog.mjs +298 -0
- package/esm2020/dialog/dialog_public_index.mjs +5 -0
- package/esm2020/dialog/index.mjs +9 -0
- package/esm2020/dialog/public-api.mjs +14 -0
- package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
- package/esm2020/drag-drop/directives/drag.mjs +11 -4
- package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
- package/esm2020/drag-drop/directives/drop-list.mjs +4 -4
- package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
- package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
- package/esm2020/drag-drop/drag-drop.mjs +4 -4
- package/esm2020/layout/breakpoints-observer.mjs +4 -4
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/media-matcher.mjs +4 -4
- package/esm2020/menu/context-menu-trigger.mjs +229 -0
- package/esm2020/menu/index.mjs +9 -0
- package/esm2020/menu/menu-aim.mjs +204 -0
- package/esm2020/menu/menu-bar.mjs +159 -0
- package/esm2020/menu/menu-base.mjs +203 -0
- package/esm2020/menu/menu-errors.mjs +22 -0
- package/esm2020/menu/menu-group.mjs +30 -0
- package/esm2020/menu/menu-interface.mjs +11 -0
- package/esm2020/menu/menu-item-checkbox.mjs +48 -0
- package/esm2020/menu/menu-item-radio.mjs +114 -0
- package/esm2020/menu/menu-item-selectable.mjs +42 -0
- package/esm2020/menu/menu-item.mjs +289 -0
- package/esm2020/menu/menu-module.mjs +62 -0
- package/esm2020/menu/menu-stack.mjs +156 -0
- package/esm2020/menu/menu-trigger-base.mjs +114 -0
- package/esm2020/menu/menu-trigger.mjs +304 -0
- package/esm2020/menu/menu.mjs +168 -0
- package/esm2020/menu/menu_public_index.mjs +5 -0
- package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
- package/esm2020/menu/public-api.mjs +24 -0
- package/esm2020/observers/observe-content.mjs +14 -14
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
- package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-directives.mjs +7 -7
- package/esm2020/overlay/overlay-module.mjs +5 -5
- package/esm2020/overlay/overlay-ref.mjs +4 -3
- package/esm2020/overlay/overlay.mjs +4 -4
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +4 -4
- package/esm2020/portal/dom-portal-outlet.mjs +6 -2
- package/esm2020/portal/portal-directives.mjs +17 -17
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
- package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
- package/esm2020/scrolling/scrollable.mjs +4 -4
- package/esm2020/scrolling/scrolling-module.mjs +9 -9
- package/esm2020/scrolling/viewport-ruler.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.mjs +4 -4
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +7 -7
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
- package/esm2020/table/row.mjs +28 -28
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +20 -20
- package/esm2020/table/text-column.mjs +5 -5
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/text-field/autofill.mjs +7 -7
- package/esm2020/text-field/autosize.mjs +4 -4
- package/esm2020/text-field/text-field-module.mjs +5 -5
- package/esm2020/tree/nested-node.mjs +4 -4
- package/esm2020/tree/node.mjs +4 -4
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +7 -7
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +40 -40
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -10
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +10 -10
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -10
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/collections.mjs +3 -3
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/dialog.mjs +780 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +35 -28
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/layout.mjs +10 -10
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/menu.mjs +2135 -0
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/observers.mjs +13 -13
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +37 -36
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -7
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +21 -17
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +26 -26
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -22
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +78 -78
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +13 -13
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -25
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +40 -40
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -10
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +10 -10
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -10
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/collections.mjs +3 -3
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/dialog.mjs +784 -0
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/drag-drop.mjs +35 -28
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/layout.mjs +10 -10
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/menu.mjs +2108 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/observers.mjs +13 -13
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +37 -36
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -7
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +21 -17
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +26 -26
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -22
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +78 -78
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +13 -13
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -25
- package/fesm2020/tree.mjs.map +1 -1
- package/index.d.ts +6 -8
- package/keycodes/index.d.ts +247 -6
- package/layout/index.d.ts +91 -8
- package/menu/index.d.ts +992 -0
- package/observers/index.d.ts +89 -6
- package/overlay/index.d.ts +1202 -5
- package/package.json +34 -18
- package/platform/index.d.ts +104 -6
- package/portal/index.d.ts +325 -5
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/utils/build-component.js +2 -2
- package/schematics/utils/build-component.mjs +2 -2
- package/schematics/utils/schematic-options.js +2 -2
- package/schematics/utils/schematic-options.mjs +2 -2
- package/scrolling/index.d.ts +647 -6
- package/stepper/index.d.ts +328 -6
- package/table/index.d.ts +1172 -5
- package/testing/index.d.ts +726 -5
- package/testing/selenium-webdriver/index.d.ts +134 -8
- package/testing/testbed/index.d.ts +161 -8
- package/text-field/index.d.ts +175 -6
- package/tree/index.d.ts +498 -6
- package/a11y/a11y-module.d.ts +0 -12
- package/a11y/a11y_public_index.d.ts +0 -4
- package/a11y/aria-describer/aria-describer.d.ts +0 -101
- package/a11y/aria-describer/aria-reference.d.ts +0 -22
- package/a11y/fake-event-detection.d.ts +0 -11
- package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
- package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
- package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
- package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
- package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
- package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
- package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
- package/a11y/focus-trap/focus-trap.d.ts +0 -163
- package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
- package/a11y/input-modality/input-modality-detector.d.ts +0 -99
- package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
- package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
- package/a11y/key-manager/focus-key-manager.d.ts +0 -37
- package/a11y/key-manager/list-key-manager.d.ts +0 -152
- package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
- package/a11y/live-announcer/live-announcer.d.ts +0 -85
- package/a11y/package.json +0 -9
- package/a11y/public-api.d.ts +0 -25
- package/accordion/accordion-item.d.ts +0 -59
- package/accordion/accordion-module.d.ts +0 -8
- package/accordion/accordion.d.ts +0 -40
- package/accordion/accordion_public_index.d.ts +0 -4
- package/accordion/package.json +0 -9
- package/accordion/public-api.d.ts +0 -10
- package/bidi/bidi-module.d.ts +0 -7
- package/bidi/bidi_public_index.d.ts +0 -4
- package/bidi/dir-document-token.d.ts +0 -26
- package/bidi/dir.d.ts +0 -36
- package/bidi/directionality.d.ts +0 -26
- package/bidi/package.json +0 -9
- package/bidi/public-api.d.ts +0 -11
- package/clipboard/clipboard-module.d.ts +0 -7
- package/clipboard/clipboard.d.ts +0 -28
- package/clipboard/clipboard_public_index.d.ts +0 -4
- package/clipboard/copy-to-clipboard.d.ts +0 -49
- package/clipboard/package.json +0 -9
- package/clipboard/pending-copy.d.ts +0 -29
- package/clipboard/public-api.d.ts +0 -11
- package/coercion/array.d.ts +0 -10
- package/coercion/boolean-property.d.ts +0 -14
- package/coercion/css-pixel-value.d.ts +0 -9
- package/coercion/element.d.ts +0 -13
- package/coercion/number-property.d.ts +0 -20
- package/coercion/package.json +0 -9
- package/coercion/public-api.d.ts +0 -13
- package/coercion/string-array.d.ts +0 -25
- package/collections/array-data-source.d.ts +0 -16
- package/collections/collection-viewer.d.ts +0 -24
- package/collections/collections_public_index.d.ts +0 -4
- package/collections/data-source.d.ts +0 -30
- package/collections/dispose-view-repeater-strategy.d.ts +0 -22
- package/collections/package.json +0 -9
- package/collections/public-api.d.ts +0 -16
- package/collections/recycle-view-repeater-strategy.d.ts +0 -54
- package/collections/selection-model.d.ts +0 -95
- package/collections/tree-adapter.d.ts +0 -26
- package/collections/unique-selection-dispatcher.d.ts +0 -36
- package/collections/view-repeater.d.ts +0 -92
- package/drag-drop/client-rect.d.ts +0 -38
- package/drag-drop/clone-node.d.ts +0 -9
- package/drag-drop/directives/assertions.d.ts +0 -13
- package/drag-drop/directives/config.d.ts +0 -43
- package/drag-drop/directives/drag-handle.d.ts +0 -33
- package/drag-drop/directives/drag-placeholder.d.ts +0 -27
- package/drag-drop/directives/drag-preview.d.ts +0 -32
- package/drag-drop/directives/drag.d.ts +0 -160
- package/drag-drop/directives/drop-list-group.d.ts +0 -33
- package/drag-drop/directives/drop-list.d.ts +0 -123
- package/drag-drop/drag-drop-module.d.ts +0 -13
- package/drag-drop/drag-drop-registry.d.ts +0 -89
- package/drag-drop/drag-drop.d.ts +0 -36
- package/drag-drop/drag-drop_public_index.d.ts +0 -4
- package/drag-drop/drag-events.d.ts +0 -124
- package/drag-drop/drag-parent.d.ts +0 -15
- package/drag-drop/drag-ref.d.ts +0 -448
- package/drag-drop/drag-styling.d.ts +0 -42
- package/drag-drop/drag-utils.d.ts +0 -32
- package/drag-drop/drop-list-ref.d.ts +0 -312
- package/drag-drop/package.json +0 -9
- package/drag-drop/parent-position-tracker.d.ts +0 -39
- package/drag-drop/public-api.d.ts +0 -22
- package/drag-drop/transition-duration.d.ts +0 -9
- package/keycodes/keycodes.d.ts +0 -126
- package/keycodes/keycodes_public_index.d.ts +0 -4
- package/keycodes/modifiers.d.ts +0 -14
- package/keycodes/package.json +0 -9
- package/keycodes/public-api.d.ts +0 -9
- package/layout/breakpoints-observer.d.ts +0 -45
- package/layout/breakpoints.d.ts +0 -23
- package/layout/layout-module.d.ts +0 -6
- package/layout/layout_public_index.d.ts +0 -4
- package/layout/media-matcher.d.ts +0 -18
- package/layout/package.json +0 -9
- package/layout/public-api.d.ts +0 -11
- package/observers/observe-content.d.ts +0 -87
- package/observers/observers_public_index.d.ts +0 -4
- package/observers/package.json +0 -9
- package/observers/public-api.d.ts +0 -8
- package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
- package/overlay/dispatchers/index.d.ts +0 -9
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
- package/overlay/fullscreen-overlay-container.d.ts +0 -35
- package/overlay/overlay-config.d.ts +0 -47
- package/overlay/overlay-container.d.ts +0 -25
- package/overlay/overlay-directives.d.ts +0 -148
- package/overlay/overlay-module.d.ts +0 -10
- package/overlay/overlay-ref.d.ts +0 -145
- package/overlay/overlay-reference.d.ts +0 -38
- package/overlay/overlay.d.ts +0 -76
- package/overlay/overlay_public_index.d.ts +0 -4
- package/overlay/package.json +0 -9
- package/overlay/position/connected-position.d.ts +0 -102
- package/overlay/position/flexible-connected-position-strategy.d.ts +0 -282
- package/overlay/position/global-position-strategy.d.ts +0 -99
- package/overlay/position/overlay-position-builder.d.ts +0 -32
- package/overlay/position/position-strategy.d.ts +0 -19
- package/overlay/position/scroll-clip.d.ts +0 -26
- package/overlay/public-api.d.ts +0 -23
- package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
- package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
- package/overlay/scroll/index.d.ts +0 -14
- package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
- package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
- package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
- package/overlay/scroll/scroll-strategy.d.ts +0 -25
- package/platform/features/input-types.d.ts +0 -9
- package/platform/features/passive-listeners.d.ts +0 -19
- package/platform/features/scrolling.d.ts +0 -32
- package/platform/features/shadow-dom.d.ts +0 -18
- package/platform/features/test-environment.d.ts +0 -9
- package/platform/package.json +0 -9
- package/platform/platform-module.d.ts +0 -6
- package/platform/platform.d.ts +0 -29
- package/platform/platform_public_index.d.ts +0 -4
- package/platform/public-api.d.ts +0 -14
- package/portal/dom-portal-outlet.d.ts +0 -71
- package/portal/package.json +0 -9
- package/portal/portal-directives.d.ts +0 -99
- package/portal/portal-errors.d.ts +0 -37
- package/portal/portal-injector.d.ts +0 -21
- package/portal/portal.d.ts +0 -140
- package/portal/portal_public_index.d.ts +0 -4
- package/portal/public-api.d.ts +0 -11
- package/public-api.d.ts +0 -8
- package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
- package/scrolling/package.json +0 -9
- package/scrolling/public-api.d.ts +0 -16
- package/scrolling/scroll-dispatcher.d.ts +0 -71
- package/scrolling/scrollable.d.ts +0 -85
- package/scrolling/scrolling-module.d.ts +0 -19
- package/scrolling/scrolling_public_index.d.ts +0 -4
- package/scrolling/viewport-ruler.d.ts +0 -63
- package/scrolling/virtual-for-of.d.ts +0 -117
- package/scrolling/virtual-scroll-repeater.d.ts +0 -16
- package/scrolling/virtual-scroll-strategy.d.ts +0 -38
- package/scrolling/virtual-scroll-viewport.d.ts +0 -147
- package/stepper/package.json +0 -9
- package/stepper/public-api.d.ts +0 -12
- package/stepper/step-header.d.ts +0 -18
- package/stepper/step-label.d.ts +0 -15
- package/stepper/stepper-button.d.ts +0 -20
- package/stepper/stepper-module.d.ts +0 -11
- package/stepper/stepper.d.ts +0 -233
- package/stepper/stepper_public_index.d.ts +0 -4
- package/table/can-stick.d.ts +0 -34
- package/table/cell.d.ts +0 -126
- package/table/coalesced-style-scheduler.d.ts +0 -46
- package/table/package.json +0 -9
- package/table/public-api.d.ts +0 -19
- package/table/row.d.ts +0 -175
- package/table/sticky-position-listener.d.ts +0 -31
- package/table/sticky-styler.d.ts +0 -126
- package/table/table-errors.d.ts +0 -48
- package/table/table-module.d.ts +0 -11
- package/table/table.d.ts +0 -494
- package/table/table_public_index.d.ts +0 -4
- package/table/text-column.d.ts +0 -73
- package/table/tokens.d.ts +0 -25
- package/testing/change-detection.d.ts +0 -83
- package/testing/component-harness.d.ts +0 -426
- package/testing/element-dimensions.d.ts +0 -16
- package/testing/harness-environment.d.ts +0 -62
- package/testing/package.json +0 -9
- package/testing/public-api.d.ts +0 -14
- package/testing/selenium-webdriver/package.json +0 -9
- package/testing/selenium-webdriver/public-api.d.ts +0 -9
- package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
- package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
- package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
- package/testing/test-element-errors.d.ts +0 -12
- package/testing/test-element.d.ts +0 -135
- package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
- package/testing/testbed/fake-events/element-focus.d.ts +0 -18
- package/testing/testbed/fake-events/event-objects.d.ts +0 -39
- package/testing/testbed/fake-events/index.d.ts +0 -11
- package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
- package/testing/testbed/package.json +0 -9
- package/testing/testbed/proxy-zone-types.d.ts +0 -29
- package/testing/testbed/public-api.d.ts +0 -9
- package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
- package/testing/testbed/testbed-harness-environment.d.ts +0 -64
- package/testing/testbed/unit-test-element.d.ts +0 -98
- package/testing/testbed/zone-types.d.ts +0 -22
- package/testing/text-filtering.d.ts +0 -13
- package/text-field/autofill.d.ts +0 -66
- package/text-field/autosize.d.ts +0 -95
- package/text-field/package.json +0 -9
- package/text-field/public-api.d.ts +0 -10
- package/text-field/text-field-module.d.ts +0 -8
- package/text-field/text-field_public_index.d.ts +0 -4
- package/tree/control/base-tree-control.d.ts +0 -54
- package/tree/control/flat-tree-control.d.ts +0 -34
- package/tree/control/nested-tree-control.d.ts +0 -31
- package/tree/control/tree-control.d.ts +0 -49
- package/tree/nested-node.d.ts +0 -38
- package/tree/node.d.ts +0 -40
- package/tree/outlet.d.ts +0 -26
- package/tree/package.json +0 -9
- package/tree/padding.d.ts +0 -60
- package/tree/public-api.d.ts +0 -19
- package/tree/toggle.d.ts +0 -25
- package/tree/tree-errors.d.ts +0 -32
- package/tree/tree-module.d.ts +0 -12
- package/tree/tree.d.ts +0 -128
- package/tree/tree_public_index.d.ts +0 -4
- package/version.d.ts +0 -10
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { Portal } from '@angular/cdk/portal';
|
|
9
|
-
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
10
|
-
import { Observable, Subject } from 'rxjs';
|
|
11
|
-
/**
|
|
12
|
-
* Basic interface for an overlay. Used to avoid circular type references between
|
|
13
|
-
* `OverlayRef`, `PositionStrategy` and `ScrollStrategy`, and `OverlayConfig`.
|
|
14
|
-
* @docs-private
|
|
15
|
-
*/
|
|
16
|
-
export interface OverlayReference {
|
|
17
|
-
attach: (portal: Portal<any>) => any;
|
|
18
|
-
detach: () => any;
|
|
19
|
-
dispose: () => void;
|
|
20
|
-
overlayElement: HTMLElement;
|
|
21
|
-
hostElement: HTMLElement;
|
|
22
|
-
backdropElement: HTMLElement | null;
|
|
23
|
-
getConfig: () => any;
|
|
24
|
-
hasAttached: () => boolean;
|
|
25
|
-
updateSize: (config: any) => void;
|
|
26
|
-
updatePosition: () => void;
|
|
27
|
-
getDirection: () => Direction;
|
|
28
|
-
setDirection: (dir: Direction | Directionality) => void;
|
|
29
|
-
backdropClick: () => Observable<MouseEvent>;
|
|
30
|
-
attachments: () => Observable<void>;
|
|
31
|
-
detachments: () => Observable<void>;
|
|
32
|
-
keydownEvents: () => Observable<KeyboardEvent>;
|
|
33
|
-
outsidePointerEvents: () => Observable<MouseEvent>;
|
|
34
|
-
addPanelClass: (classes: string | string[]) => void;
|
|
35
|
-
removePanelClass: (classes: string | string[]) => void;
|
|
36
|
-
readonly _outsidePointerEvents: Subject<MouseEvent>;
|
|
37
|
-
readonly _keydownEvents: Subject<KeyboardEvent>;
|
|
38
|
-
}
|
package/overlay/overlay.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
9
|
-
import { Location } from '@angular/common';
|
|
10
|
-
import { ComponentFactoryResolver, Injector, NgZone } from '@angular/core';
|
|
11
|
-
import { OverlayKeyboardDispatcher } from './dispatchers/overlay-keyboard-dispatcher';
|
|
12
|
-
import { OverlayOutsideClickDispatcher } from './dispatchers/overlay-outside-click-dispatcher';
|
|
13
|
-
import { OverlayConfig } from './overlay-config';
|
|
14
|
-
import { OverlayContainer } from './overlay-container';
|
|
15
|
-
import { OverlayRef } from './overlay-ref';
|
|
16
|
-
import { OverlayPositionBuilder } from './position/overlay-position-builder';
|
|
17
|
-
import { ScrollStrategyOptions } from './scroll/index';
|
|
18
|
-
import * as i0 from "@angular/core";
|
|
19
|
-
/**
|
|
20
|
-
* Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be
|
|
21
|
-
* used as a low-level building block for other components. Dialogs, tooltips, menus,
|
|
22
|
-
* selects, etc. can all be built using overlays. The service should primarily be used by authors
|
|
23
|
-
* of re-usable components rather than developers building end-user applications.
|
|
24
|
-
*
|
|
25
|
-
* An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.
|
|
26
|
-
*/
|
|
27
|
-
export declare class Overlay {
|
|
28
|
-
/** Scrolling strategies that can be used when creating an overlay. */
|
|
29
|
-
scrollStrategies: ScrollStrategyOptions;
|
|
30
|
-
private _overlayContainer;
|
|
31
|
-
private _componentFactoryResolver;
|
|
32
|
-
private _positionBuilder;
|
|
33
|
-
private _keyboardDispatcher;
|
|
34
|
-
private _injector;
|
|
35
|
-
private _ngZone;
|
|
36
|
-
private _document;
|
|
37
|
-
private _directionality;
|
|
38
|
-
private _location;
|
|
39
|
-
private _outsideClickDispatcher;
|
|
40
|
-
private _animationsModuleType?;
|
|
41
|
-
private _appRef;
|
|
42
|
-
constructor(
|
|
43
|
-
/** Scrolling strategies that can be used when creating an overlay. */
|
|
44
|
-
scrollStrategies: ScrollStrategyOptions, _overlayContainer: OverlayContainer, _componentFactoryResolver: ComponentFactoryResolver, _positionBuilder: OverlayPositionBuilder, _keyboardDispatcher: OverlayKeyboardDispatcher, _injector: Injector, _ngZone: NgZone, _document: any, _directionality: Directionality, _location: Location, _outsideClickDispatcher: OverlayOutsideClickDispatcher, _animationsModuleType?: string | undefined);
|
|
45
|
-
/**
|
|
46
|
-
* Creates an overlay.
|
|
47
|
-
* @param config Configuration applied to the overlay.
|
|
48
|
-
* @returns Reference to the created overlay.
|
|
49
|
-
*/
|
|
50
|
-
create(config?: OverlayConfig): OverlayRef;
|
|
51
|
-
/**
|
|
52
|
-
* Gets a position builder that can be used, via fluent API,
|
|
53
|
-
* to construct and configure a position strategy.
|
|
54
|
-
* @returns An overlay position builder.
|
|
55
|
-
*/
|
|
56
|
-
position(): OverlayPositionBuilder;
|
|
57
|
-
/**
|
|
58
|
-
* Creates the DOM element for an overlay and appends it to the overlay container.
|
|
59
|
-
* @returns Newly-created pane element
|
|
60
|
-
*/
|
|
61
|
-
private _createPaneElement;
|
|
62
|
-
/**
|
|
63
|
-
* Creates the host element that wraps around an overlay
|
|
64
|
-
* and can be used for advanced positioning.
|
|
65
|
-
* @returns Newly-create host element.
|
|
66
|
-
*/
|
|
67
|
-
private _createHostElement;
|
|
68
|
-
/**
|
|
69
|
-
* Create a DomPortalOutlet into which the overlay content can be loaded.
|
|
70
|
-
* @param pane The DOM element to turn into a portal outlet.
|
|
71
|
-
* @returns A portal outlet for the given DOM element.
|
|
72
|
-
*/
|
|
73
|
-
private _createPortalOutlet;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Overlay, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
75
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Overlay>;
|
|
76
|
-
}
|
package/overlay/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/overlay",
|
|
3
|
-
"fesm2020": "../fesm2020/overlay.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/overlay.mjs",
|
|
5
|
-
"esm2020": "../esm2020/overlay/overlay_public_index.mjs",
|
|
6
|
-
"typings": "./overlay_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/overlay.mjs",
|
|
8
|
-
"es2020": "../fesm2020/overlay.mjs"
|
|
9
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/** Horizontal dimension of a connection point on the perimeter of the origin or overlay element. */
|
|
9
|
-
export declare type HorizontalConnectionPos = 'start' | 'center' | 'end';
|
|
10
|
-
/** Vertical dimension of a connection point on the perimeter of the origin or overlay element. */
|
|
11
|
-
export declare type VerticalConnectionPos = 'top' | 'center' | 'bottom';
|
|
12
|
-
/** A connection point on the origin element. */
|
|
13
|
-
export interface OriginConnectionPosition {
|
|
14
|
-
originX: HorizontalConnectionPos;
|
|
15
|
-
originY: VerticalConnectionPos;
|
|
16
|
-
}
|
|
17
|
-
/** A connection point on the overlay element. */
|
|
18
|
-
export interface OverlayConnectionPosition {
|
|
19
|
-
overlayX: HorizontalConnectionPos;
|
|
20
|
-
overlayY: VerticalConnectionPos;
|
|
21
|
-
}
|
|
22
|
-
/** The points of the origin element and the overlay element to connect. */
|
|
23
|
-
export declare class ConnectionPositionPair {
|
|
24
|
-
/** Offset along the X axis. */
|
|
25
|
-
offsetX?: number | undefined;
|
|
26
|
-
/** Offset along the Y axis. */
|
|
27
|
-
offsetY?: number | undefined;
|
|
28
|
-
/** Class(es) to be applied to the panel while this position is active. */
|
|
29
|
-
panelClass?: string | string[] | undefined;
|
|
30
|
-
/** X-axis attachment point for connected overlay origin. Can be 'start', 'end', or 'center'. */
|
|
31
|
-
originX: HorizontalConnectionPos;
|
|
32
|
-
/** Y-axis attachment point for connected overlay origin. Can be 'top', 'bottom', or 'center'. */
|
|
33
|
-
originY: VerticalConnectionPos;
|
|
34
|
-
/** X-axis attachment point for connected overlay. Can be 'start', 'end', or 'center'. */
|
|
35
|
-
overlayX: HorizontalConnectionPos;
|
|
36
|
-
/** Y-axis attachment point for connected overlay. Can be 'top', 'bottom', or 'center'. */
|
|
37
|
-
overlayY: VerticalConnectionPos;
|
|
38
|
-
constructor(origin: OriginConnectionPosition, overlay: OverlayConnectionPosition,
|
|
39
|
-
/** Offset along the X axis. */
|
|
40
|
-
offsetX?: number | undefined,
|
|
41
|
-
/** Offset along the Y axis. */
|
|
42
|
-
offsetY?: number | undefined,
|
|
43
|
-
/** Class(es) to be applied to the panel while this position is active. */
|
|
44
|
-
panelClass?: string | string[] | undefined);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Set of properties regarding the position of the origin and overlay relative to the viewport
|
|
48
|
-
* with respect to the containing Scrollable elements.
|
|
49
|
-
*
|
|
50
|
-
* The overlay and origin are clipped if any part of their bounding client rectangle exceeds the
|
|
51
|
-
* bounds of any one of the strategy's Scrollable's bounding client rectangle.
|
|
52
|
-
*
|
|
53
|
-
* The overlay and origin are outside view if there is no overlap between their bounding client
|
|
54
|
-
* rectangle and any one of the strategy's Scrollable's bounding client rectangle.
|
|
55
|
-
*
|
|
56
|
-
* ----------- -----------
|
|
57
|
-
* | outside | | clipped |
|
|
58
|
-
* | view | --------------------------
|
|
59
|
-
* | | | | | |
|
|
60
|
-
* ---------- | ----------- |
|
|
61
|
-
* -------------------------- | |
|
|
62
|
-
* | | | Scrollable |
|
|
63
|
-
* | | | |
|
|
64
|
-
* | | --------------------------
|
|
65
|
-
* | Scrollable |
|
|
66
|
-
* | |
|
|
67
|
-
* --------------------------
|
|
68
|
-
*
|
|
69
|
-
* @docs-private
|
|
70
|
-
*/
|
|
71
|
-
export declare class ScrollingVisibility {
|
|
72
|
-
isOriginClipped: boolean;
|
|
73
|
-
isOriginOutsideView: boolean;
|
|
74
|
-
isOverlayClipped: boolean;
|
|
75
|
-
isOverlayOutsideView: boolean;
|
|
76
|
-
}
|
|
77
|
-
/** The change event emitted by the strategy when a fallback position is used. */
|
|
78
|
-
export declare class ConnectedOverlayPositionChange {
|
|
79
|
-
/** The position used as a result of this change. */
|
|
80
|
-
connectionPair: ConnectionPositionPair;
|
|
81
|
-
/** @docs-private */
|
|
82
|
-
scrollableViewProperties: ScrollingVisibility;
|
|
83
|
-
constructor(
|
|
84
|
-
/** The position used as a result of this change. */
|
|
85
|
-
connectionPair: ConnectionPositionPair,
|
|
86
|
-
/** @docs-private */
|
|
87
|
-
scrollableViewProperties: ScrollingVisibility);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Validates whether a vertical position property matches the expected values.
|
|
91
|
-
* @param property Name of the property being validated.
|
|
92
|
-
* @param value Value of the property being validated.
|
|
93
|
-
* @docs-private
|
|
94
|
-
*/
|
|
95
|
-
export declare function validateVerticalPosition(property: string, value: VerticalConnectionPos): void;
|
|
96
|
-
/**
|
|
97
|
-
* Validates whether a horizontal position property matches the expected values.
|
|
98
|
-
* @param property Name of the property being validated.
|
|
99
|
-
* @param value Value of the property being validated.
|
|
100
|
-
* @docs-private
|
|
101
|
-
*/
|
|
102
|
-
export declare function validateHorizontalPosition(property: string, value: HorizontalConnectionPos): void;
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { PositionStrategy } from './position-strategy';
|
|
9
|
-
import { ElementRef } from '@angular/core';
|
|
10
|
-
import { ViewportRuler, CdkScrollable } from '@angular/cdk/scrolling';
|
|
11
|
-
import { ConnectedOverlayPositionChange, ConnectionPositionPair } from './connected-position';
|
|
12
|
-
import { Observable } from 'rxjs';
|
|
13
|
-
import { OverlayReference } from '../overlay-reference';
|
|
14
|
-
import { Platform } from '@angular/cdk/platform';
|
|
15
|
-
import { OverlayContainer } from '../overlay-container';
|
|
16
|
-
/** Possible values that can be set as the origin of a FlexibleConnectedPositionStrategy. */
|
|
17
|
-
export declare type FlexibleConnectedPositionStrategyOrigin = ElementRef | Element | (Point & {
|
|
18
|
-
width?: number;
|
|
19
|
-
height?: number;
|
|
20
|
-
});
|
|
21
|
-
/**
|
|
22
|
-
* A strategy for positioning overlays. Using this strategy, an overlay is given an
|
|
23
|
-
* implicit position relative some origin element. The relative position is defined in terms of
|
|
24
|
-
* a point on the origin element that is connected to a point on the overlay element. For example,
|
|
25
|
-
* a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
|
|
26
|
-
* of the overlay.
|
|
27
|
-
*/
|
|
28
|
-
export declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
|
|
29
|
-
private _viewportRuler;
|
|
30
|
-
private _document;
|
|
31
|
-
private _platform;
|
|
32
|
-
private _overlayContainer;
|
|
33
|
-
/** The overlay to which this strategy is attached. */
|
|
34
|
-
private _overlayRef;
|
|
35
|
-
/** Whether we're performing the very first positioning of the overlay. */
|
|
36
|
-
private _isInitialRender;
|
|
37
|
-
/** Last size used for the bounding box. Used to avoid resizing the overlay after open. */
|
|
38
|
-
private _lastBoundingBoxSize;
|
|
39
|
-
/** Whether the overlay was pushed in a previous positioning. */
|
|
40
|
-
private _isPushed;
|
|
41
|
-
/** Whether the overlay can be pushed on-screen on the initial open. */
|
|
42
|
-
private _canPush;
|
|
43
|
-
/** Whether the overlay can grow via flexible width/height after the initial open. */
|
|
44
|
-
private _growAfterOpen;
|
|
45
|
-
/** Whether the overlay's width and height can be constrained to fit within the viewport. */
|
|
46
|
-
private _hasFlexibleDimensions;
|
|
47
|
-
/** Whether the overlay position is locked. */
|
|
48
|
-
private _positionLocked;
|
|
49
|
-
/** Cached origin dimensions */
|
|
50
|
-
private _originRect;
|
|
51
|
-
/** Cached overlay dimensions */
|
|
52
|
-
private _overlayRect;
|
|
53
|
-
/** Cached viewport dimensions */
|
|
54
|
-
private _viewportRect;
|
|
55
|
-
/** Cached container dimensions */
|
|
56
|
-
private _containerRect;
|
|
57
|
-
/** Amount of space that must be maintained between the overlay and the edge of the viewport. */
|
|
58
|
-
private _viewportMargin;
|
|
59
|
-
/** The Scrollable containers used to check scrollable view properties on position change. */
|
|
60
|
-
private _scrollables;
|
|
61
|
-
/** Ordered list of preferred positions, from most to least desirable. */
|
|
62
|
-
_preferredPositions: ConnectionPositionPair[];
|
|
63
|
-
/** The origin element against which the overlay will be positioned. */
|
|
64
|
-
private _origin;
|
|
65
|
-
/** The overlay pane element. */
|
|
66
|
-
private _pane;
|
|
67
|
-
/** Whether the strategy has been disposed of already. */
|
|
68
|
-
private _isDisposed;
|
|
69
|
-
/**
|
|
70
|
-
* Parent element for the overlay panel used to constrain the overlay panel's size to fit
|
|
71
|
-
* within the viewport.
|
|
72
|
-
*/
|
|
73
|
-
private _boundingBox;
|
|
74
|
-
/** The last position to have been calculated as the best fit position. */
|
|
75
|
-
private _lastPosition;
|
|
76
|
-
/** Subject that emits whenever the position changes. */
|
|
77
|
-
private readonly _positionChanges;
|
|
78
|
-
/** Subscription to viewport size changes. */
|
|
79
|
-
private _resizeSubscription;
|
|
80
|
-
/** Default offset for the overlay along the x axis. */
|
|
81
|
-
private _offsetX;
|
|
82
|
-
/** Default offset for the overlay along the y axis. */
|
|
83
|
-
private _offsetY;
|
|
84
|
-
/** Selector to be used when finding the elements on which to set the transform origin. */
|
|
85
|
-
private _transformOriginSelector;
|
|
86
|
-
/** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */
|
|
87
|
-
private _appliedPanelClasses;
|
|
88
|
-
/** Amount by which the overlay was pushed in each axis during the last time it was positioned. */
|
|
89
|
-
private _previousPushAmount;
|
|
90
|
-
/** Observable sequence of position changes. */
|
|
91
|
-
positionChanges: Observable<ConnectedOverlayPositionChange>;
|
|
92
|
-
/** Ordered list of preferred positions, from most to least desirable. */
|
|
93
|
-
get positions(): ConnectionPositionPair[];
|
|
94
|
-
constructor(connectedTo: FlexibleConnectedPositionStrategyOrigin, _viewportRuler: ViewportRuler, _document: Document, _platform: Platform, _overlayContainer: OverlayContainer);
|
|
95
|
-
/** Attaches this position strategy to an overlay. */
|
|
96
|
-
attach(overlayRef: OverlayReference): void;
|
|
97
|
-
/**
|
|
98
|
-
* Updates the position of the overlay element, using whichever preferred position relative
|
|
99
|
-
* to the origin best fits on-screen.
|
|
100
|
-
*
|
|
101
|
-
* The selection of a position goes as follows:
|
|
102
|
-
* - If any positions fit completely within the viewport as-is,
|
|
103
|
-
* choose the first position that does so.
|
|
104
|
-
* - If flexible dimensions are enabled and at least one satifies the given minimum width/height,
|
|
105
|
-
* choose the position with the greatest available size modified by the positions' weight.
|
|
106
|
-
* - If pushing is enabled, take the position that went off-screen the least and push it
|
|
107
|
-
* on-screen.
|
|
108
|
-
* - If none of the previous criteria were met, use the position that goes off-screen the least.
|
|
109
|
-
* @docs-private
|
|
110
|
-
*/
|
|
111
|
-
apply(): void;
|
|
112
|
-
detach(): void;
|
|
113
|
-
/** Cleanup after the element gets destroyed. */
|
|
114
|
-
dispose(): void;
|
|
115
|
-
/**
|
|
116
|
-
* This re-aligns the overlay element with the trigger in its last calculated position,
|
|
117
|
-
* even if a position higher in the "preferred positions" list would now fit. This
|
|
118
|
-
* allows one to re-align the panel without changing the orientation of the panel.
|
|
119
|
-
*/
|
|
120
|
-
reapplyLastPosition(): void;
|
|
121
|
-
/**
|
|
122
|
-
* Sets the list of Scrollable containers that host the origin element so that
|
|
123
|
-
* on reposition we can evaluate if it or the overlay has been clipped or outside view. Every
|
|
124
|
-
* Scrollable must be an ancestor element of the strategy's origin element.
|
|
125
|
-
*/
|
|
126
|
-
withScrollableContainers(scrollables: CdkScrollable[]): this;
|
|
127
|
-
/**
|
|
128
|
-
* Adds new preferred positions.
|
|
129
|
-
* @param positions List of positions options for this overlay.
|
|
130
|
-
*/
|
|
131
|
-
withPositions(positions: ConnectedPosition[]): this;
|
|
132
|
-
/**
|
|
133
|
-
* Sets a minimum distance the overlay may be positioned to the edge of the viewport.
|
|
134
|
-
* @param margin Required margin between the overlay and the viewport edge in pixels.
|
|
135
|
-
*/
|
|
136
|
-
withViewportMargin(margin: number): this;
|
|
137
|
-
/** Sets whether the overlay's width and height can be constrained to fit within the viewport. */
|
|
138
|
-
withFlexibleDimensions(flexibleDimensions?: boolean): this;
|
|
139
|
-
/** Sets whether the overlay can grow after the initial open via flexible width/height. */
|
|
140
|
-
withGrowAfterOpen(growAfterOpen?: boolean): this;
|
|
141
|
-
/** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */
|
|
142
|
-
withPush(canPush?: boolean): this;
|
|
143
|
-
/**
|
|
144
|
-
* Sets whether the overlay's position should be locked in after it is positioned
|
|
145
|
-
* initially. When an overlay is locked in, it won't attempt to reposition itself
|
|
146
|
-
* when the position is re-applied (e.g. when the user scrolls away).
|
|
147
|
-
* @param isLocked Whether the overlay should locked in.
|
|
148
|
-
*/
|
|
149
|
-
withLockedPosition(isLocked?: boolean): this;
|
|
150
|
-
/**
|
|
151
|
-
* Sets the origin, relative to which to position the overlay.
|
|
152
|
-
* Using an element origin is useful for building components that need to be positioned
|
|
153
|
-
* relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be
|
|
154
|
-
* used for cases like contextual menus which open relative to the user's pointer.
|
|
155
|
-
* @param origin Reference to the new origin.
|
|
156
|
-
*/
|
|
157
|
-
setOrigin(origin: FlexibleConnectedPositionStrategyOrigin): this;
|
|
158
|
-
/**
|
|
159
|
-
* Sets the default offset for the overlay's connection point on the x-axis.
|
|
160
|
-
* @param offset New offset in the X axis.
|
|
161
|
-
*/
|
|
162
|
-
withDefaultOffsetX(offset: number): this;
|
|
163
|
-
/**
|
|
164
|
-
* Sets the default offset for the overlay's connection point on the y-axis.
|
|
165
|
-
* @param offset New offset in the Y axis.
|
|
166
|
-
*/
|
|
167
|
-
withDefaultOffsetY(offset: number): this;
|
|
168
|
-
/**
|
|
169
|
-
* Configures that the position strategy should set a `transform-origin` on some elements
|
|
170
|
-
* inside the overlay, depending on the current position that is being applied. This is
|
|
171
|
-
* useful for the cases where the origin of an animation can change depending on the
|
|
172
|
-
* alignment of the overlay.
|
|
173
|
-
* @param selector CSS selector that will be used to find the target
|
|
174
|
-
* elements onto which to set the transform origin.
|
|
175
|
-
*/
|
|
176
|
-
withTransformOriginOn(selector: string): this;
|
|
177
|
-
/**
|
|
178
|
-
* Gets the (x, y) coordinate of a connection point on the origin based on a relative position.
|
|
179
|
-
*/
|
|
180
|
-
private _getOriginPoint;
|
|
181
|
-
/**
|
|
182
|
-
* Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and
|
|
183
|
-
* origin point to which the overlay should be connected.
|
|
184
|
-
*/
|
|
185
|
-
private _getOverlayPoint;
|
|
186
|
-
/** Gets how well an overlay at the given point will fit within the viewport. */
|
|
187
|
-
private _getOverlayFit;
|
|
188
|
-
/**
|
|
189
|
-
* Whether the overlay can fit within the viewport when it may resize either its width or height.
|
|
190
|
-
* @param fit How well the overlay fits in the viewport at some position.
|
|
191
|
-
* @param point The (x, y) coordinates of the overlay at some position.
|
|
192
|
-
* @param viewport The geometry of the viewport.
|
|
193
|
-
*/
|
|
194
|
-
private _canFitWithFlexibleDimensions;
|
|
195
|
-
/**
|
|
196
|
-
* Gets the point at which the overlay can be "pushed" on-screen. If the overlay is larger than
|
|
197
|
-
* the viewport, the top-left corner will be pushed on-screen (with overflow occuring on the
|
|
198
|
-
* right and bottom).
|
|
199
|
-
*
|
|
200
|
-
* @param start Starting point from which the overlay is pushed.
|
|
201
|
-
* @param rawOverlayRect Dimensions of the overlay.
|
|
202
|
-
* @param scrollPosition Current viewport scroll position.
|
|
203
|
-
* @returns The point at which to position the overlay after pushing. This is effectively a new
|
|
204
|
-
* originPoint.
|
|
205
|
-
*/
|
|
206
|
-
private _pushOverlayOnScreen;
|
|
207
|
-
/**
|
|
208
|
-
* Applies a computed position to the overlay and emits a position change.
|
|
209
|
-
* @param position The position preference
|
|
210
|
-
* @param originPoint The point on the origin element where the overlay is connected.
|
|
211
|
-
*/
|
|
212
|
-
private _applyPosition;
|
|
213
|
-
/** Sets the transform origin based on the configured selector and the passed-in position. */
|
|
214
|
-
private _setTransformOrigin;
|
|
215
|
-
/**
|
|
216
|
-
* Gets the position and size of the overlay's sizing container.
|
|
217
|
-
*
|
|
218
|
-
* This method does no measuring and applies no styles so that we can cheaply compute the
|
|
219
|
-
* bounds for all positions and choose the best fit based on these results.
|
|
220
|
-
*/
|
|
221
|
-
private _calculateBoundingBoxRect;
|
|
222
|
-
/**
|
|
223
|
-
* Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the
|
|
224
|
-
* origin's connection point and stetches to the bounds of the viewport.
|
|
225
|
-
*
|
|
226
|
-
* @param origin The point on the origin element where the overlay is connected.
|
|
227
|
-
* @param position The position preference
|
|
228
|
-
*/
|
|
229
|
-
private _setBoundingBoxStyles;
|
|
230
|
-
/** Resets the styles for the bounding box so that a new positioning can be computed. */
|
|
231
|
-
private _resetBoundingBoxStyles;
|
|
232
|
-
/** Resets the styles for the overlay pane so that a new positioning can be computed. */
|
|
233
|
-
private _resetOverlayElementStyles;
|
|
234
|
-
/** Sets positioning styles to the overlay element. */
|
|
235
|
-
private _setOverlayElementStyles;
|
|
236
|
-
/** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */
|
|
237
|
-
private _getExactOverlayY;
|
|
238
|
-
/** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */
|
|
239
|
-
private _getExactOverlayX;
|
|
240
|
-
/**
|
|
241
|
-
* Gets the view properties of the trigger and overlay, including whether they are clipped
|
|
242
|
-
* or completely outside the view of any of the strategy's scrollables.
|
|
243
|
-
*/
|
|
244
|
-
private _getScrollVisibility;
|
|
245
|
-
/** Subtracts the amount that an element is overflowing on an axis from its length. */
|
|
246
|
-
private _subtractOverflows;
|
|
247
|
-
/** Narrows the given viewport rect by the current _viewportMargin. */
|
|
248
|
-
private _getNarrowedViewportRect;
|
|
249
|
-
/** Whether the we're dealing with an RTL context */
|
|
250
|
-
private _isRtl;
|
|
251
|
-
/** Determines whether the overlay uses exact or flexible positioning. */
|
|
252
|
-
private _hasExactPosition;
|
|
253
|
-
/** Retrieves the offset of a position along the x or y axis. */
|
|
254
|
-
private _getOffset;
|
|
255
|
-
/** Validates that the current position match the expected values. */
|
|
256
|
-
private _validatePositions;
|
|
257
|
-
/** Adds a single CSS class or an array of classes on the overlay panel. */
|
|
258
|
-
private _addPanelClasses;
|
|
259
|
-
/** Clears the classes that the position strategy has applied from the overlay panel. */
|
|
260
|
-
private _clearPanelClasses;
|
|
261
|
-
/** Returns the ClientRect of the current origin. */
|
|
262
|
-
private _getOriginRect;
|
|
263
|
-
}
|
|
264
|
-
/** A simple (x, y) coordinate. */
|
|
265
|
-
interface Point {
|
|
266
|
-
x: number;
|
|
267
|
-
y: number;
|
|
268
|
-
}
|
|
269
|
-
/** A connected position as specified by the user. */
|
|
270
|
-
export interface ConnectedPosition {
|
|
271
|
-
originX: 'start' | 'center' | 'end';
|
|
272
|
-
originY: 'top' | 'center' | 'bottom';
|
|
273
|
-
overlayX: 'start' | 'center' | 'end';
|
|
274
|
-
overlayY: 'top' | 'center' | 'bottom';
|
|
275
|
-
weight?: number;
|
|
276
|
-
offsetX?: number;
|
|
277
|
-
offsetY?: number;
|
|
278
|
-
panelClass?: string | string[];
|
|
279
|
-
}
|
|
280
|
-
export declare const STANDARD_DROPDOWN_BELOW_POSITIONS: ConnectedPosition[];
|
|
281
|
-
export declare const STANDARD_DROPDOWN_ADJACENT_POSITIONS: ConnectedPosition[];
|
|
282
|
-
export {};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { PositionStrategy } from './position-strategy';
|
|
9
|
-
import { OverlayReference } from '../overlay-reference';
|
|
10
|
-
/**
|
|
11
|
-
* A strategy for positioning overlays. Using this strategy, an overlay is given an
|
|
12
|
-
* explicit position relative to the browser's viewport. We use flexbox, instead of
|
|
13
|
-
* transforms, in order to avoid issues with subpixel rendering which can cause the
|
|
14
|
-
* element to become blurry.
|
|
15
|
-
*/
|
|
16
|
-
export declare class GlobalPositionStrategy implements PositionStrategy {
|
|
17
|
-
/** The overlay to which this strategy is attached. */
|
|
18
|
-
private _overlayRef;
|
|
19
|
-
private _cssPosition;
|
|
20
|
-
private _topOffset;
|
|
21
|
-
private _bottomOffset;
|
|
22
|
-
private _alignItems;
|
|
23
|
-
private _xPosition;
|
|
24
|
-
private _xOffset;
|
|
25
|
-
private _width;
|
|
26
|
-
private _height;
|
|
27
|
-
private _isDisposed;
|
|
28
|
-
attach(overlayRef: OverlayReference): void;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the top position of the overlay. Clears any previously set vertical position.
|
|
31
|
-
* @param value New top offset.
|
|
32
|
-
*/
|
|
33
|
-
top(value?: string): this;
|
|
34
|
-
/**
|
|
35
|
-
* Sets the left position of the overlay. Clears any previously set horizontal position.
|
|
36
|
-
* @param value New left offset.
|
|
37
|
-
*/
|
|
38
|
-
left(value?: string): this;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the bottom position of the overlay. Clears any previously set vertical position.
|
|
41
|
-
* @param value New bottom offset.
|
|
42
|
-
*/
|
|
43
|
-
bottom(value?: string): this;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the right position of the overlay. Clears any previously set horizontal position.
|
|
46
|
-
* @param value New right offset.
|
|
47
|
-
*/
|
|
48
|
-
right(value?: string): this;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the overlay to the start of the viewport, depending on the overlay direction.
|
|
51
|
-
* This will be to the left in LTR layouts and to the right in RTL.
|
|
52
|
-
* @param offset Offset from the edge of the screen.
|
|
53
|
-
*/
|
|
54
|
-
start(value?: string): this;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the overlay to the end of the viewport, depending on the overlay direction.
|
|
57
|
-
* This will be to the right in LTR layouts and to the left in RTL.
|
|
58
|
-
* @param offset Offset from the edge of the screen.
|
|
59
|
-
*/
|
|
60
|
-
end(value?: string): this;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the overlay width and clears any previously set width.
|
|
63
|
-
* @param value New width for the overlay
|
|
64
|
-
* @deprecated Pass the `width` through the `OverlayConfig`.
|
|
65
|
-
* @breaking-change 8.0.0
|
|
66
|
-
*/
|
|
67
|
-
width(value?: string): this;
|
|
68
|
-
/**
|
|
69
|
-
* Sets the overlay height and clears any previously set height.
|
|
70
|
-
* @param value New height for the overlay
|
|
71
|
-
* @deprecated Pass the `height` through the `OverlayConfig`.
|
|
72
|
-
* @breaking-change 8.0.0
|
|
73
|
-
*/
|
|
74
|
-
height(value?: string): this;
|
|
75
|
-
/**
|
|
76
|
-
* Centers the overlay horizontally with an optional offset.
|
|
77
|
-
* Clears any previously set horizontal position.
|
|
78
|
-
*
|
|
79
|
-
* @param offset Overlay offset from the horizontal center.
|
|
80
|
-
*/
|
|
81
|
-
centerHorizontally(offset?: string): this;
|
|
82
|
-
/**
|
|
83
|
-
* Centers the overlay vertically with an optional offset.
|
|
84
|
-
* Clears any previously set vertical position.
|
|
85
|
-
*
|
|
86
|
-
* @param offset Overlay offset from the vertical center.
|
|
87
|
-
*/
|
|
88
|
-
centerVertically(offset?: string): this;
|
|
89
|
-
/**
|
|
90
|
-
* Apply the position to the element.
|
|
91
|
-
* @docs-private
|
|
92
|
-
*/
|
|
93
|
-
apply(): void;
|
|
94
|
-
/**
|
|
95
|
-
* Cleans up the DOM changes from the position strategy.
|
|
96
|
-
* @docs-private
|
|
97
|
-
*/
|
|
98
|
-
dispose(): void;
|
|
99
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { Platform } from '@angular/cdk/platform';
|
|
9
|
-
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
10
|
-
import { OverlayContainer } from '../overlay-container';
|
|
11
|
-
import { FlexibleConnectedPositionStrategy, FlexibleConnectedPositionStrategyOrigin } from './flexible-connected-position-strategy';
|
|
12
|
-
import { GlobalPositionStrategy } from './global-position-strategy';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/** Builder for overlay position strategy. */
|
|
15
|
-
export declare class OverlayPositionBuilder {
|
|
16
|
-
private _viewportRuler;
|
|
17
|
-
private _document;
|
|
18
|
-
private _platform;
|
|
19
|
-
private _overlayContainer;
|
|
20
|
-
constructor(_viewportRuler: ViewportRuler, _document: any, _platform: Platform, _overlayContainer: OverlayContainer);
|
|
21
|
-
/**
|
|
22
|
-
* Creates a global position strategy.
|
|
23
|
-
*/
|
|
24
|
-
global(): GlobalPositionStrategy;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a flexible position strategy.
|
|
27
|
-
* @param origin Origin relative to which to position the overlay.
|
|
28
|
-
*/
|
|
29
|
-
flexibleConnectedTo(origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayPositionBuilder, never>;
|
|
31
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayPositionBuilder>;
|
|
32
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { OverlayReference } from '../overlay-reference';
|
|
9
|
-
/** Strategy for setting the position on an overlay. */
|
|
10
|
-
export interface PositionStrategy {
|
|
11
|
-
/** Attaches this position strategy to an overlay. */
|
|
12
|
-
attach(overlayRef: OverlayReference): void;
|
|
13
|
-
/** Updates the position of the overlay element. */
|
|
14
|
-
apply(): void;
|
|
15
|
-
/** Called when the overlay is detached. */
|
|
16
|
-
detach?(): void;
|
|
17
|
-
/** Cleans up any DOM modifications made by the position strategy, if necessary. */
|
|
18
|
-
dispose(): void;
|
|
19
|
-
}
|