@angular/cdk 14.0.0-next.12 → 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 +408 -6
- package/drag-drop/index.d.ts +1456 -5
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/aria-describer/aria-describer.mjs +3 -3
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +6 -6
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap.mjs +6 -6
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +3 -3
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
- package/esm2020/a11y/live-announcer/live-announcer.mjs +6 -6
- package/esm2020/accordion/accordion-item.mjs +3 -3
- package/esm2020/accordion/accordion-module.mjs +4 -4
- package/esm2020/accordion/accordion.mjs +3 -3
- package/esm2020/bidi/bidi-module.mjs +4 -4
- package/esm2020/bidi/dir.mjs +3 -3
- package/esm2020/bidi/directionality.mjs +3 -3
- package/esm2020/clipboard/clipboard-module.mjs +4 -4
- package/esm2020/clipboard/clipboard.mjs +3 -3
- package/esm2020/clipboard/copy-to-clipboard.mjs +3 -3
- package/esm2020/collections/unique-selection-dispatcher.mjs +3 -3
- package/esm2020/dialog/dialog-config.mjs +6 -1
- package/esm2020/dialog/dialog-container.mjs +23 -10
- package/esm2020/dialog/dialog-module.mjs +5 -5
- package/esm2020/dialog/dialog.mjs +35 -22
- package/esm2020/drag-drop/directives/drag-handle.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-preview.mjs +3 -3
- package/esm2020/drag-drop/directives/drag.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list-group.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list.mjs +3 -3
- package/esm2020/drag-drop/drag-drop-module.mjs +4 -4
- package/esm2020/drag-drop/drag-drop-registry.mjs +3 -3
- package/esm2020/drag-drop/drag-drop.mjs +3 -3
- package/esm2020/layout/breakpoints-observer.mjs +3 -3
- package/esm2020/layout/layout-module.mjs +4 -4
- package/esm2020/layout/media-matcher.mjs +3 -3
- package/esm2020/menu/context-menu-trigger.mjs +10 -8
- package/esm2020/menu/menu-aim.mjs +6 -6
- package/esm2020/menu/menu-bar.mjs +3 -3
- package/esm2020/menu/menu-base.mjs +3 -3
- package/esm2020/menu/menu-group.mjs +3 -3
- package/esm2020/menu/menu-item-checkbox.mjs +3 -3
- package/esm2020/menu/menu-item-radio.mjs +3 -3
- package/esm2020/menu/menu-item-selectable.mjs +3 -3
- package/esm2020/menu/menu-item.mjs +3 -3
- package/esm2020/menu/menu-module.mjs +5 -5
- package/esm2020/menu/menu-stack.mjs +3 -3
- package/esm2020/menu/menu-trigger-base.mjs +3 -3
- package/esm2020/menu/menu-trigger.mjs +7 -5
- package/esm2020/menu/menu.mjs +3 -3
- package/esm2020/observers/observe-content.mjs +13 -13
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +3 -3
- package/esm2020/overlay/fullscreen-overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-directives.mjs +6 -6
- package/esm2020/overlay/overlay-module.mjs +5 -5
- package/esm2020/overlay/overlay.mjs +3 -3
- package/esm2020/overlay/position/overlay-position-builder.mjs +3 -3
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +3 -3
- package/esm2020/platform/platform-module.mjs +4 -4
- package/esm2020/platform/platform.mjs +3 -3
- package/esm2020/portal/portal-directives.mjs +16 -16
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +3 -3
- package/esm2020/scrolling/scroll-dispatcher.mjs +3 -3
- package/esm2020/scrolling/scrollable.mjs +3 -3
- package/esm2020/scrolling/scrolling-module.mjs +9 -9
- package/esm2020/scrolling/viewport-ruler.mjs +3 -3
- package/esm2020/scrolling/virtual-for-of.mjs +3 -3
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +3 -3
- package/esm2020/stepper/step-header.mjs +3 -3
- package/esm2020/stepper/step-label.mjs +3 -3
- package/esm2020/stepper/stepper-button.mjs +6 -6
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +6 -6
- package/esm2020/table/cell.mjs +21 -21
- package/esm2020/table/coalesced-style-scheduler.mjs +3 -3
- package/esm2020/table/row.mjs +27 -27
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +18 -18
- package/esm2020/table/text-column.mjs +3 -3
- 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 +6 -6
- package/esm2020/text-field/autosize.mjs +3 -3
- package/esm2020/text-field/text-field-module.mjs +4 -4
- package/esm2020/tree/nested-node.mjs +3 -3
- package/esm2020/tree/node.mjs +3 -3
- package/esm2020/tree/outlet.mjs +3 -3
- package/esm2020/tree/padding.mjs +3 -3
- package/esm2020/tree/toggle.mjs +3 -3
- package/esm2020/tree/tree-module.mjs +4 -4
- package/esm2020/tree/tree.mjs +6 -6
- 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/bidi.mjs +10 -10
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -10
- package/fesm2015/collections.mjs +3 -3
- package/fesm2015/dialog.mjs +65 -34
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +28 -28
- package/fesm2015/layout.mjs +10 -10
- package/fesm2015/menu.mjs +55 -51
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/observers.mjs +13 -13
- package/fesm2015/overlay.mjs +34 -34
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -7
- package/fesm2015/portal.mjs +16 -16
- 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 +76 -76
- 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/tree.mjs +25 -25
- package/fesm2020/a11y.mjs +40 -40
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -10
- package/fesm2020/bidi.mjs +10 -10
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -10
- package/fesm2020/collections.mjs +3 -3
- package/fesm2020/dialog.mjs +65 -34
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +28 -28
- package/fesm2020/layout.mjs +10 -10
- package/fesm2020/menu.mjs +55 -51
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/observers.mjs +13 -13
- package/fesm2020/overlay.mjs +34 -34
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -7
- package/fesm2020/portal.mjs +16 -16
- 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 +76 -76
- 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/tree.mjs +25 -25
- 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 +989 -5
- package/observers/index.d.ts +89 -6
- package/overlay/index.d.ts +1202 -5
- package/package.json +20 -20
- 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/dialog/dialog-config.d.ts +0 -115
- package/dialog/dialog-container.d.ts +0 -95
- package/dialog/dialog-injectors.d.ts +0 -24
- package/dialog/dialog-module.d.ts +0 -10
- package/dialog/dialog-ref.d.ts +0 -64
- package/dialog/dialog.d.ts +0 -103
- package/dialog/dialog_public_index.d.ts +0 -4
- package/dialog/package.json +0 -9
- package/dialog/public-api.d.ts +0 -13
- 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 -159
- 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/menu/context-menu-trigger.d.ts +0 -98
- package/menu/menu-aim.d.ts +0 -107
- package/menu/menu-bar.d.ts +0 -52
- package/menu/menu-base.d.ts +0 -104
- package/menu/menu-errors.d.ts +0 -17
- package/menu/menu-group.d.ts +0 -8
- package/menu/menu-interface.d.ts +0 -25
- package/menu/menu-item-checkbox.d.ts +0 -18
- package/menu/menu-item-radio.d.ts +0 -59
- package/menu/menu-item-selectable.d.ts +0 -21
- package/menu/menu-item.d.ts +0 -140
- package/menu/menu-module.d.ts +0 -17
- package/menu/menu-stack.d.ts +0 -122
- package/menu/menu-trigger-base.d.ts +0 -77
- package/menu/menu-trigger.d.ts +0 -104
- package/menu/menu.d.ts +0 -60
- package/menu/menu_public_index.d.ts +0 -4
- package/menu/package.json +0 -9
- package/menu/pointer-focus-tracker.d.ts +0 -47
- package/menu/public-api.d.ts +0 -23
- 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 -490
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cdk",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.13",
|
|
4
4
|
"description": "Angular Material Component Development Kit",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"default": "./package.json"
|
|
54
54
|
},
|
|
55
55
|
"./a11y": {
|
|
56
|
-
"types": "./a11y/
|
|
56
|
+
"types": "./a11y/index.d.ts",
|
|
57
57
|
"esm2020": "./esm2020/a11y/a11y_public_index.mjs",
|
|
58
58
|
"es2020": "./fesm2020/a11y.mjs",
|
|
59
59
|
"es2015": "./fesm2015/a11y.mjs",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"default": "./fesm2020/a11y.mjs"
|
|
62
62
|
},
|
|
63
63
|
"./accordion": {
|
|
64
|
-
"types": "./accordion/
|
|
64
|
+
"types": "./accordion/index.d.ts",
|
|
65
65
|
"esm2020": "./esm2020/accordion/accordion_public_index.mjs",
|
|
66
66
|
"es2020": "./fesm2020/accordion.mjs",
|
|
67
67
|
"es2015": "./fesm2015/accordion.mjs",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"default": "./fesm2020/accordion.mjs"
|
|
70
70
|
},
|
|
71
71
|
"./bidi": {
|
|
72
|
-
"types": "./bidi/
|
|
72
|
+
"types": "./bidi/index.d.ts",
|
|
73
73
|
"esm2020": "./esm2020/bidi/bidi_public_index.mjs",
|
|
74
74
|
"es2020": "./fesm2020/bidi.mjs",
|
|
75
75
|
"es2015": "./fesm2015/bidi.mjs",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"default": "./fesm2020/bidi.mjs"
|
|
78
78
|
},
|
|
79
79
|
"./clipboard": {
|
|
80
|
-
"types": "./clipboard/
|
|
80
|
+
"types": "./clipboard/index.d.ts",
|
|
81
81
|
"esm2020": "./esm2020/clipboard/clipboard_public_index.mjs",
|
|
82
82
|
"es2020": "./fesm2020/clipboard.mjs",
|
|
83
83
|
"es2015": "./fesm2015/clipboard.mjs",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"default": "./fesm2020/coercion.mjs"
|
|
94
94
|
},
|
|
95
95
|
"./collections": {
|
|
96
|
-
"types": "./collections/
|
|
96
|
+
"types": "./collections/index.d.ts",
|
|
97
97
|
"esm2020": "./esm2020/collections/collections_public_index.mjs",
|
|
98
98
|
"es2020": "./fesm2020/collections.mjs",
|
|
99
99
|
"es2015": "./fesm2015/collections.mjs",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"default": "./fesm2020/collections.mjs"
|
|
102
102
|
},
|
|
103
103
|
"./dialog": {
|
|
104
|
-
"types": "./dialog/
|
|
104
|
+
"types": "./dialog/index.d.ts",
|
|
105
105
|
"esm2020": "./esm2020/dialog/dialog_public_index.mjs",
|
|
106
106
|
"es2020": "./fesm2020/dialog.mjs",
|
|
107
107
|
"es2015": "./fesm2015/dialog.mjs",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"default": "./fesm2020/dialog.mjs"
|
|
110
110
|
},
|
|
111
111
|
"./drag-drop": {
|
|
112
|
-
"types": "./drag-drop/
|
|
112
|
+
"types": "./drag-drop/index.d.ts",
|
|
113
113
|
"esm2020": "./esm2020/drag-drop/drag-drop_public_index.mjs",
|
|
114
114
|
"es2020": "./fesm2020/drag-drop.mjs",
|
|
115
115
|
"es2015": "./fesm2015/drag-drop.mjs",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"default": "./fesm2020/drag-drop.mjs"
|
|
118
118
|
},
|
|
119
119
|
"./keycodes": {
|
|
120
|
-
"types": "./keycodes/
|
|
120
|
+
"types": "./keycodes/index.d.ts",
|
|
121
121
|
"esm2020": "./esm2020/keycodes/keycodes_public_index.mjs",
|
|
122
122
|
"es2020": "./fesm2020/keycodes.mjs",
|
|
123
123
|
"es2015": "./fesm2015/keycodes.mjs",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"default": "./fesm2020/keycodes.mjs"
|
|
126
126
|
},
|
|
127
127
|
"./layout": {
|
|
128
|
-
"types": "./layout/
|
|
128
|
+
"types": "./layout/index.d.ts",
|
|
129
129
|
"esm2020": "./esm2020/layout/layout_public_index.mjs",
|
|
130
130
|
"es2020": "./fesm2020/layout.mjs",
|
|
131
131
|
"es2015": "./fesm2015/layout.mjs",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"default": "./fesm2020/layout.mjs"
|
|
134
134
|
},
|
|
135
135
|
"./menu": {
|
|
136
|
-
"types": "./menu/
|
|
136
|
+
"types": "./menu/index.d.ts",
|
|
137
137
|
"esm2020": "./esm2020/menu/menu_public_index.mjs",
|
|
138
138
|
"es2020": "./fesm2020/menu.mjs",
|
|
139
139
|
"es2015": "./fesm2015/menu.mjs",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"default": "./fesm2020/menu.mjs"
|
|
142
142
|
},
|
|
143
143
|
"./observers": {
|
|
144
|
-
"types": "./observers/
|
|
144
|
+
"types": "./observers/index.d.ts",
|
|
145
145
|
"esm2020": "./esm2020/observers/observers_public_index.mjs",
|
|
146
146
|
"es2020": "./fesm2020/observers.mjs",
|
|
147
147
|
"es2015": "./fesm2015/observers.mjs",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"default": "./fesm2020/observers.mjs"
|
|
150
150
|
},
|
|
151
151
|
"./overlay": {
|
|
152
|
-
"types": "./overlay/
|
|
152
|
+
"types": "./overlay/index.d.ts",
|
|
153
153
|
"esm2020": "./esm2020/overlay/overlay_public_index.mjs",
|
|
154
154
|
"es2020": "./fesm2020/overlay.mjs",
|
|
155
155
|
"es2015": "./fesm2015/overlay.mjs",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"default": "./fesm2020/overlay.mjs"
|
|
158
158
|
},
|
|
159
159
|
"./platform": {
|
|
160
|
-
"types": "./platform/
|
|
160
|
+
"types": "./platform/index.d.ts",
|
|
161
161
|
"esm2020": "./esm2020/platform/platform_public_index.mjs",
|
|
162
162
|
"es2020": "./fesm2020/platform.mjs",
|
|
163
163
|
"es2015": "./fesm2015/platform.mjs",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"default": "./fesm2020/platform.mjs"
|
|
166
166
|
},
|
|
167
167
|
"./portal": {
|
|
168
|
-
"types": "./portal/
|
|
168
|
+
"types": "./portal/index.d.ts",
|
|
169
169
|
"esm2020": "./esm2020/portal/portal_public_index.mjs",
|
|
170
170
|
"es2020": "./fesm2020/portal.mjs",
|
|
171
171
|
"es2015": "./fesm2015/portal.mjs",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"default": "./fesm2020/portal.mjs"
|
|
174
174
|
},
|
|
175
175
|
"./scrolling": {
|
|
176
|
-
"types": "./scrolling/
|
|
176
|
+
"types": "./scrolling/index.d.ts",
|
|
177
177
|
"esm2020": "./esm2020/scrolling/scrolling_public_index.mjs",
|
|
178
178
|
"es2020": "./fesm2020/scrolling.mjs",
|
|
179
179
|
"es2015": "./fesm2015/scrolling.mjs",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"default": "./fesm2020/scrolling.mjs"
|
|
182
182
|
},
|
|
183
183
|
"./stepper": {
|
|
184
|
-
"types": "./stepper/
|
|
184
|
+
"types": "./stepper/index.d.ts",
|
|
185
185
|
"esm2020": "./esm2020/stepper/stepper_public_index.mjs",
|
|
186
186
|
"es2020": "./fesm2020/stepper.mjs",
|
|
187
187
|
"es2015": "./fesm2015/stepper.mjs",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"default": "./fesm2020/stepper.mjs"
|
|
190
190
|
},
|
|
191
191
|
"./table": {
|
|
192
|
-
"types": "./table/
|
|
192
|
+
"types": "./table/index.d.ts",
|
|
193
193
|
"esm2020": "./esm2020/table/table_public_index.mjs",
|
|
194
194
|
"es2020": "./fesm2020/table.mjs",
|
|
195
195
|
"es2015": "./fesm2015/table.mjs",
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
"default": "./fesm2020/testing/testbed.mjs"
|
|
222
222
|
},
|
|
223
223
|
"./text-field": {
|
|
224
|
-
"types": "./text-field/
|
|
224
|
+
"types": "./text-field/index.d.ts",
|
|
225
225
|
"esm2020": "./esm2020/text-field/text-field_public_index.mjs",
|
|
226
226
|
"es2020": "./fesm2020/text-field.mjs",
|
|
227
227
|
"es2015": "./fesm2015/text-field.mjs",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"default": "./fesm2020/text-field.mjs"
|
|
230
230
|
},
|
|
231
231
|
"./tree": {
|
|
232
|
-
"types": "./tree/
|
|
232
|
+
"types": "./tree/index.d.ts",
|
|
233
233
|
"esm2020": "./esm2020/tree/tree_public_index.mjs",
|
|
234
234
|
"es2020": "./fesm2020/tree.mjs",
|
|
235
235
|
"es2015": "./fesm2015/tree.mjs",
|
package/platform/index.d.ts
CHANGED
|
@@ -1,8 +1,106 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/** Gets the target of an event while accounting for Shadow DOM. */
|
|
4
|
+
export declare function _getEventTarget<T extends EventTarget>(event: Event): T | null;
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
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
|
+
* Gets the currently-focused element on the page while
|
|
8
|
+
* also piercing through Shadow DOM boundaries.
|
|
7
9
|
*/
|
|
8
|
-
export
|
|
10
|
+
export declare function _getFocusedElementPierceShadowDom(): HTMLElement | null;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
|
|
14
|
+
* Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getRtlScrollAxisType(): RtlScrollAxisType;
|
|
17
|
+
|
|
18
|
+
/** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */
|
|
19
|
+
export declare function _getShadowRoot(element: HTMLElement): ShadowRoot | null;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/** @returns The input types supported by this browser. */
|
|
23
|
+
export declare function getSupportedInputTypes(): Set<string>;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/** Gets whether the code is currently running in a test environment. */
|
|
27
|
+
export declare function _isTestEnvironment(): boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Normalizes an `AddEventListener` object to something that can be passed
|
|
31
|
+
* to `addEventListener` on any browser, no matter whether it supports the
|
|
32
|
+
* `options` parameter.
|
|
33
|
+
* @param options Object to be normalized.
|
|
34
|
+
*/
|
|
35
|
+
export declare function normalizePassiveListenerOptions(options: AddEventListenerOptions): AddEventListenerOptions | boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Service to detect the current platform by comparing the userAgent strings and
|
|
39
|
+
* checking browser-specific global properties.
|
|
40
|
+
*/
|
|
41
|
+
export declare class Platform {
|
|
42
|
+
private _platformId;
|
|
43
|
+
/** Whether the Angular application is being rendered in the browser. */
|
|
44
|
+
isBrowser: boolean;
|
|
45
|
+
/** Whether the current browser is Microsoft Edge. */
|
|
46
|
+
EDGE: boolean;
|
|
47
|
+
/** Whether the current rendering engine is Microsoft Trident. */
|
|
48
|
+
TRIDENT: boolean;
|
|
49
|
+
/** Whether the current rendering engine is Blink. */
|
|
50
|
+
BLINK: boolean;
|
|
51
|
+
/** Whether the current rendering engine is WebKit. */
|
|
52
|
+
WEBKIT: boolean;
|
|
53
|
+
/** Whether the current platform is Apple iOS. */
|
|
54
|
+
IOS: boolean;
|
|
55
|
+
/** Whether the current browser is Firefox. */
|
|
56
|
+
FIREFOX: boolean;
|
|
57
|
+
/** Whether the current platform is Android. */
|
|
58
|
+
ANDROID: boolean;
|
|
59
|
+
/** Whether the current browser is Safari. */
|
|
60
|
+
SAFARI: boolean;
|
|
61
|
+
constructor(_platformId: Object);
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
|
|
63
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare class PlatformModule {
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformModule, never>;
|
|
68
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformModule, never, never, never>;
|
|
69
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PlatformModule>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/** The possible ways the browser may handle the horizontal scroll axis in RTL languages. */
|
|
74
|
+
export declare const enum RtlScrollAxisType {
|
|
75
|
+
/**
|
|
76
|
+
* scrollLeft is 0 when scrolled all the way left and (scrollWidth - clientWidth) when scrolled
|
|
77
|
+
* all the way right.
|
|
78
|
+
*/
|
|
79
|
+
NORMAL = 0,
|
|
80
|
+
/**
|
|
81
|
+
* scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
|
|
82
|
+
* all the way right.
|
|
83
|
+
*/
|
|
84
|
+
NEGATED = 1,
|
|
85
|
+
/**
|
|
86
|
+
* scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
|
|
87
|
+
* all the way right.
|
|
88
|
+
*/
|
|
89
|
+
INVERTED = 2
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Checks whether the user's browser supports passive event listeners.
|
|
95
|
+
* See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
|
|
96
|
+
*/
|
|
97
|
+
export declare function supportsPassiveEventListeners(): boolean;
|
|
98
|
+
|
|
99
|
+
/** Check whether the browser supports scroll behaviors. */
|
|
100
|
+
export declare function supportsScrollBehavior(): boolean;
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/** Checks whether the user's browser support Shadow DOM. */
|
|
104
|
+
export declare function _supportsShadowDom(): boolean;
|
|
105
|
+
|
|
106
|
+
export { }
|
package/portal/index.d.ts
CHANGED
|
@@ -1,8 +1,328 @@
|
|
|
1
|
+
import { ApplicationRef } from '@angular/core';
|
|
2
|
+
import { ComponentFactoryResolver } from '@angular/core';
|
|
3
|
+
import { ComponentRef } from '@angular/core';
|
|
4
|
+
import { ElementRef } from '@angular/core';
|
|
5
|
+
import { EmbeddedViewRef } from '@angular/core';
|
|
6
|
+
import { EventEmitter } from '@angular/core';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { Injector } from '@angular/core';
|
|
9
|
+
import { OnDestroy } from '@angular/core';
|
|
10
|
+
import { OnInit } from '@angular/core';
|
|
11
|
+
import { TemplateRef } from '@angular/core';
|
|
12
|
+
import { ViewContainerRef } from '@angular/core';
|
|
13
|
+
|
|
1
14
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*
|
|
15
|
+
* @deprecated Use `BasePortalOutlet` instead.
|
|
16
|
+
* @breaking-change 9.0.0
|
|
17
|
+
*/
|
|
18
|
+
export declare abstract class BasePortalHost extends BasePortalOutlet {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Partial implementation of PortalOutlet that handles attaching
|
|
23
|
+
* ComponentPortal and TemplatePortal.
|
|
24
|
+
*/
|
|
25
|
+
export declare abstract class BasePortalOutlet implements PortalOutlet {
|
|
26
|
+
/** The portal currently attached to the host. */
|
|
27
|
+
protected _attachedPortal: Portal<any> | null;
|
|
28
|
+
/** A function that will permanently dispose this host. */
|
|
29
|
+
private _disposeFn;
|
|
30
|
+
/** Whether this host has already been permanently disposed. */
|
|
31
|
+
private _isDisposed;
|
|
32
|
+
/** Whether this host has an attached portal. */
|
|
33
|
+
hasAttached(): boolean;
|
|
34
|
+
attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
35
|
+
attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
|
|
36
|
+
attach(portal: any): any;
|
|
37
|
+
abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
38
|
+
abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
39
|
+
readonly attachDomPortal: null | ((portal: DomPortal) => any);
|
|
40
|
+
/** Detaches a previously attached portal. */
|
|
41
|
+
detach(): void;
|
|
42
|
+
/** Permanently dispose of this portal host. */
|
|
43
|
+
dispose(): void;
|
|
44
|
+
/** @docs-private */
|
|
45
|
+
setDisposeFn(fn: () => void): void;
|
|
46
|
+
private _invokeDisposeFn;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
|
|
51
|
+
* the directive instance itself can be attached to a host, enabling declarative use of portals.
|
|
52
|
+
*/
|
|
53
|
+
export declare class CdkPortal extends TemplatePortal {
|
|
54
|
+
constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
|
|
56
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, false>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
|
|
61
|
+
* directly attached to it, enabling declarative use.
|
|
4
62
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
63
|
+
* Usage:
|
|
64
|
+
* `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
|
|
65
|
+
*/
|
|
66
|
+
export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
|
|
67
|
+
private _componentFactoryResolver;
|
|
68
|
+
private _viewContainerRef;
|
|
69
|
+
private _document;
|
|
70
|
+
/** Whether the portal component is initialized. */
|
|
71
|
+
private _isInitialized;
|
|
72
|
+
/** Reference to the currently-attached component/view ref. */
|
|
73
|
+
private _attachedRef;
|
|
74
|
+
constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef,
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated `_document` parameter to be made required.
|
|
77
|
+
* @breaking-change 9.0.0
|
|
78
|
+
*/
|
|
79
|
+
_document?: any);
|
|
80
|
+
/** Portal associated with the Portal outlet. */
|
|
81
|
+
get portal(): Portal<any> | null;
|
|
82
|
+
set portal(portal: Portal<any> | null | undefined | '');
|
|
83
|
+
/** Emits when a portal is attached to the outlet. */
|
|
84
|
+
readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
|
|
85
|
+
/** Component or view reference that is attached to the portal. */
|
|
86
|
+
get attachedRef(): CdkPortalOutletAttachedRef;
|
|
87
|
+
ngOnInit(): void;
|
|
88
|
+
ngOnDestroy(): void;
|
|
89
|
+
/**
|
|
90
|
+
* Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
|
|
91
|
+
*
|
|
92
|
+
* @param portal Portal to be attached to the portal outlet.
|
|
93
|
+
* @returns Reference to the created component.
|
|
94
|
+
*/
|
|
95
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
96
|
+
/**
|
|
97
|
+
* Attach the given TemplatePortal to this PortalHost as an embedded View.
|
|
98
|
+
* @param portal Portal to be attached.
|
|
99
|
+
* @returns Reference to the created embedded view.
|
|
100
|
+
*/
|
|
101
|
+
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
102
|
+
/**
|
|
103
|
+
* Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
|
|
104
|
+
* @param portal Portal to be attached.
|
|
105
|
+
* @deprecated To be turned into a method.
|
|
106
|
+
* @breaking-change 10.0.0
|
|
107
|
+
*/
|
|
108
|
+
attachDomPortal: (portal: DomPortal) => void;
|
|
109
|
+
/** Gets the root node of the portal outlet. */
|
|
110
|
+
private _getRootNode;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
|
|
112
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": "cdkPortalOutlet"; }, { "attached": "attached"; }, never, never, false>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Possible attached references to the CdkPortalOutlet.
|
|
117
|
+
*/
|
|
118
|
+
export declare type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* A `ComponentPortal` is a portal that instantiates some Component upon attachment.
|
|
122
|
+
*/
|
|
123
|
+
export declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
|
|
124
|
+
/** The type of the component that will be instantiated for attachment. */
|
|
125
|
+
component: ComponentType<T>;
|
|
126
|
+
/**
|
|
127
|
+
* [Optional] Where the attached component should live in Angular's *logical* component tree.
|
|
128
|
+
* This is different from where the component *renders*, which is determined by the PortalOutlet.
|
|
129
|
+
* The origin is necessary when the host is outside of the Angular application context.
|
|
130
|
+
*/
|
|
131
|
+
viewContainerRef?: ViewContainerRef | null;
|
|
132
|
+
/** [Optional] Injector used for the instantiation of the component. */
|
|
133
|
+
injector?: Injector | null;
|
|
134
|
+
/**
|
|
135
|
+
* Alternate `ComponentFactoryResolver` to use when resolving the associated component.
|
|
136
|
+
* Defaults to using the resolver from the outlet that the portal is attached to.
|
|
137
|
+
*/
|
|
138
|
+
componentFactoryResolver?: ComponentFactoryResolver | null;
|
|
139
|
+
constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, componentFactoryResolver?: ComponentFactoryResolver | null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** Interface that can be used to generically type a class. */
|
|
143
|
+
export declare interface ComponentType<T> {
|
|
144
|
+
new (...args: any[]): T;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* A `DomPortal` is a portal whose DOM element will be taken from its current position
|
|
149
|
+
* in the DOM and moved into a portal outlet, when it is attached. On detach, the content
|
|
150
|
+
* will be restored to its original position.
|
|
151
|
+
*/
|
|
152
|
+
export declare class DomPortal<T = HTMLElement> extends Portal<T> {
|
|
153
|
+
/** DOM node hosting the portal's content. */
|
|
154
|
+
readonly element: T;
|
|
155
|
+
constructor(element: T | ElementRef<T>);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @deprecated Use `DomPortalOutlet` instead.
|
|
160
|
+
* @breaking-change 9.0.0
|
|
161
|
+
*/
|
|
162
|
+
export declare class DomPortalHost extends DomPortalOutlet {
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
|
|
167
|
+
* application context.
|
|
168
|
+
*/
|
|
169
|
+
export declare class DomPortalOutlet extends BasePortalOutlet {
|
|
170
|
+
/** Element into which the content is projected. */
|
|
171
|
+
outletElement: Element;
|
|
172
|
+
private _componentFactoryResolver?;
|
|
173
|
+
private _appRef?;
|
|
174
|
+
private _defaultInjector?;
|
|
175
|
+
private _document;
|
|
176
|
+
/**
|
|
177
|
+
* @param outletElement Element into which the content is projected.
|
|
178
|
+
* @param _componentFactoryResolver Used to resolve the component factory.
|
|
179
|
+
* Only required when attaching component portals.
|
|
180
|
+
* @param _appRef Reference to the application. Only used in component portals when there
|
|
181
|
+
* is no `ViewContainerRef` available.
|
|
182
|
+
* @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
|
|
183
|
+
* have one. Only used for component portals.
|
|
184
|
+
* @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
|
|
185
|
+
* become a required parameter.
|
|
186
|
+
*/
|
|
187
|
+
constructor(
|
|
188
|
+
/** Element into which the content is projected. */
|
|
189
|
+
outletElement: Element, _componentFactoryResolver?: ComponentFactoryResolver | undefined, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined,
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated `_document` Parameter to be made required.
|
|
192
|
+
* @breaking-change 10.0.0
|
|
193
|
+
*/
|
|
194
|
+
_document?: any);
|
|
195
|
+
/**
|
|
196
|
+
* Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
|
|
197
|
+
* @param portal Portal to be attached
|
|
198
|
+
* @returns Reference to the created component.
|
|
199
|
+
*/
|
|
200
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
201
|
+
/**
|
|
202
|
+
* Attaches a template portal to the DOM as an embedded view.
|
|
203
|
+
* @param portal Portal to be attached.
|
|
204
|
+
* @returns Reference to the created embedded view.
|
|
205
|
+
*/
|
|
206
|
+
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
207
|
+
/**
|
|
208
|
+
* Attaches a DOM portal by transferring its content into the outlet.
|
|
209
|
+
* @param portal Portal to be attached.
|
|
210
|
+
* @deprecated To be turned into a method.
|
|
211
|
+
* @breaking-change 10.0.0
|
|
212
|
+
*/
|
|
213
|
+
attachDomPortal: (portal: DomPortal) => void;
|
|
214
|
+
/**
|
|
215
|
+
* Clears out a portal from the DOM.
|
|
216
|
+
*/
|
|
217
|
+
dispose(): void;
|
|
218
|
+
/** Gets the root HTMLElement for an instantiated component. */
|
|
219
|
+
private _getComponentRootNode;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* A `Portal` is something that you want to render somewhere else.
|
|
224
|
+
* It can be attach to / detached from a `PortalOutlet`.
|
|
225
|
+
*/
|
|
226
|
+
export declare abstract class Portal<T> {
|
|
227
|
+
private _attachedHost;
|
|
228
|
+
/** Attach this portal to a host. */
|
|
229
|
+
attach(host: PortalOutlet): T;
|
|
230
|
+
/** Detach this portal from its host */
|
|
231
|
+
detach(): void;
|
|
232
|
+
/** Whether this portal is attached to a host. */
|
|
233
|
+
get isAttached(): boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Sets the PortalOutlet reference without performing `attach()`. This is used directly by
|
|
236
|
+
* the PortalOutlet when it is performing an `attach()` or `detach()`.
|
|
237
|
+
*/
|
|
238
|
+
setAttachedHost(host: PortalOutlet | null): void;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @deprecated Use `PortalOutlet` instead.
|
|
243
|
+
* @breaking-change 9.0.0
|
|
244
|
+
*/
|
|
245
|
+
export declare type PortalHost = PortalOutlet;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated Use `CdkPortalOutlet` instead.
|
|
249
|
+
* @breaking-change 9.0.0
|
|
250
|
+
*/
|
|
251
|
+
export declare class PortalHostDirective extends CdkPortalOutlet {
|
|
252
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
|
|
253
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": "cdkPortalHost"; }, {}, never, never, false>;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Custom injector to be used when providing custom
|
|
258
|
+
* injection tokens to components inside a portal.
|
|
259
|
+
* @docs-private
|
|
260
|
+
* @deprecated Use `Injector.create` instead.
|
|
261
|
+
* @breaking-change 11.0.0
|
|
262
|
+
*/
|
|
263
|
+
export declare class PortalInjector implements Injector {
|
|
264
|
+
private _parentInjector;
|
|
265
|
+
private _customTokens;
|
|
266
|
+
constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
|
|
267
|
+
get(token: any, notFoundValue?: any): any;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export declare class PortalModule {
|
|
271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
|
|
272
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
|
|
273
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** A `PortalOutlet` is an space that can contain a single `Portal`. */
|
|
277
|
+
export declare interface PortalOutlet {
|
|
278
|
+
/** Attaches a portal to this outlet. */
|
|
279
|
+
attach(portal: Portal<any>): any;
|
|
280
|
+
/** Detaches the currently attached portal from this outlet. */
|
|
281
|
+
detach(): any;
|
|
282
|
+
/** Performs cleanup before the outlet is destroyed. */
|
|
283
|
+
dispose(): void;
|
|
284
|
+
/** Whether there is currently a portal attached to this outlet. */
|
|
285
|
+
hasAttached(): boolean;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
|
|
290
|
+
*/
|
|
291
|
+
export declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
|
|
292
|
+
/** The embedded template that will be used to instantiate an embedded View in the host. */
|
|
293
|
+
templateRef: TemplateRef<C>;
|
|
294
|
+
/** Reference to the ViewContainer into which the template will be stamped out. */
|
|
295
|
+
viewContainerRef: ViewContainerRef;
|
|
296
|
+
/** Contextual data to be passed in to the embedded view. */
|
|
297
|
+
context?: C | undefined;
|
|
298
|
+
/** The injector to use for the embedded view. */
|
|
299
|
+
injector?: Injector | undefined;
|
|
300
|
+
constructor(
|
|
301
|
+
/** The embedded template that will be used to instantiate an embedded View in the host. */
|
|
302
|
+
templateRef: TemplateRef<C>,
|
|
303
|
+
/** Reference to the ViewContainer into which the template will be stamped out. */
|
|
304
|
+
viewContainerRef: ViewContainerRef,
|
|
305
|
+
/** Contextual data to be passed in to the embedded view. */
|
|
306
|
+
context?: C | undefined,
|
|
307
|
+
/** The injector to use for the embedded view. */
|
|
308
|
+
injector?: Injector | undefined);
|
|
309
|
+
get origin(): ElementRef;
|
|
310
|
+
/**
|
|
311
|
+
* Attach the portal to the provided `PortalOutlet`.
|
|
312
|
+
* When a context is provided it will override the `context` property of the `TemplatePortal`
|
|
313
|
+
* instance.
|
|
314
|
+
*/
|
|
315
|
+
attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
|
|
316
|
+
detach(): void;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Use `CdkPortal` instead.
|
|
321
|
+
* @breaking-change 9.0.0
|
|
7
322
|
*/
|
|
8
|
-
export
|
|
323
|
+
export declare class TemplatePortalDirective extends CdkPortal {
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
|
|
325
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, false>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export { }
|
|
@@ -28,7 +28,7 @@ function default_1() {
|
|
|
28
28
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
29
29
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
30
30
|
// dependencies in new CLI projects.
|
|
31
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.13`);
|
|
32
32
|
// Add a task to run the package manager. This is necessary because we updated the
|
|
33
33
|
// workspace "package.json" file and we want lock files to reflect the new version range.
|
|
34
34
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
@@ -28,7 +28,7 @@ function default_1() {
|
|
|
28
28
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
29
29
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
30
30
|
// dependencies in new CLI projects.
|
|
31
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.13`);
|
|
32
32
|
// Add a task to run the package manager. This is necessary because we updated the
|
|
33
33
|
// workspace "package.json" file and we want lock files to reflect the new version range.
|
|
34
34
|
context.addTask(new tasks_1.NodePackageInstallTask());
|