@angular/cdk 13.0.0-next.8 → 13.0.0-rc.3
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 -35
- 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 +15 -6
- package/schematics/ng-generate/drag-drop/index.mjs +15 -6
- 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 +16 -6
- package/schematics/ng-update/devkit-migration-rule.mjs +16 -6
- 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 +3 -2
- package/schematics/ng-update/html-parsing/elements.mjs +3 -2
- package/schematics/ng-update/index.js +11 -9
- package/schematics/ng-update/index.mjs +11 -9
- 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 +3 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +3 -2
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.d.ts +14 -0
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +38 -0
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +38 -0
- 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 +22 -11
- package/schematics/utils/ast.mjs +22 -11
- package/schematics/utils/build-component.js +25 -26
- package/schematics/utils/build-component.mjs +25 -26
- 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-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- 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 +4 -3
- package/schematics/utils/project-targets.mjs +4 -3
- package/schematics/utils/project-tsconfig-paths.js +28 -16
- package/schematics/utils/project-tsconfig-paths.mjs +28 -16
- 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/table.mjs
CHANGED
|
@@ -33,7 +33,9 @@ function mixinHasStickyInput(base) {
|
|
|
33
33
|
this._hasStickyChanged = false;
|
|
34
34
|
}
|
|
35
35
|
/** Whether sticky positioning should be applied. */
|
|
36
|
-
get sticky() {
|
|
36
|
+
get sticky() {
|
|
37
|
+
return this._sticky;
|
|
38
|
+
}
|
|
37
39
|
set sticky(v) {
|
|
38
40
|
const prevValue = this._sticky;
|
|
39
41
|
this._sticky = coerceBooleanProperty(v);
|
|
@@ -83,9 +85,9 @@ class CdkCellDef {
|
|
|
83
85
|
this.template = template;
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
CdkCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
87
|
-
CdkCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
88
|
+
CdkCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
89
|
+
CdkCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkCellDef, selector: "[cdkCellDef]", ngImport: i0 });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkCellDef, decorators: [{
|
|
89
91
|
type: Directive,
|
|
90
92
|
args: [{ selector: '[cdkCellDef]' }]
|
|
91
93
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
@@ -98,9 +100,9 @@ class CdkHeaderCellDef {
|
|
|
98
100
|
this.template = template;
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
|
-
CdkHeaderCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
102
|
-
CdkHeaderCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
103
|
+
CdkHeaderCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
104
|
+
CdkHeaderCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]", ngImport: i0 });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderCellDef, decorators: [{
|
|
104
106
|
type: Directive,
|
|
105
107
|
args: [{ selector: '[cdkHeaderCellDef]' }]
|
|
106
108
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
@@ -113,9 +115,9 @@ class CdkFooterCellDef {
|
|
|
113
115
|
this.template = template;
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
|
-
CdkFooterCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
117
|
-
CdkFooterCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
118
|
+
CdkFooterCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
119
|
+
CdkFooterCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkFooterCellDef, selector: "[cdkFooterCellDef]", ngImport: i0 });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterCellDef, decorators: [{
|
|
119
121
|
type: Directive,
|
|
120
122
|
args: [{ selector: '[cdkFooterCellDef]' }]
|
|
121
123
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
@@ -135,8 +137,12 @@ class CdkColumnDef extends _CdkColumnDefBase {
|
|
|
135
137
|
this._stickyEnd = false;
|
|
136
138
|
}
|
|
137
139
|
/** Unique name for this column. */
|
|
138
|
-
get name() {
|
|
139
|
-
|
|
140
|
+
get name() {
|
|
141
|
+
return this._name;
|
|
142
|
+
}
|
|
143
|
+
set name(name) {
|
|
144
|
+
this._setNameInput(name);
|
|
145
|
+
}
|
|
140
146
|
/**
|
|
141
147
|
* Whether this column should be sticky positioned on the end of the row. Should make sure
|
|
142
148
|
* that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value
|
|
@@ -171,14 +177,14 @@ class CdkColumnDef extends _CdkColumnDefBase {
|
|
|
171
177
|
// trigger with an empty string and should not overwrite the programmatically set value.
|
|
172
178
|
if (value) {
|
|
173
179
|
this._name = value;
|
|
174
|
-
this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/
|
|
180
|
+
this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/gi, '-');
|
|
175
181
|
this._updateColumnCssClassName();
|
|
176
182
|
}
|
|
177
183
|
}
|
|
178
184
|
}
|
|
179
|
-
CdkColumnDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
180
|
-
CdkColumnDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
185
|
+
CdkColumnDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkColumnDef, deps: [{ token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
186
|
+
CdkColumnDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: { sticky: "sticky", name: ["cdkColumnDef", "name"], stickyEnd: "stickyEnd" }, providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }], queries: [{ propertyName: "cell", first: true, predicate: CdkCellDef, descendants: true }, { propertyName: "headerCell", first: true, predicate: CdkHeaderCellDef, descendants: true }, { propertyName: "footerCell", first: true, predicate: CdkFooterCellDef, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkColumnDef, decorators: [{
|
|
182
188
|
type: Directive,
|
|
183
189
|
args: [{
|
|
184
190
|
selector: '[cdkColumnDef]',
|
|
@@ -223,9 +229,9 @@ class CdkHeaderCell extends BaseCdkCell {
|
|
|
223
229
|
super(columnDef, elementRef);
|
|
224
230
|
}
|
|
225
231
|
}
|
|
226
|
-
CdkHeaderCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
227
|
-
CdkHeaderCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
232
|
+
CdkHeaderCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
233
|
+
CdkHeaderCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]", host: { attributes: { "role": "columnheader" }, classAttribute: "cdk-header-cell" }, usesInheritance: true, ngImport: i0 });
|
|
234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderCell, decorators: [{
|
|
229
235
|
type: Directive,
|
|
230
236
|
args: [{
|
|
231
237
|
selector: 'cdk-header-cell, th[cdk-header-cell]',
|
|
@@ -240,16 +246,15 @@ class CdkFooterCell extends BaseCdkCell {
|
|
|
240
246
|
constructor(columnDef, elementRef) {
|
|
241
247
|
super(columnDef, elementRef);
|
|
242
248
|
if (columnDef._table?._elementRef.nativeElement.nodeType === 1) {
|
|
243
|
-
const tableRole = columnDef._table._elementRef.nativeElement
|
|
244
|
-
|
|
245
|
-
const role = (tableRole === 'grid' || tableRole === 'treegrid') ? 'gridcell' : 'cell';
|
|
249
|
+
const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');
|
|
250
|
+
const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';
|
|
246
251
|
elementRef.nativeElement.setAttribute('role', role);
|
|
247
252
|
}
|
|
248
253
|
}
|
|
249
254
|
}
|
|
250
|
-
CdkFooterCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
251
|
-
CdkFooterCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
255
|
+
CdkFooterCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
256
|
+
CdkFooterCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkFooterCell, selector: "cdk-footer-cell, td[cdk-footer-cell]", host: { classAttribute: "cdk-footer-cell" }, usesInheritance: true, ngImport: i0 });
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterCell, decorators: [{
|
|
253
258
|
type: Directive,
|
|
254
259
|
args: [{
|
|
255
260
|
selector: 'cdk-footer-cell, td[cdk-footer-cell]',
|
|
@@ -263,16 +268,15 @@ class CdkCell extends BaseCdkCell {
|
|
|
263
268
|
constructor(columnDef, elementRef) {
|
|
264
269
|
super(columnDef, elementRef);
|
|
265
270
|
if (columnDef._table?._elementRef.nativeElement.nodeType === 1) {
|
|
266
|
-
const tableRole = columnDef._table._elementRef.nativeElement
|
|
267
|
-
|
|
268
|
-
const role = (tableRole === 'grid' || tableRole === 'treegrid') ? 'gridcell' : 'cell';
|
|
271
|
+
const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');
|
|
272
|
+
const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';
|
|
269
273
|
elementRef.nativeElement.setAttribute('role', role);
|
|
270
274
|
}
|
|
271
275
|
}
|
|
272
276
|
}
|
|
273
|
-
CdkCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
274
|
-
CdkCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
277
|
+
CdkCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
278
|
+
CdkCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkCell, selector: "cdk-cell, td[cdk-cell]", host: { classAttribute: "cdk-cell" }, usesInheritance: true, ngImport: i0 });
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkCell, decorators: [{
|
|
276
280
|
type: Directive,
|
|
277
281
|
args: [{
|
|
278
282
|
selector: 'cdk-cell, td[cdk-cell]',
|
|
@@ -338,7 +342,9 @@ class _CoalescedStyleScheduler {
|
|
|
338
342
|
return;
|
|
339
343
|
}
|
|
340
344
|
this._currentSchedule = new _Schedule();
|
|
341
|
-
this._getScheduleObservable()
|
|
345
|
+
this._getScheduleObservable()
|
|
346
|
+
.pipe(takeUntil(this._destroyed))
|
|
347
|
+
.subscribe(() => {
|
|
342
348
|
while (this._currentSchedule.tasks.length || this._currentSchedule.endTasks.length) {
|
|
343
349
|
const schedule = this._currentSchedule;
|
|
344
350
|
// Capture new tasks scheduled by the current set of tasks.
|
|
@@ -356,14 +362,14 @@ class _CoalescedStyleScheduler {
|
|
|
356
362
|
_getScheduleObservable() {
|
|
357
363
|
// Use onStable when in the context of an ongoing change detection cycle so that we
|
|
358
364
|
// do not accidentally trigger additional cycles.
|
|
359
|
-
return this._ngZone.isStable
|
|
360
|
-
from(Promise.resolve(undefined))
|
|
361
|
-
this._ngZone.onStable.pipe(take(1));
|
|
365
|
+
return this._ngZone.isStable
|
|
366
|
+
? from(Promise.resolve(undefined))
|
|
367
|
+
: this._ngZone.onStable.pipe(take(1));
|
|
362
368
|
}
|
|
363
369
|
}
|
|
364
|
-
_CoalescedStyleScheduler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
365
|
-
_CoalescedStyleScheduler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
370
|
+
_CoalescedStyleScheduler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: _CoalescedStyleScheduler, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
371
|
+
_CoalescedStyleScheduler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: _CoalescedStyleScheduler });
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: _CoalescedStyleScheduler, decorators: [{
|
|
367
373
|
type: Injectable
|
|
368
374
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
369
375
|
|
|
@@ -411,9 +417,9 @@ class BaseRowDef {
|
|
|
411
417
|
}
|
|
412
418
|
}
|
|
413
419
|
}
|
|
414
|
-
BaseRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
415
|
-
BaseRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
420
|
+
BaseRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: BaseRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
421
|
+
BaseRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: BaseRowDef, usesOnChanges: true, ngImport: i0 });
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: BaseRowDef, decorators: [{
|
|
417
423
|
type: Directive
|
|
418
424
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }]; } });
|
|
419
425
|
// Boilerplate for applying mixins to CdkHeaderRowDef.
|
|
@@ -436,9 +442,9 @@ class CdkHeaderRowDef extends _CdkHeaderRowDefBase {
|
|
|
436
442
|
super.ngOnChanges(changes);
|
|
437
443
|
}
|
|
438
444
|
}
|
|
439
|
-
CdkHeaderRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
440
|
-
CdkHeaderRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
445
|
+
CdkHeaderRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
446
|
+
CdkHeaderRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: { columns: ["cdkHeaderRowDef", "columns"], sticky: ["cdkHeaderRowDefSticky", "sticky"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderRowDef, decorators: [{
|
|
442
448
|
type: Directive,
|
|
443
449
|
args: [{
|
|
444
450
|
selector: '[cdkHeaderRowDef]',
|
|
@@ -470,9 +476,9 @@ class CdkFooterRowDef extends _CdkFooterRowDefBase {
|
|
|
470
476
|
super.ngOnChanges(changes);
|
|
471
477
|
}
|
|
472
478
|
}
|
|
473
|
-
CdkFooterRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
474
|
-
CdkFooterRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
479
|
+
CdkFooterRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
480
|
+
CdkFooterRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkFooterRowDef, selector: "[cdkFooterRowDef]", inputs: { columns: ["cdkFooterRowDef", "columns"], sticky: ["cdkFooterRowDefSticky", "sticky"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterRowDef, decorators: [{
|
|
476
482
|
type: Directive,
|
|
477
483
|
args: [{
|
|
478
484
|
selector: '[cdkFooterRowDef]',
|
|
@@ -497,9 +503,9 @@ class CdkRowDef extends BaseRowDef {
|
|
|
497
503
|
this._table = _table;
|
|
498
504
|
}
|
|
499
505
|
}
|
|
500
|
-
CdkRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
501
|
-
CdkRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
506
|
+
CdkRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
507
|
+
CdkRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkRowDef, selector: "[cdkRowDef]", inputs: { columns: ["cdkRowDefColumns", "columns"], when: ["cdkRowDefWhen", "when"] }, usesInheritance: true, ngImport: i0 });
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkRowDef, decorators: [{
|
|
503
509
|
type: Directive,
|
|
504
510
|
args: [{
|
|
505
511
|
selector: '[cdkRowDef]',
|
|
@@ -536,18 +542,18 @@ class CdkCellOutlet {
|
|
|
536
542
|
* construct the cells with the provided context.
|
|
537
543
|
*/
|
|
538
544
|
CdkCellOutlet.mostRecentCellOutlet = null;
|
|
539
|
-
CdkCellOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
540
|
-
CdkCellOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
545
|
+
CdkCellOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkCellOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
546
|
+
CdkCellOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkCellOutlet, selector: "[cdkCellOutlet]", ngImport: i0 });
|
|
547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkCellOutlet, decorators: [{
|
|
542
548
|
type: Directive,
|
|
543
549
|
args: [{ selector: '[cdkCellOutlet]' }]
|
|
544
550
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
545
551
|
/** Header template container that contains the cell outlet. Adds the right class and role. */
|
|
546
552
|
class CdkHeaderRow {
|
|
547
553
|
}
|
|
548
|
-
CdkHeaderRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
549
|
-
CdkHeaderRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
554
|
+
CdkHeaderRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
555
|
+
CdkHeaderRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]", host: { attributes: { "role": "row" }, classAttribute: "cdk-header-row" }, ngImport: i0, template: "<ng-container cdkCellOutlet></ng-container>", isInline: true, directives: [{ type: CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkHeaderRow, decorators: [{
|
|
551
557
|
type: Component,
|
|
552
558
|
args: [{
|
|
553
559
|
selector: 'cdk-header-row, tr[cdk-header-row]',
|
|
@@ -565,9 +571,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
565
571
|
/** Footer template container that contains the cell outlet. Adds the right class and role. */
|
|
566
572
|
class CdkFooterRow {
|
|
567
573
|
}
|
|
568
|
-
CdkFooterRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
569
|
-
CdkFooterRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
574
|
+
CdkFooterRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
575
|
+
CdkFooterRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkFooterRow, selector: "cdk-footer-row, tr[cdk-footer-row]", host: { attributes: { "role": "row" }, classAttribute: "cdk-footer-row" }, ngImport: i0, template: "<ng-container cdkCellOutlet></ng-container>", isInline: true, directives: [{ type: CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkFooterRow, decorators: [{
|
|
571
577
|
type: Component,
|
|
572
578
|
args: [{
|
|
573
579
|
selector: 'cdk-footer-row, tr[cdk-footer-row]',
|
|
@@ -585,9 +591,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
585
591
|
/** Data row template container that contains the cell outlet. Adds the right class and role. */
|
|
586
592
|
class CdkRow {
|
|
587
593
|
}
|
|
588
|
-
CdkRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
589
|
-
CdkRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
594
|
+
CdkRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
595
|
+
CdkRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkRow, selector: "cdk-row, tr[cdk-row]", host: { attributes: { "role": "row" }, classAttribute: "cdk-row" }, ngImport: i0, template: "<ng-container cdkCellOutlet></ng-container>", isInline: true, directives: [{ type: CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkRow, decorators: [{
|
|
591
597
|
type: Component,
|
|
592
598
|
args: [{
|
|
593
599
|
selector: 'cdk-row, tr[cdk-row]',
|
|
@@ -608,12 +614,12 @@ class CdkNoDataRow {
|
|
|
608
614
|
this.templateRef = templateRef;
|
|
609
615
|
}
|
|
610
616
|
}
|
|
611
|
-
CdkNoDataRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
612
|
-
CdkNoDataRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
617
|
+
CdkNoDataRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkNoDataRow, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
618
|
+
CdkNoDataRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkNoDataRow, selector: "ng-template[cdkNoDataRow]", ngImport: i0 });
|
|
619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkNoDataRow, decorators: [{
|
|
614
620
|
type: Directive,
|
|
615
621
|
args: [{
|
|
616
|
-
selector: 'ng-template[cdkNoDataRow]'
|
|
622
|
+
selector: 'ng-template[cdkNoDataRow]',
|
|
617
623
|
}]
|
|
618
624
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
619
625
|
|
|
@@ -702,8 +708,9 @@ class StickyStyler {
|
|
|
702
708
|
* column cell. If `false` cached widths will be used instead.
|
|
703
709
|
*/
|
|
704
710
|
updateStickyColumns(rows, stickyStartStates, stickyEndStates, recalculateCellWidths = true) {
|
|
705
|
-
if (!rows.length ||
|
|
706
|
-
|
|
711
|
+
if (!rows.length ||
|
|
712
|
+
!this._isBrowser ||
|
|
713
|
+
!(stickyStartStates.some(state => state) || stickyEndStates.some(state => state))) {
|
|
707
714
|
if (this._positionListener) {
|
|
708
715
|
this._positionListener.stickyColumnsUpdated({ sizes: [] });
|
|
709
716
|
this._positionListener.stickyEndColumnsUpdated({ sizes: [] });
|
|
@@ -735,19 +742,19 @@ class StickyStyler {
|
|
|
735
742
|
}
|
|
736
743
|
if (this._positionListener) {
|
|
737
744
|
this._positionListener.stickyColumnsUpdated({
|
|
738
|
-
sizes: lastStickyStart === -1
|
|
739
|
-
[]
|
|
740
|
-
cellWidths
|
|
745
|
+
sizes: lastStickyStart === -1
|
|
746
|
+
? []
|
|
747
|
+
: cellWidths
|
|
741
748
|
.slice(0, lastStickyStart + 1)
|
|
742
|
-
.map((width, index) => stickyStartStates[index] ? width : null)
|
|
749
|
+
.map((width, index) => (stickyStartStates[index] ? width : null)),
|
|
743
750
|
});
|
|
744
751
|
this._positionListener.stickyEndColumnsUpdated({
|
|
745
|
-
sizes: firstStickyEnd === -1
|
|
746
|
-
[]
|
|
747
|
-
cellWidths
|
|
752
|
+
sizes: firstStickyEnd === -1
|
|
753
|
+
? []
|
|
754
|
+
: cellWidths
|
|
748
755
|
.slice(firstStickyEnd)
|
|
749
|
-
.map((width, index) => stickyEndStates[index + firstStickyEnd] ? width : null)
|
|
750
|
-
.reverse()
|
|
756
|
+
.map((width, index) => (stickyEndStates[index + firstStickyEnd] ? width : null))
|
|
757
|
+
.reverse(),
|
|
751
758
|
});
|
|
752
759
|
}
|
|
753
760
|
});
|
|
@@ -783,8 +790,9 @@ class StickyStyler {
|
|
|
783
790
|
}
|
|
784
791
|
stickyOffsets[rowIndex] = stickyOffset;
|
|
785
792
|
const row = rows[rowIndex];
|
|
786
|
-
elementsToStick[rowIndex] = this._isNativeHtmlTable
|
|
787
|
-
Array.from(row.children)
|
|
793
|
+
elementsToStick[rowIndex] = this._isNativeHtmlTable
|
|
794
|
+
? Array.from(row.children)
|
|
795
|
+
: [row];
|
|
788
796
|
const height = row.getBoundingClientRect().height;
|
|
789
797
|
stickyOffset += height;
|
|
790
798
|
stickyCellHeights[rowIndex] = height;
|
|
@@ -804,10 +812,18 @@ class StickyStyler {
|
|
|
804
812
|
}
|
|
805
813
|
}
|
|
806
814
|
if (position === 'top') {
|
|
807
|
-
this._positionListener?.stickyHeaderRowsUpdated({
|
|
815
|
+
this._positionListener?.stickyHeaderRowsUpdated({
|
|
816
|
+
sizes: stickyCellHeights,
|
|
817
|
+
offsets: stickyOffsets,
|
|
818
|
+
elements: elementsToStick,
|
|
819
|
+
});
|
|
808
820
|
}
|
|
809
821
|
else {
|
|
810
|
-
this._positionListener?.stickyFooterRowsUpdated({
|
|
822
|
+
this._positionListener?.stickyFooterRowsUpdated({
|
|
823
|
+
sizes: stickyCellHeights,
|
|
824
|
+
offsets: stickyOffsets,
|
|
825
|
+
elements: elementsToStick,
|
|
826
|
+
});
|
|
811
827
|
}
|
|
812
828
|
});
|
|
813
829
|
}
|
|
@@ -1042,17 +1058,13 @@ const STICKY_POSITIONING_LISTENER = new InjectionToken('CDK_SPL');
|
|
|
1042
1058
|
*/
|
|
1043
1059
|
class CdkRecycleRows {
|
|
1044
1060
|
}
|
|
1045
|
-
CdkRecycleRows.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1046
|
-
CdkRecycleRows.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1047
|
-
|
|
1048
|
-
], ngImport: i0 });
|
|
1049
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkRecycleRows, decorators: [{
|
|
1061
|
+
CdkRecycleRows.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkRecycleRows, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1062
|
+
CdkRecycleRows.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkRecycleRows, selector: "cdk-table[recycleRows], table[cdk-table][recycleRows]", providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });
|
|
1063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkRecycleRows, decorators: [{
|
|
1050
1064
|
type: Directive,
|
|
1051
1065
|
args: [{
|
|
1052
1066
|
selector: 'cdk-table[recycleRows], table[cdk-table][recycleRows]',
|
|
1053
|
-
providers: [
|
|
1054
|
-
{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy },
|
|
1055
|
-
],
|
|
1067
|
+
providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],
|
|
1056
1068
|
}]
|
|
1057
1069
|
}] });
|
|
1058
1070
|
/**
|
|
@@ -1065,9 +1077,9 @@ class DataRowOutlet {
|
|
|
1065
1077
|
this.elementRef = elementRef;
|
|
1066
1078
|
}
|
|
1067
1079
|
}
|
|
1068
|
-
DataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1069
|
-
DataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1070
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1080
|
+
DataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1081
|
+
DataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: DataRowOutlet, selector: "[rowOutlet]", ngImport: i0 });
|
|
1082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DataRowOutlet, decorators: [{
|
|
1071
1083
|
type: Directive,
|
|
1072
1084
|
args: [{ selector: '[rowOutlet]' }]
|
|
1073
1085
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
@@ -1081,9 +1093,9 @@ class HeaderRowOutlet {
|
|
|
1081
1093
|
this.elementRef = elementRef;
|
|
1082
1094
|
}
|
|
1083
1095
|
}
|
|
1084
|
-
HeaderRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1085
|
-
HeaderRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1096
|
+
HeaderRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HeaderRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1097
|
+
HeaderRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: HeaderRowOutlet, selector: "[headerRowOutlet]", ngImport: i0 });
|
|
1098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HeaderRowOutlet, decorators: [{
|
|
1087
1099
|
type: Directive,
|
|
1088
1100
|
args: [{ selector: '[headerRowOutlet]' }]
|
|
1089
1101
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
@@ -1097,9 +1109,9 @@ class FooterRowOutlet {
|
|
|
1097
1109
|
this.elementRef = elementRef;
|
|
1098
1110
|
}
|
|
1099
1111
|
}
|
|
1100
|
-
FooterRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1101
|
-
FooterRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1112
|
+
FooterRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FooterRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1113
|
+
FooterRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: FooterRowOutlet, selector: "[footerRowOutlet]", ngImport: i0 });
|
|
1114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FooterRowOutlet, decorators: [{
|
|
1103
1115
|
type: Directive,
|
|
1104
1116
|
args: [{ selector: '[footerRowOutlet]' }]
|
|
1105
1117
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
@@ -1114,9 +1126,9 @@ class NoDataRowOutlet {
|
|
|
1114
1126
|
this.elementRef = elementRef;
|
|
1115
1127
|
}
|
|
1116
1128
|
}
|
|
1117
|
-
NoDataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1118
|
-
NoDataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
1119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1129
|
+
NoDataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: NoDataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1130
|
+
NoDataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: NoDataRowOutlet, selector: "[noDataRowOutlet]", ngImport: i0 });
|
|
1131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: NoDataRowOutlet, decorators: [{
|
|
1120
1132
|
type: Directive,
|
|
1121
1133
|
args: [{ selector: '[noDataRowOutlet]' }]
|
|
1122
1134
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
@@ -1259,7 +1271,10 @@ class CdkTable {
|
|
|
1259
1271
|
*
|
|
1260
1272
|
* @docs-private
|
|
1261
1273
|
*/
|
|
1262
|
-
this.viewChange = new BehaviorSubject({
|
|
1274
|
+
this.viewChange = new BehaviorSubject({
|
|
1275
|
+
start: 0,
|
|
1276
|
+
end: Number.MAX_VALUE,
|
|
1277
|
+
});
|
|
1263
1278
|
if (!role) {
|
|
1264
1279
|
this._elementRef.nativeElement.setAttribute('role', 'table');
|
|
1265
1280
|
}
|
|
@@ -1351,7 +1366,10 @@ class CdkTable {
|
|
|
1351
1366
|
this._dataDiffer = this._differs.find([]).create((_i, dataRow) => {
|
|
1352
1367
|
return this.trackBy ? this.trackBy(dataRow.dataIndex, dataRow.data) : dataRow;
|
|
1353
1368
|
});
|
|
1354
|
-
this._viewportRuler
|
|
1369
|
+
this._viewportRuler
|
|
1370
|
+
.change()
|
|
1371
|
+
.pipe(takeUntil(this._onDestroy))
|
|
1372
|
+
.subscribe(() => {
|
|
1355
1373
|
this._forceRecalculateCellWidths = true;
|
|
1356
1374
|
});
|
|
1357
1375
|
}
|
|
@@ -1360,7 +1378,9 @@ class CdkTable {
|
|
|
1360
1378
|
this._cacheRowDefs();
|
|
1361
1379
|
this._cacheColumnDefs();
|
|
1362
1380
|
// Make sure that the user has at least added header, footer, or data row def.
|
|
1363
|
-
if (!this._headerRowDefs.length &&
|
|
1381
|
+
if (!this._headerRowDefs.length &&
|
|
1382
|
+
!this._footerRowDefs.length &&
|
|
1383
|
+
!this._rowDefs.length &&
|
|
1364
1384
|
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1365
1385
|
throw getTableMissingRowDefsError();
|
|
1366
1386
|
}
|
|
@@ -1423,7 +1443,7 @@ class CdkTable {
|
|
|
1423
1443
|
return;
|
|
1424
1444
|
}
|
|
1425
1445
|
const viewContainer = this._rowOutlet.viewContainer;
|
|
1426
|
-
this._viewRepeater.applyChanges(changes, viewContainer, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record.item, currentIndex),
|
|
1446
|
+
this._viewRepeater.applyChanges(changes, viewContainer, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record.item, currentIndex), record => record.item.data, (change) => {
|
|
1427
1447
|
if (change.operation === 1 /* INSERTED */ && change.context) {
|
|
1428
1448
|
this._renderCellTemplateForItem(change.record.item.rowDef, change.context);
|
|
1429
1449
|
}
|
|
@@ -1542,8 +1562,7 @@ class CdkTable {
|
|
|
1542
1562
|
// In a table using a fixed layout, row content won't affect column width, so sticky styles
|
|
1543
1563
|
// don't need to be cleared unless either the sticky column config changes or one of the row
|
|
1544
1564
|
// defs change.
|
|
1545
|
-
if ((this._isNativeHtmlTable && !this._fixedLayout)
|
|
1546
|
-
|| this._stickyColumnStylesNeedReset) {
|
|
1565
|
+
if ((this._isNativeHtmlTable && !this._fixedLayout) || this._stickyColumnStylesNeedReset) {
|
|
1547
1566
|
// Clear the left and right positioning from all columns in the table across all rows since
|
|
1548
1567
|
// sticky columns span across all table sections (header, data, footer)
|
|
1549
1568
|
this._stickyStyler.clearStickyPositioning([...headerRows, ...dataRows, ...footerRows], ['left', 'right']);
|
|
@@ -1612,7 +1631,7 @@ class CdkTable {
|
|
|
1612
1631
|
_getRenderRowsForData(data, dataIndex, cache) {
|
|
1613
1632
|
const rowDefs = this._getRowDefs(data, dataIndex);
|
|
1614
1633
|
return rowDefs.map(rowDef => {
|
|
1615
|
-
const cachedRenderRows =
|
|
1634
|
+
const cachedRenderRows = cache && cache.has(rowDef) ? cache.get(rowDef) : [];
|
|
1616
1635
|
if (cachedRenderRows.length) {
|
|
1617
1636
|
const dataRow = cachedRenderRows.shift();
|
|
1618
1637
|
dataRow.dataIndex = dataIndex;
|
|
@@ -1642,7 +1661,8 @@ class CdkTable {
|
|
|
1642
1661
|
this._rowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs), this._customRowDefs);
|
|
1643
1662
|
// After all row definitions are determined, find the row definition to be considered default.
|
|
1644
1663
|
const defaultRowDefs = this._rowDefs.filter(def => !def.when);
|
|
1645
|
-
if (!this.multiTemplateDataRows &&
|
|
1664
|
+
if (!this.multiTemplateDataRows &&
|
|
1665
|
+
defaultRowDefs.length > 1 &&
|
|
1646
1666
|
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1647
1667
|
throw getTableMultipleDefaultRowDefsError();
|
|
1648
1668
|
}
|
|
@@ -1713,7 +1733,8 @@ class CdkTable {
|
|
|
1713
1733
|
if (dataStream === undefined && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1714
1734
|
throw getTableUnknownDataSourceError();
|
|
1715
1735
|
}
|
|
1716
|
-
this._renderChangeSubscription = dataStream
|
|
1736
|
+
this._renderChangeSubscription = dataStream
|
|
1737
|
+
.pipe(takeUntil(this._onDestroy))
|
|
1717
1738
|
.subscribe(data => {
|
|
1718
1739
|
this._data = data || [];
|
|
1719
1740
|
this.renderRows();
|
|
@@ -1938,15 +1959,15 @@ class CdkTable {
|
|
|
1938
1959
|
}
|
|
1939
1960
|
}
|
|
1940
1961
|
}
|
|
1941
|
-
CdkTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1942
|
-
CdkTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
1962
|
+
CdkTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTable, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: 'role', attribute: true }, { token: i1.Directionality, optional: true }, { token: DOCUMENT }, { token: i2.Platform }, { token: _VIEW_REPEATER_STRATEGY }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i3.ViewportRuler }, { token: STICKY_POSITIONING_LISTENER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1963
|
+
CdkTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: { trackBy: "trackBy", dataSource: "dataSource", multiTemplateDataRows: "multiTemplateDataRows", fixedLayout: "fixedLayout" }, outputs: { contentChanged: "contentChanged" }, host: { properties: { "class.cdk-table-fixed-layout": "fixedLayout" }, classAttribute: "cdk-table" }, providers: [
|
|
1943
1964
|
{ provide: CDK_TABLE, useExisting: CdkTable },
|
|
1944
1965
|
{ provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },
|
|
1945
1966
|
{ provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },
|
|
1946
1967
|
// Prevent nested tables from seeing this table's StickyPositioningListener.
|
|
1947
1968
|
{ provide: STICKY_POSITIONING_LISTENER, useValue: null },
|
|
1948
1969
|
], queries: [{ propertyName: "_noDataRow", first: true, predicate: CdkNoDataRow, descendants: true }, { propertyName: "_contentColumnDefs", predicate: CdkColumnDef, descendants: true }, { propertyName: "_contentRowDefs", predicate: CdkRowDef, descendants: true }, { propertyName: "_contentHeaderRowDefs", predicate: CdkHeaderRowDef, descendants: true }, { propertyName: "_contentFooterRowDefs", predicate: CdkFooterRowDef, descendants: true }], viewQueries: [{ propertyName: "_rowOutlet", first: true, predicate: DataRowOutlet, descendants: true, static: true }, { propertyName: "_headerRowOutlet", first: true, predicate: HeaderRowOutlet, descendants: true, static: true }, { propertyName: "_footerRowOutlet", first: true, predicate: FooterRowOutlet, descendants: true, static: true }, { propertyName: "_noDataRowOutlet", first: true, predicate: NoDataRowOutlet, descendants: true, static: true }], exportAs: ["cdkTable"], ngImport: i0, 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", isInline: true, styles: [".cdk-table-fixed-layout{table-layout:fixed}\n"], directives: [{ type: HeaderRowOutlet, selector: "[headerRowOutlet]" }, { type: DataRowOutlet, selector: "[rowOutlet]" }, { type: NoDataRowOutlet, selector: "[noDataRowOutlet]" }, { type: FooterRowOutlet, selector: "[footerRowOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
1949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTable, decorators: [{
|
|
1950
1971
|
type: Component,
|
|
1951
1972
|
args: [{ selector: 'cdk-table, table[cdk-table]', exportAs: 'cdkTable', template: CDK_TABLE_TEMPLATE, host: {
|
|
1952
1973
|
'class': 'cdk-table',
|
|
@@ -2010,12 +2031,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2010
2031
|
}], _contentHeaderRowDefs: [{
|
|
2011
2032
|
type: ContentChildren,
|
|
2012
2033
|
args: [CdkHeaderRowDef, {
|
|
2013
|
-
descendants: true
|
|
2034
|
+
descendants: true,
|
|
2014
2035
|
}]
|
|
2015
2036
|
}], _contentFooterRowDefs: [{
|
|
2016
2037
|
type: ContentChildren,
|
|
2017
2038
|
args: [CdkFooterRowDef, {
|
|
2018
|
-
descendants: true
|
|
2039
|
+
descendants: true,
|
|
2019
2040
|
}]
|
|
2020
2041
|
}], _noDataRow: [{
|
|
2021
2042
|
type: ContentChild,
|
|
@@ -2111,8 +2132,8 @@ class CdkTextColumn {
|
|
|
2111
2132
|
}
|
|
2112
2133
|
}
|
|
2113
2134
|
}
|
|
2114
|
-
CdkTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2115
|
-
CdkTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
2135
|
+
CdkTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTextColumn, deps: [{ token: CdkTable, optional: true }, { token: TEXT_COLUMN_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2136
|
+
CdkTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkTextColumn, selector: "cdk-text-column", inputs: { name: "name", headerText: "headerText", dataAccessor: "dataAccessor", justify: "justify" }, viewQueries: [{ propertyName: "columnDef", first: true, predicate: CdkColumnDef, descendants: true, static: true }, { propertyName: "cell", first: true, predicate: CdkCellDef, descendants: true, static: true }, { propertyName: "headerCell", first: true, predicate: CdkHeaderCellDef, descendants: true, static: true }], ngImport: i0, template: `
|
|
2116
2137
|
<ng-container cdkColumnDef>
|
|
2117
2138
|
<th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">
|
|
2118
2139
|
{{headerText}}
|
|
@@ -2122,7 +2143,7 @@ CdkTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
2122
2143
|
</td>
|
|
2123
2144
|
</ng-container>
|
|
2124
2145
|
`, isInline: true, directives: [{ type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["sticky", "cdkColumnDef", "stickyEnd"] }, { type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { type: CdkCellDef, selector: "[cdkCellDef]" }, { type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
2125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTextColumn, decorators: [{
|
|
2126
2147
|
type: Component,
|
|
2127
2148
|
args: [{
|
|
2128
2149
|
selector: 'cdk-text-column',
|
|
@@ -2204,8 +2225,8 @@ const EXPORTED_DECLARATIONS = [
|
|
|
2204
2225
|
];
|
|
2205
2226
|
class CdkTableModule {
|
|
2206
2227
|
}
|
|
2207
|
-
CdkTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2208
|
-
CdkTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
2228
|
+
CdkTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2229
|
+
CdkTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTableModule, declarations: [CdkTable,
|
|
2209
2230
|
CdkRowDef,
|
|
2210
2231
|
CdkCellDef,
|
|
2211
2232
|
CdkCellOutlet,
|
|
@@ -2248,13 +2269,13 @@ CdkTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2248
2269
|
CdkNoDataRow,
|
|
2249
2270
|
CdkRecycleRows,
|
|
2250
2271
|
NoDataRowOutlet] });
|
|
2251
|
-
CdkTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
2252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2272
|
+
CdkTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTableModule, imports: [[ScrollingModule]] });
|
|
2273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTableModule, decorators: [{
|
|
2253
2274
|
type: NgModule,
|
|
2254
2275
|
args: [{
|
|
2255
2276
|
exports: EXPORTED_DECLARATIONS,
|
|
2256
2277
|
declarations: EXPORTED_DECLARATIONS,
|
|
2257
|
-
imports: [ScrollingModule]
|
|
2278
|
+
imports: [ScrollingModule],
|
|
2258
2279
|
}]
|
|
2259
2280
|
}] });
|
|
2260
2281
|
|
|
@@ -2266,6 +2287,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2266
2287
|
* found in the LICENSE file at https://angular.io/license
|
|
2267
2288
|
*/
|
|
2268
2289
|
|
|
2290
|
+
/**
|
|
2291
|
+
* @license
|
|
2292
|
+
* Copyright Google LLC All Rights Reserved.
|
|
2293
|
+
*
|
|
2294
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
2295
|
+
* found in the LICENSE file at https://angular.io/license
|
|
2296
|
+
*/
|
|
2297
|
+
|
|
2269
2298
|
/**
|
|
2270
2299
|
* Generated bundle index. Do not edit.
|
|
2271
2300
|
*/
|