@angular/cdk 13.0.0-next.6 → 13.0.0-rc.1
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/a11y-module.d.ts +9 -7
- package/a11y/aria-describer/aria-describer.d.ts +3 -7
- package/a11y/focus-monitor/focus-monitor.d.ts +5 -0
- package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +3 -7
- package/a11y/focus-trap/focus-trap-manager.d.ts +3 -7
- package/a11y/focus-trap/focus-trap.d.ts +5 -0
- package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +3 -0
- package/a11y/index.d.ts +0 -1
- package/a11y/input-modality/input-modality-detector.d.ts +3 -7
- package/a11y/interactivity-checker/interactivity-checker.d.ts +3 -0
- package/a11y/live-announcer/live-announcer.d.ts +6 -1
- package/a11y/package.json +5 -5
- package/accordion/accordion-item.d.ts +3 -0
- package/accordion/accordion-module.d.ts +6 -7
- package/accordion/accordion.d.ts +3 -0
- package/accordion/index.d.ts +0 -1
- package/accordion/package.json +5 -5
- package/bidi/bidi-module.d.ts +5 -7
- package/bidi/dir.d.ts +3 -0
- package/bidi/directionality.d.ts +3 -0
- package/bidi/index.d.ts +0 -1
- package/bidi/package.json +5 -5
- package/clipboard/clipboard-module.d.ts +5 -7
- package/clipboard/clipboard.d.ts +3 -7
- package/clipboard/copy-to-clipboard.d.ts +3 -0
- package/clipboard/package.json +5 -5
- package/coercion/package.json +5 -5
- package/collections/package.json +5 -5
- package/collections/unique-selection-dispatcher.d.ts +3 -0
- package/drag-drop/client-rect.d.ts +8 -1
- package/drag-drop/directives/drag-handle.d.ts +3 -0
- package/drag-drop/directives/drag-placeholder.d.ts +3 -0
- package/drag-drop/directives/drag-preview.d.ts +3 -0
- package/drag-drop/directives/drag.d.ts +3 -0
- package/drag-drop/directives/drop-list-group.d.ts +3 -0
- package/drag-drop/directives/drop-list.d.ts +3 -0
- package/drag-drop/drag-drop-module.d.ts +11 -7
- package/drag-drop/drag-drop-registry.d.ts +3 -0
- package/drag-drop/drag-drop.d.ts +3 -0
- package/drag-drop/index.d.ts +0 -1
- package/drag-drop/package.json +5 -5
- package/esm2020/a11y/a11y-module.mjs +33 -0
- package/esm2020/a11y/aria-describer/aria-describer.mjs +208 -0
- package/{esm2015/a11y/aria-describer/aria-reference.js → esm2020/a11y/aria-describer/aria-reference.mjs} +1 -1
- package/esm2020/a11y/fake-event-detection.mjs +29 -0
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +400 -0
- package/{esm2015/a11y/focus-trap/configurable-focus-trap-config.js → esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs} +0 -0
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
- package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
- package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
- package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
- package/esm2020/a11y/focus-trap/focus-trap.mjs +399 -0
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +95 -0
- package/esm2020/a11y/index.mjs +5 -0
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
- package/{esm2015/a11y/key-manager/activedescendant-key-manager.js → esm2020/a11y/key-manager/activedescendant-key-manager.mjs} +1 -1
- package/{esm2015/a11y/key-manager/focus-key-manager.js → esm2020/a11y/key-manager/focus-key-manager.mjs} +0 -0
- package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
- package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
- package/esm2020/a11y/live-announcer/live-announcer.mjs +170 -0
- package/{esm2015/a11y/public-api.js → esm2020/a11y/public-api.mjs} +0 -0
- package/esm2020/accordion/accordion-item.mjs +167 -0
- package/esm2020/accordion/accordion-module.mjs +24 -0
- package/esm2020/accordion/accordion.mjs +70 -0
- package/esm2020/accordion/index.mjs +5 -0
- package/{esm2015/accordion/public-api.js → esm2020/accordion/public-api.mjs} +0 -0
- package/esm2020/bidi/bidi-module.mjs +23 -0
- package/{esm2015/bidi/dir-document-token.js → esm2020/bidi/dir-document-token.mjs} +1 -1
- package/esm2020/bidi/dir.mjs +67 -0
- package/esm2020/bidi/directionality.mjs +47 -0
- package/esm2020/bidi/index.mjs +5 -0
- package/{esm2015/bidi/public-api.js → esm2020/bidi/public-api.mjs} +1 -1
- package/esm2020/clipboard/clipboard-module.mjs +23 -0
- package/esm2020/clipboard/clipboard.mjs +53 -0
- package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
- package/{esm2015/clipboard/index.js → esm2020/clipboard/index.mjs} +0 -0
- package/esm2020/clipboard/pending-copy.mjs +67 -0
- package/{esm2015/clipboard/public-api.js → esm2020/clipboard/public-api.mjs} +0 -0
- package/{esm2015/coercion/array.js → esm2020/coercion/array.mjs} +0 -0
- package/{esm2015/coercion/boolean-property.js → esm2020/coercion/boolean-property.mjs} +0 -0
- package/{esm2015/coercion/css-pixel-value.js → esm2020/coercion/css-pixel-value.mjs} +0 -0
- package/{esm2015/coercion/element.js → esm2020/coercion/element.mjs} +0 -0
- package/{esm2015/coercion/index.js → esm2020/coercion/index.mjs} +0 -0
- package/{esm2015/coercion/number-property.js → esm2020/coercion/number-property.mjs} +0 -0
- package/{esm2015/coercion/public-api.js → esm2020/coercion/public-api.mjs} +0 -0
- package/{esm2015/coercion/string-array.js → esm2020/coercion/string-array.mjs} +0 -0
- package/{esm2015/collections/array-data-source.js → esm2020/collections/array-data-source.mjs} +1 -1
- package/esm2020/collections/collection-viewer.mjs +9 -0
- package/{esm2015/collections/data-source.js → esm2020/collections/data-source.mjs} +0 -0
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
- package/{esm2015/collections/index.js → esm2020/collections/index.mjs} +0 -0
- package/{esm2015/collections/public-api.js → esm2020/collections/public-api.mjs} +0 -0
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
- package/{esm2015/collections/selection-model.js → esm2020/collections/selection-model.mjs} +2 -2
- package/esm2020/collections/tree-adapter.mjs +9 -0
- package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
- package/esm2020/collections/view-repeater.mjs +14 -0
- package/esm2020/drag-drop/client-rect.mjs +64 -0
- package/esm2020/drag-drop/clone-node.mjs +65 -0
- package/esm2020/drag-drop/directives/assertions.mjs +18 -0
- package/{esm2015/drag-drop/directives/config.js → esm2020/drag-drop/directives/config.mjs} +1 -1
- package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
- package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
- package/esm2020/drag-drop/directives/drag.mjs +483 -0
- package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
- package/esm2020/drag-drop/directives/drop-list.mjs +344 -0
- package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
- package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
- package/esm2020/drag-drop/drag-drop.mjs +57 -0
- package/esm2020/drag-drop/drag-events.mjs +9 -0
- package/{esm2015/drag-drop/drag-parent.js → esm2020/drag-drop/drag-parent.mjs} +0 -0
- package/esm2020/drag-drop/drag-ref.mjs +1108 -0
- package/esm2020/drag-drop/drag-styling.mjs +69 -0
- package/esm2020/drag-drop/drag-utils.mjs +60 -0
- package/esm2020/drag-drop/drop-list-ref.mjs +830 -0
- package/{esm2015/drag-drop/index.js → esm2020/drag-drop/index.mjs} +1 -1
- package/{esm2015/drag-drop/parent-position-tracker.js → esm2020/drag-drop/parent-position-tracker.mjs} +2 -2
- package/{esm2015/drag-drop/public-api.js → esm2020/drag-drop/public-api.mjs} +0 -0
- package/esm2020/drag-drop/transition-duration.mjs +36 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/keycodes/index.js → esm2020/keycodes/index.mjs} +0 -0
- package/{esm2015/keycodes/keycodes.js → esm2020/keycodes/keycodes.mjs} +1 -1
- package/{esm2015/keycodes/modifiers.js → esm2020/keycodes/modifiers.mjs} +0 -0
- package/{esm2015/keycodes/public-api.js → esm2020/keycodes/public-api.mjs} +0 -0
- package/esm2020/layout/breakpoints-observer.mjs +105 -0
- package/{esm2015/layout/breakpoints.js → esm2020/layout/breakpoints.mjs} +1 -1
- package/{esm2015/layout/index.js → esm2020/layout/index.mjs} +0 -0
- package/esm2020/layout/layout-module.mjs +19 -0
- package/esm2020/layout/media-matcher.mjs +85 -0
- package/{esm2015/layout/public-api.js → esm2020/layout/public-api.mjs} +0 -0
- package/{esm2015/observers/index.js → esm2020/observers/index.mjs} +0 -0
- package/esm2020/observers/observe-content.mjs +187 -0
- package/{esm2015/observers/public-api.js → esm2020/observers/public-api.mjs} +0 -0
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
- package/{esm2015/overlay/dispatchers/index.js → esm2020/overlay/dispatchers/index.mjs} +0 -0
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +63 -0
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +116 -0
- package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
- package/esm2020/overlay/index.mjs +5 -0
- package/esm2020/overlay/overlay-config.mjs +45 -0
- package/esm2020/overlay/overlay-container.mjs +81 -0
- package/esm2020/overlay/overlay-directives.mjs +427 -0
- package/esm2020/overlay/overlay-module.mjs +29 -0
- package/esm2020/overlay/overlay-ref.mjs +402 -0
- package/{esm2015/overlay/overlay-reference.js → esm2020/overlay/overlay-reference.mjs} +0 -0
- package/esm2020/overlay/overlay.mjs +119 -0
- package/esm2020/overlay/position/connected-position.mjs +97 -0
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +959 -0
- package/esm2020/overlay/position/global-position-strategy.mjs +203 -0
- package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
- package/{esm2015/overlay/position/position-strategy.js → esm2020/overlay/position/position-strategy.mjs} +0 -0
- package/esm2020/overlay/position/scroll-clip.mjs +40 -0
- package/{esm2015/overlay/public-api.js → esm2020/overlay/public-api.mjs} +0 -0
- package/{esm2015/overlay/scroll/block-scroll-strategy.js → esm2020/overlay/scroll/block-scroll-strategy.mjs} +1 -1
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
- package/{esm2015/overlay/scroll/index.js → esm2020/overlay/scroll/index.mjs} +2 -2
- package/{esm2015/overlay/scroll/noop-scroll-strategy.js → esm2020/overlay/scroll/noop-scroll-strategy.mjs} +1 -1
- package/{esm2015/overlay/scroll/reposition-scroll-strategy.js → esm2020/overlay/scroll/reposition-scroll-strategy.mjs} +1 -1
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
- package/{esm2015/overlay/scroll/scroll-strategy.js → esm2020/overlay/scroll/scroll-strategy.mjs} +0 -0
- package/{esm2015/platform/features/input-types.js → esm2020/platform/features/input-types.mjs} +1 -1
- package/esm2020/platform/features/passive-listeners.mjs +36 -0
- package/esm2020/platform/features/scrolling.mjs +85 -0
- package/{esm2015/platform/features/shadow-dom.js → esm2020/platform/features/shadow-dom.mjs} +4 -3
- package/esm2020/platform/features/test-environment.mjs +27 -0
- package/{esm2015/platform/index.js → esm2020/platform/index.mjs} +0 -0
- package/esm2020/platform/platform-module.mjs +19 -0
- package/esm2020/platform/platform.mjs +85 -0
- package/{esm2015/platform/public-api.js → esm2020/platform/public-api.mjs} +0 -0
- package/esm2020/portal/dom-portal-outlet.mjs +134 -0
- package/{esm2015/portal/index.js → esm2020/portal/index.mjs} +0 -0
- package/esm2020/portal/portal-directives.mjs +244 -0
- package/{esm2015/portal/portal-errors.js → esm2020/portal/portal-errors.mjs} +1 -1
- package/esm2020/portal/portal-injector.mjs +28 -0
- package/esm2020/portal/portal.mjs +179 -0
- package/{esm2015/portal/public-api.js → esm2020/portal/public-api.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
- package/{esm2015/scrolling/index.js → esm2020/scrolling/index.mjs} +0 -0
- package/{esm2015/scrolling/public-api.js → esm2020/scrolling/public-api.mjs} +0 -0
- package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
- package/esm2020/scrolling/scrollable.mjs +176 -0
- package/esm2020/scrolling/scrolling-module.mjs +52 -0
- package/esm2020/scrolling/viewport-ruler.mjs +146 -0
- package/esm2020/scrolling/virtual-for-of.mjs +296 -0
- package/{esm2015/scrolling/virtual-scroll-repeater.js → esm2020/scrolling/virtual-scroll-repeater.mjs} +0 -0
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +378 -0
- package/{esm2015/stepper/index.js → esm2020/stepper/index.mjs} +0 -0
- package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
- package/esm2020/stepper/step-header.mjs +30 -0
- package/esm2020/stepper/step-label.mjs +23 -0
- package/esm2020/stepper/stepper-button.mjs +76 -0
- package/esm2020/stepper/stepper-module.mjs +40 -0
- package/esm2020/stepper/stepper.mjs +471 -0
- package/esm2020/table/can-stick.mjs +44 -0
- package/esm2020/table/cell.mjs +222 -0
- package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/esm2020/table/row.mjs +254 -0
- package/esm2020/table/sticky-position-listener.mjs +11 -0
- package/esm2020/table/sticky-styler.mjs +345 -0
- package/{esm2015/table/table-errors.js → esm2020/table/table-errors.mjs} +1 -1
- package/esm2020/table/table-module.mjs +94 -0
- package/esm2020/table/table.mjs +1023 -0
- package/esm2020/table/text-column.mjs +153 -0
- package/{esm2015/table/tokens.js → esm2020/table/tokens.mjs} +1 -1
- package/esm2020/testing/change-detection.mjs +102 -0
- package/esm2020/testing/component-harness.mjs +322 -0
- package/{esm2015/testing/element-dimensions.js → esm2020/testing/element-dimensions.mjs} +1 -1
- package/esm2020/testing/harness-environment.mjs +202 -0
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/protractor/index.js → esm2020/testing/protractor/index.mjs} +0 -0
- package/esm2020/testing/protractor/protractor-element.mjs +234 -0
- package/esm2020/testing/protractor/protractor-harness-environment.mjs +72 -0
- package/{esm2015/testing/protractor/public-api.js → esm2020/testing/protractor/public-api.mjs} +0 -0
- package/{esm2015/testing/public-api.js → esm2020/testing/public-api.mjs} +0 -0
- package/{esm2015/testing/selenium-webdriver/index.js → esm2020/testing/selenium-webdriver/index.mjs} +0 -0
- package/{esm2015/testing/selenium-webdriver/public-api.js → esm2020/testing/selenium-webdriver/public-api.mjs} +0 -0
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +199 -0
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +87 -0
- package/{esm2015/testing/selenium-webdriver/selenium-webdriver-keys.js → esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs} +2 -2
- package/esm2020/testing/test-element.mjs +48 -0
- package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +53 -0
- package/esm2020/testing/testbed/fake-events/element-focus.mjs +39 -0
- package/esm2020/testing/testbed/fake-events/event-objects.mjs +113 -0
- package/{esm2015/testing/testbed/fake-events/index.js → esm2020/testing/testbed/fake-events/index.mjs} +0 -0
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +88 -0
- package/{esm2015/testing/testbed/index.js → esm2020/testing/testbed/index.mjs} +0 -0
- package/{esm2015/testing/testbed/public-api.js → esm2020/testing/testbed/public-api.mjs} +0 -0
- package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +82 -0
- package/esm2020/testing/testbed/testbed-harness-environment.mjs +162 -0
- package/esm2020/testing/testbed/unit-test-element.mjs +224 -0
- package/esm2020/testing/text-filtering.mjs +21 -0
- package/esm2020/text-field/autofill.mjs +113 -0
- package/esm2020/text-field/autosize.mjs +310 -0
- package/{esm2015/text-field/index.js → esm2020/text-field/index.mjs} +0 -0
- package/{esm2015/text-field/public-api.js → esm2020/text-field/public-api.mjs} +0 -0
- package/esm2020/text-field/text-field-module.mjs +26 -0
- package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +4 -4
- package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +1 -1
- package/esm2020/tree/control/nested-tree-control.mjs +58 -0
- package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/esm2020/tree/nested-node.mjs +117 -0
- package/esm2020/tree/node.mjs +35 -0
- package/esm2020/tree/outlet.mjs +39 -0
- package/esm2020/tree/padding.mjs +131 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/esm2020/tree/toggle.mjs +53 -0
- package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
- package/esm2020/tree/tree-module.mjs +49 -0
- package/esm2020/tree/tree.mjs +361 -0
- package/{esm2015/version.js → esm2020/version.mjs} +1 -1
- package/fesm2015/a11y.mjs +2356 -0
- package/fesm2015/a11y.mjs.map +1 -0
- package/fesm2015/accordion.mjs +267 -0
- package/fesm2015/accordion.mjs.map +1 -0
- package/fesm2015/bidi.mjs +179 -0
- package/fesm2015/bidi.mjs.map +1 -0
- package/fesm2015/{cdk.js → cdk.mjs} +2 -2
- package/fesm2015/cdk.mjs.map +1 -0
- package/fesm2015/clipboard.mjs +253 -0
- package/fesm2015/clipboard.mjs.map +1 -0
- package/fesm2015/{coercion.js → coercion.mjs} +1 -1
- package/fesm2015/coercion.mjs.map +1 -0
- package/fesm2015/{collections.js → collections.mjs} +15 -27
- package/fesm2015/collections.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +3667 -0
- package/fesm2015/drag-drop.mjs.map +1 -0
- package/fesm2015/{keycodes.js → keycodes.mjs} +1 -1
- package/fesm2015/keycodes.mjs.map +1 -0
- package/fesm2015/{layout.js → layout.mjs} +30 -28
- package/fesm2015/layout.mjs.map +1 -0
- package/fesm2015/{observers.js → observers.mjs} +50 -41
- package/fesm2015/observers.mjs.map +1 -0
- package/fesm2015/overlay.mjs +3004 -0
- package/fesm2015/overlay.mjs.map +1 -0
- package/fesm2015/platform.mjs +380 -0
- package/fesm2015/platform.mjs.map +1 -0
- package/fesm2015/portal.mjs +649 -0
- package/fesm2015/portal.mjs.map +1 -0
- package/fesm2015/scrolling.mjs +1394 -0
- package/fesm2015/scrolling.mjs.map +1 -0
- package/fesm2015/{stepper.js → stepper.mjs} +186 -133
- package/fesm2015/stepper.mjs.map +1 -0
- package/fesm2015/{table.js → table.mjs} +500 -359
- package/fesm2015/table.mjs.map +1 -0
- package/fesm2015/testing/{protractor.js → protractor.mjs} +12 -25
- package/fesm2015/testing/protractor.mjs.map +1 -0
- package/fesm2015/testing/{selenium-webdriver.js → selenium-webdriver.mjs} +14 -28
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -0
- package/fesm2015/testing/{testbed.js → testbed.mjs} +23 -29
- package/fesm2015/testing/testbed.mjs.map +1 -0
- package/fesm2015/{testing.js → testing.mjs} +19 -45
- package/fesm2015/testing.mjs.map +1 -0
- package/fesm2015/text-field.mjs +455 -0
- package/fesm2015/text-field.mjs.map +1 -0
- package/fesm2015/{tree.js → tree.mjs} +198 -152
- package/fesm2015/tree.mjs.map +1 -0
- package/{fesm2015/a11y.js → fesm2020/a11y.mjs} +272 -233
- package/fesm2020/a11y.mjs.map +1 -0
- package/{fesm2015/accordion.js → fesm2020/accordion.mjs} +87 -57
- package/fesm2020/accordion.mjs.map +1 -0
- package/{fesm2015/bidi.js → fesm2020/bidi.mjs} +47 -31
- package/fesm2020/bidi.mjs.map +1 -0
- package/fesm2020/cdk.mjs +30 -0
- package/fesm2020/cdk.mjs.map +1 -0
- package/{fesm2015/clipboard.js → fesm2020/clipboard.mjs} +51 -40
- package/fesm2020/clipboard.mjs.map +1 -0
- package/fesm2020/coercion.mjs +132 -0
- package/fesm2020/coercion.mjs.map +1 -0
- package/fesm2020/collections.mjs +472 -0
- package/fesm2020/collections.mjs.map +1 -0
- package/{fesm2015/drag-drop.js → fesm2020/drag-drop.mjs} +523 -366
- package/fesm2020/drag-drop.mjs.map +1 -0
- package/fesm2020/keycodes.mjs +159 -0
- package/fesm2020/keycodes.mjs.map +1 -0
- package/fesm2020/layout.mjs +246 -0
- package/fesm2020/layout.mjs.map +1 -0
- package/fesm2020/observers.mjs +202 -0
- package/fesm2020/observers.mjs.map +1 -0
- package/{fesm2015/overlay.js → fesm2020/overlay.mjs} +312 -228
- package/fesm2020/overlay.mjs.map +1 -0
- package/{fesm2015/platform.js → fesm2020/platform.mjs} +52 -28
- package/fesm2020/platform.mjs.map +1 -0
- package/{fesm2015/portal.js → fesm2020/portal.mjs} +85 -64
- package/fesm2020/portal.mjs.map +1 -0
- package/{fesm2015/scrolling.js → fesm2020/scrolling.mjs} +213 -170
- package/fesm2020/scrolling.mjs.map +1 -0
- package/fesm2020/stepper.mjs +638 -0
- package/fesm2020/stepper.mjs.map +1 -0
- package/fesm2020/table.mjs +2295 -0
- package/fesm2020/table.mjs.map +1 -0
- package/fesm2020/testing/protractor.mjs +322 -0
- package/fesm2020/testing/protractor.mjs.map +1 -0
- package/fesm2020/testing/selenium-webdriver.mjs +362 -0
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -0
- package/fesm2020/testing/testbed.mjs +780 -0
- package/fesm2020/testing/testbed.mjs.map +1 -0
- package/fesm2020/testing.mjs +719 -0
- package/fesm2020/testing.mjs.map +1 -0
- package/{fesm2015/text-field.js → fesm2020/text-field.mjs} +83 -68
- package/fesm2020/text-field.mjs.map +1 -0
- package/fesm2020/tree.mjs +967 -0
- package/fesm2020/tree.mjs.map +1 -0
- package/keycodes/package.json +5 -5
- package/layout/breakpoints-observer.d.ts +3 -7
- package/layout/layout-module.d.ts +4 -0
- package/layout/media-matcher.d.ts +3 -0
- package/layout/package.json +5 -5
- package/observers/observe-content.d.ts +10 -0
- package/observers/package.json +5 -5
- package/overlay/dispatchers/base-overlay-dispatcher.d.ts +3 -7
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +3 -7
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +6 -7
- package/overlay/fullscreen-overlay-container.d.ts +3 -0
- package/overlay/index.d.ts +0 -2
- package/overlay/overlay-container.d.ts +3 -7
- package/overlay/overlay-directives.d.ts +5 -0
- package/overlay/overlay-module.d.ts +8 -7
- package/overlay/overlay.d.ts +3 -0
- package/overlay/package.json +5 -5
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
- package/overlay/position/overlay-position-builder.d.ts +3 -0
- package/overlay/position/scroll-clip.d.ts +5 -2
- package/overlay/scroll/index.d.ts +1 -1
- package/overlay/scroll/scroll-strategy-options.d.ts +3 -0
- package/package.json +219 -7
- package/platform/package.json +5 -5
- package/platform/platform-module.d.ts +4 -7
- package/platform/platform.d.ts +3 -7
- package/portal/package.json +5 -5
- package/portal/portal-directives.d.ts +12 -0
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- 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 +6 -6
- package/schematics/ng-generate/drag-drop/index.mjs +6 -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-file-system.js +2 -2
- package/schematics/ng-update/devkit-file-system.mjs +2 -2
- package/schematics/ng-update/devkit-migration-rule.js +8 -7
- package/schematics/ng-update/devkit-migration-rule.mjs +8 -7
- package/schematics/ng-update/devkit-migration.d.ts +1 -1
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.mjs +1 -1
- package/schematics/ng-update/find-stylesheets.js +3 -3
- package/schematics/ng-update/find-stylesheets.mjs +3 -3
- package/schematics/ng-update/html-parsing/angular.js +7 -7
- package/schematics/ng-update/html-parsing/angular.mjs +7 -7
- package/schematics/ng-update/html-parsing/elements.js +2 -2
- package/schematics/ng-update/html-parsing/elements.mjs +2 -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 +11 -7
- package/schematics/ng-update/migrations/attribute-selectors.mjs +11 -7
- package/schematics/ng-update/migrations/class-inheritance.js +3 -3
- package/schematics/ng-update/migrations/class-inheritance.mjs +3 -3
- package/schematics/ng-update/migrations/class-names.js +7 -6
- package/schematics/ng-update/migrations/class-names.mjs +7 -6
- package/schematics/ng-update/migrations/constructor-signature.js +16 -13
- package/schematics/ng-update/migrations/constructor-signature.mjs +16 -13
- package/schematics/ng-update/migrations/css-selectors.js +7 -6
- package/schematics/ng-update/migrations/css-selectors.mjs +7 -6
- package/schematics/ng-update/migrations/element-selectors.js +7 -6
- package/schematics/ng-update/migrations/element-selectors.mjs +7 -6
- package/schematics/ng-update/migrations/input-names.js +8 -9
- package/schematics/ng-update/migrations/input-names.mjs +8 -9
- package/schematics/ng-update/migrations/method-call-arguments.js +4 -3
- package/schematics/ng-update/migrations/method-call-arguments.mjs +4 -3
- package/schematics/ng-update/migrations/misc-template.js +3 -3
- package/schematics/ng-update/migrations/misc-template.mjs +3 -3
- package/schematics/ng-update/migrations/output-names.js +7 -8
- package/schematics/ng-update/migrations/output-names.mjs +7 -8
- package/schematics/ng-update/migrations/property-names.js +4 -3
- package/schematics/ng-update/migrations/property-names.mjs +4 -3
- package/schematics/ng-update/migrations/symbol-removal.js +2 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -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 +5 -5
- package/schematics/ng-update/typescript/module-specifiers.mjs +5 -5
- package/schematics/ng-update/upgrade-data.js +2 -2
- package/schematics/ng-update/upgrade-data.mjs +2 -2
- package/schematics/package.json +3 -0
- package/schematics/paths.js +3 -3
- package/schematics/paths.mjs +3 -3
- package/schematics/update-tool/component-resource-collector.js +10 -10
- package/schematics/update-tool/component-resource-collector.mjs +10 -10
- 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 +9 -5
- package/schematics/update-tool/index.mjs +9 -5
- 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 +8 -4
- package/schematics/update-tool/utils/decorators.mjs +8 -4
- 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 +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
- 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.d.ts +1 -1
- package/schematics/update-tool/utils/virtual-host.js +3 -3
- package/schematics/update-tool/utils/virtual-host.mjs +3 -3
- 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 +5 -5
- package/schematics/utils/ast.mjs +5 -5
- package/schematics/utils/build-component.js +32 -38
- package/schematics/utils/build-component.mjs +32 -38
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/get-project.mjs +1 -1
- package/schematics/utils/html-manipulation.js +8 -7
- package/schematics/utils/html-manipulation.mjs +8 -7
- 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 +2 -2
- package/schematics/utils/project-main-file.mjs +2 -2
- package/schematics/utils/project-style-file.js +7 -9
- package/schematics/utils/project-style-file.mjs +7 -9
- package/schematics/utils/project-targets.js +1 -1
- package/schematics/utils/project-targets.mjs +1 -1
- package/schematics/utils/project-tsconfig-paths.js +4 -4
- package/schematics/utils/project-tsconfig-paths.mjs +4 -4
- package/schematics/utils/schematic-options.js +7 -5
- package/schematics/utils/schematic-options.mjs +7 -5
- package/schematics/utils/vendored-ast-utils/index.js +17 -18
- package/schematics/utils/vendored-ast-utils/index.mjs +17 -18
- package/scrolling/fixed-size-virtual-scroll.d.ts +3 -0
- package/scrolling/package.json +5 -5
- package/scrolling/scroll-dispatcher.d.ts +3 -7
- package/scrolling/scrollable.d.ts +3 -0
- package/scrolling/scrolling-module.d.ts +13 -7
- package/scrolling/viewport-ruler.d.ts +11 -1
- package/scrolling/virtual-for-of.d.ts +3 -0
- package/scrolling/virtual-scroll-viewport.d.ts +3 -0
- package/stepper/package.json +5 -5
- package/stepper/step-header.d.ts +3 -0
- package/stepper/step-label.d.ts +3 -0
- package/stepper/stepper-button.d.ts +5 -7
- package/stepper/stepper-module.d.ts +9 -7
- package/stepper/stepper.d.ts +5 -7
- package/table/cell.d.ts +15 -0
- package/table/coalesced-style-scheduler.d.ts +3 -0
- package/table/package.json +5 -5
- package/table/row.d.ts +19 -0
- package/table/table-module.d.ts +9 -7
- package/table/table.d.ts +13 -0
- package/table/text-column.d.ts +3 -0
- package/testing/package.json +5 -5
- package/testing/protractor/package.json +5 -5
- package/testing/selenium-webdriver/package.json +5 -5
- package/testing/testbed/package.json +5 -5
- package/testing/testbed/proxy-zone-types.d.ts +1 -1
- package/testing/testbed/zone-types.d.ts +1 -1
- package/text-field/autofill.d.ts +5 -0
- package/text-field/autosize.d.ts +3 -0
- package/text-field/package.json +5 -5
- package/text-field/text-field-module.d.ts +7 -7
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/nested-tree-control.d.ts +2 -2
- package/tree/nested-node.d.ts +3 -0
- package/tree/node.d.ts +3 -0
- package/tree/outlet.d.ts +3 -0
- package/tree/package.json +5 -5
- package/tree/padding.d.ts +3 -0
- package/tree/toggle.d.ts +3 -0
- package/tree/tree-module.d.ts +10 -7
- package/tree/tree.d.ts +5 -0
- package/a11y/index.metadata.json +0 -1
- package/accordion/index.metadata.json +0 -1
- package/bidi/index.metadata.json +0 -1
- package/bundles/cdk-a11y.umd.js +0 -2752
- package/bundles/cdk-a11y.umd.js.map +0 -1
- package/bundles/cdk-accordion.umd.js +0 -262
- package/bundles/cdk-accordion.umd.js.map +0 -1
- package/bundles/cdk-bidi.umd.js +0 -206
- package/bundles/cdk-bidi.umd.js.map +0 -1
- package/bundles/cdk-clipboard.umd.js +0 -278
- package/bundles/cdk-clipboard.umd.js.map +0 -1
- package/bundles/cdk-coercion.umd.js +0 -477
- package/bundles/cdk-coercion.umd.js.map +0 -1
- package/bundles/cdk-collections.umd.js +0 -846
- package/bundles/cdk-collections.umd.js.map +0 -1
- package/bundles/cdk-drag-drop.umd.js +0 -3915
- package/bundles/cdk-drag-drop.umd.js.map +0 -1
- package/bundles/cdk-keycodes.umd.js +0 -292
- package/bundles/cdk-keycodes.umd.js.map +0 -1
- package/bundles/cdk-layout.umd.js +0 -284
- package/bundles/cdk-layout.umd.js.map +0 -1
- package/bundles/cdk-observers.umd.js +0 -242
- package/bundles/cdk-observers.umd.js.map +0 -1
- package/bundles/cdk-overlay.umd.js +0 -3417
- package/bundles/cdk-overlay.umd.js.map +0 -1
- package/bundles/cdk-platform.umd.js +0 -397
- package/bundles/cdk-platform.umd.js.map +0 -1
- package/bundles/cdk-portal.umd.js +0 -1008
- package/bundles/cdk-portal.umd.js.map +0 -1
- package/bundles/cdk-scrolling.umd.js +0 -1787
- package/bundles/cdk-scrolling.umd.js.map +0 -1
- package/bundles/cdk-stepper.umd.js +0 -648
- package/bundles/cdk-stepper.umd.js.map +0 -1
- package/bundles/cdk-table.umd.js +0 -2730
- package/bundles/cdk-table.umd.js.map +0 -1
- package/bundles/cdk-testing-protractor.umd.js +0 -833
- package/bundles/cdk-testing-protractor.umd.js.map +0 -1
- package/bundles/cdk-testing-selenium-webdriver.umd.js +0 -1002
- package/bundles/cdk-testing-selenium-webdriver.umd.js.map +0 -1
- package/bundles/cdk-testing-testbed.umd.js +0 -1396
- package/bundles/cdk-testing-testbed.umd.js.map +0 -1
- package/bundles/cdk-testing.umd.js +0 -1285
- package/bundles/cdk-testing.umd.js.map +0 -1
- package/bundles/cdk-text-field.umd.js +0 -494
- package/bundles/cdk-text-field.umd.js.map +0 -1
- package/bundles/cdk-tree.umd.js +0 -1308
- package/bundles/cdk-tree.umd.js.map +0 -1
- package/bundles/cdk.umd.js +0 -38
- package/bundles/cdk.umd.js.map +0 -1
- package/clipboard/index.metadata.json +0 -1
- package/collections/index.metadata.json +0 -1
- package/drag-drop/index.metadata.json +0 -1
- package/esm2015/a11y/a11y-module.js +0 -30
- package/esm2015/a11y/a11y.externs.js +0 -6
- package/esm2015/a11y/aria-describer/aria-describer.js +0 -213
- package/esm2015/a11y/fake-event-detection.js +0 -28
- package/esm2015/a11y/focus-monitor/focus-monitor.js +0 -394
- package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +0 -52
- package/esm2015/a11y/focus-trap/configurable-focus-trap.js +0 -49
- package/esm2015/a11y/focus-trap/event-listener-inert-strategy.js +0 -62
- package/esm2015/a11y/focus-trap/focus-trap-inert-strategy.js +0 -11
- package/esm2015/a11y/focus-trap/focus-trap-manager.js +0 -51
- package/esm2015/a11y/focus-trap/focus-trap.js +0 -391
- package/esm2015/a11y/high-contrast-mode/high-contrast-mode-detector.js +0 -92
- package/esm2015/a11y/index.js +0 -6
- package/esm2015/a11y/input-modality/input-modality-detector.js +0 -171
- package/esm2015/a11y/interactivity-checker/interactivity-checker.js +0 -237
- package/esm2015/a11y/key-manager/list-key-manager.js +0 -317
- package/esm2015/a11y/live-announcer/live-announcer-tokens.js +0 -19
- package/esm2015/a11y/live-announcer/live-announcer.js +0 -167
- package/esm2015/accordion/accordion-item.js +0 -146
- package/esm2015/accordion/accordion-module.js +0 -19
- package/esm2015/accordion/accordion.externs.js +0 -6
- package/esm2015/accordion/accordion.js +0 -63
- package/esm2015/accordion/index.js +0 -6
- package/esm2015/bidi/bidi-module.js +0 -18
- package/esm2015/bidi/bidi.externs.js +0 -6
- package/esm2015/bidi/dir.js +0 -58
- package/esm2015/bidi/directionality.js +0 -44
- package/esm2015/bidi/index.js +0 -6
- package/esm2015/cdk.externs.js +0 -0
- package/esm2015/clipboard/clipboard-module.js +0 -18
- package/esm2015/clipboard/clipboard.externs.js +0 -6
- package/esm2015/clipboard/clipboard.js +0 -52
- package/esm2015/clipboard/copy-to-clipboard.js +0 -90
- package/esm2015/clipboard/pending-copy.js +0 -68
- package/esm2015/coercion/coercion.externs.js +0 -0
- package/esm2015/collections/collection-viewer.js +0 -9
- package/esm2015/collections/collections.externs.js +0 -6
- package/esm2015/collections/dispose-view-repeater-strategy.js +0 -48
- package/esm2015/collections/recycle-view-repeater-strategy.js +0 -125
- package/esm2015/collections/tree-adapter.js +0 -9
- package/esm2015/collections/unique-selection-dispatcher.js +0 -53
- package/esm2015/collections/view-repeater.js +0 -14
- package/esm2015/drag-drop/client-rect.js +0 -60
- package/esm2015/drag-drop/clone-node.js +0 -65
- package/esm2015/drag-drop/directives/assertions.js +0 -19
- package/esm2015/drag-drop/directives/drag-handle.js +0 -57
- package/esm2015/drag-drop/directives/drag-placeholder.js +0 -36
- package/esm2015/drag-drop/directives/drag-preview.js +0 -42
- package/esm2015/drag-drop/directives/drag.js +0 -407
- package/esm2015/drag-drop/directives/drop-list-group.js +0 -47
- package/esm2015/drag-drop/directives/drop-list.js +0 -301
- package/esm2015/drag-drop/drag-drop-module.js +0 -43
- package/esm2015/drag-drop/drag-drop-registry.js +0 -231
- package/esm2015/drag-drop/drag-drop.externs.js +0 -6
- package/esm2015/drag-drop/drag-drop.js +0 -59
- package/esm2015/drag-drop/drag-events.js +0 -9
- package/esm2015/drag-drop/drag-ref.js +0 -1110
- package/esm2015/drag-drop/drag-styling.js +0 -69
- package/esm2015/drag-drop/drag-utils.js +0 -60
- package/esm2015/drag-drop/drop-list-ref.js +0 -813
- package/esm2015/drag-drop/transition-duration.js +0 -36
- package/esm2015/keycodes/keycodes.externs.js +0 -6
- package/esm2015/layout/breakpoints-observer.js +0 -106
- package/esm2015/layout/layout-module.js +0 -14
- package/esm2015/layout/layout.externs.js +0 -6
- package/esm2015/layout/media-matcher.js +0 -85
- package/esm2015/observers/observe-content.js +0 -179
- package/esm2015/observers/observers.externs.js +0 -6
- package/esm2015/overlay/dispatchers/base-overlay-dispatcher.js +0 -51
- package/esm2015/overlay/dispatchers/overlay-keyboard-dispatcher.js +0 -62
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +0 -97
- package/esm2015/overlay/fullscreen-overlay-container.js +0 -94
- package/esm2015/overlay/index.js +0 -7
- package/esm2015/overlay/overlay-config.js +0 -45
- package/esm2015/overlay/overlay-container.js +0 -85
- package/esm2015/overlay/overlay-directives.js +0 -352
- package/esm2015/overlay/overlay-module.js +0 -27
- package/esm2015/overlay/overlay-ref.js +0 -409
- package/esm2015/overlay/overlay.externs.js +0 -6
- package/esm2015/overlay/overlay.js +0 -119
- package/esm2015/overlay/position/connected-position.js +0 -94
- package/esm2015/overlay/position/flexible-connected-position-strategy.js +0 -960
- package/esm2015/overlay/position/global-position-strategy.js +0 -197
- package/esm2015/overlay/position/overlay-position-builder.js +0 -52
- package/esm2015/overlay/position/scroll-clip.js +0 -42
- package/esm2015/overlay/scroll/close-scroll-strategy.js +0 -61
- package/esm2015/overlay/scroll/scroll-strategy-options.js +0 -57
- package/esm2015/platform/features/passive-listeners.js +0 -36
- package/esm2015/platform/features/scrolling.js +0 -85
- package/esm2015/platform/features/test-environment.js +0 -16
- package/esm2015/platform/platform-module.js +0 -14
- package/esm2015/platform/platform.externs.js +0 -6
- package/esm2015/platform/platform.js +0 -77
- package/esm2015/portal/dom-portal-outlet.js +0 -136
- package/esm2015/portal/portal-directives.js +0 -221
- package/esm2015/portal/portal-injector.js +0 -28
- package/esm2015/portal/portal.externs.js +0 -6
- package/esm2015/portal/portal.js +0 -179
- package/esm2015/scrolling/fixed-size-virtual-scroll.js +0 -188
- package/esm2015/scrolling/scroll-dispatcher.js +0 -163
- package/esm2015/scrolling/scrollable.js +0 -173
- package/esm2015/scrolling/scrolling-module.js +0 -49
- package/esm2015/scrolling/scrolling.externs.js +0 -6
- package/esm2015/scrolling/viewport-ruler.js +0 -139
- package/esm2015/scrolling/virtual-for-of.js +0 -293
- package/esm2015/scrolling/virtual-scroll-strategy.js +0 -11
- package/esm2015/scrolling/virtual-scroll-viewport.js +0 -371
- package/esm2015/stepper/step-header.js +0 -29
- package/esm2015/stepper/step-label.js +0 -22
- package/esm2015/stepper/stepper-button.js +0 -72
- package/esm2015/stepper/stepper-module.js +0 -37
- package/esm2015/stepper/stepper.externs.js +0 -6
- package/esm2015/stepper/stepper.js +0 -428
- package/esm2015/table/can-stick.js +0 -42
- package/esm2015/table/cell.js +0 -211
- package/esm2015/table/coalesced-style-scheduler.js +0 -89
- package/esm2015/table/row.js +0 -244
- package/esm2015/table/sticky-position-listener.js +0 -11
- package/esm2015/table/sticky-styler.js +0 -336
- package/esm2015/table/table-module.js +0 -47
- package/esm2015/table/table.externs.js +0 -6
- package/esm2015/table/table.js +0 -987
- package/esm2015/table/text-column.js +0 -127
- package/esm2015/testing/change-detection.js +0 -110
- package/esm2015/testing/component-harness.js +0 -344
- package/esm2015/testing/harness-environment.js +0 -219
- package/esm2015/testing/protractor/protractor-element.js +0 -274
- package/esm2015/testing/protractor/protractor-harness-environment.js +0 -79
- package/esm2015/testing/protractor/protractor.externs.js +0 -0
- package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +0 -241
- package/esm2015/testing/selenium-webdriver/selenium-web-driver-harness-environment.js +0 -97
- package/esm2015/testing/selenium-webdriver/selenium-webdriver.externs.js +0 -0
- package/esm2015/testing/test-element.js +0 -48
- package/esm2015/testing/testbed/fake-events/dispatch-events.js +0 -53
- package/esm2015/testing/testbed/fake-events/element-focus.js +0 -39
- package/esm2015/testing/testbed/fake-events/event-objects.js +0 -107
- package/esm2015/testing/testbed/fake-events/type-in-element.js +0 -79
- package/esm2015/testing/testbed/task-state-zone-interceptor.js +0 -82
- package/esm2015/testing/testbed/testbed-harness-environment.js +0 -173
- package/esm2015/testing/testbed/testbed.externs.js +0 -0
- package/esm2015/testing/testbed/unit-test-element.js +0 -266
- package/esm2015/testing/testing.externs.js +0 -0
- package/esm2015/testing/text-filtering.js +0 -23
- package/esm2015/text-field/autofill.js +0 -117
- package/esm2015/text-field/autosize.js +0 -293
- package/esm2015/text-field/text-field-module.js +0 -21
- package/esm2015/text-field/text-field.externs.js +0 -6
- package/esm2015/tree/control/nested-tree-control.js +0 -59
- package/esm2015/tree/nested-node.js +0 -112
- package/esm2015/tree/node.js +0 -36
- package/esm2015/tree/outlet.js +0 -34
- package/esm2015/tree/padding.js +0 -119
- package/esm2015/tree/toggle.js +0 -46
- package/esm2015/tree/tree-module.js +0 -32
- package/esm2015/tree/tree.externs.js +0 -6
- package/esm2015/tree/tree.js +0 -345
- package/fesm2015/a11y.js.map +0 -1
- package/fesm2015/accordion.js.map +0 -1
- package/fesm2015/bidi.js.map +0 -1
- package/fesm2015/cdk.js.map +0 -1
- package/fesm2015/clipboard.js.map +0 -1
- package/fesm2015/coercion.js.map +0 -1
- package/fesm2015/collections.js.map +0 -1
- package/fesm2015/drag-drop.js.map +0 -1
- package/fesm2015/keycodes.js.map +0 -1
- package/fesm2015/layout.js.map +0 -1
- package/fesm2015/observers.js.map +0 -1
- package/fesm2015/overlay.js.map +0 -1
- package/fesm2015/platform.js.map +0 -1
- package/fesm2015/portal.js.map +0 -1
- package/fesm2015/scrolling.js.map +0 -1
- package/fesm2015/stepper.js.map +0 -1
- package/fesm2015/table.js.map +0 -1
- package/fesm2015/testing/protractor.js.map +0 -1
- package/fesm2015/testing/selenium-webdriver.js.map +0 -1
- package/fesm2015/testing/testbed.js.map +0 -1
- package/fesm2015/testing.js.map +0 -1
- package/fesm2015/text-field.js.map +0 -1
- package/fesm2015/tree.js.map +0 -1
- package/keycodes/index.metadata.json +0 -1
- package/layout/index.metadata.json +0 -1
- package/observers/index.metadata.json +0 -1
- package/overlay/index.metadata.json +0 -1
- package/platform/index.metadata.json +0 -1
- package/portal/index.metadata.json +0 -1
- package/scrolling/index.metadata.json +0 -1
- package/stepper/index.metadata.json +0 -1
- package/table/index.metadata.json +0 -1
- package/text-field/index.metadata.json +0 -1
- package/tree/index.metadata.json +0 -1
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
2
1
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
3
2
|
import { _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy, isDataSource, _DisposeViewRepeaterStrategy } from '@angular/cdk/collections';
|
|
4
3
|
export { DataSource } from '@angular/cdk/collections';
|
|
5
|
-
import { Platform } from '@angular/cdk/platform';
|
|
6
|
-
import { ViewportRuler, ScrollingModule } from '@angular/cdk/scrolling';
|
|
7
4
|
import { DOCUMENT } from '@angular/common';
|
|
8
|
-
import
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, Directive, Inject, Optional, Input, ContentChild, Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, EmbeddedViewRef, EventEmitter, Attribute, SkipSelf, Output, ViewChild, ContentChildren, NgModule } from '@angular/core';
|
|
9
7
|
import { Subject, from, BehaviorSubject, isObservable, of } from 'rxjs';
|
|
10
8
|
import { takeUntil, take } from 'rxjs/operators';
|
|
9
|
+
import * as i1 from '@angular/cdk/bidi';
|
|
10
|
+
import * as i2 from '@angular/cdk/platform';
|
|
11
|
+
import * as i3 from '@angular/cdk/scrolling';
|
|
12
|
+
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* @license
|
|
@@ -31,7 +33,9 @@ function mixinHasStickyInput(base) {
|
|
|
31
33
|
this._hasStickyChanged = false;
|
|
32
34
|
}
|
|
33
35
|
/** Whether sticky positioning should be applied. */
|
|
34
|
-
get sticky() {
|
|
36
|
+
get sticky() {
|
|
37
|
+
return this._sticky;
|
|
38
|
+
}
|
|
35
39
|
set sticky(v) {
|
|
36
40
|
const prevValue = this._sticky;
|
|
37
41
|
this._sticky = coerceBooleanProperty(v);
|
|
@@ -81,12 +85,12 @@ class CdkCellDef {
|
|
|
81
85
|
this.template = template;
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
|
-
CdkCellDef
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
];
|
|
88
|
+
CdkCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", type: CdkCellDef, selector: "[cdkCellDef]", ngImport: i0 });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkCellDef, decorators: [{
|
|
91
|
+
type: Directive,
|
|
92
|
+
args: [{ selector: '[cdkCellDef]' }]
|
|
93
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
90
94
|
/**
|
|
91
95
|
* Header cell definition for a CDK table.
|
|
92
96
|
* Captures the template of a column's header cell and as well as cell-specific properties.
|
|
@@ -96,12 +100,12 @@ class CdkHeaderCellDef {
|
|
|
96
100
|
this.template = template;
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
|
-
CdkHeaderCellDef
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
];
|
|
103
|
+
CdkHeaderCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]", ngImport: i0 });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkHeaderCellDef, decorators: [{
|
|
106
|
+
type: Directive,
|
|
107
|
+
args: [{ selector: '[cdkHeaderCellDef]' }]
|
|
108
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
105
109
|
/**
|
|
106
110
|
* Footer cell definition for a CDK table.
|
|
107
111
|
* Captures the template of a column's footer cell and as well as cell-specific properties.
|
|
@@ -111,12 +115,12 @@ class CdkFooterCellDef {
|
|
|
111
115
|
this.template = template;
|
|
112
116
|
}
|
|
113
117
|
}
|
|
114
|
-
CdkFooterCellDef
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
];
|
|
118
|
+
CdkFooterCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", type: CdkFooterCellDef, selector: "[cdkFooterCellDef]", ngImport: i0 });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkFooterCellDef, decorators: [{
|
|
121
|
+
type: Directive,
|
|
122
|
+
args: [{ selector: '[cdkFooterCellDef]' }]
|
|
123
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
120
124
|
// Boilerplate for applying mixins to CdkColumnDef.
|
|
121
125
|
/** @docs-private */
|
|
122
126
|
class CdkColumnDefBase {
|
|
@@ -133,8 +137,12 @@ class CdkColumnDef extends _CdkColumnDefBase {
|
|
|
133
137
|
this._stickyEnd = false;
|
|
134
138
|
}
|
|
135
139
|
/** Unique name for this column. */
|
|
136
|
-
get name() {
|
|
137
|
-
|
|
140
|
+
get name() {
|
|
141
|
+
return this._name;
|
|
142
|
+
}
|
|
143
|
+
set name(name) {
|
|
144
|
+
this._setNameInput(name);
|
|
145
|
+
}
|
|
138
146
|
/**
|
|
139
147
|
* Whether this column should be sticky positioned on the end of the row. Should make sure
|
|
140
148
|
* that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value
|
|
@@ -169,28 +177,43 @@ class CdkColumnDef extends _CdkColumnDefBase {
|
|
|
169
177
|
// trigger with an empty string and should not overwrite the programmatically set value.
|
|
170
178
|
if (value) {
|
|
171
179
|
this._name = value;
|
|
172
|
-
this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/
|
|
180
|
+
this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/gi, '-');
|
|
173
181
|
this._updateColumnCssClassName();
|
|
174
182
|
}
|
|
175
183
|
}
|
|
176
184
|
}
|
|
177
|
-
CdkColumnDef
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
]
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
]
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
185
|
+
CdkColumnDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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-next.15", 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-next.15", ngImport: i0, type: CdkColumnDef, decorators: [{
|
|
188
|
+
type: Directive,
|
|
189
|
+
args: [{
|
|
190
|
+
selector: '[cdkColumnDef]',
|
|
191
|
+
inputs: ['sticky'],
|
|
192
|
+
providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],
|
|
193
|
+
}]
|
|
194
|
+
}], ctorParameters: function () {
|
|
195
|
+
return [{ type: undefined, decorators: [{
|
|
196
|
+
type: Inject,
|
|
197
|
+
args: [CDK_TABLE]
|
|
198
|
+
}, {
|
|
199
|
+
type: Optional
|
|
200
|
+
}] }];
|
|
201
|
+
}, propDecorators: { name: [{
|
|
202
|
+
type: Input,
|
|
203
|
+
args: ['cdkColumnDef']
|
|
204
|
+
}], stickyEnd: [{
|
|
205
|
+
type: Input,
|
|
206
|
+
args: ['stickyEnd']
|
|
207
|
+
}], cell: [{
|
|
208
|
+
type: ContentChild,
|
|
209
|
+
args: [CdkCellDef]
|
|
210
|
+
}], headerCell: [{
|
|
211
|
+
type: ContentChild,
|
|
212
|
+
args: [CdkHeaderCellDef]
|
|
213
|
+
}], footerCell: [{
|
|
214
|
+
type: ContentChild,
|
|
215
|
+
args: [CdkFooterCellDef]
|
|
216
|
+
}] } });
|
|
194
217
|
/** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
|
|
195
218
|
class BaseCdkCell {
|
|
196
219
|
constructor(columnDef, elementRef) {
|
|
@@ -208,69 +231,64 @@ class CdkHeaderCell extends BaseCdkCell {
|
|
|
208
231
|
super(columnDef, elementRef);
|
|
209
232
|
}
|
|
210
233
|
}
|
|
211
|
-
CdkHeaderCell
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
];
|
|
234
|
+
CdkHeaderCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkHeaderCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
235
|
+
CdkHeaderCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]", host: { attributes: { "role": "columnheader" }, classAttribute: "cdk-header-cell" }, usesInheritance: true, ngImport: i0 });
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkHeaderCell, decorators: [{
|
|
237
|
+
type: Directive,
|
|
238
|
+
args: [{
|
|
239
|
+
selector: 'cdk-header-cell, th[cdk-header-cell]',
|
|
240
|
+
host: {
|
|
241
|
+
'class': 'cdk-header-cell',
|
|
242
|
+
'role': 'columnheader',
|
|
243
|
+
},
|
|
244
|
+
}]
|
|
245
|
+
}], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });
|
|
224
246
|
/** Footer cell template container that adds the right classes and role. */
|
|
225
247
|
class CdkFooterCell extends BaseCdkCell {
|
|
226
248
|
constructor(columnDef, elementRef) {
|
|
227
249
|
var _a;
|
|
228
250
|
super(columnDef, elementRef);
|
|
229
251
|
if (((_a = columnDef._table) === null || _a === void 0 ? void 0 : _a._elementRef.nativeElement.nodeType) === 1) {
|
|
230
|
-
const tableRole = columnDef._table._elementRef.nativeElement
|
|
231
|
-
|
|
232
|
-
const role = (tableRole === 'grid' || tableRole === 'treegrid') ? 'gridcell' : 'cell';
|
|
252
|
+
const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');
|
|
253
|
+
const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';
|
|
233
254
|
elementRef.nativeElement.setAttribute('role', role);
|
|
234
255
|
}
|
|
235
256
|
}
|
|
236
257
|
}
|
|
237
|
-
CdkFooterCell
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
];
|
|
258
|
+
CdkFooterCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkFooterCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
259
|
+
CdkFooterCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkFooterCell, selector: "cdk-footer-cell, td[cdk-footer-cell]", host: { classAttribute: "cdk-footer-cell" }, usesInheritance: true, ngImport: i0 });
|
|
260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkFooterCell, decorators: [{
|
|
261
|
+
type: Directive,
|
|
262
|
+
args: [{
|
|
263
|
+
selector: 'cdk-footer-cell, td[cdk-footer-cell]',
|
|
264
|
+
host: {
|
|
265
|
+
'class': 'cdk-footer-cell',
|
|
266
|
+
},
|
|
267
|
+
}]
|
|
268
|
+
}], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });
|
|
249
269
|
/** Cell template container that adds the right classes and role. */
|
|
250
270
|
class CdkCell extends BaseCdkCell {
|
|
251
271
|
constructor(columnDef, elementRef) {
|
|
252
272
|
var _a;
|
|
253
273
|
super(columnDef, elementRef);
|
|
254
274
|
if (((_a = columnDef._table) === null || _a === void 0 ? void 0 : _a._elementRef.nativeElement.nodeType) === 1) {
|
|
255
|
-
const tableRole = columnDef._table._elementRef.nativeElement
|
|
256
|
-
|
|
257
|
-
const role = (tableRole === 'grid' || tableRole === 'treegrid') ? 'gridcell' : 'cell';
|
|
275
|
+
const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');
|
|
276
|
+
const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';
|
|
258
277
|
elementRef.nativeElement.setAttribute('role', role);
|
|
259
278
|
}
|
|
260
279
|
}
|
|
261
280
|
}
|
|
262
|
-
CdkCell
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
];
|
|
281
|
+
CdkCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
282
|
+
CdkCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkCell, selector: "cdk-cell, td[cdk-cell]", host: { classAttribute: "cdk-cell" }, usesInheritance: true, ngImport: i0 });
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkCell, decorators: [{
|
|
284
|
+
type: Directive,
|
|
285
|
+
args: [{
|
|
286
|
+
selector: 'cdk-cell, td[cdk-cell]',
|
|
287
|
+
host: {
|
|
288
|
+
'class': 'cdk-cell',
|
|
289
|
+
},
|
|
290
|
+
}]
|
|
291
|
+
}], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });
|
|
274
292
|
|
|
275
293
|
/**
|
|
276
294
|
* @license
|
|
@@ -328,7 +346,9 @@ class _CoalescedStyleScheduler {
|
|
|
328
346
|
return;
|
|
329
347
|
}
|
|
330
348
|
this._currentSchedule = new _Schedule();
|
|
331
|
-
this._getScheduleObservable()
|
|
349
|
+
this._getScheduleObservable()
|
|
350
|
+
.pipe(takeUntil(this._destroyed))
|
|
351
|
+
.subscribe(() => {
|
|
332
352
|
while (this._currentSchedule.tasks.length || this._currentSchedule.endTasks.length) {
|
|
333
353
|
const schedule = this._currentSchedule;
|
|
334
354
|
// Capture new tasks scheduled by the current set of tasks.
|
|
@@ -346,25 +366,17 @@ class _CoalescedStyleScheduler {
|
|
|
346
366
|
_getScheduleObservable() {
|
|
347
367
|
// Use onStable when in the context of an ongoing change detection cycle so that we
|
|
348
368
|
// do not accidentally trigger additional cycles.
|
|
349
|
-
return this._ngZone.isStable
|
|
350
|
-
from(Promise.resolve(undefined))
|
|
351
|
-
this._ngZone.onStable.pipe(take(1));
|
|
369
|
+
return this._ngZone.isStable
|
|
370
|
+
? from(Promise.resolve(undefined))
|
|
371
|
+
: this._ngZone.onStable.pipe(take(1));
|
|
352
372
|
}
|
|
353
373
|
}
|
|
354
|
-
_CoalescedStyleScheduler
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
];
|
|
374
|
+
_CoalescedStyleScheduler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _CoalescedStyleScheduler, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
375
|
+
_CoalescedStyleScheduler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _CoalescedStyleScheduler });
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _CoalescedStyleScheduler, decorators: [{
|
|
377
|
+
type: Injectable
|
|
378
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
360
379
|
|
|
361
|
-
/**
|
|
362
|
-
* @license
|
|
363
|
-
* Copyright Google LLC All Rights Reserved.
|
|
364
|
-
*
|
|
365
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
366
|
-
* found in the LICENSE file at https://angular.io/license
|
|
367
|
-
*/
|
|
368
380
|
/**
|
|
369
381
|
* The row template that can be used by the mat-table. Should not be used outside of the
|
|
370
382
|
* material library.
|
|
@@ -409,13 +421,11 @@ class BaseRowDef {
|
|
|
409
421
|
}
|
|
410
422
|
}
|
|
411
423
|
}
|
|
412
|
-
BaseRowDef
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
{ type: IterableDiffers }
|
|
418
|
-
];
|
|
424
|
+
BaseRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: BaseRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
425
|
+
BaseRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: BaseRowDef, usesOnChanges: true, ngImport: i0 });
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: BaseRowDef, decorators: [{
|
|
427
|
+
type: Directive
|
|
428
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }]; } });
|
|
419
429
|
// Boilerplate for applying mixins to CdkHeaderRowDef.
|
|
420
430
|
/** @docs-private */
|
|
421
431
|
class CdkHeaderRowDefBase extends BaseRowDef {
|
|
@@ -436,17 +446,22 @@ class CdkHeaderRowDef extends _CdkHeaderRowDefBase {
|
|
|
436
446
|
super.ngOnChanges(changes);
|
|
437
447
|
}
|
|
438
448
|
}
|
|
439
|
-
CdkHeaderRowDef
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
]
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
CdkHeaderRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkHeaderRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
450
|
+
CdkHeaderRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: { columns: ["cdkHeaderRowDef", "columns"], sticky: ["cdkHeaderRowDefSticky", "sticky"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkHeaderRowDef, decorators: [{
|
|
452
|
+
type: Directive,
|
|
453
|
+
args: [{
|
|
454
|
+
selector: '[cdkHeaderRowDef]',
|
|
455
|
+
inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky'],
|
|
456
|
+
}]
|
|
457
|
+
}], ctorParameters: function () {
|
|
458
|
+
return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{
|
|
459
|
+
type: Inject,
|
|
460
|
+
args: [CDK_TABLE]
|
|
461
|
+
}, {
|
|
462
|
+
type: Optional
|
|
463
|
+
}] }];
|
|
464
|
+
} });
|
|
450
465
|
// Boilerplate for applying mixins to CdkFooterRowDef.
|
|
451
466
|
/** @docs-private */
|
|
452
467
|
class CdkFooterRowDefBase extends BaseRowDef {
|
|
@@ -467,17 +482,22 @@ class CdkFooterRowDef extends _CdkFooterRowDefBase {
|
|
|
467
482
|
super.ngOnChanges(changes);
|
|
468
483
|
}
|
|
469
484
|
}
|
|
470
|
-
CdkFooterRowDef
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
]
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
485
|
+
CdkFooterRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkFooterRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
486
|
+
CdkFooterRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkFooterRowDef, selector: "[cdkFooterRowDef]", inputs: { columns: ["cdkFooterRowDef", "columns"], sticky: ["cdkFooterRowDefSticky", "sticky"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkFooterRowDef, decorators: [{
|
|
488
|
+
type: Directive,
|
|
489
|
+
args: [{
|
|
490
|
+
selector: '[cdkFooterRowDef]',
|
|
491
|
+
inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky'],
|
|
492
|
+
}]
|
|
493
|
+
}], ctorParameters: function () {
|
|
494
|
+
return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{
|
|
495
|
+
type: Inject,
|
|
496
|
+
args: [CDK_TABLE]
|
|
497
|
+
}, {
|
|
498
|
+
type: Optional
|
|
499
|
+
}] }];
|
|
500
|
+
} });
|
|
481
501
|
/**
|
|
482
502
|
* Data row definition for the CDK table.
|
|
483
503
|
* Captures the header row's template and other row properties such as the columns to display and
|
|
@@ -491,17 +511,22 @@ class CdkRowDef extends BaseRowDef {
|
|
|
491
511
|
this._table = _table;
|
|
492
512
|
}
|
|
493
513
|
}
|
|
494
|
-
CdkRowDef
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
]
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
514
|
+
CdkRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
515
|
+
CdkRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkRowDef, selector: "[cdkRowDef]", inputs: { columns: ["cdkRowDefColumns", "columns"], when: ["cdkRowDefWhen", "when"] }, usesInheritance: true, ngImport: i0 });
|
|
516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkRowDef, decorators: [{
|
|
517
|
+
type: Directive,
|
|
518
|
+
args: [{
|
|
519
|
+
selector: '[cdkRowDef]',
|
|
520
|
+
inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],
|
|
521
|
+
}]
|
|
522
|
+
}], ctorParameters: function () {
|
|
523
|
+
return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{
|
|
524
|
+
type: Inject,
|
|
525
|
+
args: [CDK_TABLE]
|
|
526
|
+
}, {
|
|
527
|
+
type: Optional
|
|
528
|
+
}] }];
|
|
529
|
+
} });
|
|
505
530
|
/**
|
|
506
531
|
* Outlet for rendering cells inside of a row or header row.
|
|
507
532
|
* @docs-private
|
|
@@ -527,77 +552,86 @@ class CdkCellOutlet {
|
|
|
527
552
|
* construct the cells with the provided context.
|
|
528
553
|
*/
|
|
529
554
|
CdkCellOutlet.mostRecentCellOutlet = null;
|
|
530
|
-
CdkCellOutlet
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
];
|
|
555
|
+
CdkCellOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkCellOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
556
|
+
CdkCellOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkCellOutlet, selector: "[cdkCellOutlet]", ngImport: i0 });
|
|
557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkCellOutlet, decorators: [{
|
|
558
|
+
type: Directive,
|
|
559
|
+
args: [{ selector: '[cdkCellOutlet]' }]
|
|
560
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
536
561
|
/** Header template container that contains the cell outlet. Adds the right class and role. */
|
|
537
562
|
class CdkHeaderRow {
|
|
538
563
|
}
|
|
539
|
-
CdkHeaderRow
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
564
|
+
CdkHeaderRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkHeaderRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
565
|
+
CdkHeaderRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", 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 });
|
|
566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkHeaderRow, decorators: [{
|
|
567
|
+
type: Component,
|
|
568
|
+
args: [{
|
|
569
|
+
selector: 'cdk-header-row, tr[cdk-header-row]',
|
|
570
|
+
template: CDK_ROW_TEMPLATE,
|
|
571
|
+
host: {
|
|
572
|
+
'class': 'cdk-header-row',
|
|
573
|
+
'role': 'row',
|
|
574
|
+
},
|
|
575
|
+
// See note on CdkTable for explanation on why this uses the default change detection strategy.
|
|
576
|
+
// tslint:disable-next-line:validate-decorators
|
|
577
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
578
|
+
encapsulation: ViewEncapsulation.None,
|
|
579
|
+
}]
|
|
580
|
+
}] });
|
|
553
581
|
/** Footer template container that contains the cell outlet. Adds the right class and role. */
|
|
554
582
|
class CdkFooterRow {
|
|
555
583
|
}
|
|
556
|
-
CdkFooterRow
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
584
|
+
CdkFooterRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkFooterRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
585
|
+
CdkFooterRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", 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 });
|
|
586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkFooterRow, decorators: [{
|
|
587
|
+
type: Component,
|
|
588
|
+
args: [{
|
|
589
|
+
selector: 'cdk-footer-row, tr[cdk-footer-row]',
|
|
590
|
+
template: CDK_ROW_TEMPLATE,
|
|
591
|
+
host: {
|
|
592
|
+
'class': 'cdk-footer-row',
|
|
593
|
+
'role': 'row',
|
|
594
|
+
},
|
|
595
|
+
// See note on CdkTable for explanation on why this uses the default change detection strategy.
|
|
596
|
+
// tslint:disable-next-line:validate-decorators
|
|
597
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
598
|
+
encapsulation: ViewEncapsulation.None,
|
|
599
|
+
}]
|
|
600
|
+
}] });
|
|
570
601
|
/** Data row template container that contains the cell outlet. Adds the right class and role. */
|
|
571
602
|
class CdkRow {
|
|
572
603
|
}
|
|
573
|
-
CdkRow
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
604
|
+
CdkRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
605
|
+
CdkRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", 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 });
|
|
606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkRow, decorators: [{
|
|
607
|
+
type: Component,
|
|
608
|
+
args: [{
|
|
609
|
+
selector: 'cdk-row, tr[cdk-row]',
|
|
610
|
+
template: CDK_ROW_TEMPLATE,
|
|
611
|
+
host: {
|
|
612
|
+
'class': 'cdk-row',
|
|
613
|
+
'role': 'row',
|
|
614
|
+
},
|
|
615
|
+
// See note on CdkTable for explanation on why this uses the default change detection strategy.
|
|
616
|
+
// tslint:disable-next-line:validate-decorators
|
|
617
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
618
|
+
encapsulation: ViewEncapsulation.None,
|
|
619
|
+
}]
|
|
620
|
+
}] });
|
|
587
621
|
/** Row that can be used to display a message when no data is shown in the table. */
|
|
588
622
|
class CdkNoDataRow {
|
|
589
623
|
constructor(templateRef) {
|
|
590
624
|
this.templateRef = templateRef;
|
|
591
625
|
}
|
|
592
626
|
}
|
|
593
|
-
CdkNoDataRow
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
];
|
|
627
|
+
CdkNoDataRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkNoDataRow, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
628
|
+
CdkNoDataRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkNoDataRow, selector: "ng-template[cdkNoDataRow]", ngImport: i0 });
|
|
629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkNoDataRow, decorators: [{
|
|
630
|
+
type: Directive,
|
|
631
|
+
args: [{
|
|
632
|
+
selector: 'ng-template[cdkNoDataRow]',
|
|
633
|
+
}]
|
|
634
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
601
635
|
|
|
602
636
|
/**
|
|
603
637
|
* @license
|
|
@@ -684,8 +718,9 @@ class StickyStyler {
|
|
|
684
718
|
* column cell. If `false` cached widths will be used instead.
|
|
685
719
|
*/
|
|
686
720
|
updateStickyColumns(rows, stickyStartStates, stickyEndStates, recalculateCellWidths = true) {
|
|
687
|
-
if (!rows.length ||
|
|
688
|
-
|
|
721
|
+
if (!rows.length ||
|
|
722
|
+
!this._isBrowser ||
|
|
723
|
+
!(stickyStartStates.some(state => state) || stickyEndStates.some(state => state))) {
|
|
689
724
|
if (this._positionListener) {
|
|
690
725
|
this._positionListener.stickyColumnsUpdated({ sizes: [] });
|
|
691
726
|
this._positionListener.stickyEndColumnsUpdated({ sizes: [] });
|
|
@@ -717,19 +752,19 @@ class StickyStyler {
|
|
|
717
752
|
}
|
|
718
753
|
if (this._positionListener) {
|
|
719
754
|
this._positionListener.stickyColumnsUpdated({
|
|
720
|
-
sizes: lastStickyStart === -1
|
|
721
|
-
[]
|
|
722
|
-
cellWidths
|
|
755
|
+
sizes: lastStickyStart === -1
|
|
756
|
+
? []
|
|
757
|
+
: cellWidths
|
|
723
758
|
.slice(0, lastStickyStart + 1)
|
|
724
|
-
.map((width, index) => stickyStartStates[index] ? width : null)
|
|
759
|
+
.map((width, index) => (stickyStartStates[index] ? width : null)),
|
|
725
760
|
});
|
|
726
761
|
this._positionListener.stickyEndColumnsUpdated({
|
|
727
|
-
sizes: firstStickyEnd === -1
|
|
728
|
-
[]
|
|
729
|
-
cellWidths
|
|
762
|
+
sizes: firstStickyEnd === -1
|
|
763
|
+
? []
|
|
764
|
+
: cellWidths
|
|
730
765
|
.slice(firstStickyEnd)
|
|
731
|
-
.map((width, index) => stickyEndStates[index + firstStickyEnd] ? width : null)
|
|
732
|
-
.reverse()
|
|
766
|
+
.map((width, index) => (stickyEndStates[index + firstStickyEnd] ? width : null))
|
|
767
|
+
.reverse(),
|
|
733
768
|
});
|
|
734
769
|
}
|
|
735
770
|
});
|
|
@@ -765,8 +800,9 @@ class StickyStyler {
|
|
|
765
800
|
}
|
|
766
801
|
stickyOffsets[rowIndex] = stickyOffset;
|
|
767
802
|
const row = rows[rowIndex];
|
|
768
|
-
elementsToStick[rowIndex] = this._isNativeHtmlTable
|
|
769
|
-
Array.from(row.children)
|
|
803
|
+
elementsToStick[rowIndex] = this._isNativeHtmlTable
|
|
804
|
+
? Array.from(row.children)
|
|
805
|
+
: [row];
|
|
770
806
|
const height = row.getBoundingClientRect().height;
|
|
771
807
|
stickyOffset += height;
|
|
772
808
|
stickyCellHeights[rowIndex] = height;
|
|
@@ -787,10 +823,18 @@ class StickyStyler {
|
|
|
787
823
|
}
|
|
788
824
|
}
|
|
789
825
|
if (position === 'top') {
|
|
790
|
-
(_a = this._positionListener) === null || _a === void 0 ? void 0 : _a.stickyHeaderRowsUpdated({
|
|
826
|
+
(_a = this._positionListener) === null || _a === void 0 ? void 0 : _a.stickyHeaderRowsUpdated({
|
|
827
|
+
sizes: stickyCellHeights,
|
|
828
|
+
offsets: stickyOffsets,
|
|
829
|
+
elements: elementsToStick,
|
|
830
|
+
});
|
|
791
831
|
}
|
|
792
832
|
else {
|
|
793
|
-
(_b = this._positionListener) === null || _b === void 0 ? void 0 : _b.stickyFooterRowsUpdated({
|
|
833
|
+
(_b = this._positionListener) === null || _b === void 0 ? void 0 : _b.stickyFooterRowsUpdated({
|
|
834
|
+
sizes: stickyCellHeights,
|
|
835
|
+
offsets: stickyOffsets,
|
|
836
|
+
elements: elementsToStick,
|
|
837
|
+
});
|
|
794
838
|
}
|
|
795
839
|
});
|
|
796
840
|
}
|
|
@@ -1012,27 +1056,21 @@ function getTableTextColumnMissingNameError() {
|
|
|
1012
1056
|
/** The injection token used to specify the StickyPositioningListener. */
|
|
1013
1057
|
const STICKY_POSITIONING_LISTENER = new InjectionToken('CDK_SPL');
|
|
1014
1058
|
|
|
1015
|
-
/**
|
|
1016
|
-
* @license
|
|
1017
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1018
|
-
*
|
|
1019
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1020
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1021
|
-
*/
|
|
1022
1059
|
/**
|
|
1023
1060
|
* Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
|
|
1024
1061
|
* tables that animate rows.
|
|
1025
1062
|
*/
|
|
1026
1063
|
class CdkRecycleRows {
|
|
1027
1064
|
}
|
|
1028
|
-
CdkRecycleRows
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
]
|
|
1065
|
+
CdkRecycleRows.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkRecycleRows, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1066
|
+
CdkRecycleRows.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkRecycleRows, selector: "cdk-table[recycleRows], table[cdk-table][recycleRows]", providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });
|
|
1067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkRecycleRows, decorators: [{
|
|
1068
|
+
type: Directive,
|
|
1069
|
+
args: [{
|
|
1070
|
+
selector: 'cdk-table[recycleRows], table[cdk-table][recycleRows]',
|
|
1071
|
+
providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],
|
|
1072
|
+
}]
|
|
1073
|
+
}] });
|
|
1036
1074
|
/**
|
|
1037
1075
|
* Provides a handle for the table to grab the view container's ng-container to insert data rows.
|
|
1038
1076
|
* @docs-private
|
|
@@ -1043,13 +1081,12 @@ class DataRowOutlet {
|
|
|
1043
1081
|
this.elementRef = elementRef;
|
|
1044
1082
|
}
|
|
1045
1083
|
}
|
|
1046
|
-
DataRowOutlet
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
];
|
|
1084
|
+
DataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1085
|
+
DataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: DataRowOutlet, selector: "[rowOutlet]", ngImport: i0 });
|
|
1086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DataRowOutlet, decorators: [{
|
|
1087
|
+
type: Directive,
|
|
1088
|
+
args: [{ selector: '[rowOutlet]' }]
|
|
1089
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
1053
1090
|
/**
|
|
1054
1091
|
* Provides a handle for the table to grab the view container's ng-container to insert the header.
|
|
1055
1092
|
* @docs-private
|
|
@@ -1060,13 +1097,12 @@ class HeaderRowOutlet {
|
|
|
1060
1097
|
this.elementRef = elementRef;
|
|
1061
1098
|
}
|
|
1062
1099
|
}
|
|
1063
|
-
HeaderRowOutlet
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
];
|
|
1100
|
+
HeaderRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: HeaderRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1101
|
+
HeaderRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: HeaderRowOutlet, selector: "[headerRowOutlet]", ngImport: i0 });
|
|
1102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: HeaderRowOutlet, decorators: [{
|
|
1103
|
+
type: Directive,
|
|
1104
|
+
args: [{ selector: '[headerRowOutlet]' }]
|
|
1105
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
1070
1106
|
/**
|
|
1071
1107
|
* Provides a handle for the table to grab the view container's ng-container to insert the footer.
|
|
1072
1108
|
* @docs-private
|
|
@@ -1077,13 +1113,12 @@ class FooterRowOutlet {
|
|
|
1077
1113
|
this.elementRef = elementRef;
|
|
1078
1114
|
}
|
|
1079
1115
|
}
|
|
1080
|
-
FooterRowOutlet
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
];
|
|
1116
|
+
FooterRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FooterRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1117
|
+
FooterRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: FooterRowOutlet, selector: "[footerRowOutlet]", ngImport: i0 });
|
|
1118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FooterRowOutlet, decorators: [{
|
|
1119
|
+
type: Directive,
|
|
1120
|
+
args: [{ selector: '[footerRowOutlet]' }]
|
|
1121
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
1087
1122
|
/**
|
|
1088
1123
|
* Provides a handle for the table to grab the view
|
|
1089
1124
|
* container's ng-container to insert the no data row.
|
|
@@ -1095,13 +1130,12 @@ class NoDataRowOutlet {
|
|
|
1095
1130
|
this.elementRef = elementRef;
|
|
1096
1131
|
}
|
|
1097
1132
|
}
|
|
1098
|
-
NoDataRowOutlet
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
];
|
|
1133
|
+
NoDataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: NoDataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1134
|
+
NoDataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: NoDataRowOutlet, selector: "[noDataRowOutlet]", ngImport: i0 });
|
|
1135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: NoDataRowOutlet, decorators: [{
|
|
1136
|
+
type: Directive,
|
|
1137
|
+
args: [{ selector: '[noDataRowOutlet]' }]
|
|
1138
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });
|
|
1105
1139
|
/**
|
|
1106
1140
|
* The table template that can be used by the mat-table. Should not be used outside of the
|
|
1107
1141
|
* material library.
|
|
@@ -1241,7 +1275,10 @@ class CdkTable {
|
|
|
1241
1275
|
*
|
|
1242
1276
|
* @docs-private
|
|
1243
1277
|
*/
|
|
1244
|
-
this.viewChange = new BehaviorSubject({
|
|
1278
|
+
this.viewChange = new BehaviorSubject({
|
|
1279
|
+
start: 0,
|
|
1280
|
+
end: Number.MAX_VALUE,
|
|
1281
|
+
});
|
|
1245
1282
|
if (!role) {
|
|
1246
1283
|
this._elementRef.nativeElement.setAttribute('role', 'table');
|
|
1247
1284
|
}
|
|
@@ -1333,7 +1370,10 @@ class CdkTable {
|
|
|
1333
1370
|
this._dataDiffer = this._differs.find([]).create((_i, dataRow) => {
|
|
1334
1371
|
return this.trackBy ? this.trackBy(dataRow.dataIndex, dataRow.data) : dataRow;
|
|
1335
1372
|
});
|
|
1336
|
-
this._viewportRuler
|
|
1373
|
+
this._viewportRuler
|
|
1374
|
+
.change()
|
|
1375
|
+
.pipe(takeUntil(this._onDestroy))
|
|
1376
|
+
.subscribe(() => {
|
|
1337
1377
|
this._forceRecalculateCellWidths = true;
|
|
1338
1378
|
});
|
|
1339
1379
|
}
|
|
@@ -1342,7 +1382,9 @@ class CdkTable {
|
|
|
1342
1382
|
this._cacheRowDefs();
|
|
1343
1383
|
this._cacheColumnDefs();
|
|
1344
1384
|
// Make sure that the user has at least added header, footer, or data row def.
|
|
1345
|
-
if (!this._headerRowDefs.length &&
|
|
1385
|
+
if (!this._headerRowDefs.length &&
|
|
1386
|
+
!this._footerRowDefs.length &&
|
|
1387
|
+
!this._rowDefs.length &&
|
|
1346
1388
|
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1347
1389
|
throw getTableMissingRowDefsError();
|
|
1348
1390
|
}
|
|
@@ -1405,7 +1447,7 @@ class CdkTable {
|
|
|
1405
1447
|
return;
|
|
1406
1448
|
}
|
|
1407
1449
|
const viewContainer = this._rowOutlet.viewContainer;
|
|
1408
|
-
this._viewRepeater.applyChanges(changes, viewContainer, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record.item, currentIndex),
|
|
1450
|
+
this._viewRepeater.applyChanges(changes, viewContainer, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record.item, currentIndex), record => record.item.data, (change) => {
|
|
1409
1451
|
if (change.operation === 1 /* INSERTED */ && change.context) {
|
|
1410
1452
|
this._renderCellTemplateForItem(change.record.item.rowDef, change.context);
|
|
1411
1453
|
}
|
|
@@ -1524,8 +1566,7 @@ class CdkTable {
|
|
|
1524
1566
|
// In a table using a fixed layout, row content won't affect column width, so sticky styles
|
|
1525
1567
|
// don't need to be cleared unless either the sticky column config changes or one of the row
|
|
1526
1568
|
// defs change.
|
|
1527
|
-
if ((this._isNativeHtmlTable && !this._fixedLayout)
|
|
1528
|
-
|| this._stickyColumnStylesNeedReset) {
|
|
1569
|
+
if ((this._isNativeHtmlTable && !this._fixedLayout) || this._stickyColumnStylesNeedReset) {
|
|
1529
1570
|
// Clear the left and right positioning from all columns in the table across all rows since
|
|
1530
1571
|
// sticky columns span across all table sections (header, data, footer)
|
|
1531
1572
|
this._stickyStyler.clearStickyPositioning([...headerRows, ...dataRows, ...footerRows], ['left', 'right']);
|
|
@@ -1594,7 +1635,7 @@ class CdkTable {
|
|
|
1594
1635
|
_getRenderRowsForData(data, dataIndex, cache) {
|
|
1595
1636
|
const rowDefs = this._getRowDefs(data, dataIndex);
|
|
1596
1637
|
return rowDefs.map(rowDef => {
|
|
1597
|
-
const cachedRenderRows =
|
|
1638
|
+
const cachedRenderRows = cache && cache.has(rowDef) ? cache.get(rowDef) : [];
|
|
1598
1639
|
if (cachedRenderRows.length) {
|
|
1599
1640
|
const dataRow = cachedRenderRows.shift();
|
|
1600
1641
|
dataRow.dataIndex = dataIndex;
|
|
@@ -1624,7 +1665,8 @@ class CdkTable {
|
|
|
1624
1665
|
this._rowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs), this._customRowDefs);
|
|
1625
1666
|
// After all row definitions are determined, find the row definition to be considered default.
|
|
1626
1667
|
const defaultRowDefs = this._rowDefs.filter(def => !def.when);
|
|
1627
|
-
if (!this.multiTemplateDataRows &&
|
|
1668
|
+
if (!this.multiTemplateDataRows &&
|
|
1669
|
+
defaultRowDefs.length > 1 &&
|
|
1628
1670
|
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1629
1671
|
throw getTableMultipleDefaultRowDefsError();
|
|
1630
1672
|
}
|
|
@@ -1695,7 +1737,8 @@ class CdkTable {
|
|
|
1695
1737
|
if (dataStream === undefined && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1696
1738
|
throw getTableUnknownDataSourceError();
|
|
1697
1739
|
}
|
|
1698
|
-
this._renderChangeSubscription = dataStream
|
|
1740
|
+
this._renderChangeSubscription = dataStream
|
|
1741
|
+
.pipe(takeUntil(this._onDestroy))
|
|
1699
1742
|
.subscribe(data => {
|
|
1700
1743
|
this._data = data || [];
|
|
1701
1744
|
this.renderRows();
|
|
@@ -1920,64 +1963,91 @@ class CdkTable {
|
|
|
1920
1963
|
}
|
|
1921
1964
|
}
|
|
1922
1965
|
}
|
|
1923
|
-
CdkTable
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
]
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1966
|
+
CdkTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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 });
|
|
1967
|
+
CdkTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", 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: [
|
|
1968
|
+
{ provide: CDK_TABLE, useExisting: CdkTable },
|
|
1969
|
+
{ provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },
|
|
1970
|
+
{ provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },
|
|
1971
|
+
// Prevent nested tables from seeing this table's StickyPositioningListener.
|
|
1972
|
+
{ provide: STICKY_POSITIONING_LISTENER, useValue: null },
|
|
1973
|
+
], 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 });
|
|
1974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTable, decorators: [{
|
|
1975
|
+
type: Component,
|
|
1976
|
+
args: [{ selector: 'cdk-table, table[cdk-table]', exportAs: 'cdkTable', template: CDK_TABLE_TEMPLATE, host: {
|
|
1977
|
+
'class': 'cdk-table',
|
|
1978
|
+
'[class.cdk-table-fixed-layout]': 'fixedLayout',
|
|
1979
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, providers: [
|
|
1980
|
+
{ provide: CDK_TABLE, useExisting: CdkTable },
|
|
1981
|
+
{ provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },
|
|
1982
|
+
{ provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },
|
|
1983
|
+
// Prevent nested tables from seeing this table's StickyPositioningListener.
|
|
1984
|
+
{ provide: STICKY_POSITIONING_LISTENER, useValue: null },
|
|
1985
|
+
], styles: [".cdk-table-fixed-layout{table-layout:fixed}\n"] }]
|
|
1986
|
+
}], ctorParameters: function () {
|
|
1987
|
+
return [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
1988
|
+
type: Attribute,
|
|
1989
|
+
args: ['role']
|
|
1990
|
+
}] }, { type: i1.Directionality, decorators: [{
|
|
1991
|
+
type: Optional
|
|
1992
|
+
}] }, { type: undefined, decorators: [{
|
|
1993
|
+
type: Inject,
|
|
1994
|
+
args: [DOCUMENT]
|
|
1995
|
+
}] }, { type: i2.Platform }, { type: undefined, decorators: [{
|
|
1996
|
+
type: Inject,
|
|
1997
|
+
args: [_VIEW_REPEATER_STRATEGY]
|
|
1998
|
+
}] }, { type: _CoalescedStyleScheduler, decorators: [{
|
|
1999
|
+
type: Inject,
|
|
2000
|
+
args: [_COALESCED_STYLE_SCHEDULER]
|
|
2001
|
+
}] }, { type: i3.ViewportRuler }, { type: undefined, decorators: [{
|
|
2002
|
+
type: Optional
|
|
2003
|
+
}, {
|
|
2004
|
+
type: SkipSelf
|
|
2005
|
+
}, {
|
|
2006
|
+
type: Inject,
|
|
2007
|
+
args: [STICKY_POSITIONING_LISTENER]
|
|
2008
|
+
}] }];
|
|
2009
|
+
}, propDecorators: { trackBy: [{
|
|
2010
|
+
type: Input
|
|
2011
|
+
}], dataSource: [{
|
|
2012
|
+
type: Input
|
|
2013
|
+
}], multiTemplateDataRows: [{
|
|
2014
|
+
type: Input
|
|
2015
|
+
}], fixedLayout: [{
|
|
2016
|
+
type: Input
|
|
2017
|
+
}], contentChanged: [{
|
|
2018
|
+
type: Output
|
|
2019
|
+
}], _rowOutlet: [{
|
|
2020
|
+
type: ViewChild,
|
|
2021
|
+
args: [DataRowOutlet, { static: true }]
|
|
2022
|
+
}], _headerRowOutlet: [{
|
|
2023
|
+
type: ViewChild,
|
|
2024
|
+
args: [HeaderRowOutlet, { static: true }]
|
|
2025
|
+
}], _footerRowOutlet: [{
|
|
2026
|
+
type: ViewChild,
|
|
2027
|
+
args: [FooterRowOutlet, { static: true }]
|
|
2028
|
+
}], _noDataRowOutlet: [{
|
|
2029
|
+
type: ViewChild,
|
|
2030
|
+
args: [NoDataRowOutlet, { static: true }]
|
|
2031
|
+
}], _contentColumnDefs: [{
|
|
2032
|
+
type: ContentChildren,
|
|
2033
|
+
args: [CdkColumnDef, { descendants: true }]
|
|
2034
|
+
}], _contentRowDefs: [{
|
|
2035
|
+
type: ContentChildren,
|
|
2036
|
+
args: [CdkRowDef, { descendants: true }]
|
|
2037
|
+
}], _contentHeaderRowDefs: [{
|
|
2038
|
+
type: ContentChildren,
|
|
2039
|
+
args: [CdkHeaderRowDef, {
|
|
2040
|
+
descendants: true,
|
|
2041
|
+
}]
|
|
2042
|
+
}], _contentFooterRowDefs: [{
|
|
2043
|
+
type: ContentChildren,
|
|
2044
|
+
args: [CdkFooterRowDef, {
|
|
2045
|
+
descendants: true,
|
|
2046
|
+
}]
|
|
2047
|
+
}], _noDataRow: [{
|
|
2048
|
+
type: ContentChild,
|
|
2049
|
+
args: [CdkNoDataRow]
|
|
2050
|
+
}] } });
|
|
1981
2051
|
/** Utility function that gets a merged list of the entries in an array and values of a Set. */
|
|
1982
2052
|
function mergeArrayAndSet(array, set) {
|
|
1983
2053
|
return array.concat(Array.from(set));
|
|
@@ -2068,10 +2138,22 @@ class CdkTextColumn {
|
|
|
2068
2138
|
}
|
|
2069
2139
|
}
|
|
2070
2140
|
}
|
|
2071
|
-
CdkTextColumn
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2141
|
+
CdkTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTextColumn, deps: [{ token: CdkTable, optional: true }, { token: TEXT_COLUMN_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2142
|
+
CdkTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", 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: `
|
|
2143
|
+
<ng-container cdkColumnDef>
|
|
2144
|
+
<th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">
|
|
2145
|
+
{{headerText}}
|
|
2146
|
+
</th>
|
|
2147
|
+
<td cdk-cell *cdkCellDef="let data" [style.text-align]="justify">
|
|
2148
|
+
{{dataAccessor(data, name)}}
|
|
2149
|
+
</td>
|
|
2150
|
+
</ng-container>
|
|
2151
|
+
`, 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 });
|
|
2152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTextColumn, decorators: [{
|
|
2153
|
+
type: Component,
|
|
2154
|
+
args: [{
|
|
2155
|
+
selector: 'cdk-text-column',
|
|
2156
|
+
template: `
|
|
2075
2157
|
<ng-container cdkColumnDef>
|
|
2076
2158
|
<th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">
|
|
2077
2159
|
{{headerText}}
|
|
@@ -2081,29 +2163,42 @@ CdkTextColumn.decorators = [
|
|
|
2081
2163
|
</td>
|
|
2082
2164
|
</ng-container>
|
|
2083
2165
|
`,
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
]
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
}
|
|
2166
|
+
encapsulation: ViewEncapsulation.None,
|
|
2167
|
+
// Change detection is intentionally not set to OnPush. This component's template will be provided
|
|
2168
|
+
// to the table to be inserted into its view. This is problematic when change detection runs since
|
|
2169
|
+
// the bindings in this template will be evaluated _after_ the table's view is evaluated, which
|
|
2170
|
+
// mean's the template in the table's view will not have the updated value (and in fact will cause
|
|
2171
|
+
// an ExpressionChangedAfterItHasBeenCheckedError).
|
|
2172
|
+
// tslint:disable-next-line:validate-decorators
|
|
2173
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
2174
|
+
}]
|
|
2175
|
+
}], ctorParameters: function () {
|
|
2176
|
+
return [{ type: CdkTable, decorators: [{
|
|
2177
|
+
type: Optional
|
|
2178
|
+
}] }, { type: undefined, decorators: [{
|
|
2179
|
+
type: Optional
|
|
2180
|
+
}, {
|
|
2181
|
+
type: Inject,
|
|
2182
|
+
args: [TEXT_COLUMN_OPTIONS]
|
|
2183
|
+
}] }];
|
|
2184
|
+
}, propDecorators: { name: [{
|
|
2185
|
+
type: Input
|
|
2186
|
+
}], headerText: [{
|
|
2187
|
+
type: Input
|
|
2188
|
+
}], dataAccessor: [{
|
|
2189
|
+
type: Input
|
|
2190
|
+
}], justify: [{
|
|
2191
|
+
type: Input
|
|
2192
|
+
}], columnDef: [{
|
|
2193
|
+
type: ViewChild,
|
|
2194
|
+
args: [CdkColumnDef, { static: true }]
|
|
2195
|
+
}], cell: [{
|
|
2196
|
+
type: ViewChild,
|
|
2197
|
+
args: [CdkCellDef, { static: true }]
|
|
2198
|
+
}], headerCell: [{
|
|
2199
|
+
type: ViewChild,
|
|
2200
|
+
args: [CdkHeaderCellDef, { static: true }]
|
|
2201
|
+
}] } });
|
|
2107
2202
|
|
|
2108
2203
|
/**
|
|
2109
2204
|
* @license
|
|
@@ -2138,13 +2233,59 @@ const EXPORTED_DECLARATIONS = [
|
|
|
2138
2233
|
];
|
|
2139
2234
|
class CdkTableModule {
|
|
2140
2235
|
}
|
|
2141
|
-
CdkTableModule
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2236
|
+
CdkTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2237
|
+
CdkTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTableModule, declarations: [CdkTable,
|
|
2238
|
+
CdkRowDef,
|
|
2239
|
+
CdkCellDef,
|
|
2240
|
+
CdkCellOutlet,
|
|
2241
|
+
CdkHeaderCellDef,
|
|
2242
|
+
CdkFooterCellDef,
|
|
2243
|
+
CdkColumnDef,
|
|
2244
|
+
CdkCell,
|
|
2245
|
+
CdkRow,
|
|
2246
|
+
CdkHeaderCell,
|
|
2247
|
+
CdkFooterCell,
|
|
2248
|
+
CdkHeaderRow,
|
|
2249
|
+
CdkHeaderRowDef,
|
|
2250
|
+
CdkFooterRow,
|
|
2251
|
+
CdkFooterRowDef,
|
|
2252
|
+
DataRowOutlet,
|
|
2253
|
+
HeaderRowOutlet,
|
|
2254
|
+
FooterRowOutlet,
|
|
2255
|
+
CdkTextColumn,
|
|
2256
|
+
CdkNoDataRow,
|
|
2257
|
+
CdkRecycleRows,
|
|
2258
|
+
NoDataRowOutlet], imports: [ScrollingModule], exports: [CdkTable,
|
|
2259
|
+
CdkRowDef,
|
|
2260
|
+
CdkCellDef,
|
|
2261
|
+
CdkCellOutlet,
|
|
2262
|
+
CdkHeaderCellDef,
|
|
2263
|
+
CdkFooterCellDef,
|
|
2264
|
+
CdkColumnDef,
|
|
2265
|
+
CdkCell,
|
|
2266
|
+
CdkRow,
|
|
2267
|
+
CdkHeaderCell,
|
|
2268
|
+
CdkFooterCell,
|
|
2269
|
+
CdkHeaderRow,
|
|
2270
|
+
CdkHeaderRowDef,
|
|
2271
|
+
CdkFooterRow,
|
|
2272
|
+
CdkFooterRowDef,
|
|
2273
|
+
DataRowOutlet,
|
|
2274
|
+
HeaderRowOutlet,
|
|
2275
|
+
FooterRowOutlet,
|
|
2276
|
+
CdkTextColumn,
|
|
2277
|
+
CdkNoDataRow,
|
|
2278
|
+
CdkRecycleRows,
|
|
2279
|
+
NoDataRowOutlet] });
|
|
2280
|
+
CdkTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTableModule, imports: [[ScrollingModule]] });
|
|
2281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTableModule, decorators: [{
|
|
2282
|
+
type: NgModule,
|
|
2283
|
+
args: [{
|
|
2284
|
+
exports: EXPORTED_DECLARATIONS,
|
|
2285
|
+
declarations: EXPORTED_DECLARATIONS,
|
|
2286
|
+
imports: [ScrollingModule],
|
|
2287
|
+
}]
|
|
2288
|
+
}] });
|
|
2148
2289
|
|
|
2149
2290
|
/**
|
|
2150
2291
|
* @license
|
|
@@ -2159,4 +2300,4 @@ CdkTableModule.decorators = [
|
|
|
2159
2300
|
*/
|
|
2160
2301
|
|
|
2161
2302
|
export { BaseCdkCell, BaseRowDef, CDK_ROW_TEMPLATE, CDK_TABLE, CDK_TABLE_TEMPLATE, CdkCell, CdkCellDef, CdkCellOutlet, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkFooterRow, CdkFooterRowDef, CdkHeaderCell, CdkHeaderCellDef, CdkHeaderRow, CdkHeaderRowDef, CdkNoDataRow, CdkRecycleRows, CdkRow, CdkRowDef, CdkTable, CdkTableModule, CdkTextColumn, DataRowOutlet, FooterRowOutlet, HeaderRowOutlet, NoDataRowOutlet, STICKY_DIRECTIONS, STICKY_POSITIONING_LISTENER, StickyStyler, TEXT_COLUMN_OPTIONS, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, _Schedule, mixinHasStickyInput };
|
|
2162
|
-
//# sourceMappingURL=table.
|
|
2303
|
+
//# sourceMappingURL=table.mjs.map
|