@angular/cdk 13.0.0-rc.0 → 13.0.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 +1 -1
- package/a11y/a11y_public_index.d.ts +4 -0
- package/a11y/index.d.ts +5 -1
- package/a11y/package.json +2 -2
- package/accordion/accordion_public_index.d.ts +4 -0
- package/accordion/index.d.ts +5 -1
- package/accordion/package.json +2 -2
- package/bidi/bidi_public_index.d.ts +4 -0
- package/bidi/index.d.ts +5 -1
- package/bidi/package.json +2 -2
- package/clipboard/clipboard_public_index.d.ts +4 -0
- package/clipboard/index.d.ts +5 -1
- package/clipboard/package.json +2 -2
- package/collections/collections_public_index.d.ts +4 -0
- package/collections/index.d.ts +5 -1
- package/collections/package.json +2 -2
- package/drag-drop/drag-drop_public_index.d.ts +4 -0
- package/drag-drop/index.d.ts +5 -1
- package/drag-drop/package.json +2 -2
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/a11y_public_index.mjs +5 -0
- package/esm2020/a11y/aria-describer/aria-describer.mjs +6 -7
- package/esm2020/a11y/aria-describer/aria-reference.mjs +1 -1
- package/esm2020/a11y/fake-event-detection.mjs +6 -5
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +26 -22
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +5 -5
- package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +4 -2
- package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +1 -1
- package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +2 -2
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +5 -5
- package/esm2020/a11y/focus-trap/focus-trap.mjs +36 -26
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +12 -9
- package/esm2020/a11y/index.mjs +6 -2
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +18 -16
- package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +1 -1
- package/esm2020/a11y/key-manager/list-key-manager.mjs +10 -6
- package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +1 -1
- package/esm2020/a11y/live-announcer/live-announcer.mjs +12 -12
- package/esm2020/accordion/accordion-item.mjs +21 -14
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +10 -6
- package/esm2020/accordion/accordion_public_index.mjs +5 -0
- package/esm2020/accordion/index.mjs +6 -2
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/bidi_public_index.mjs +5 -0
- package/esm2020/bidi/dir-document-token.mjs +1 -1
- package/esm2020/bidi/dir.mjs +12 -8
- package/esm2020/bidi/directionality.mjs +5 -5
- package/esm2020/bidi/index.mjs +6 -2
- package/esm2020/bidi/public-api.mjs +1 -1
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
- package/esm2020/clipboard/copy-to-clipboard.mjs +5 -5
- package/esm2020/clipboard/index.mjs +6 -2
- package/esm2020/clipboard/pending-copy.mjs +4 -3
- package/esm2020/collections/array-data-source.mjs +1 -1
- package/esm2020/collections/collection-viewer.mjs +1 -1
- package/esm2020/collections/collections_public_index.mjs +5 -0
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +2 -3
- package/esm2020/collections/index.mjs +6 -2
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +7 -4
- package/esm2020/collections/selection-model.mjs +2 -2
- package/esm2020/collections/tree-adapter.mjs +1 -1
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/collections/view-repeater.mjs +2 -2
- package/esm2020/drag-drop/client-rect.mjs +6 -4
- package/esm2020/drag-drop/clone-node.mjs +1 -1
- package/esm2020/drag-drop/directives/assertions.mjs +2 -3
- package/esm2020/drag-drop/directives/config.mjs +1 -1
- package/esm2020/drag-drop/directives/drag-handle.mjs +8 -6
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +10 -6
- package/esm2020/drag-drop/directives/drag.mjs +49 -40
- package/esm2020/drag-drop/directives/drop-list-group.mjs +7 -5
- package/esm2020/drag-drop/directives/drop-list.mjs +15 -14
- package/esm2020/drag-drop/drag-drop-module.mjs +6 -10
- package/esm2020/drag-drop/drag-drop-registry.mjs +9 -9
- package/esm2020/drag-drop/drag-drop.mjs +5 -5
- package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
- package/esm2020/drag-drop/drag-events.mjs +1 -1
- package/esm2020/drag-drop/drag-ref.mjs +56 -41
- package/esm2020/drag-drop/drag-styling.mjs +6 -6
- package/esm2020/drag-drop/drag-utils.mjs +1 -1
- package/esm2020/drag-drop/drop-list-ref.mjs +55 -37
- package/esm2020/drag-drop/index.mjs +6 -2
- package/esm2020/drag-drop/parent-position-tracker.mjs +2 -2
- package/esm2020/drag-drop/transition-duration.mjs +3 -3
- package/esm2020/keycodes/index.mjs +6 -2
- package/esm2020/keycodes/keycodes.mjs +1 -1
- package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
- package/esm2020/layout/breakpoints-observer.mjs +6 -5
- package/esm2020/layout/breakpoints.mjs +1 -1
- package/esm2020/layout/index.mjs +6 -2
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/layout_public_index.mjs +5 -0
- package/esm2020/layout/media-matcher.mjs +11 -10
- package/esm2020/observers/index.mjs +6 -2
- package/esm2020/observers/observe-content.mjs +24 -21
- package/esm2020/observers/observers_public_index.mjs +5 -0
- 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 +25 -6
- package/esm2020/overlay/fullscreen-overlay-container.mjs +6 -6
- package/esm2020/overlay/index.mjs +6 -2
- package/esm2020/overlay/overlay-config.mjs +1 -1
- package/esm2020/overlay/overlay-container.mjs +5 -6
- package/esm2020/overlay/overlay-directives.mjs +55 -30
- package/esm2020/overlay/overlay-module.mjs +6 -12
- package/esm2020/overlay/overlay-ref.mjs +2 -4
- package/esm2020/overlay/overlay.mjs +4 -4
- package/esm2020/overlay/overlay_public_index.mjs +5 -0
- package/esm2020/overlay/position/connected-position.mjs +1 -1
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +26 -27
- package/esm2020/overlay/position/global-position-strategy.mjs +9 -3
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/position/scroll-clip.mjs +1 -1
- package/esm2020/overlay/scroll/block-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/index.mjs +2 -2
- package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/features/input-types.mjs +1 -1
- package/esm2020/platform/features/passive-listeners.mjs +2 -2
- package/esm2020/platform/features/scrolling.mjs +1 -1
- package/esm2020/platform/features/shadow-dom.mjs +4 -3
- package/esm2020/platform/features/test-environment.mjs +3 -3
- package/esm2020/platform/index.mjs +6 -2
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +18 -12
- package/esm2020/platform/platform_public_index.mjs +5 -0
- package/esm2020/portal/dom-portal-outlet.mjs +3 -3
- package/esm2020/portal/index.mjs +6 -2
- package/esm2020/portal/portal-directives.mjs +40 -33
- package/esm2020/portal/portal-errors.mjs +1 -1
- package/esm2020/portal/portal-injector.mjs +1 -1
- package/esm2020/portal/portal.mjs +2 -2
- package/esm2020/portal/portal_public_index.mjs +5 -0
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +36 -16
- package/esm2020/scrolling/index.mjs +6 -2
- package/esm2020/scrolling/scroll-dispatcher.mjs +9 -10
- package/esm2020/scrolling/scrollable.mjs +8 -7
- package/esm2020/scrolling/scrolling-module.mjs +12 -27
- package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
- package/esm2020/scrolling/viewport-ruler.mjs +18 -12
- package/esm2020/scrolling/virtual-for-of.mjs +14 -18
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +1 -1
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +17 -13
- package/esm2020/stepper/index.mjs +6 -2
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +9 -9
- package/esm2020/stepper/stepper-module.mjs +8 -20
- package/esm2020/stepper/stepper.mjs +30 -19
- package/esm2020/stepper/stepper_public_index.mjs +5 -0
- package/esm2020/table/can-stick.mjs +4 -2
- package/esm2020/table/cell.mjs +33 -31
- package/esm2020/table/coalesced-style-scheduler.mjs +10 -8
- package/esm2020/table/index.mjs +6 -2
- package/esm2020/table/row.mjs +30 -30
- package/esm2020/table/sticky-position-listener.mjs +1 -1
- package/esm2020/table/sticky-styler.mjs +26 -16
- package/esm2020/table/table-errors.mjs +1 -1
- package/esm2020/table/table-module.mjs +8 -8
- package/esm2020/table/table.mjs +42 -37
- package/esm2020/table/table_public_index.mjs +5 -0
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/table/tokens.mjs +1 -1
- package/esm2020/testing/change-detection.mjs +2 -2
- package/esm2020/testing/component-harness.mjs +4 -3
- package/esm2020/testing/element-dimensions.mjs +1 -1
- package/esm2020/testing/harness-environment.mjs +15 -11
- package/esm2020/testing/protractor/protractor-element.mjs +11 -10
- package/esm2020/testing/protractor/protractor-harness-environment.mjs +2 -2
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +12 -11
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +3 -4
- package/esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs +2 -2
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/element-focus.mjs +2 -2
- package/esm2020/testing/testbed/fake-events/event-objects.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +17 -8
- package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +2 -2
- package/esm2020/testing/testbed/testbed-harness-environment.mjs +3 -3
- package/esm2020/testing/testbed/unit-test-element.mjs +4 -5
- package/esm2020/text-field/autofill.mjs +8 -8
- package/esm2020/text-field/autosize.mjs +22 -16
- package/esm2020/text-field/index.mjs +6 -2
- package/esm2020/text-field/text-field-module.mjs +5 -5
- package/esm2020/text-field/text-field_public_index.mjs +5 -0
- package/esm2020/tree/control/base-tree-control.mjs +4 -4
- package/esm2020/tree/control/flat-tree-control.mjs +1 -1
- package/esm2020/tree/control/nested-tree-control.mjs +2 -3
- package/esm2020/tree/index.mjs +6 -2
- package/esm2020/tree/nested-node.mjs +12 -10
- package/esm2020/tree/node.mjs +5 -7
- package/esm2020/tree/outlet.mjs +6 -6
- package/esm2020/tree/padding.mjs +17 -9
- package/esm2020/tree/toggle.mjs +10 -6
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +31 -19
- package/esm2020/tree/tree_public_index.mjs +5 -0
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +142 -109
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +41 -22
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +26 -14
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +22 -13
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/collections.mjs +19 -9
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +233 -177
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/keycodes.mjs +8 -0
- package/fesm2015/keycodes.mjs.map +1 -1
- package/fesm2015/layout.mjs +27 -17
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/observers.mjs +30 -19
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +149 -101
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +35 -20
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +49 -34
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +114 -95
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +57 -50
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +152 -123
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/protractor.mjs +11 -10
- package/fesm2015/testing/protractor.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs +13 -13
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +22 -14
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs +17 -12
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +39 -25
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +88 -57
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +142 -109
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +41 -22
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +26 -14
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +22 -13
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/collections.mjs +19 -9
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +233 -177
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/keycodes.mjs +8 -0
- package/fesm2020/keycodes.mjs.map +1 -1
- package/fesm2020/layout.mjs +27 -17
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/observers.mjs +30 -19
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +149 -101
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +35 -20
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +49 -34
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +114 -95
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +57 -50
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +152 -123
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/protractor.mjs +11 -10
- package/fesm2020/testing/protractor.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs +13 -13
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +22 -14
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs +18 -13
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +39 -25
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +88 -57
- package/fesm2020/tree.mjs.map +1 -1
- package/keycodes/index.d.ts +5 -1
- package/keycodes/keycodes_public_index.d.ts +4 -0
- package/keycodes/package.json +2 -2
- package/layout/index.d.ts +5 -1
- package/layout/layout_public_index.d.ts +4 -0
- package/layout/package.json +2 -2
- package/observers/index.d.ts +5 -1
- package/observers/observers_public_index.d.ts +4 -0
- package/observers/package.json +2 -2
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +3 -0
- package/overlay/index.d.ts +5 -1
- package/overlay/overlay_public_index.d.ts +4 -0
- package/overlay/package.json +2 -2
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
- package/overlay/scroll/index.d.ts +1 -1
- package/package.json +38 -38
- package/platform/index.d.ts +5 -1
- package/platform/package.json +2 -2
- package/platform/platform_public_index.d.ts +4 -0
- package/portal/index.d.ts +5 -1
- package/portal/package.json +2 -2
- package/portal/portal_public_index.d.ts +4 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-add/package-config.js +4 -2
- package/schematics/ng-add/package-config.mjs +4 -2
- package/schematics/ng-add/schema.js +1 -1
- package/schematics/ng-add/schema.mjs +1 -1
- package/schematics/ng-generate/drag-drop/index.js +2 -2
- package/schematics/ng-generate/drag-drop/index.mjs +2 -2
- package/schematics/ng-update/data/attribute-selectors.js +7 -5
- package/schematics/ng-update/data/attribute-selectors.mjs +7 -5
- package/schematics/ng-update/data/class-names.js +13 -11
- package/schematics/ng-update/data/class-names.mjs +13 -11
- package/schematics/ng-update/data/constructor-checks.js +28 -20
- package/schematics/ng-update/data/constructor-checks.mjs +28 -20
- package/schematics/ng-update/data/css-selectors.js +2 -2
- package/schematics/ng-update/data/css-selectors.mjs +2 -2
- package/schematics/ng-update/data/element-selectors.js +2 -2
- package/schematics/ng-update/data/element-selectors.mjs +2 -2
- package/schematics/ng-update/data/input-names.js +40 -16
- package/schematics/ng-update/data/input-names.mjs +40 -16
- package/schematics/ng-update/data/method-call-checks.js +32 -18
- package/schematics/ng-update/data/method-call-checks.mjs +32 -18
- package/schematics/ng-update/data/output-names.js +8 -6
- package/schematics/ng-update/data/output-names.mjs +8 -6
- package/schematics/ng-update/data/property-names.js +40 -32
- package/schematics/ng-update/data/property-names.mjs +40 -32
- package/schematics/ng-update/devkit-migration-rule.js +4 -3
- package/schematics/ng-update/devkit-migration-rule.mjs +4 -3
- package/schematics/ng-update/devkit-migration.d.ts +3 -2
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.mjs +1 -1
- package/schematics/ng-update/html-parsing/elements.js +1 -1
- package/schematics/ng-update/html-parsing/elements.mjs +1 -1
- package/schematics/ng-update/index.js +2 -4
- package/schematics/ng-update/index.mjs +2 -4
- package/schematics/ng-update/migrations/attribute-selectors.js +7 -3
- package/schematics/ng-update/migrations/attribute-selectors.mjs +7 -3
- package/schematics/ng-update/migrations/class-inheritance.js +1 -1
- package/schematics/ng-update/migrations/class-inheritance.mjs +1 -1
- package/schematics/ng-update/migrations/class-names.js +3 -2
- package/schematics/ng-update/migrations/class-names.mjs +3 -2
- package/schematics/ng-update/migrations/constructor-signature.js +15 -12
- package/schematics/ng-update/migrations/constructor-signature.mjs +15 -12
- package/schematics/ng-update/migrations/css-selectors.js +3 -2
- package/schematics/ng-update/migrations/css-selectors.mjs +3 -2
- package/schematics/ng-update/migrations/element-selectors.js +3 -2
- package/schematics/ng-update/migrations/element-selectors.mjs +3 -2
- package/schematics/ng-update/migrations/input-names.js +4 -5
- package/schematics/ng-update/migrations/input-names.mjs +4 -5
- package/schematics/ng-update/migrations/method-call-arguments.js +3 -2
- package/schematics/ng-update/migrations/method-call-arguments.mjs +3 -2
- package/schematics/ng-update/migrations/misc-template.js +2 -2
- package/schematics/ng-update/migrations/misc-template.mjs +2 -2
- package/schematics/ng-update/migrations/output-names.js +4 -5
- package/schematics/ng-update/migrations/output-names.mjs +4 -5
- package/schematics/ng-update/migrations/property-names.js +3 -2
- package/schematics/ng-update/migrations/property-names.mjs +3 -2
- package/schematics/ng-update/migrations/symbol-removal.js +1 -1
- package/schematics/ng-update/migrations/symbol-removal.mjs +1 -1
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +4 -3
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +4 -3
- package/schematics/ng-update/typescript/base-types.js +1 -1
- package/schematics/ng-update/typescript/base-types.mjs +1 -1
- package/schematics/ng-update/typescript/literal.d.ts +1 -1
- package/schematics/ng-update/typescript/literal.js +1 -1
- package/schematics/ng-update/typescript/literal.mjs +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js +3 -3
- package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
- package/schematics/ng-update/upgrade-data.js +1 -1
- package/schematics/ng-update/upgrade-data.mjs +1 -1
- package/schematics/update-tool/component-resource-collector.js +2 -2
- package/schematics/update-tool/component-resource-collector.mjs +2 -2
- package/schematics/update-tool/file-system.js +1 -1
- package/schematics/update-tool/file-system.mjs +1 -1
- package/schematics/update-tool/index.d.ts +4 -1
- package/schematics/update-tool/index.js +7 -3
- package/schematics/update-tool/index.mjs +7 -3
- package/schematics/update-tool/migration.d.ts +1 -1
- package/schematics/update-tool/migration.js +1 -1
- package/schematics/update-tool/migration.mjs +1 -1
- package/schematics/update-tool/target-version.js +1 -1
- package/schematics/update-tool/target-version.mjs +1 -1
- package/schematics/update-tool/utils/decorators.js +7 -3
- package/schematics/update-tool/utils/decorators.mjs +7 -3
- package/schematics/update-tool/utils/functions.js +1 -1
- package/schematics/update-tool/utils/functions.mjs +1 -1
- package/schematics/update-tool/utils/imports.js +2 -2
- package/schematics/update-tool/utils/imports.mjs +2 -2
- package/schematics/update-tool/utils/line-mappings.js +1 -1
- package/schematics/update-tool/utils/line-mappings.mjs +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.mjs +1 -1
- package/schematics/update-tool/utils/property-name.js +1 -1
- package/schematics/update-tool/utils/property-name.mjs +1 -1
- package/schematics/update-tool/utils/virtual-host.js +2 -2
- package/schematics/update-tool/utils/virtual-host.mjs +2 -2
- package/schematics/update-tool/version-changes.js +1 -1
- package/schematics/update-tool/version-changes.mjs +1 -1
- package/schematics/utils/ast/ng-module-imports.js +5 -3
- package/schematics/utils/ast/ng-module-imports.mjs +5 -3
- package/schematics/utils/ast.js +1 -1
- package/schematics/utils/ast.mjs +1 -1
- package/schematics/utils/build-component.js +12 -18
- package/schematics/utils/build-component.mjs +12 -18
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/get-project.mjs +1 -1
- package/schematics/utils/html-manipulation.js +6 -5
- package/schematics/utils/html-manipulation.mjs +6 -5
- package/schematics/utils/parse5-element.js +9 -10
- package/schematics/utils/parse5-element.mjs +9 -10
- package/schematics/utils/project-main-file.js +1 -1
- package/schematics/utils/project-main-file.mjs +1 -1
- package/schematics/utils/project-style-file.js +3 -5
- package/schematics/utils/project-style-file.mjs +3 -5
- package/schematics/utils/project-targets.js +1 -1
- package/schematics/utils/project-targets.mjs +1 -1
- package/schematics/utils/project-tsconfig-paths.js +2 -2
- package/schematics/utils/project-tsconfig-paths.mjs +2 -2
- package/schematics/utils/schematic-options.js +7 -5
- package/schematics/utils/schematic-options.mjs +7 -5
- package/schematics/utils/vendored-ast-utils/index.js +15 -16
- package/schematics/utils/vendored-ast-utils/index.mjs +15 -16
- package/scrolling/index.d.ts +5 -1
- package/scrolling/package.json +2 -2
- package/scrolling/scrolling_public_index.d.ts +4 -0
- package/stepper/index.d.ts +5 -1
- package/stepper/package.json +2 -2
- package/stepper/stepper_public_index.d.ts +4 -0
- package/table/index.d.ts +5 -1
- package/table/package.json +2 -2
- package/table/table_public_index.d.ts +4 -0
- package/testing/testbed/proxy-zone-types.d.ts +1 -1
- package/testing/testbed/zone-types.d.ts +1 -1
- package/text-field/index.d.ts +5 -1
- package/text-field/package.json +2 -2
- package/text-field/text-field_public_index.d.ts +4 -0
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/nested-tree-control.d.ts +2 -2
- package/tree/index.d.ts +5 -1
- package/tree/package.json +2 -2
- package/tree/tree_public_index.d.ts +4 -0
package/fesm2020/scrolling.mjs
CHANGED
|
@@ -85,9 +85,13 @@ class FixedSizeVirtualScrollStrategy {
|
|
|
85
85
|
this._updateRenderedRange();
|
|
86
86
|
}
|
|
87
87
|
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
88
|
-
onContentRendered() {
|
|
88
|
+
onContentRendered() {
|
|
89
|
+
/* no-op */
|
|
90
|
+
}
|
|
89
91
|
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
90
|
-
onRenderedOffsetChanged() {
|
|
92
|
+
onRenderedOffsetChanged() {
|
|
93
|
+
/* no-op */
|
|
94
|
+
}
|
|
91
95
|
/**
|
|
92
96
|
* Scroll to the offset for the given index.
|
|
93
97
|
* @param index The index of the element to scroll to.
|
|
@@ -116,7 +120,7 @@ class FixedSizeVirtualScrollStrategy {
|
|
|
116
120
|
const dataLength = this._viewport.getDataLength();
|
|
117
121
|
let scrollOffset = this._viewport.measureScrollOffset();
|
|
118
122
|
// Prevent NaN as result when dividing by zero.
|
|
119
|
-
let firstVisibleIndex =
|
|
123
|
+
let firstVisibleIndex = this._itemSize > 0 ? scrollOffset / this._itemSize : 0;
|
|
120
124
|
// If user scrolls to the bottom of the list and data changes to a smaller list
|
|
121
125
|
if (newRange.end > dataLength) {
|
|
122
126
|
// We have to recalculate the first visible index based on new data length and viewport size.
|
|
@@ -171,38 +175,54 @@ class CdkFixedSizeVirtualScroll {
|
|
|
171
175
|
this._scrollStrategy = new FixedSizeVirtualScrollStrategy(this.itemSize, this.minBufferPx, this.maxBufferPx);
|
|
172
176
|
}
|
|
173
177
|
/** The size of the items in the list (in pixels). */
|
|
174
|
-
get itemSize() {
|
|
175
|
-
|
|
178
|
+
get itemSize() {
|
|
179
|
+
return this._itemSize;
|
|
180
|
+
}
|
|
181
|
+
set itemSize(value) {
|
|
182
|
+
this._itemSize = coerceNumberProperty(value);
|
|
183
|
+
}
|
|
176
184
|
/**
|
|
177
185
|
* The minimum amount of buffer rendered beyond the viewport (in pixels).
|
|
178
186
|
* If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
|
|
179
187
|
*/
|
|
180
|
-
get minBufferPx() {
|
|
181
|
-
|
|
188
|
+
get minBufferPx() {
|
|
189
|
+
return this._minBufferPx;
|
|
190
|
+
}
|
|
191
|
+
set minBufferPx(value) {
|
|
192
|
+
this._minBufferPx = coerceNumberProperty(value);
|
|
193
|
+
}
|
|
182
194
|
/**
|
|
183
195
|
* The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.
|
|
184
196
|
*/
|
|
185
|
-
get maxBufferPx() {
|
|
186
|
-
|
|
197
|
+
get maxBufferPx() {
|
|
198
|
+
return this._maxBufferPx;
|
|
199
|
+
}
|
|
200
|
+
set maxBufferPx(value) {
|
|
201
|
+
this._maxBufferPx = coerceNumberProperty(value);
|
|
202
|
+
}
|
|
187
203
|
ngOnChanges() {
|
|
188
204
|
this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
|
|
189
205
|
}
|
|
190
206
|
}
|
|
191
|
-
CdkFixedSizeVirtualScroll.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
192
|
-
CdkFixedSizeVirtualScroll.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
207
|
+
CdkFixedSizeVirtualScroll.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
208
|
+
CdkFixedSizeVirtualScroll.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: { itemSize: "itemSize", minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, providers: [
|
|
209
|
+
{
|
|
193
210
|
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
194
211
|
useFactory: _fixedSizeVirtualScrollStrategyFactory,
|
|
195
212
|
deps: [forwardRef(() => CdkFixedSizeVirtualScroll)],
|
|
196
|
-
}
|
|
197
|
-
|
|
213
|
+
},
|
|
214
|
+
], usesOnChanges: true, ngImport: i0 });
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{
|
|
198
216
|
type: Directive,
|
|
199
217
|
args: [{
|
|
200
218
|
selector: 'cdk-virtual-scroll-viewport[itemSize]',
|
|
201
|
-
providers: [
|
|
219
|
+
providers: [
|
|
220
|
+
{
|
|
202
221
|
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
203
222
|
useFactory: _fixedSizeVirtualScrollStrategyFactory,
|
|
204
223
|
deps: [forwardRef(() => CdkFixedSizeVirtualScroll)],
|
|
205
|
-
}
|
|
224
|
+
},
|
|
225
|
+
],
|
|
206
226
|
}]
|
|
207
227
|
}], propDecorators: { itemSize: [{
|
|
208
228
|
type: Input
|
|
@@ -249,8 +269,7 @@ class ScrollDispatcher {
|
|
|
249
269
|
*/
|
|
250
270
|
register(scrollable) {
|
|
251
271
|
if (!this.scrollContainers.has(scrollable)) {
|
|
252
|
-
this.scrollContainers.set(scrollable, scrollable.elementScrolled()
|
|
253
|
-
.subscribe(() => this._scrolled.next(scrollable)));
|
|
272
|
+
this.scrollContainers.set(scrollable, scrollable.elementScrolled().subscribe(() => this._scrolled.next(scrollable)));
|
|
254
273
|
}
|
|
255
274
|
}
|
|
256
275
|
/**
|
|
@@ -284,9 +303,9 @@ class ScrollDispatcher {
|
|
|
284
303
|
}
|
|
285
304
|
// In the case of a 0ms delay, use an observable without auditTime
|
|
286
305
|
// since it does add a perceptible delay in processing overhead.
|
|
287
|
-
const subscription = auditTimeInMs > 0
|
|
288
|
-
this._scrolled.pipe(auditTime(auditTimeInMs)).subscribe(observer)
|
|
289
|
-
this._scrolled.subscribe(observer);
|
|
306
|
+
const subscription = auditTimeInMs > 0
|
|
307
|
+
? this._scrolled.pipe(auditTime(auditTimeInMs)).subscribe(observer)
|
|
308
|
+
: this._scrolled.subscribe(observer);
|
|
290
309
|
this._scrolledCount++;
|
|
291
310
|
return () => {
|
|
292
311
|
subscription.unsubscribe();
|
|
@@ -338,7 +357,7 @@ class ScrollDispatcher {
|
|
|
338
357
|
if (element == scrollableElement) {
|
|
339
358
|
return true;
|
|
340
359
|
}
|
|
341
|
-
} while (element = element.parentElement);
|
|
360
|
+
} while ((element = element.parentElement));
|
|
342
361
|
return false;
|
|
343
362
|
}
|
|
344
363
|
/** Sets up the global scroll listeners. */
|
|
@@ -356,9 +375,9 @@ class ScrollDispatcher {
|
|
|
356
375
|
}
|
|
357
376
|
}
|
|
358
377
|
}
|
|
359
|
-
ScrollDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
360
|
-
ScrollDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
378
|
+
ScrollDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollDispatcher, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
379
|
+
ScrollDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' });
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollDispatcher, decorators: [{
|
|
362
381
|
type: Injectable,
|
|
363
382
|
args: [{ providedIn: 'root' }]
|
|
364
383
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.Platform }, { type: undefined, decorators: [{
|
|
@@ -387,7 +406,8 @@ class CdkScrollable {
|
|
|
387
406
|
this.ngZone = ngZone;
|
|
388
407
|
this.dir = dir;
|
|
389
408
|
this._destroyed = new Subject();
|
|
390
|
-
this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(this.elementRef.nativeElement, 'scroll')
|
|
409
|
+
this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(this.elementRef.nativeElement, 'scroll')
|
|
410
|
+
.pipe(takeUntil(this._destroyed))
|
|
391
411
|
.subscribe(observer)));
|
|
392
412
|
}
|
|
393
413
|
ngOnInit() {
|
|
@@ -523,12 +543,12 @@ class CdkScrollable {
|
|
|
523
543
|
}
|
|
524
544
|
}
|
|
525
545
|
}
|
|
526
|
-
CdkScrollable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
527
|
-
CdkScrollable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
546
|
+
CdkScrollable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkScrollable, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
547
|
+
CdkScrollable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]", ngImport: i0 });
|
|
548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkScrollable, decorators: [{
|
|
529
549
|
type: Directive,
|
|
530
550
|
args: [{
|
|
531
|
-
selector: '[cdk-scrollable], [cdkScrollable]'
|
|
551
|
+
selector: '[cdk-scrollable], [cdkScrollable]',
|
|
532
552
|
}]
|
|
533
553
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{
|
|
534
554
|
type: Optional
|
|
@@ -567,7 +587,7 @@ class ViewportRuler {
|
|
|
567
587
|
}
|
|
568
588
|
// Clear the cached position so that the viewport is re-measured next time it is required.
|
|
569
589
|
// We don't need to keep track of the subscription, because it is completed on destroy.
|
|
570
|
-
this.change().subscribe(() => this._viewportSize = null);
|
|
590
|
+
this.change().subscribe(() => (this._viewportSize = null));
|
|
571
591
|
});
|
|
572
592
|
}
|
|
573
593
|
ngOnDestroy() {
|
|
@@ -629,10 +649,16 @@ class ViewportRuler {
|
|
|
629
649
|
const window = this._getWindow();
|
|
630
650
|
const documentElement = document.documentElement;
|
|
631
651
|
const documentRect = documentElement.getBoundingClientRect();
|
|
632
|
-
const top = -documentRect.top ||
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
documentElement.
|
|
652
|
+
const top = -documentRect.top ||
|
|
653
|
+
document.body.scrollTop ||
|
|
654
|
+
window.scrollY ||
|
|
655
|
+
documentElement.scrollTop ||
|
|
656
|
+
0;
|
|
657
|
+
const left = -documentRect.left ||
|
|
658
|
+
document.body.scrollLeft ||
|
|
659
|
+
window.scrollX ||
|
|
660
|
+
documentElement.scrollLeft ||
|
|
661
|
+
0;
|
|
636
662
|
return { top, left };
|
|
637
663
|
}
|
|
638
664
|
/**
|
|
@@ -650,14 +676,14 @@ class ViewportRuler {
|
|
|
650
676
|
/** Updates the cached viewport size. */
|
|
651
677
|
_updateViewportSize() {
|
|
652
678
|
const window = this._getWindow();
|
|
653
|
-
this._viewportSize = this._platform.isBrowser
|
|
654
|
-
{ width: window.innerWidth, height: window.innerHeight }
|
|
655
|
-
{ width: 0, height: 0 };
|
|
679
|
+
this._viewportSize = this._platform.isBrowser
|
|
680
|
+
? { width: window.innerWidth, height: window.innerHeight }
|
|
681
|
+
: { width: 0, height: 0 };
|
|
656
682
|
}
|
|
657
683
|
}
|
|
658
|
-
ViewportRuler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
659
|
-
ViewportRuler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
684
|
+
ViewportRuler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ViewportRuler, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
685
|
+
ViewportRuler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ViewportRuler, providedIn: 'root' });
|
|
686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ViewportRuler, decorators: [{
|
|
661
687
|
type: Injectable,
|
|
662
688
|
args: [{ providedIn: 'root' }]
|
|
663
689
|
}], ctorParameters: function () { return [{ type: i1.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -847,7 +873,7 @@ class CdkVirtualScrollViewport extends CdkScrollable {
|
|
|
847
873
|
if (this.appendOnly) {
|
|
848
874
|
range = { start: 0, end: Math.max(this._renderedRange.end, range.end) };
|
|
849
875
|
}
|
|
850
|
-
this._renderedRangeSubject.next(this._renderedRange = range);
|
|
876
|
+
this._renderedRangeSubject.next((this._renderedRange = range));
|
|
851
877
|
this._markChangeDetectionNeeded(() => this._scrollStrategy.onContentRendered());
|
|
852
878
|
}
|
|
853
879
|
}
|
|
@@ -924,9 +950,9 @@ class CdkVirtualScrollViewport extends CdkScrollable {
|
|
|
924
950
|
* in horizontal mode.
|
|
925
951
|
*/
|
|
926
952
|
measureScrollOffset(from) {
|
|
927
|
-
return from
|
|
928
|
-
super.measureScrollOffset(from)
|
|
929
|
-
super.measureScrollOffset(this.orientation === 'horizontal' ? 'start' : 'top');
|
|
953
|
+
return from
|
|
954
|
+
? super.measureScrollOffset(from)
|
|
955
|
+
: super.measureScrollOffset(this.orientation === 'horizontal' ? 'start' : 'top');
|
|
930
956
|
}
|
|
931
957
|
/** Measure the combined size of all of the rendered items. */
|
|
932
958
|
measureRenderedContentSize() {
|
|
@@ -952,8 +978,8 @@ class CdkVirtualScrollViewport extends CdkScrollable {
|
|
|
952
978
|
/** Measure the viewport size. */
|
|
953
979
|
_measureViewportSize() {
|
|
954
980
|
const viewportEl = this.elementRef.nativeElement;
|
|
955
|
-
this._viewportSize =
|
|
956
|
-
viewportEl.clientWidth : viewportEl.clientHeight;
|
|
981
|
+
this._viewportSize =
|
|
982
|
+
this.orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;
|
|
957
983
|
}
|
|
958
984
|
/** Queue up change detection to run. */
|
|
959
985
|
_markChangeDetectionNeeded(runAfter) {
|
|
@@ -995,21 +1021,25 @@ class CdkVirtualScrollViewport extends CdkScrollable {
|
|
|
995
1021
|
this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '';
|
|
996
1022
|
}
|
|
997
1023
|
}
|
|
998
|
-
CdkVirtualScrollViewport.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
999
|
-
CdkVirtualScrollViewport.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
1024
|
+
CdkVirtualScrollViewport.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkVirtualScrollViewport, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i2.Directionality, optional: true }, { token: ScrollDispatcher }, { token: ViewportRuler }], target: i0.ɵɵFactoryTarget.Component });
|
|
1025
|
+
CdkVirtualScrollViewport.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: { orientation: "orientation", appendOnly: "appendOnly" }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.cdk-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.cdk-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "cdk-virtual-scroll-viewport" }, providers: [
|
|
1026
|
+
{
|
|
1000
1027
|
provide: CdkScrollable,
|
|
1001
1028
|
useExisting: CdkVirtualScrollViewport,
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1029
|
+
},
|
|
1030
|
+
], viewQueries: [{ propertyName: "_contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!--\n Wrap the rendered content in an element that will be used to offset it based on the scroll\n position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n <ng-content></ng-content>\n</div>\n<!--\n Spacer used to force the scrolling container to the correct size for the *total* number of items\n so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\"></div>\n", styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{
|
|
1004
1032
|
type: Component,
|
|
1005
1033
|
args: [{ selector: 'cdk-virtual-scroll-viewport', host: {
|
|
1006
1034
|
'class': 'cdk-virtual-scroll-viewport',
|
|
1007
1035
|
'[class.cdk-virtual-scroll-orientation-horizontal]': 'orientation === "horizontal"',
|
|
1008
1036
|
'[class.cdk-virtual-scroll-orientation-vertical]': 'orientation !== "horizontal"',
|
|
1009
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1037
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1038
|
+
{
|
|
1010
1039
|
provide: CdkScrollable,
|
|
1011
1040
|
useExisting: CdkVirtualScrollViewport,
|
|
1012
|
-
}
|
|
1041
|
+
},
|
|
1042
|
+
], template: "<!--\n Wrap the rendered content in an element that will be used to offset it based on the scroll\n position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n <ng-content></ng-content>\n</div>\n<!--\n Spacer used to force the scrolling container to the correct size for the *total* number of items\n so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\"></div>\n", styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"] }]
|
|
1013
1043
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
1014
1044
|
type: Optional
|
|
1015
1045
|
}, {
|
|
@@ -1073,8 +1103,7 @@ class CdkVirtualForOf {
|
|
|
1073
1103
|
/** Subject that emits when a new DataSource instance is given. */
|
|
1074
1104
|
this._dataSourceChanges = new Subject();
|
|
1075
1105
|
/** Emits whenever the data in the current DataSource changes. */
|
|
1076
|
-
this.dataStream = this._dataSourceChanges
|
|
1077
|
-
.pipe(
|
|
1106
|
+
this.dataStream = this._dataSourceChanges.pipe(
|
|
1078
1107
|
// Start off with null `DataSource`.
|
|
1079
1108
|
startWith(null),
|
|
1080
1109
|
// Bundle up the previous and current data sources so we can work with both.
|
|
@@ -1124,9 +1153,9 @@ class CdkVirtualForOf {
|
|
|
1124
1153
|
}
|
|
1125
1154
|
set cdkVirtualForTrackBy(fn) {
|
|
1126
1155
|
this._needsUpdate = true;
|
|
1127
|
-
this._cdkVirtualForTrackBy = fn
|
|
1128
|
-
(index, item) => fn(index + (this._renderedRange ? this._renderedRange.start : 0), item)
|
|
1129
|
-
undefined;
|
|
1156
|
+
this._cdkVirtualForTrackBy = fn
|
|
1157
|
+
? (index, item) => fn(index + (this._renderedRange ? this._renderedRange.start : 0), item)
|
|
1158
|
+
: undefined;
|
|
1130
1159
|
}
|
|
1131
1160
|
/** The template used to stamp out new elements. */
|
|
1132
1161
|
set cdkVirtualForTemplate(value) {
|
|
@@ -1182,8 +1211,9 @@ class CdkVirtualForOf {
|
|
|
1182
1211
|
break;
|
|
1183
1212
|
}
|
|
1184
1213
|
}
|
|
1185
|
-
return firstNode && lastNode
|
|
1186
|
-
getOffset(orientation, 'end', lastNode) - getOffset(orientation, 'start', firstNode)
|
|
1214
|
+
return firstNode && lastNode
|
|
1215
|
+
? getOffset(orientation, 'end', lastNode) - getOffset(orientation, 'start', firstNode)
|
|
1216
|
+
: 0;
|
|
1187
1217
|
}
|
|
1188
1218
|
ngDoCheck() {
|
|
1189
1219
|
if (this._differ && this._needsUpdate) {
|
|
@@ -1246,7 +1276,7 @@ class CdkVirtualForOf {
|
|
|
1246
1276
|
}
|
|
1247
1277
|
/** Apply changes to the DOM. */
|
|
1248
1278
|
_applyChanges(changes) {
|
|
1249
|
-
this._viewRepeater.applyChanges(changes, this._viewContainerRef, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record, currentIndex),
|
|
1279
|
+
this._viewRepeater.applyChanges(changes, this._viewContainerRef, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record, currentIndex), record => record.item);
|
|
1250
1280
|
// Update $implicit for any items that had an identity change.
|
|
1251
1281
|
changes.forEachIdentityChange((record) => {
|
|
1252
1282
|
const view = this._viewContainerRef.get(record.currentIndex);
|
|
@@ -1286,23 +1316,19 @@ class CdkVirtualForOf {
|
|
|
1286
1316
|
first: false,
|
|
1287
1317
|
last: false,
|
|
1288
1318
|
odd: false,
|
|
1289
|
-
even: false
|
|
1319
|
+
even: false,
|
|
1290
1320
|
},
|
|
1291
1321
|
index,
|
|
1292
1322
|
};
|
|
1293
1323
|
}
|
|
1294
1324
|
}
|
|
1295
|
-
CdkVirtualForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1296
|
-
CdkVirtualForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1297
|
-
|
|
1298
|
-
], ngImport: i0 });
|
|
1299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkVirtualForOf, decorators: [{
|
|
1325
|
+
CdkVirtualForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkVirtualForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: _VIEW_REPEATER_STRATEGY }, { token: CdkVirtualScrollViewport, skipSelf: true }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1326
|
+
CdkVirtualForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: { cdkVirtualForOf: "cdkVirtualForOf", cdkVirtualForTrackBy: "cdkVirtualForTrackBy", cdkVirtualForTemplate: "cdkVirtualForTemplate", cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize" }, providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });
|
|
1327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkVirtualForOf, decorators: [{
|
|
1300
1328
|
type: Directive,
|
|
1301
1329
|
args: [{
|
|
1302
1330
|
selector: '[cdkVirtualFor][cdkVirtualForOf]',
|
|
1303
|
-
providers: [
|
|
1304
|
-
{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy },
|
|
1305
|
-
]
|
|
1331
|
+
providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],
|
|
1306
1332
|
}]
|
|
1307
1333
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: i2$1._RecycleViewRepeaterStrategy, decorators: [{
|
|
1308
1334
|
type: Inject,
|
|
@@ -1328,14 +1354,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
1328
1354
|
*/
|
|
1329
1355
|
class CdkScrollableModule {
|
|
1330
1356
|
}
|
|
1331
|
-
CdkScrollableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1332
|
-
CdkScrollableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
1333
|
-
CdkScrollableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1357
|
+
CdkScrollableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1358
|
+
CdkScrollableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkScrollableModule, declarations: [CdkScrollable], exports: [CdkScrollable] });
|
|
1359
|
+
CdkScrollableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkScrollableModule });
|
|
1360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkScrollableModule, decorators: [{
|
|
1335
1361
|
type: NgModule,
|
|
1336
1362
|
args: [{
|
|
1337
1363
|
exports: [CdkScrollable],
|
|
1338
|
-
declarations: [CdkScrollable]
|
|
1364
|
+
declarations: [CdkScrollable],
|
|
1339
1365
|
}]
|
|
1340
1366
|
}] });
|
|
1341
1367
|
/**
|
|
@@ -1343,26 +1369,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
1343
1369
|
*/
|
|
1344
1370
|
class ScrollingModule {
|
|
1345
1371
|
}
|
|
1346
|
-
ScrollingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1347
|
-
ScrollingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
1348
|
-
CdkVirtualForOf,
|
|
1349
|
-
CdkVirtualScrollViewport], imports: [BidiModule,
|
|
1350
|
-
PlatformModule, CdkScrollableModule], exports: [BidiModule, CdkScrollableModule, CdkFixedSizeVirtualScroll,
|
|
1372
|
+
ScrollingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1373
|
+
ScrollingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollingModule, declarations: [CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport], imports: [BidiModule, PlatformModule, CdkScrollableModule], exports: [BidiModule, CdkScrollableModule, CdkFixedSizeVirtualScroll,
|
|
1351
1374
|
CdkVirtualForOf,
|
|
1352
1375
|
CdkVirtualScrollViewport] });
|
|
1353
|
-
ScrollingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
1354
|
-
|
|
1355
|
-
PlatformModule,
|
|
1356
|
-
CdkScrollableModule
|
|
1357
|
-
], BidiModule, CdkScrollableModule] });
|
|
1358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: ScrollingModule, decorators: [{
|
|
1376
|
+
ScrollingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollingModule, imports: [[BidiModule, PlatformModule, CdkScrollableModule], BidiModule, CdkScrollableModule] });
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ScrollingModule, decorators: [{
|
|
1359
1378
|
type: NgModule,
|
|
1360
1379
|
args: [{
|
|
1361
|
-
imports: [
|
|
1362
|
-
BidiModule,
|
|
1363
|
-
PlatformModule,
|
|
1364
|
-
CdkScrollableModule
|
|
1365
|
-
],
|
|
1380
|
+
imports: [BidiModule, PlatformModule, CdkScrollableModule],
|
|
1366
1381
|
exports: [
|
|
1367
1382
|
BidiModule,
|
|
1368
1383
|
CdkScrollableModule,
|
|
@@ -1370,11 +1385,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
1370
1385
|
CdkVirtualForOf,
|
|
1371
1386
|
CdkVirtualScrollViewport,
|
|
1372
1387
|
],
|
|
1373
|
-
declarations: [
|
|
1374
|
-
CdkFixedSizeVirtualScroll,
|
|
1375
|
-
CdkVirtualForOf,
|
|
1376
|
-
CdkVirtualScrollViewport,
|
|
1377
|
-
],
|
|
1388
|
+
declarations: [CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport],
|
|
1378
1389
|
}]
|
|
1379
1390
|
}] });
|
|
1380
1391
|
|
|
@@ -1394,6 +1405,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
1394
1405
|
* found in the LICENSE file at https://angular.io/license
|
|
1395
1406
|
*/
|
|
1396
1407
|
|
|
1408
|
+
/**
|
|
1409
|
+
* @license
|
|
1410
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1411
|
+
*
|
|
1412
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1413
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1414
|
+
*/
|
|
1415
|
+
|
|
1397
1416
|
/**
|
|
1398
1417
|
* Generated bundle index. Do not edit.
|
|
1399
1418
|
*/
|