@angular/cdk 14.0.0-next.7 → 14.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/_index.scss +11 -0
- package/a11y/index.d.ts +1119 -5
- package/a11y-prebuilt.css +1 -1
- 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 +16 -14
- 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 +10 -10
- 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 +22 -17
- 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/dispose-view-repeater-strategy.mjs +4 -4
- package/esm2020/collections/recycle-view-repeater-strategy.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/drag-drop/drop-list-ref.mjs +23 -23
- 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 +14 -5
- package/esm2020/overlay/overlay.mjs +14 -8
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +13 -1
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/public-api.mjs +2 -2
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/features/scrolling.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 +26 -4
- 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 +9 -9
- package/esm2020/scrolling/scrolling-module.mjs +9 -9
- package/esm2020/scrolling/viewport-ruler.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.mjs +7 -5
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +6 -6
- 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 +22 -22
- 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/testing/testbed/fake-events/type-in-element.mjs +2 -2
- 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 +71 -64
- 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 +9 -9
- 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 +57 -50
- 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 +70 -43
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +10 -10
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +41 -20
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +36 -34
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -22
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +80 -80
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +1 -1
- package/fesm2015/testing/testbed.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 +70 -63
- 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 +9 -9
- 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 +57 -50
- 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 +70 -43
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +10 -10
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +41 -20
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +36 -34
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -22
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +80 -80
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +1 -1
- package/fesm2020/testing/testbed.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.scss +4 -0
- package/overlay/index.d.ts +1202 -5
- package/overlay-prebuilt.css +1 -1
- package/package.json +34 -18
- package/platform/index.d.ts +104 -6
- package/portal/index.d.ts +325 -5
- package/schematics/collection.json +2 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/data/constructor-checks.js +3 -3
- package/schematics/ng-update/data/constructor-checks.mjs +3 -3
- package/schematics/utils/build-component.js +2 -2
- package/schematics/utils/build-component.mjs +2 -2
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +7 -2
- package/schematics/utils/get-project.mjs +7 -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/text-field-prebuilt.css +1 -1
- 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 -83
- 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 -144
- package/overlay/overlay-reference.d.ts +0 -38
- package/overlay/overlay.d.ts +0 -75
- 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 -280
- 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 -60
- 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,117 +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 { CollectionViewer, DataSource, ListRange, _RecycleViewRepeaterStrategy } from '@angular/cdk/collections';
|
|
9
|
-
import { DoCheck, IterableDiffers, NgIterable, NgZone, OnDestroy, TemplateRef, TrackByFunction, ViewContainerRef } from '@angular/core';
|
|
10
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
11
|
-
import { Observable, Subject } from 'rxjs';
|
|
12
|
-
import { CdkVirtualScrollRepeater } from './virtual-scroll-repeater';
|
|
13
|
-
import { CdkVirtualScrollViewport } from './virtual-scroll-viewport';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
/** The context for an item rendered by `CdkVirtualForOf` */
|
|
16
|
-
export declare type CdkVirtualForOfContext<T> = {
|
|
17
|
-
/** The item value. */
|
|
18
|
-
$implicit: T;
|
|
19
|
-
/** The DataSource, Observable, or NgIterable that was passed to *cdkVirtualFor. */
|
|
20
|
-
cdkVirtualForOf: DataSource<T> | Observable<T[]> | NgIterable<T>;
|
|
21
|
-
/** The index of the item in the DataSource. */
|
|
22
|
-
index: number;
|
|
23
|
-
/** The number of items in the DataSource. */
|
|
24
|
-
count: number;
|
|
25
|
-
/** Whether this is the first item in the DataSource. */
|
|
26
|
-
first: boolean;
|
|
27
|
-
/** Whether this is the last item in the DataSource. */
|
|
28
|
-
last: boolean;
|
|
29
|
-
/** Whether the index is even. */
|
|
30
|
-
even: boolean;
|
|
31
|
-
/** Whether the index is odd. */
|
|
32
|
-
odd: boolean;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling
|
|
36
|
-
* container.
|
|
37
|
-
*/
|
|
38
|
-
export declare class CdkVirtualForOf<T> implements CdkVirtualScrollRepeater<T>, CollectionViewer, DoCheck, OnDestroy {
|
|
39
|
-
/** The view container to add items to. */
|
|
40
|
-
private _viewContainerRef;
|
|
41
|
-
/** The template to use when stamping out new items. */
|
|
42
|
-
private _template;
|
|
43
|
-
/** The set of available differs. */
|
|
44
|
-
private _differs;
|
|
45
|
-
/** The strategy used to render items in the virtual scroll viewport. */
|
|
46
|
-
private _viewRepeater;
|
|
47
|
-
/** The virtual scrolling viewport that these items are being rendered in. */
|
|
48
|
-
private _viewport;
|
|
49
|
-
/** Emits when the rendered view of the data changes. */
|
|
50
|
-
readonly viewChange: Subject<ListRange>;
|
|
51
|
-
/** Subject that emits when a new DataSource instance is given. */
|
|
52
|
-
private readonly _dataSourceChanges;
|
|
53
|
-
/** The DataSource to display. */
|
|
54
|
-
get cdkVirtualForOf(): DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
|
|
55
|
-
set cdkVirtualForOf(value: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined);
|
|
56
|
-
_cdkVirtualForOf: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and
|
|
59
|
-
* the item and produces a value to be used as the item's identity when tracking changes.
|
|
60
|
-
*/
|
|
61
|
-
get cdkVirtualForTrackBy(): TrackByFunction<T> | undefined;
|
|
62
|
-
set cdkVirtualForTrackBy(fn: TrackByFunction<T> | undefined);
|
|
63
|
-
private _cdkVirtualForTrackBy;
|
|
64
|
-
/** The template used to stamp out new elements. */
|
|
65
|
-
set cdkVirtualForTemplate(value: TemplateRef<CdkVirtualForOfContext<T>>);
|
|
66
|
-
/**
|
|
67
|
-
* The size of the cache used to store templates that are not being used for re-use later.
|
|
68
|
-
* Setting the cache size to `0` will disable caching. Defaults to 20 templates.
|
|
69
|
-
*/
|
|
70
|
-
get cdkVirtualForTemplateCacheSize(): number;
|
|
71
|
-
set cdkVirtualForTemplateCacheSize(size: NumberInput);
|
|
72
|
-
/** Emits whenever the data in the current DataSource changes. */
|
|
73
|
-
readonly dataStream: Observable<readonly T[]>;
|
|
74
|
-
/** The differ used to calculate changes to the data. */
|
|
75
|
-
private _differ;
|
|
76
|
-
/** The most recent data emitted from the DataSource. */
|
|
77
|
-
private _data;
|
|
78
|
-
/** The currently rendered items. */
|
|
79
|
-
private _renderedItems;
|
|
80
|
-
/** The currently rendered range of indices. */
|
|
81
|
-
private _renderedRange;
|
|
82
|
-
/** Whether the rendered data should be updated during the next ngDoCheck cycle. */
|
|
83
|
-
private _needsUpdate;
|
|
84
|
-
private readonly _destroyed;
|
|
85
|
-
constructor(
|
|
86
|
-
/** The view container to add items to. */
|
|
87
|
-
_viewContainerRef: ViewContainerRef,
|
|
88
|
-
/** The template to use when stamping out new items. */
|
|
89
|
-
_template: TemplateRef<CdkVirtualForOfContext<T>>,
|
|
90
|
-
/** The set of available differs. */
|
|
91
|
-
_differs: IterableDiffers,
|
|
92
|
-
/** The strategy used to render items in the virtual scroll viewport. */
|
|
93
|
-
_viewRepeater: _RecycleViewRepeaterStrategy<T, T, CdkVirtualForOfContext<T>>,
|
|
94
|
-
/** The virtual scrolling viewport that these items are being rendered in. */
|
|
95
|
-
_viewport: CdkVirtualScrollViewport, ngZone: NgZone);
|
|
96
|
-
/**
|
|
97
|
-
* Measures the combined size (width for horizontal orientation, height for vertical) of all items
|
|
98
|
-
* in the specified range. Throws an error if the range includes items that are not currently
|
|
99
|
-
* rendered.
|
|
100
|
-
*/
|
|
101
|
-
measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
|
|
102
|
-
ngDoCheck(): void;
|
|
103
|
-
ngOnDestroy(): void;
|
|
104
|
-
/** React to scroll state changes in the viewport. */
|
|
105
|
-
private _onRenderedDataChange;
|
|
106
|
-
/** Swap out one `DataSource` for another. */
|
|
107
|
-
private _changeDataSource;
|
|
108
|
-
/** Update the `CdkVirtualForOfContext` for all views. */
|
|
109
|
-
private _updateContext;
|
|
110
|
-
/** Apply changes to the DOM. */
|
|
111
|
-
private _applyChanges;
|
|
112
|
-
/** Update the computed properties on the `CdkVirtualForOfContext`. */
|
|
113
|
-
private _updateComputedContextProperties;
|
|
114
|
-
private _getEmbeddedViewArgs;
|
|
115
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualForOf<any>, [null, null, null, null, { skipSelf: true; }, null]>;
|
|
116
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualForOf<any>, "[cdkVirtualFor][cdkVirtualForOf]", never, { "cdkVirtualForOf": "cdkVirtualForOf"; "cdkVirtualForTrackBy": "cdkVirtualForTrackBy"; "cdkVirtualForTemplate": "cdkVirtualForTemplate"; "cdkVirtualForTemplateCacheSize": "cdkVirtualForTemplateCacheSize"; }, {}, never>;
|
|
117
|
-
}
|
|
@@ -1,16 +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 { Observable } from 'rxjs';
|
|
9
|
-
import { ListRange } from '@angular/cdk/collections';
|
|
10
|
-
/**
|
|
11
|
-
* An item to be repeated by the VirtualScrollViewport
|
|
12
|
-
*/
|
|
13
|
-
export interface CdkVirtualScrollRepeater<T> {
|
|
14
|
-
readonly dataStream: Observable<readonly T[]>;
|
|
15
|
-
measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
|
|
16
|
-
}
|
|
@@ -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 { InjectionToken } from '@angular/core';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
import { CdkVirtualScrollViewport } from './virtual-scroll-viewport';
|
|
11
|
-
/** The injection token used to specify the virtual scrolling strategy. */
|
|
12
|
-
export declare const VIRTUAL_SCROLL_STRATEGY: InjectionToken<VirtualScrollStrategy>;
|
|
13
|
-
/** A strategy that dictates which items should be rendered in the viewport. */
|
|
14
|
-
export interface VirtualScrollStrategy {
|
|
15
|
-
/** Emits when the index of the first element visible in the viewport changes. */
|
|
16
|
-
scrolledIndexChange: Observable<number>;
|
|
17
|
-
/**
|
|
18
|
-
* Attaches this scroll strategy to a viewport.
|
|
19
|
-
* @param viewport The viewport to attach this strategy to.
|
|
20
|
-
*/
|
|
21
|
-
attach(viewport: CdkVirtualScrollViewport): void;
|
|
22
|
-
/** Detaches this scroll strategy from the currently attached viewport. */
|
|
23
|
-
detach(): void;
|
|
24
|
-
/** Called when the viewport is scrolled (debounced using requestAnimationFrame). */
|
|
25
|
-
onContentScrolled(): void;
|
|
26
|
-
/** Called when the length of the data changes. */
|
|
27
|
-
onDataLengthChanged(): void;
|
|
28
|
-
/** Called when the range of items rendered in the DOM has changed. */
|
|
29
|
-
onContentRendered(): void;
|
|
30
|
-
/** Called when the offset of the rendered items changed. */
|
|
31
|
-
onRenderedOffsetChanged(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Scroll to the offset for the given index.
|
|
34
|
-
* @param index The index of the element to scroll to.
|
|
35
|
-
* @param behavior The ScrollBehavior to use when scrolling.
|
|
36
|
-
*/
|
|
37
|
-
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
|
38
|
-
}
|
|
@@ -1,147 +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 { ListRange } from '@angular/cdk/collections';
|
|
10
|
-
import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
11
|
-
import { Observable } from 'rxjs';
|
|
12
|
-
import { ScrollDispatcher } from './scroll-dispatcher';
|
|
13
|
-
import { CdkScrollable } from './scrollable';
|
|
14
|
-
import { VirtualScrollStrategy } from './virtual-scroll-strategy';
|
|
15
|
-
import { ViewportRuler } from './viewport-ruler';
|
|
16
|
-
import { CdkVirtualScrollRepeater } from './virtual-scroll-repeater';
|
|
17
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
18
|
-
import * as i0 from "@angular/core";
|
|
19
|
-
/** A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`. */
|
|
20
|
-
export declare class CdkVirtualScrollViewport extends CdkScrollable implements OnInit, OnDestroy {
|
|
21
|
-
elementRef: ElementRef<HTMLElement>;
|
|
22
|
-
private _changeDetectorRef;
|
|
23
|
-
private _scrollStrategy;
|
|
24
|
-
/** Emits when the viewport is detached from a CdkVirtualForOf. */
|
|
25
|
-
private readonly _detachedSubject;
|
|
26
|
-
/** Emits when the rendered range changes. */
|
|
27
|
-
private readonly _renderedRangeSubject;
|
|
28
|
-
/** The direction the viewport scrolls. */
|
|
29
|
-
get orientation(): 'horizontal' | 'vertical';
|
|
30
|
-
set orientation(orientation: 'horizontal' | 'vertical');
|
|
31
|
-
private _orientation;
|
|
32
|
-
/**
|
|
33
|
-
* Whether rendered items should persist in the DOM after scrolling out of view. By default, items
|
|
34
|
-
* will be removed.
|
|
35
|
-
*/
|
|
36
|
-
get appendOnly(): boolean;
|
|
37
|
-
set appendOnly(value: BooleanInput);
|
|
38
|
-
private _appendOnly;
|
|
39
|
-
/** Emits when the index of the first element visible in the viewport changes. */
|
|
40
|
-
readonly scrolledIndexChange: Observable<number>;
|
|
41
|
-
/** The element that wraps the rendered content. */
|
|
42
|
-
_contentWrapper: ElementRef<HTMLElement>;
|
|
43
|
-
/** A stream that emits whenever the rendered range changes. */
|
|
44
|
-
readonly renderedRangeStream: Observable<ListRange>;
|
|
45
|
-
/**
|
|
46
|
-
* The total size of all content (in pixels), including content that is not currently rendered.
|
|
47
|
-
*/
|
|
48
|
-
private _totalContentSize;
|
|
49
|
-
/** A string representing the `style.width` property value to be used for the spacer element. */
|
|
50
|
-
_totalContentWidth: string;
|
|
51
|
-
/** A string representing the `style.height` property value to be used for the spacer element. */
|
|
52
|
-
_totalContentHeight: string;
|
|
53
|
-
/**
|
|
54
|
-
* The CSS transform applied to the rendered subset of items so that they appear within the bounds
|
|
55
|
-
* of the visible viewport.
|
|
56
|
-
*/
|
|
57
|
-
private _renderedContentTransform;
|
|
58
|
-
/** The currently rendered range of indices. */
|
|
59
|
-
private _renderedRange;
|
|
60
|
-
/** The length of the data bound to this viewport (in number of items). */
|
|
61
|
-
private _dataLength;
|
|
62
|
-
/** The size of the viewport (in pixels). */
|
|
63
|
-
private _viewportSize;
|
|
64
|
-
/** the currently attached CdkVirtualScrollRepeater. */
|
|
65
|
-
private _forOf;
|
|
66
|
-
/** The last rendered content offset that was set. */
|
|
67
|
-
private _renderedContentOffset;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the last rendered content offset was to the end of the content (and therefore needs to
|
|
70
|
-
* be rewritten as an offset to the start of the content).
|
|
71
|
-
*/
|
|
72
|
-
private _renderedContentOffsetNeedsRewrite;
|
|
73
|
-
/** Whether there is a pending change detection cycle. */
|
|
74
|
-
private _isChangeDetectionPending;
|
|
75
|
-
/** A list of functions to run after the next change detection cycle. */
|
|
76
|
-
private _runAfterChangeDetection;
|
|
77
|
-
/** Subscription to changes in the viewport size. */
|
|
78
|
-
private _viewportChanges;
|
|
79
|
-
constructor(elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, _scrollStrategy: VirtualScrollStrategy, dir: Directionality, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler);
|
|
80
|
-
ngOnInit(): void;
|
|
81
|
-
ngOnDestroy(): void;
|
|
82
|
-
/** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
|
|
83
|
-
attach(forOf: CdkVirtualScrollRepeater<any>): void;
|
|
84
|
-
/** Detaches the current `CdkVirtualForOf`. */
|
|
85
|
-
detach(): void;
|
|
86
|
-
/** Gets the length of the data bound to this viewport (in number of items). */
|
|
87
|
-
getDataLength(): number;
|
|
88
|
-
/** Gets the size of the viewport (in pixels). */
|
|
89
|
-
getViewportSize(): number;
|
|
90
|
-
/** Get the current rendered range of items. */
|
|
91
|
-
getRenderedRange(): ListRange;
|
|
92
|
-
/**
|
|
93
|
-
* Sets the total size of all content (in pixels), including content that is not currently
|
|
94
|
-
* rendered.
|
|
95
|
-
*/
|
|
96
|
-
setTotalContentSize(size: number): void;
|
|
97
|
-
/** Sets the currently rendered range of indices. */
|
|
98
|
-
setRenderedRange(range: ListRange): void;
|
|
99
|
-
/**
|
|
100
|
-
* Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
|
|
101
|
-
*/
|
|
102
|
-
getOffsetToRenderedContentStart(): number | null;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the offset from the start of the viewport to either the start or end of the rendered data
|
|
105
|
-
* (in pixels).
|
|
106
|
-
*/
|
|
107
|
-
setRenderedContentOffset(offset: number, to?: 'to-start' | 'to-end'): void;
|
|
108
|
-
/**
|
|
109
|
-
* Scrolls to the given offset from the start of the viewport. Please note that this is not always
|
|
110
|
-
* the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
|
|
111
|
-
* direction, this would be the equivalent of setting a fictional `scrollRight` property.
|
|
112
|
-
* @param offset The offset to scroll to.
|
|
113
|
-
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
114
|
-
*/
|
|
115
|
-
scrollToOffset(offset: number, behavior?: ScrollBehavior): void;
|
|
116
|
-
/**
|
|
117
|
-
* Scrolls to the offset for the given index.
|
|
118
|
-
* @param index The index of the element to scroll to.
|
|
119
|
-
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
120
|
-
*/
|
|
121
|
-
scrollToIndex(index: number, behavior?: ScrollBehavior): void;
|
|
122
|
-
/**
|
|
123
|
-
* Gets the current scroll offset from the start of the viewport (in pixels).
|
|
124
|
-
* @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
|
|
125
|
-
* in horizontal mode.
|
|
126
|
-
*/
|
|
127
|
-
measureScrollOffset(from?: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number;
|
|
128
|
-
/** Measure the combined size of all of the rendered items. */
|
|
129
|
-
measureRenderedContentSize(): number;
|
|
130
|
-
/**
|
|
131
|
-
* Measure the total combined size of the given range. Throws if the range includes items that are
|
|
132
|
-
* not rendered.
|
|
133
|
-
*/
|
|
134
|
-
measureRangeSize(range: ListRange): number;
|
|
135
|
-
/** Update the viewport dimensions and re-render. */
|
|
136
|
-
checkViewportSize(): void;
|
|
137
|
-
/** Measure the viewport size. */
|
|
138
|
-
private _measureViewportSize;
|
|
139
|
-
/** Queue up change detection to run. */
|
|
140
|
-
private _markChangeDetectionNeeded;
|
|
141
|
-
/** Run change detection. */
|
|
142
|
-
private _doChangeDetection;
|
|
143
|
-
/** Calculates the `style.width` and `style.height` for the spacer element. */
|
|
144
|
-
private _calculateSpacerSize;
|
|
145
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualScrollViewport, [null, null, null, { optional: true; }, { optional: true; }, null, null]>;
|
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkVirtualScrollViewport, "cdk-virtual-scroll-viewport", never, { "orientation": "orientation"; "appendOnly": "appendOnly"; }, { "scrolledIndexChange": "scrolledIndexChange"; }, never, ["*"]>;
|
|
147
|
-
}
|
package/stepper/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/stepper",
|
|
3
|
-
"fesm2020": "../fesm2020/stepper.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/stepper.mjs",
|
|
5
|
-
"esm2020": "../esm2020/stepper/stepper_public_index.mjs",
|
|
6
|
-
"typings": "./stepper_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/stepper.mjs",
|
|
8
|
-
"es2020": "../fesm2020/stepper.mjs"
|
|
9
|
-
}
|
package/stepper/public-api.d.ts
DELETED
|
@@ -1,12 +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
|
-
export * from './stepper';
|
|
9
|
-
export * from './step-label';
|
|
10
|
-
export * from './stepper-button';
|
|
11
|
-
export * from './stepper-module';
|
|
12
|
-
export * from './step-header';
|
package/stepper/step-header.d.ts
DELETED
|
@@ -1,18 +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 { ElementRef } from '@angular/core';
|
|
9
|
-
import { FocusableOption } from '@angular/cdk/a11y';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class CdkStepHeader implements FocusableOption {
|
|
12
|
-
_elementRef: ElementRef<HTMLElement>;
|
|
13
|
-
constructor(_elementRef: ElementRef<HTMLElement>);
|
|
14
|
-
/** Focuses the step header. */
|
|
15
|
-
focus(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepHeader, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepHeader, "[cdkStepHeader]", never, {}, {}, never>;
|
|
18
|
-
}
|
package/stepper/step-label.d.ts
DELETED
|
@@ -1,15 +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 { TemplateRef } from '@angular/core';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class CdkStepLabel {
|
|
11
|
-
template: TemplateRef<any>;
|
|
12
|
-
constructor(/** @docs-private */ template: TemplateRef<any>);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepLabel, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepLabel, "[cdkStepLabel]", never, {}, {}, never>;
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CdkStepper } from './stepper';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** Button that moves to the next step in a stepper workflow. */
|
|
4
|
-
export declare class CdkStepperNext {
|
|
5
|
-
_stepper: CdkStepper;
|
|
6
|
-
/** Type of the next button. Defaults to "submit" if not specified. */
|
|
7
|
-
type: string;
|
|
8
|
-
constructor(_stepper: CdkStepper);
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperNext, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepperNext, "button[cdkStepperNext]", never, { "type": "type"; }, {}, never>;
|
|
11
|
-
}
|
|
12
|
-
/** Button that moves to the previous step in a stepper workflow. */
|
|
13
|
-
export declare class CdkStepperPrevious {
|
|
14
|
-
_stepper: CdkStepper;
|
|
15
|
-
/** Type of the previous button. Defaults to "button" if not specified. */
|
|
16
|
-
type: string;
|
|
17
|
-
constructor(_stepper: CdkStepper);
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperPrevious, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepperPrevious, "button[cdkStepperPrevious]", never, { "type": "type"; }, {}, never>;
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./stepper";
|
|
3
|
-
import * as i2 from "./step-header";
|
|
4
|
-
import * as i3 from "./step-label";
|
|
5
|
-
import * as i4 from "./stepper-button";
|
|
6
|
-
import * as i5 from "@angular/cdk/bidi";
|
|
7
|
-
export declare class CdkStepperModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkStepperModule, [typeof i1.CdkStep, typeof i1.CdkStepper, typeof i2.CdkStepHeader, typeof i3.CdkStepLabel, typeof i4.CdkStepperNext, typeof i4.CdkStepperPrevious], [typeof i5.BidiModule], [typeof i1.CdkStep, typeof i1.CdkStepper, typeof i2.CdkStepHeader, typeof i3.CdkStepLabel, typeof i4.CdkStepperNext, typeof i4.CdkStepperPrevious]>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkStepperModule>;
|
|
11
|
-
}
|
package/stepper/stepper.d.ts
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
3
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, OnChanges, OnDestroy, QueryList, TemplateRef, AfterContentInit } from '@angular/core';
|
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
import { CdkStepHeader } from './step-header';
|
|
6
|
-
import { CdkStepLabel } from './step-label';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Position state of the content of each step in stepper that is used for transitioning
|
|
10
|
-
* the content into correct position upon step selection change.
|
|
11
|
-
*/
|
|
12
|
-
export declare type StepContentPositionState = 'previous' | 'current' | 'next';
|
|
13
|
-
/** Possible orientation of a stepper. */
|
|
14
|
-
export declare type StepperOrientation = 'horizontal' | 'vertical';
|
|
15
|
-
/** Change event emitted on selection changes. */
|
|
16
|
-
export declare class StepperSelectionEvent {
|
|
17
|
-
/** Index of the step now selected. */
|
|
18
|
-
selectedIndex: number;
|
|
19
|
-
/** Index of the step previously selected. */
|
|
20
|
-
previouslySelectedIndex: number;
|
|
21
|
-
/** The step instance now selected. */
|
|
22
|
-
selectedStep: CdkStep;
|
|
23
|
-
/** The step instance previously selected. */
|
|
24
|
-
previouslySelectedStep: CdkStep;
|
|
25
|
-
}
|
|
26
|
-
/** The state of each step. */
|
|
27
|
-
export declare type StepState = 'number' | 'edit' | 'done' | 'error' | string;
|
|
28
|
-
/** Enum to represent the different states of the steps. */
|
|
29
|
-
export declare const STEP_STATE: {
|
|
30
|
-
NUMBER: string;
|
|
31
|
-
EDIT: string;
|
|
32
|
-
DONE: string;
|
|
33
|
-
ERROR: string;
|
|
34
|
-
};
|
|
35
|
-
/** InjectionToken that can be used to specify the global stepper options. */
|
|
36
|
-
export declare const STEPPER_GLOBAL_OPTIONS: InjectionToken<StepperOptions>;
|
|
37
|
-
/** Configurable options for stepper. */
|
|
38
|
-
export interface StepperOptions {
|
|
39
|
-
/**
|
|
40
|
-
* Whether the stepper should display an error state or not.
|
|
41
|
-
* Default behavior is assumed to be false.
|
|
42
|
-
*/
|
|
43
|
-
showError?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Whether the stepper should display the default indicator type
|
|
46
|
-
* or not.
|
|
47
|
-
* Default behavior is assumed to be true.
|
|
48
|
-
*/
|
|
49
|
-
displayDefaultIndicatorType?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export declare class CdkStep implements OnChanges {
|
|
52
|
-
_stepper: CdkStepper;
|
|
53
|
-
private _stepperOptions;
|
|
54
|
-
_displayDefaultIndicatorType: boolean;
|
|
55
|
-
/** Template for step label if it exists. */
|
|
56
|
-
stepLabel: CdkStepLabel;
|
|
57
|
-
/** Template for step content. */
|
|
58
|
-
content: TemplateRef<any>;
|
|
59
|
-
/** The top level abstract control of the step. */
|
|
60
|
-
stepControl: AbstractControlLike;
|
|
61
|
-
/** Whether user has attempted to move away from the step. */
|
|
62
|
-
interacted: boolean;
|
|
63
|
-
/** Emits when the user has attempted to move away from the step. */
|
|
64
|
-
readonly interactedStream: EventEmitter<CdkStep>;
|
|
65
|
-
/** Plain text label of the step. */
|
|
66
|
-
label: string;
|
|
67
|
-
/** Error message to display when there's an error. */
|
|
68
|
-
errorMessage: string;
|
|
69
|
-
/** Aria label for the tab. */
|
|
70
|
-
ariaLabel: string;
|
|
71
|
-
/**
|
|
72
|
-
* Reference to the element that the tab is labelled by.
|
|
73
|
-
* Will be cleared if `aria-label` is set at the same time.
|
|
74
|
-
*/
|
|
75
|
-
ariaLabelledby: string;
|
|
76
|
-
/** State of the step. */
|
|
77
|
-
state: StepState;
|
|
78
|
-
/** Whether the user can return to this step once it has been marked as completed. */
|
|
79
|
-
get editable(): boolean;
|
|
80
|
-
set editable(value: BooleanInput);
|
|
81
|
-
private _editable;
|
|
82
|
-
/** Whether the completion of step is optional. */
|
|
83
|
-
get optional(): boolean;
|
|
84
|
-
set optional(value: BooleanInput);
|
|
85
|
-
private _optional;
|
|
86
|
-
/** Whether step is marked as completed. */
|
|
87
|
-
get completed(): boolean;
|
|
88
|
-
set completed(value: BooleanInput);
|
|
89
|
-
_completedOverride: boolean | null;
|
|
90
|
-
private _getDefaultCompleted;
|
|
91
|
-
/** Whether step has an error. */
|
|
92
|
-
get hasError(): boolean;
|
|
93
|
-
set hasError(value: BooleanInput);
|
|
94
|
-
private _customError;
|
|
95
|
-
private _getDefaultError;
|
|
96
|
-
constructor(_stepper: CdkStepper, stepperOptions?: StepperOptions);
|
|
97
|
-
/** Selects this step component. */
|
|
98
|
-
select(): void;
|
|
99
|
-
/** Resets the step to its initial state. Note that this includes resetting form data. */
|
|
100
|
-
reset(): void;
|
|
101
|
-
ngOnChanges(): void;
|
|
102
|
-
_markAsInteracted(): void;
|
|
103
|
-
/** Determines whether the error state can be shown. */
|
|
104
|
-
_showError(): boolean;
|
|
105
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStep, [null, { optional: true; }]>;
|
|
106
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkStep, "cdk-step", ["cdkStep"], { "stepControl": "stepControl"; "label": "label"; "errorMessage": "errorMessage"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "state": "state"; "editable": "editable"; "optional": "optional"; "completed": "completed"; "hasError": "hasError"; }, { "interactedStream": "interacted"; }, ["stepLabel"], ["*"]>;
|
|
107
|
-
}
|
|
108
|
-
export declare class CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
109
|
-
private _dir;
|
|
110
|
-
private _changeDetectorRef;
|
|
111
|
-
private _elementRef;
|
|
112
|
-
/** Emits when the component is destroyed. */
|
|
113
|
-
protected readonly _destroyed: Subject<void>;
|
|
114
|
-
/** Used for managing keyboard focus. */
|
|
115
|
-
private _keyManager;
|
|
116
|
-
/** Full list of steps inside the stepper, including inside nested steppers. */
|
|
117
|
-
_steps: QueryList<CdkStep>;
|
|
118
|
-
/** Steps that belong to the current stepper, excluding ones from nested steppers. */
|
|
119
|
-
readonly steps: QueryList<CdkStep>;
|
|
120
|
-
/** The list of step headers of the steps in the stepper. */
|
|
121
|
-
_stepHeader: QueryList<CdkStepHeader>;
|
|
122
|
-
/** List of step headers sorted based on their DOM order. */
|
|
123
|
-
private _sortedHeaders;
|
|
124
|
-
/** Whether the validity of previous steps should be checked or not. */
|
|
125
|
-
get linear(): boolean;
|
|
126
|
-
set linear(value: BooleanInput);
|
|
127
|
-
private _linear;
|
|
128
|
-
/** The index of the selected step. */
|
|
129
|
-
get selectedIndex(): number;
|
|
130
|
-
set selectedIndex(index: NumberInput);
|
|
131
|
-
private _selectedIndex;
|
|
132
|
-
/** The step that is selected. */
|
|
133
|
-
get selected(): CdkStep | undefined;
|
|
134
|
-
set selected(step: CdkStep | undefined);
|
|
135
|
-
/** Event emitted when the selected step has changed. */
|
|
136
|
-
readonly selectionChange: EventEmitter<StepperSelectionEvent>;
|
|
137
|
-
/** Used to track unique ID for each stepper component. */
|
|
138
|
-
_groupId: number;
|
|
139
|
-
/** Orientation of the stepper. */
|
|
140
|
-
get orientation(): StepperOrientation;
|
|
141
|
-
set orientation(value: StepperOrientation);
|
|
142
|
-
private _orientation;
|
|
143
|
-
constructor(_dir: Directionality, _changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>);
|
|
144
|
-
ngAfterContentInit(): void;
|
|
145
|
-
ngAfterViewInit(): void;
|
|
146
|
-
ngOnDestroy(): void;
|
|
147
|
-
/** Selects and focuses the next step in list. */
|
|
148
|
-
next(): void;
|
|
149
|
-
/** Selects and focuses the previous step in list. */
|
|
150
|
-
previous(): void;
|
|
151
|
-
/** Resets the stepper to its initial state. Note that this includes clearing form data. */
|
|
152
|
-
reset(): void;
|
|
153
|
-
/** Returns a unique id for each step label element. */
|
|
154
|
-
_getStepLabelId(i: number): string;
|
|
155
|
-
/** Returns unique id for each step content element. */
|
|
156
|
-
_getStepContentId(i: number): string;
|
|
157
|
-
/** Marks the component to be change detected. */
|
|
158
|
-
_stateChanged(): void;
|
|
159
|
-
/** Returns position state of the step with the given index. */
|
|
160
|
-
_getAnimationDirection(index: number): StepContentPositionState;
|
|
161
|
-
/** Returns the type of icon to be displayed. */
|
|
162
|
-
_getIndicatorType(index: number, state?: StepState): StepState;
|
|
163
|
-
private _getDefaultIndicatorLogic;
|
|
164
|
-
private _getGuidelineLogic;
|
|
165
|
-
private _isCurrentStep;
|
|
166
|
-
/** Returns the index of the currently-focused step header. */
|
|
167
|
-
_getFocusIndex(): number | null;
|
|
168
|
-
private _updateSelectedItemIndex;
|
|
169
|
-
_onKeydown(event: KeyboardEvent): void;
|
|
170
|
-
private _anyControlsInvalidOrPending;
|
|
171
|
-
private _layoutDirection;
|
|
172
|
-
/** Checks whether the stepper contains the focused element. */
|
|
173
|
-
private _containsFocus;
|
|
174
|
-
/** Checks whether the passed-in index is a valid step index. */
|
|
175
|
-
private _isValidIndex;
|
|
176
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepper, [{ optional: true; }, null, null]>;
|
|
177
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepper, "[cdkStepper]", ["cdkStepper"], { "linear": "linear"; "selectedIndex": "selectedIndex"; "selected": "selected"; "orientation": "orientation"; }, { "selectionChange": "selectionChange"; }, ["_steps", "_stepHeader"]>;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Simplified representation of an "AbstractControl" from @angular/forms.
|
|
181
|
-
* Used to avoid having to bring in @angular/forms for a single optional interface.
|
|
182
|
-
* @docs-private
|
|
183
|
-
*/
|
|
184
|
-
interface AbstractControlLike {
|
|
185
|
-
asyncValidator: ((control: any) => any) | null;
|
|
186
|
-
dirty: boolean;
|
|
187
|
-
disabled: boolean;
|
|
188
|
-
enabled: boolean;
|
|
189
|
-
errors: {
|
|
190
|
-
[key: string]: any;
|
|
191
|
-
} | null;
|
|
192
|
-
invalid: boolean;
|
|
193
|
-
parent: any;
|
|
194
|
-
pending: boolean;
|
|
195
|
-
pristine: boolean;
|
|
196
|
-
root: AbstractControlLike;
|
|
197
|
-
status: string;
|
|
198
|
-
readonly statusChanges: Observable<any>;
|
|
199
|
-
touched: boolean;
|
|
200
|
-
untouched: boolean;
|
|
201
|
-
updateOn: any;
|
|
202
|
-
valid: boolean;
|
|
203
|
-
validator: ((control: any) => any) | null;
|
|
204
|
-
value: any;
|
|
205
|
-
readonly valueChanges: Observable<any>;
|
|
206
|
-
clearAsyncValidators(): void;
|
|
207
|
-
clearValidators(): void;
|
|
208
|
-
disable(opts?: any): void;
|
|
209
|
-
enable(opts?: any): void;
|
|
210
|
-
get(path: (string | number)[] | string): AbstractControlLike | null;
|
|
211
|
-
getError(errorCode: string, path?: (string | number)[] | string): any;
|
|
212
|
-
hasError(errorCode: string, path?: (string | number)[] | string): boolean;
|
|
213
|
-
markAllAsTouched(): void;
|
|
214
|
-
markAsDirty(opts?: any): void;
|
|
215
|
-
markAsPending(opts?: any): void;
|
|
216
|
-
markAsPristine(opts?: any): void;
|
|
217
|
-
markAsTouched(opts?: any): void;
|
|
218
|
-
markAsUntouched(opts?: any): void;
|
|
219
|
-
patchValue(value: any, options?: Object): void;
|
|
220
|
-
reset(value?: any, options?: Object): void;
|
|
221
|
-
setAsyncValidators(newValidator: (control: any) => any | ((control: any) => any)[] | null): void;
|
|
222
|
-
setErrors(errors: {
|
|
223
|
-
[key: string]: any;
|
|
224
|
-
} | null, opts?: any): void;
|
|
225
|
-
setParent(parent: any): void;
|
|
226
|
-
setValidators(newValidator: (control: any) => any | ((control: any) => any)[] | null): void;
|
|
227
|
-
setValue(value: any, options?: Object): void;
|
|
228
|
-
updateValueAndValidity(opts?: any): void;
|
|
229
|
-
patchValue(value: any, options?: any): void;
|
|
230
|
-
reset(formState?: any, options?: any): void;
|
|
231
|
-
setValue(value: any, options?: any): void;
|
|
232
|
-
}
|
|
233
|
-
export {};
|