@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/table/table.d.ts
DELETED
|
@@ -1,490 +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 { BooleanInput } from '@angular/cdk/coercion';
|
|
10
|
-
import { CollectionViewer, DataSource, _ViewRepeater } from '@angular/cdk/collections';
|
|
11
|
-
import { Platform } from '@angular/cdk/platform';
|
|
12
|
-
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
13
|
-
import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, IterableDiffers, NgZone, OnDestroy, OnInit, QueryList, TrackByFunction, ViewContainerRef } from '@angular/core';
|
|
14
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
15
|
-
import { CdkColumnDef } from './cell';
|
|
16
|
-
import { _CoalescedStyleScheduler } from './coalesced-style-scheduler';
|
|
17
|
-
import { CdkCellOutletMultiRowContext, CdkCellOutletRowContext, CdkFooterRowDef, CdkHeaderRowDef, CdkNoDataRow, CdkRowDef } from './row';
|
|
18
|
-
import { StickyPositioningListener } from './sticky-position-listener';
|
|
19
|
-
import * as i0 from "@angular/core";
|
|
20
|
-
/**
|
|
21
|
-
* Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
|
|
22
|
-
* tables that animate rows.
|
|
23
|
-
*/
|
|
24
|
-
export declare class CdkRecycleRows {
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRecycleRows, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRecycleRows, "cdk-table[recycleRows], table[cdk-table][recycleRows]", never, {}, {}, never, never, false>;
|
|
27
|
-
}
|
|
28
|
-
/** Interface used to provide an outlet for rows to be inserted into. */
|
|
29
|
-
export interface RowOutlet {
|
|
30
|
-
viewContainer: ViewContainerRef;
|
|
31
|
-
}
|
|
32
|
-
/** Possible types that can be set as the data source for a `CdkTable`. */
|
|
33
|
-
export declare type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
|
|
34
|
-
/**
|
|
35
|
-
* Provides a handle for the table to grab the view container's ng-container to insert data rows.
|
|
36
|
-
* @docs-private
|
|
37
|
-
*/
|
|
38
|
-
export declare class DataRowOutlet implements RowOutlet {
|
|
39
|
-
viewContainer: ViewContainerRef;
|
|
40
|
-
elementRef: ElementRef;
|
|
41
|
-
constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataRowOutlet, never>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DataRowOutlet, "[rowOutlet]", never, {}, {}, never, never, false>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Provides a handle for the table to grab the view container's ng-container to insert the header.
|
|
47
|
-
* @docs-private
|
|
48
|
-
*/
|
|
49
|
-
export declare class HeaderRowOutlet implements RowOutlet {
|
|
50
|
-
viewContainer: ViewContainerRef;
|
|
51
|
-
elementRef: ElementRef;
|
|
52
|
-
constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowOutlet, never>;
|
|
54
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderRowOutlet, "[headerRowOutlet]", never, {}, {}, never, never, false>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Provides a handle for the table to grab the view container's ng-container to insert the footer.
|
|
58
|
-
* @docs-private
|
|
59
|
-
*/
|
|
60
|
-
export declare class FooterRowOutlet implements RowOutlet {
|
|
61
|
-
viewContainer: ViewContainerRef;
|
|
62
|
-
elementRef: ElementRef;
|
|
63
|
-
constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FooterRowOutlet, never>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FooterRowOutlet, "[footerRowOutlet]", never, {}, {}, never, never, false>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Provides a handle for the table to grab the view
|
|
69
|
-
* container's ng-container to insert the no data row.
|
|
70
|
-
* @docs-private
|
|
71
|
-
*/
|
|
72
|
-
export declare class NoDataRowOutlet implements RowOutlet {
|
|
73
|
-
viewContainer: ViewContainerRef;
|
|
74
|
-
elementRef: ElementRef;
|
|
75
|
-
constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NoDataRowOutlet, never>;
|
|
77
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NoDataRowOutlet, "[noDataRowOutlet]", never, {}, {}, never, never, false>;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* The table template that can be used by the mat-table. Should not be used outside of the
|
|
81
|
-
* material library.
|
|
82
|
-
* @docs-private
|
|
83
|
-
*/
|
|
84
|
-
export declare const CDK_TABLE_TEMPLATE = "\n <ng-content select=\"caption\"></ng-content>\n <ng-content select=\"colgroup, col\"></ng-content>\n <ng-container headerRowOutlet></ng-container>\n <ng-container rowOutlet></ng-container>\n <ng-container noDataRowOutlet></ng-container>\n <ng-container footerRowOutlet></ng-container>\n";
|
|
85
|
-
/**
|
|
86
|
-
* Interface used to conveniently type the possible context interfaces for the render row.
|
|
87
|
-
* @docs-private
|
|
88
|
-
*/
|
|
89
|
-
export interface RowContext<T> extends CdkCellOutletMultiRowContext<T>, CdkCellOutletRowContext<T> {
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Set of properties that represents the identity of a single rendered row.
|
|
93
|
-
*
|
|
94
|
-
* When the table needs to determine the list of rows to render, it will do so by iterating through
|
|
95
|
-
* each data object and evaluating its list of row templates to display (when multiTemplateDataRows
|
|
96
|
-
* is false, there is only one template per data object). For each pair of data object and row
|
|
97
|
-
* template, a `RenderRow` is added to the list of rows to render. If the data object and row
|
|
98
|
-
* template pair has already been rendered, the previously used `RenderRow` is added; else a new
|
|
99
|
-
* `RenderRow` is * created. Once the list is complete and all data objects have been itereated
|
|
100
|
-
* through, a diff is performed to determine the changes that need to be made to the rendered rows.
|
|
101
|
-
*
|
|
102
|
-
* @docs-private
|
|
103
|
-
*/
|
|
104
|
-
export interface RenderRow<T> {
|
|
105
|
-
data: T;
|
|
106
|
-
dataIndex: number;
|
|
107
|
-
rowDef: CdkRowDef<T>;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* A data table that can render a header row, data rows, and a footer row.
|
|
111
|
-
* Uses the dataSource input to determine the data to be rendered. The data can be provided either
|
|
112
|
-
* as a data array, an Observable stream that emits the data array to render, or a DataSource with a
|
|
113
|
-
* connect function that will return an Observable stream that emits the data array to render.
|
|
114
|
-
*/
|
|
115
|
-
export declare class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
|
|
116
|
-
protected readonly _differs: IterableDiffers;
|
|
117
|
-
protected readonly _changeDetectorRef: ChangeDetectorRef;
|
|
118
|
-
protected readonly _elementRef: ElementRef;
|
|
119
|
-
protected readonly _dir: Directionality;
|
|
120
|
-
private _platform;
|
|
121
|
-
protected readonly _viewRepeater: _ViewRepeater<T, RenderRow<T>, RowContext<T>>;
|
|
122
|
-
protected readonly _coalescedStyleScheduler: _CoalescedStyleScheduler;
|
|
123
|
-
private readonly _viewportRuler;
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated `_stickyPositioningListener` parameter to become required.
|
|
126
|
-
* @breaking-change 13.0.0
|
|
127
|
-
*/
|
|
128
|
-
protected readonly _stickyPositioningListener: StickyPositioningListener;
|
|
129
|
-
/**
|
|
130
|
-
* @deprecated `_ngZone` parameter to become required.
|
|
131
|
-
* @breaking-change 14.0.0
|
|
132
|
-
*/
|
|
133
|
-
protected readonly _ngZone?: NgZone | undefined;
|
|
134
|
-
private _document;
|
|
135
|
-
/** Latest data provided by the data source. */
|
|
136
|
-
protected _data: readonly T[];
|
|
137
|
-
/** Subject that emits when the component has been destroyed. */
|
|
138
|
-
private readonly _onDestroy;
|
|
139
|
-
/** List of the rendered rows as identified by their `RenderRow` object. */
|
|
140
|
-
private _renderRows;
|
|
141
|
-
/** Subscription that listens for the data provided by the data source. */
|
|
142
|
-
private _renderChangeSubscription;
|
|
143
|
-
/**
|
|
144
|
-
* Map of all the user's defined columns (header, data, and footer cell template) identified by
|
|
145
|
-
* name. Collection populated by the column definitions gathered by `ContentChildren` as well as
|
|
146
|
-
* any custom column definitions added to `_customColumnDefs`.
|
|
147
|
-
*/
|
|
148
|
-
private _columnDefsByName;
|
|
149
|
-
/**
|
|
150
|
-
* Set of all row definitions that can be used by this table. Populated by the rows gathered by
|
|
151
|
-
* using `ContentChildren` as well as any custom row definitions added to `_customRowDefs`.
|
|
152
|
-
*/
|
|
153
|
-
private _rowDefs;
|
|
154
|
-
/**
|
|
155
|
-
* Set of all header row definitions that can be used by this table. Populated by the rows
|
|
156
|
-
* gathered by using `ContentChildren` as well as any custom row definitions added to
|
|
157
|
-
* `_customHeaderRowDefs`.
|
|
158
|
-
*/
|
|
159
|
-
private _headerRowDefs;
|
|
160
|
-
/**
|
|
161
|
-
* Set of all row definitions that can be used by this table. Populated by the rows gathered by
|
|
162
|
-
* using `ContentChildren` as well as any custom row definitions added to
|
|
163
|
-
* `_customFooterRowDefs`.
|
|
164
|
-
*/
|
|
165
|
-
private _footerRowDefs;
|
|
166
|
-
/** Differ used to find the changes in the data provided by the data source. */
|
|
167
|
-
private _dataDiffer;
|
|
168
|
-
/** Stores the row definition that does not have a when predicate. */
|
|
169
|
-
private _defaultRowDef;
|
|
170
|
-
/**
|
|
171
|
-
* Column definitions that were defined outside of the direct content children of the table.
|
|
172
|
-
* These will be defined when, e.g., creating a wrapper around the cdkTable that has
|
|
173
|
-
* column definitions as *its* content child.
|
|
174
|
-
*/
|
|
175
|
-
private _customColumnDefs;
|
|
176
|
-
/**
|
|
177
|
-
* Data row definitions that were defined outside of the direct content children of the table.
|
|
178
|
-
* These will be defined when, e.g., creating a wrapper around the cdkTable that has
|
|
179
|
-
* built-in data rows as *its* content child.
|
|
180
|
-
*/
|
|
181
|
-
private _customRowDefs;
|
|
182
|
-
/**
|
|
183
|
-
* Header row definitions that were defined outside of the direct content children of the table.
|
|
184
|
-
* These will be defined when, e.g., creating a wrapper around the cdkTable that has
|
|
185
|
-
* built-in header rows as *its* content child.
|
|
186
|
-
*/
|
|
187
|
-
private _customHeaderRowDefs;
|
|
188
|
-
/**
|
|
189
|
-
* Footer row definitions that were defined outside of the direct content children of the table.
|
|
190
|
-
* These will be defined when, e.g., creating a wrapper around the cdkTable that has a
|
|
191
|
-
* built-in footer row as *its* content child.
|
|
192
|
-
*/
|
|
193
|
-
private _customFooterRowDefs;
|
|
194
|
-
/** No data row that was defined outside of the direct content children of the table. */
|
|
195
|
-
private _customNoDataRow;
|
|
196
|
-
/**
|
|
197
|
-
* Whether the header row definition has been changed. Triggers an update to the header row after
|
|
198
|
-
* content is checked. Initialized as true so that the table renders the initial set of rows.
|
|
199
|
-
*/
|
|
200
|
-
private _headerRowDefChanged;
|
|
201
|
-
/**
|
|
202
|
-
* Whether the footer row definition has been changed. Triggers an update to the footer row after
|
|
203
|
-
* content is checked. Initialized as true so that the table renders the initial set of rows.
|
|
204
|
-
*/
|
|
205
|
-
private _footerRowDefChanged;
|
|
206
|
-
/**
|
|
207
|
-
* Whether the sticky column styles need to be updated. Set to `true` when the visible columns
|
|
208
|
-
* change.
|
|
209
|
-
*/
|
|
210
|
-
private _stickyColumnStylesNeedReset;
|
|
211
|
-
/**
|
|
212
|
-
* Whether the sticky styler should recalculate cell widths when applying sticky styles. If
|
|
213
|
-
* `false`, cached values will be used instead. This is only applicable to tables with
|
|
214
|
-
* {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.
|
|
215
|
-
*/
|
|
216
|
-
private _forceRecalculateCellWidths;
|
|
217
|
-
/**
|
|
218
|
-
* Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing
|
|
219
|
-
* a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with
|
|
220
|
-
* the cached `RenderRow` objects when possible, the row identity is preserved when the data
|
|
221
|
-
* and row template matches, which allows the `IterableDiffer` to check rows by reference
|
|
222
|
-
* and understand which rows are added/moved/removed.
|
|
223
|
-
*
|
|
224
|
-
* Implemented as a map of maps where the first key is the `data: T` object and the second is the
|
|
225
|
-
* `CdkRowDef<T>` object. With the two keys, the cache points to a `RenderRow<T>` object that
|
|
226
|
-
* contains an array of created pairs. The array is necessary to handle cases where the data
|
|
227
|
-
* array contains multiple duplicate data objects and each instantiated `RenderRow` must be
|
|
228
|
-
* stored.
|
|
229
|
-
*/
|
|
230
|
-
private _cachedRenderRowsMap;
|
|
231
|
-
/** Whether the table is applied to a native `<table>`. */
|
|
232
|
-
protected _isNativeHtmlTable: boolean;
|
|
233
|
-
/**
|
|
234
|
-
* Utility class that is responsible for applying the appropriate sticky positioning styles to
|
|
235
|
-
* the table's rows and cells.
|
|
236
|
-
*/
|
|
237
|
-
private _stickyStyler;
|
|
238
|
-
/**
|
|
239
|
-
* CSS class added to any row or cell that has sticky positioning applied. May be overriden by
|
|
240
|
-
* table subclasses.
|
|
241
|
-
*/
|
|
242
|
-
protected stickyCssClass: string;
|
|
243
|
-
/**
|
|
244
|
-
* Whether to manually add positon: sticky to all sticky cell elements. Not needed if
|
|
245
|
-
* the position is set in a selector associated with the value of stickyCssClass. May be
|
|
246
|
-
* overridden by table subclasses
|
|
247
|
-
*/
|
|
248
|
-
protected needsPositionStickyOnElement: boolean;
|
|
249
|
-
/** Whether the no data row is currently showing anything. */
|
|
250
|
-
private _isShowingNoDataRow;
|
|
251
|
-
/**
|
|
252
|
-
* Tracking function that will be used to check the differences in data changes. Used similarly
|
|
253
|
-
* to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data
|
|
254
|
-
* relative to the function to know if a row should be added/removed/moved.
|
|
255
|
-
* Accepts a function that takes two parameters, `index` and `item`.
|
|
256
|
-
*/
|
|
257
|
-
get trackBy(): TrackByFunction<T>;
|
|
258
|
-
set trackBy(fn: TrackByFunction<T>);
|
|
259
|
-
private _trackByFn;
|
|
260
|
-
/**
|
|
261
|
-
* The table's source of data, which can be provided in three ways (in order of complexity):
|
|
262
|
-
* - Simple data array (each object represents one table row)
|
|
263
|
-
* - Stream that emits a data array each time the array changes
|
|
264
|
-
* - `DataSource` object that implements the connect/disconnect interface.
|
|
265
|
-
*
|
|
266
|
-
* If a data array is provided, the table must be notified when the array's objects are
|
|
267
|
-
* added, removed, or moved. This can be done by calling the `renderRows()` function which will
|
|
268
|
-
* render the diff since the last table render. If the data array reference is changed, the table
|
|
269
|
-
* will automatically trigger an update to the rows.
|
|
270
|
-
*
|
|
271
|
-
* When providing an Observable stream, the table will trigger an update automatically when the
|
|
272
|
-
* stream emits a new array of data.
|
|
273
|
-
*
|
|
274
|
-
* Finally, when providing a `DataSource` object, the table will use the Observable stream
|
|
275
|
-
* provided by the connect function and trigger updates when that stream emits new data array
|
|
276
|
-
* values. During the table's ngOnDestroy or when the data source is removed from the table, the
|
|
277
|
-
* table will call the DataSource's `disconnect` function (may be useful for cleaning up any
|
|
278
|
-
* subscriptions registered during the connect process).
|
|
279
|
-
*/
|
|
280
|
-
get dataSource(): CdkTableDataSourceInput<T>;
|
|
281
|
-
set dataSource(dataSource: CdkTableDataSourceInput<T>);
|
|
282
|
-
private _dataSource;
|
|
283
|
-
/**
|
|
284
|
-
* Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'
|
|
285
|
-
* predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each
|
|
286
|
-
* dataobject will render the first row that evaluates its when predicate to true, in the order
|
|
287
|
-
* defined in the table, or otherwise the default row which does not have a when predicate.
|
|
288
|
-
*/
|
|
289
|
-
get multiTemplateDataRows(): boolean;
|
|
290
|
-
set multiTemplateDataRows(v: BooleanInput);
|
|
291
|
-
_multiTemplateDataRows: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
|
|
294
|
-
* and optimize rendering sticky styles for native tables. No-op for flex tables.
|
|
295
|
-
*/
|
|
296
|
-
get fixedLayout(): boolean;
|
|
297
|
-
set fixedLayout(v: BooleanInput);
|
|
298
|
-
private _fixedLayout;
|
|
299
|
-
/**
|
|
300
|
-
* Emits when the table completes rendering a set of data rows based on the latest data from the
|
|
301
|
-
* data source, even if the set of rows is empty.
|
|
302
|
-
*/
|
|
303
|
-
readonly contentChanged: EventEmitter<void>;
|
|
304
|
-
/**
|
|
305
|
-
* Stream containing the latest information on what rows are being displayed on screen.
|
|
306
|
-
* Can be used by the data source to as a heuristic of what data should be provided.
|
|
307
|
-
*
|
|
308
|
-
* @docs-private
|
|
309
|
-
*/
|
|
310
|
-
readonly viewChange: BehaviorSubject<{
|
|
311
|
-
start: number;
|
|
312
|
-
end: number;
|
|
313
|
-
}>;
|
|
314
|
-
_rowOutlet: DataRowOutlet;
|
|
315
|
-
_headerRowOutlet: HeaderRowOutlet;
|
|
316
|
-
_footerRowOutlet: FooterRowOutlet;
|
|
317
|
-
_noDataRowOutlet: NoDataRowOutlet;
|
|
318
|
-
/**
|
|
319
|
-
* The column definitions provided by the user that contain what the header, data, and footer
|
|
320
|
-
* cells should render for each column.
|
|
321
|
-
*/
|
|
322
|
-
_contentColumnDefs: QueryList<CdkColumnDef>;
|
|
323
|
-
/** Set of data row definitions that were provided to the table as content children. */
|
|
324
|
-
_contentRowDefs: QueryList<CdkRowDef<T>>;
|
|
325
|
-
/** Set of header row definitions that were provided to the table as content children. */
|
|
326
|
-
_contentHeaderRowDefs: QueryList<CdkHeaderRowDef>;
|
|
327
|
-
/** Set of footer row definitions that were provided to the table as content children. */
|
|
328
|
-
_contentFooterRowDefs: QueryList<CdkFooterRowDef>;
|
|
329
|
-
/** Row definition that will only be rendered if there's no data in the table. */
|
|
330
|
-
_noDataRow: CdkNoDataRow;
|
|
331
|
-
constructor(_differs: IterableDiffers, _changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef, role: string, _dir: Directionality, _document: any, _platform: Platform, _viewRepeater: _ViewRepeater<T, RenderRow<T>, RowContext<T>>, _coalescedStyleScheduler: _CoalescedStyleScheduler, _viewportRuler: ViewportRuler,
|
|
332
|
-
/**
|
|
333
|
-
* @deprecated `_stickyPositioningListener` parameter to become required.
|
|
334
|
-
* @breaking-change 13.0.0
|
|
335
|
-
*/
|
|
336
|
-
_stickyPositioningListener: StickyPositioningListener,
|
|
337
|
-
/**
|
|
338
|
-
* @deprecated `_ngZone` parameter to become required.
|
|
339
|
-
* @breaking-change 14.0.0
|
|
340
|
-
*/
|
|
341
|
-
_ngZone?: NgZone | undefined);
|
|
342
|
-
ngOnInit(): void;
|
|
343
|
-
ngAfterContentChecked(): void;
|
|
344
|
-
ngOnDestroy(): void;
|
|
345
|
-
/**
|
|
346
|
-
* Renders rows based on the table's latest set of data, which was either provided directly as an
|
|
347
|
-
* input or retrieved through an Observable stream (directly or from a DataSource).
|
|
348
|
-
* Checks for differences in the data since the last diff to perform only the necessary
|
|
349
|
-
* changes (add/remove/move rows).
|
|
350
|
-
*
|
|
351
|
-
* If the table's data source is a DataSource or Observable, this will be invoked automatically
|
|
352
|
-
* each time the provided Observable stream emits a new data array. Otherwise if your data is
|
|
353
|
-
* an array, this function will need to be called to render any changes.
|
|
354
|
-
*/
|
|
355
|
-
renderRows(): void;
|
|
356
|
-
/** Adds a column definition that was not included as part of the content children. */
|
|
357
|
-
addColumnDef(columnDef: CdkColumnDef): void;
|
|
358
|
-
/** Removes a column definition that was not included as part of the content children. */
|
|
359
|
-
removeColumnDef(columnDef: CdkColumnDef): void;
|
|
360
|
-
/** Adds a row definition that was not included as part of the content children. */
|
|
361
|
-
addRowDef(rowDef: CdkRowDef<T>): void;
|
|
362
|
-
/** Removes a row definition that was not included as part of the content children. */
|
|
363
|
-
removeRowDef(rowDef: CdkRowDef<T>): void;
|
|
364
|
-
/** Adds a header row definition that was not included as part of the content children. */
|
|
365
|
-
addHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
|
|
366
|
-
/** Removes a header row definition that was not included as part of the content children. */
|
|
367
|
-
removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
|
|
368
|
-
/** Adds a footer row definition that was not included as part of the content children. */
|
|
369
|
-
addFooterRowDef(footerRowDef: CdkFooterRowDef): void;
|
|
370
|
-
/** Removes a footer row definition that was not included as part of the content children. */
|
|
371
|
-
removeFooterRowDef(footerRowDef: CdkFooterRowDef): void;
|
|
372
|
-
/** Sets a no data row definition that was not included as a part of the content children. */
|
|
373
|
-
setNoDataRow(noDataRow: CdkNoDataRow | null): void;
|
|
374
|
-
/**
|
|
375
|
-
* Updates the header sticky styles. First resets all applied styles with respect to the cells
|
|
376
|
-
* sticking to the top. Then, evaluating which cells need to be stuck to the top. This is
|
|
377
|
-
* automatically called when the header row changes its displayed set of columns, or if its
|
|
378
|
-
* sticky input changes. May be called manually for cases where the cell content changes outside
|
|
379
|
-
* of these events.
|
|
380
|
-
*/
|
|
381
|
-
updateStickyHeaderRowStyles(): void;
|
|
382
|
-
/**
|
|
383
|
-
* Updates the footer sticky styles. First resets all applied styles with respect to the cells
|
|
384
|
-
* sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is
|
|
385
|
-
* automatically called when the footer row changes its displayed set of columns, or if its
|
|
386
|
-
* sticky input changes. May be called manually for cases where the cell content changes outside
|
|
387
|
-
* of these events.
|
|
388
|
-
*/
|
|
389
|
-
updateStickyFooterRowStyles(): void;
|
|
390
|
-
/**
|
|
391
|
-
* Updates the column sticky styles. First resets all applied styles with respect to the cells
|
|
392
|
-
* sticking to the left and right. Then sticky styles are added for the left and right according
|
|
393
|
-
* to the column definitions for each cell in each row. This is automatically called when
|
|
394
|
-
* the data source provides a new set of data or when a column definition changes its sticky
|
|
395
|
-
* input. May be called manually for cases where the cell content changes outside of these events.
|
|
396
|
-
*/
|
|
397
|
-
updateStickyColumnStyles(): void;
|
|
398
|
-
/**
|
|
399
|
-
* Get the list of RenderRow objects to render according to the current list of data and defined
|
|
400
|
-
* row definitions. If the previous list already contained a particular pair, it should be reused
|
|
401
|
-
* so that the differ equates their references.
|
|
402
|
-
*/
|
|
403
|
-
private _getAllRenderRows;
|
|
404
|
-
/**
|
|
405
|
-
* Gets a list of `RenderRow<T>` for the provided data object and any `CdkRowDef` objects that
|
|
406
|
-
* should be rendered for this data. Reuses the cached RenderRow objects if they match the same
|
|
407
|
-
* `(T, CdkRowDef)` pair.
|
|
408
|
-
*/
|
|
409
|
-
private _getRenderRowsForData;
|
|
410
|
-
/** Update the map containing the content's column definitions. */
|
|
411
|
-
private _cacheColumnDefs;
|
|
412
|
-
/** Update the list of all available row definitions that can be used. */
|
|
413
|
-
private _cacheRowDefs;
|
|
414
|
-
/**
|
|
415
|
-
* Check if the header, data, or footer rows have changed what columns they want to display or
|
|
416
|
-
* whether the sticky states have changed for the header or footer. If there is a diff, then
|
|
417
|
-
* re-render that section.
|
|
418
|
-
*/
|
|
419
|
-
private _renderUpdatedColumns;
|
|
420
|
-
/**
|
|
421
|
-
* Switch to the provided data source by resetting the data and unsubscribing from the current
|
|
422
|
-
* render change subscription if one exists. If the data source is null, interpret this by
|
|
423
|
-
* clearing the row outlet. Otherwise start listening for new data.
|
|
424
|
-
*/
|
|
425
|
-
private _switchDataSource;
|
|
426
|
-
/** Set up a subscription for the data provided by the data source. */
|
|
427
|
-
private _observeRenderChanges;
|
|
428
|
-
/**
|
|
429
|
-
* Clears any existing content in the header row outlet and creates a new embedded view
|
|
430
|
-
* in the outlet using the header row definition.
|
|
431
|
-
*/
|
|
432
|
-
private _forceRenderHeaderRows;
|
|
433
|
-
/**
|
|
434
|
-
* Clears any existing content in the footer row outlet and creates a new embedded view
|
|
435
|
-
* in the outlet using the footer row definition.
|
|
436
|
-
*/
|
|
437
|
-
private _forceRenderFooterRows;
|
|
438
|
-
/** Adds the sticky column styles for the rows according to the columns' stick states. */
|
|
439
|
-
private _addStickyColumnStyles;
|
|
440
|
-
/** Gets the list of rows that have been rendered in the row outlet. */
|
|
441
|
-
_getRenderedRows(rowOutlet: RowOutlet): HTMLElement[];
|
|
442
|
-
/**
|
|
443
|
-
* Get the matching row definitions that should be used for this row data. If there is only
|
|
444
|
-
* one row definition, it is returned. Otherwise, find the row definitions that has a when
|
|
445
|
-
* predicate that returns true with the data. If none return true, return the default row
|
|
446
|
-
* definition.
|
|
447
|
-
*/
|
|
448
|
-
_getRowDefs(data: T, dataIndex: number): CdkRowDef<T>[];
|
|
449
|
-
private _getEmbeddedViewArgs;
|
|
450
|
-
/**
|
|
451
|
-
* Creates a new row template in the outlet and fills it with the set of cell templates.
|
|
452
|
-
* Optionally takes a context to provide to the row and cells, as well as an optional index
|
|
453
|
-
* of where to place the new row template in the outlet.
|
|
454
|
-
*/
|
|
455
|
-
private _renderRow;
|
|
456
|
-
private _renderCellTemplateForItem;
|
|
457
|
-
/**
|
|
458
|
-
* Updates the index-related context for each row to reflect any changes in the index of the rows,
|
|
459
|
-
* e.g. first/last/even/odd.
|
|
460
|
-
*/
|
|
461
|
-
private _updateRowIndexContext;
|
|
462
|
-
/** Gets the column definitions for the provided row def. */
|
|
463
|
-
private _getCellTemplates;
|
|
464
|
-
/** Adds native table sections (e.g. tbody) and moves the row outlets into them. */
|
|
465
|
-
private _applyNativeTableSections;
|
|
466
|
-
/**
|
|
467
|
-
* Forces a re-render of the data rows. Should be called in cases where there has been an input
|
|
468
|
-
* change that affects the evaluation of which rows should be rendered, e.g. toggling
|
|
469
|
-
* `multiTemplateDataRows` or adding/removing row definitions.
|
|
470
|
-
*/
|
|
471
|
-
private _forceRenderDataRows;
|
|
472
|
-
/**
|
|
473
|
-
* Checks if there has been a change in sticky states since last check and applies the correct
|
|
474
|
-
* sticky styles. Since checking resets the "dirty" state, this should only be performed once
|
|
475
|
-
* during a change detection and after the inputs are settled (after content check).
|
|
476
|
-
*/
|
|
477
|
-
private _checkStickyStates;
|
|
478
|
-
/**
|
|
479
|
-
* Creates the sticky styler that will be used for sticky rows and columns. Listens
|
|
480
|
-
* for directionality changes and provides the latest direction to the styler. Re-applies column
|
|
481
|
-
* stickiness when directionality changes.
|
|
482
|
-
*/
|
|
483
|
-
private _setupStickyStyler;
|
|
484
|
-
/** Filters definitions that belong to this table from a QueryList. */
|
|
485
|
-
private _getOwnDefs;
|
|
486
|
-
/** Creates or removes the no data row, depending on whether any data is being shown. */
|
|
487
|
-
private _updateNoDataRow;
|
|
488
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTable<any>, [null, null, null, { attribute: "role"; }, { optional: true; }, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
489
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkTable<any>, "cdk-table, table[cdk-table]", ["cdkTable"], { "trackBy": "trackBy"; "dataSource": "dataSource"; "multiTemplateDataRows": "multiTemplateDataRows"; "fixedLayout": "fixedLayout"; }, { "contentChanged": "contentChanged"; }, ["_noDataRow", "_contentColumnDefs", "_contentRowDefs", "_contentHeaderRowDefs", "_contentFooterRowDefs"], ["caption", "colgroup, col"], false>;
|
|
490
|
-
}
|
package/table/text-column.d.ts
DELETED
|
@@ -1,73 +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 { OnDestroy, OnInit } from '@angular/core';
|
|
9
|
-
import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef } from './cell';
|
|
10
|
-
import { CdkTable } from './table';
|
|
11
|
-
import { TextColumnOptions } from './tokens';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
/**
|
|
14
|
-
* Column that simply shows text content for the header and row cells. Assumes that the table
|
|
15
|
-
* is using the native table implementation (`<table>`).
|
|
16
|
-
*
|
|
17
|
-
* By default, the name of this column will be the header text and data property accessor.
|
|
18
|
-
* The header text can be overridden with the `headerText` input. Cell values can be overridden with
|
|
19
|
-
* the `dataAccessor` input. Change the text justification to the start or end using the `justify`
|
|
20
|
-
* input.
|
|
21
|
-
*/
|
|
22
|
-
export declare class CdkTextColumn<T> implements OnDestroy, OnInit {
|
|
23
|
-
private _table;
|
|
24
|
-
private _options;
|
|
25
|
-
/** Column name that should be used to reference this column. */
|
|
26
|
-
get name(): string;
|
|
27
|
-
set name(name: string);
|
|
28
|
-
_name: string;
|
|
29
|
-
/**
|
|
30
|
-
* Text label that should be used for the column header. If this property is not
|
|
31
|
-
* set, the header text will default to the column name with its first letter capitalized.
|
|
32
|
-
*/
|
|
33
|
-
headerText: string;
|
|
34
|
-
/**
|
|
35
|
-
* Accessor function to retrieve the data rendered for each cell. If this
|
|
36
|
-
* property is not set, the data cells will render the value found in the data's property matching
|
|
37
|
-
* the column's name. For example, if the column is named `id`, then the rendered value will be
|
|
38
|
-
* value defined by the data's `id` property.
|
|
39
|
-
*/
|
|
40
|
-
dataAccessor: (data: T, name: string) => string;
|
|
41
|
-
/** Alignment of the cell values. */
|
|
42
|
-
justify: 'start' | 'end' | 'center';
|
|
43
|
-
/** @docs-private */
|
|
44
|
-
columnDef: CdkColumnDef;
|
|
45
|
-
/**
|
|
46
|
-
* The column cell is provided to the column during `ngOnInit` with a static query.
|
|
47
|
-
* Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
|
|
48
|
-
* column definition was provided in the same view as the table, which is not the case with this
|
|
49
|
-
* component.
|
|
50
|
-
* @docs-private
|
|
51
|
-
*/
|
|
52
|
-
cell: CdkCellDef;
|
|
53
|
-
/**
|
|
54
|
-
* The column headerCell is provided to the column during `ngOnInit` with a static query.
|
|
55
|
-
* Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
|
|
56
|
-
* column definition was provided in the same view as the table, which is not the case with this
|
|
57
|
-
* component.
|
|
58
|
-
* @docs-private
|
|
59
|
-
*/
|
|
60
|
-
headerCell: CdkHeaderCellDef;
|
|
61
|
-
constructor(_table: CdkTable<T>, _options: TextColumnOptions<T>);
|
|
62
|
-
ngOnInit(): void;
|
|
63
|
-
ngOnDestroy(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Creates a default header text. Use the options' header text transformation function if one
|
|
66
|
-
* has been provided. Otherwise simply capitalize the column name.
|
|
67
|
-
*/
|
|
68
|
-
_createDefaultHeaderText(): string;
|
|
69
|
-
/** Synchronizes the column definition name with the text column name. */
|
|
70
|
-
private _syncColumnDefName;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTextColumn<any>, [{ optional: true; }, { optional: true; }]>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkTextColumn<any>, "cdk-text-column", never, { "name": "name"; "headerText": "headerText"; "dataAccessor": "dataAccessor"; "justify": "justify"; }, {}, never, never, false>;
|
|
73
|
-
}
|
package/table/tokens.d.ts
DELETED
|
@@ -1,25 +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
|
-
/**
|
|
10
|
-
* Used to provide a table to some of the sub-components without causing a circular dependency.
|
|
11
|
-
* @docs-private
|
|
12
|
-
*/
|
|
13
|
-
export declare const CDK_TABLE: InjectionToken<any>;
|
|
14
|
-
/** Configurable options for `CdkTextColumn`. */
|
|
15
|
-
export interface TextColumnOptions<T> {
|
|
16
|
-
/**
|
|
17
|
-
* Default function that provides the header text based on the column name if a header
|
|
18
|
-
* text is not provided.
|
|
19
|
-
*/
|
|
20
|
-
defaultHeaderTextTransform?: (name: string) => string;
|
|
21
|
-
/** Default data accessor to use if one is not provided. */
|
|
22
|
-
defaultDataAccessor?: (data: T, name: string) => string;
|
|
23
|
-
}
|
|
24
|
-
/** Injection token that can be used to specify the text column options. */
|
|
25
|
-
export declare const TEXT_COLUMN_OPTIONS: InjectionToken<TextColumnOptions<any>>;
|