@kato-lee/cdk 14.2.7
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/LICENSE +21 -0
- package/README.md +8 -0
- package/_index.scss +8 -0
- package/a11y/_index.import.scss +2 -0
- package/a11y/_index.scss +102 -0
- package/a11y/index.d.ts +1212 -0
- package/a11y-prebuilt.css +1 -0
- package/accordion/index.d.ts +140 -0
- package/bidi/index.d.ts +80 -0
- package/clipboard/index.d.ts +115 -0
- package/coercion/index.d.ts +67 -0
- package/collections/index.d.ts +374 -0
- package/dialog/index.d.ts +469 -0
- package/drag-drop/index.d.ts +1614 -0
- package/esm2020/a11y/a11y-module.mjs +32 -0
- package/esm2020/a11y/a11y_public_index.mjs +5 -0
- package/esm2020/a11y/aria-describer/aria-describer.mjs +232 -0
- package/esm2020/a11y/aria-describer/aria-reference.mjs +44 -0
- package/esm2020/a11y/fake-event-detection.mjs +31 -0
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +451 -0
- package/esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs +9 -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 +402 -0
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +109 -0
- package/esm2020/a11y/index.mjs +9 -0
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
- package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +20 -0
- package/esm2020/a11y/key-manager/focus-key-manager.mjs +29 -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 +178 -0
- package/esm2020/a11y/public-api.mjs +26 -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/accordion_public_index.mjs +5 -0
- package/esm2020/accordion/index.mjs +9 -0
- package/esm2020/accordion/public-api.mjs +11 -0
- package/esm2020/bidi/bidi-module.mjs +23 -0
- package/esm2020/bidi/bidi_public_index.mjs +5 -0
- package/esm2020/bidi/dir-document-token.mjs +33 -0
- package/esm2020/bidi/dir.mjs +69 -0
- package/esm2020/bidi/directionality.mjs +52 -0
- package/esm2020/bidi/index.mjs +9 -0
- package/esm2020/bidi/public-api.mjs +12 -0
- package/esm2020/clipboard/clipboard-module.mjs +23 -0
- package/esm2020/clipboard/clipboard.mjs +53 -0
- package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
- package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
- package/esm2020/clipboard/index.mjs +9 -0
- package/esm2020/clipboard/pending-copy.mjs +69 -0
- package/esm2020/clipboard/public-api.mjs +12 -0
- package/esm2020/coercion/array.mjs +11 -0
- package/esm2020/coercion/boolean-property.mjs +12 -0
- package/esm2020/coercion/css-pixel-value.mjs +15 -0
- package/esm2020/coercion/element.mjs +16 -0
- package/esm2020/coercion/index.mjs +9 -0
- package/esm2020/coercion/number-property.mjs +21 -0
- package/esm2020/coercion/public-api.mjs +14 -0
- package/esm2020/coercion/string-array.mjs +38 -0
- package/esm2020/collections/array-data-source.mjs +21 -0
- package/esm2020/collections/collection-viewer.mjs +9 -0
- package/esm2020/collections/collections_public_index.mjs +5 -0
- package/esm2020/collections/data-source.mjs +19 -0
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
- package/esm2020/collections/index.mjs +9 -0
- package/esm2020/collections/public-api.mjs +17 -0
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
- package/esm2020/collections/selection-model.mjs +216 -0
- 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/dialog/dialog-config.mjs +63 -0
- package/esm2020/dialog/dialog-container.mjs +278 -0
- package/esm2020/dialog/dialog-injectors.mjs +26 -0
- package/esm2020/dialog/dialog-module.mjs +42 -0
- package/esm2020/dialog/dialog-ref.mjs +76 -0
- package/esm2020/dialog/dialog.mjs +301 -0
- package/esm2020/dialog/dialog_public_index.mjs +5 -0
- package/esm2020/dialog/index.mjs +9 -0
- package/esm2020/dialog/public-api.mjs +14 -0
- package/esm2020/drag-drop/directives/assertions.mjs +18 -0
- package/esm2020/drag-drop/directives/config.mjs +14 -0
- 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 +487 -0
- package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
- package/esm2020/drag-drop/directives/drop-list.mjs +345 -0
- package/esm2020/drag-drop/dom/client-rect.mjs +64 -0
- package/esm2020/drag-drop/dom/clone-node.mjs +65 -0
- package/esm2020/drag-drop/dom/parent-position-tracker.mjs +76 -0
- package/esm2020/drag-drop/dom/styling.mjs +69 -0
- package/esm2020/drag-drop/dom/transition-duration.mjs +36 -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-drop_public_index.mjs +5 -0
- package/esm2020/drag-drop/drag-events.mjs +9 -0
- package/esm2020/drag-drop/drag-parent.mjs +16 -0
- package/esm2020/drag-drop/drag-ref.mjs +1146 -0
- package/esm2020/drag-drop/drag-utils.mjs +60 -0
- package/esm2020/drag-drop/drop-list-ref.mjs +577 -0
- package/esm2020/drag-drop/index.mjs +9 -0
- package/esm2020/drag-drop/public-api.mjs +23 -0
- package/esm2020/drag-drop/sorting/drop-list-sort-strategy.mjs +9 -0
- package/esm2020/drag-drop/sorting/single-axis-sort-strategy.mjs +341 -0
- package/esm2020/index.mjs +9 -0
- package/esm2020/keycodes/index.mjs +9 -0
- package/esm2020/keycodes/keycodes.mjs +127 -0
- package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
- package/esm2020/keycodes/modifiers.mjs +18 -0
- package/esm2020/keycodes/public-api.mjs +10 -0
- package/esm2020/layout/breakpoints-observer.mjs +105 -0
- package/esm2020/layout/breakpoints.mjs +29 -0
- package/esm2020/layout/index.mjs +9 -0
- package/esm2020/layout/layout-module.mjs +19 -0
- package/esm2020/layout/layout_public_index.mjs +5 -0
- package/esm2020/layout/media-matcher.mjs +85 -0
- package/esm2020/layout/public-api.mjs +12 -0
- package/esm2020/listbox/index.mjs +9 -0
- package/esm2020/listbox/listbox-module.mjs +24 -0
- package/esm2020/listbox/listbox.mjs +872 -0
- package/esm2020/listbox/listbox_public_index.mjs +5 -0
- package/esm2020/listbox/public-api.mjs +10 -0
- package/esm2020/menu/context-menu-trigger.mjs +212 -0
- package/esm2020/menu/index.mjs +9 -0
- package/esm2020/menu/menu-aim.mjs +203 -0
- package/esm2020/menu/menu-bar.mjs +133 -0
- package/esm2020/menu/menu-base.mjs +187 -0
- package/esm2020/menu/menu-errors.mjs +22 -0
- package/esm2020/menu/menu-group.mjs +30 -0
- package/esm2020/menu/menu-interface.mjs +11 -0
- package/esm2020/menu/menu-item-checkbox.mjs +49 -0
- package/esm2020/menu/menu-item-radio.mjs +71 -0
- package/esm2020/menu/menu-item-selectable.mjs +42 -0
- package/esm2020/menu/menu-item.mjs +267 -0
- package/esm2020/menu/menu-module.mjs +62 -0
- package/esm2020/menu/menu-stack.mjs +156 -0
- package/esm2020/menu/menu-trigger-base.mjs +107 -0
- package/esm2020/menu/menu-trigger.mjs +291 -0
- package/esm2020/menu/menu.mjs +134 -0
- package/esm2020/menu/menu_public_index.mjs +5 -0
- package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
- package/esm2020/menu/public-api.mjs +24 -0
- package/esm2020/observers/index.mjs +9 -0
- package/esm2020/observers/observe-content.mjs +187 -0
- package/esm2020/observers/observers_public_index.mjs +5 -0
- package/esm2020/observers/public-api.mjs +9 -0
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
- package/esm2020/overlay/dispatchers/index.mjs +10 -0
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +81 -0
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +138 -0
- package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
- package/esm2020/overlay/index.mjs +9 -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 +427 -0
- package/esm2020/overlay/overlay-reference.mjs +9 -0
- package/esm2020/overlay/overlay.mjs +125 -0
- package/esm2020/overlay/overlay_public_index.mjs +5 -0
- package/esm2020/overlay/position/connected-position.mjs +88 -0
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +985 -0
- package/esm2020/overlay/position/global-position-strategy.mjs +237 -0
- package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
- package/esm2020/overlay/position/position-strategy.mjs +9 -0
- package/esm2020/overlay/position/scroll-clip.mjs +40 -0
- package/esm2020/overlay/public-api.mjs +22 -0
- package/esm2020/overlay/scroll/block-scroll-strategy.mjs +80 -0
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
- package/esm2020/overlay/scroll/index.mjs +14 -0
- package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +17 -0
- package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +61 -0
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
- package/esm2020/overlay/scroll/scroll-strategy.mjs +14 -0
- package/esm2020/platform/features/input-types.mjs +59 -0
- package/esm2020/platform/features/passive-listeners.mjs +36 -0
- package/esm2020/platform/features/scrolling.mjs +85 -0
- package/esm2020/platform/features/shadow-dom.mjs +54 -0
- package/esm2020/platform/features/test-environment.mjs +24 -0
- package/esm2020/platform/index.mjs +9 -0
- package/esm2020/platform/platform-module.mjs +19 -0
- package/esm2020/platform/platform.mjs +85 -0
- package/esm2020/platform/platform_public_index.mjs +5 -0
- package/esm2020/platform/public-api.mjs +15 -0
- package/esm2020/portal/dom-portal-outlet.mjs +158 -0
- package/esm2020/portal/index.mjs +9 -0
- package/esm2020/portal/portal-directives.mjs +246 -0
- package/esm2020/portal/portal-errors.mjs +51 -0
- package/esm2020/portal/portal-injector.mjs +28 -0
- package/esm2020/portal/portal.mjs +188 -0
- package/esm2020/portal/portal_public_index.mjs +5 -0
- package/esm2020/portal/public-api.mjs +12 -0
- package/esm2020/public-api.mjs +9 -0
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
- package/esm2020/scrolling/index.mjs +9 -0
- package/esm2020/scrolling/public-api.mjs +20 -0
- package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
- package/esm2020/scrolling/scrollable.mjs +176 -0
- package/esm2020/scrolling/scrolling-module.mjs +67 -0
- package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
- package/esm2020/scrolling/viewport-ruler.mjs +146 -0
- package/esm2020/scrolling/virtual-for-of.mjs +298 -0
- package/esm2020/scrolling/virtual-scroll-repeater.mjs +9 -0
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +437 -0
- package/esm2020/scrolling/virtual-scrollable-element.mjs +41 -0
- package/esm2020/scrolling/virtual-scrollable-window.mjs +40 -0
- package/esm2020/scrolling/virtual-scrollable.mjs +40 -0
- package/esm2020/stepper/index.mjs +9 -0
- package/esm2020/stepper/public-api.mjs +13 -0
- package/esm2020/stepper/step-header.mjs +30 -0
- package/esm2020/stepper/step-label.mjs +23 -0
- package/esm2020/stepper/stepper-button.mjs +56 -0
- package/esm2020/stepper/stepper-module.mjs +40 -0
- package/esm2020/stepper/stepper.mjs +458 -0
- package/esm2020/stepper/stepper_public_index.mjs +5 -0
- package/esm2020/table/can-stick.mjs +44 -0
- package/esm2020/table/cell.mjs +217 -0
- package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
- package/esm2020/table/index.mjs +9 -0
- package/esm2020/table/public-api.mjs +20 -0
- package/esm2020/table/row.mjs +262 -0
- package/esm2020/table/sticky-position-listener.mjs +11 -0
- package/esm2020/table/sticky-styler.mjs +345 -0
- package/esm2020/table/table-errors.mjs +67 -0
- package/esm2020/table/table-module.mjs +94 -0
- package/esm2020/table/table.mjs +1065 -0
- package/esm2020/table/table_public_index.mjs +5 -0
- package/esm2020/table/text-column.mjs +153 -0
- package/esm2020/table/tokens.mjs +16 -0
- package/esm2020/text-field/autofill.mjs +113 -0
- package/esm2020/text-field/autosize.mjs +309 -0
- package/esm2020/text-field/index.mjs +9 -0
- package/esm2020/text-field/public-api.mjs +11 -0
- package/esm2020/text-field/text-field-module.mjs +24 -0
- package/esm2020/text-field/text-field_public_index.mjs +5 -0
- package/esm2020/tree/control/base-tree-control.mjs +57 -0
- package/esm2020/tree/control/flat-tree-control.mjs +51 -0
- package/esm2020/tree/control/nested-tree-control.mjs +58 -0
- package/esm2020/tree/control/tree-control.mjs +2 -0
- package/esm2020/tree/index.mjs +9 -0
- package/esm2020/tree/nested-node.mjs +112 -0
- package/esm2020/tree/node.mjs +35 -0
- package/esm2020/tree/outlet.mjs +39 -0
- package/esm2020/tree/padding.mjs +131 -0
- package/esm2020/tree/public-api.mjs +20 -0
- package/esm2020/tree/toggle.mjs +50 -0
- package/esm2020/tree/tree-errors.mjs +43 -0
- package/esm2020/tree/tree-module.mjs +49 -0
- package/esm2020/tree/tree.mjs +347 -0
- package/esm2020/tree/tree_public_index.mjs +5 -0
- package/esm2020/version.mjs +11 -0
- package/fesm2015/a11y.mjs +2473 -0
- package/fesm2015/a11y.mjs.map +1 -0
- package/fesm2015/accordion.mjs +414 -0
- package/fesm2015/accordion.mjs.map +1 -0
- package/fesm2015/bidi.mjs +194 -0
- package/fesm2015/bidi.mjs.map +1 -0
- package/fesm2015/cdk.mjs +30 -0
- package/fesm2015/cdk.mjs.map +1 -0
- package/fesm2015/clipboard.mjs +263 -0
- package/fesm2015/clipboard.mjs.map +1 -0
- package/fesm2015/coercion.mjs +132 -0
- package/fesm2015/coercion.mjs.map +1 -0
- package/fesm2015/collections.mjs +519 -0
- package/fesm2015/collections.mjs.map +1 -0
- package/fesm2015/dialog.mjs +1050 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +3812 -0
- package/fesm2015/drag-drop.mjs.map +1 -0
- package/fesm2015/keycodes.mjs +167 -0
- package/fesm2015/keycodes.mjs.map +1 -0
- package/fesm2015/layout.mjs +337 -0
- package/fesm2015/layout.mjs.map +1 -0
- package/fesm2015/listbox.mjs +1200 -0
- package/fesm2015/listbox.mjs.map +1 -0
- package/fesm2015/menu.mjs +2719 -0
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/observers.mjs +326 -0
- package/fesm2015/observers.mjs.map +1 -0
- package/fesm2015/overlay.mjs +3137 -0
- package/fesm2015/overlay.mjs.map +1 -0
- package/fesm2015/platform.mjs +385 -0
- package/fesm2015/platform.mjs.map +1 -0
- package/fesm2015/portal.mjs +691 -0
- package/fesm2015/portal.mjs.map +1 -0
- package/fesm2015/scrolling.mjs +1558 -0
- package/fesm2015/scrolling.mjs.map +1 -0
- package/fesm2015/stepper.mjs +989 -0
- package/fesm2015/stepper.mjs.map +1 -0
- package/fesm2015/table.mjs +2356 -0
- package/fesm2015/table.mjs.map +1 -0
- package/fesm2015/testing.mjs +833 -0
- package/fesm2015/testing.mjs.map +1 -0
- package/fesm2015/text-field.mjs +461 -0
- package/fesm2015/text-field.mjs.map +1 -0
- package/fesm2015/tree.mjs +1303 -0
- package/fesm2015/tree.mjs.map +1 -0
- package/fesm2020/a11y.mjs +2476 -0
- package/fesm2020/a11y.mjs.map +1 -0
- package/fesm2020/accordion.mjs +414 -0
- package/fesm2020/accordion.mjs.map +1 -0
- package/fesm2020/bidi.mjs +192 -0
- package/fesm2020/bidi.mjs.map +1 -0
- package/fesm2020/cdk.mjs +30 -0
- package/fesm2020/cdk.mjs.map +1 -0
- package/fesm2020/clipboard.mjs +259 -0
- package/fesm2020/clipboard.mjs.map +1 -0
- package/fesm2020/coercion.mjs +132 -0
- package/fesm2020/coercion.mjs.map +1 -0
- package/fesm2020/collections.mjs +535 -0
- package/fesm2020/collections.mjs.map +1 -0
- package/fesm2020/dialog.mjs +787 -0
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/drag-drop.mjs +3808 -0
- package/fesm2020/drag-drop.mjs.map +1 -0
- package/fesm2020/keycodes.mjs +167 -0
- package/fesm2020/keycodes.mjs.map +1 -0
- package/fesm2020/layout.mjs +337 -0
- package/fesm2020/layout.mjs.map +1 -0
- package/fesm2020/listbox.mjs +1164 -0
- package/fesm2020/listbox.mjs.map +1 -0
- package/fesm2020/menu.mjs +2615 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/observers.mjs +325 -0
- package/fesm2020/observers.mjs.map +1 -0
- package/fesm2020/overlay.mjs +3145 -0
- package/fesm2020/overlay.mjs.map +1 -0
- package/fesm2020/platform.mjs +383 -0
- package/fesm2020/platform.mjs.map +1 -0
- package/fesm2020/portal.mjs +689 -0
- package/fesm2020/portal.mjs.map +1 -0
- package/fesm2020/scrolling.mjs +1591 -0
- package/fesm2020/scrolling.mjs.map +1 -0
- package/fesm2020/stepper.mjs +985 -0
- package/fesm2020/stepper.mjs.map +1 -0
- package/fesm2020/table.mjs +2348 -0
- package/fesm2020/table.mjs.map +1 -0
- package/fesm2020/testing.mjs +797 -0
- package/fesm2020/testing.mjs.map +1 -0
- package/fesm2020/text-field.mjs +459 -0
- package/fesm2020/text-field.mjs.map +1 -0
- package/fesm2020/tree.mjs +1305 -0
- package/fesm2020/tree.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/keycodes/index.d.ts +249 -0
- package/layout/index.d.ts +90 -0
- package/listbox/index.d.ts +419 -0
- package/menu/index.d.ts +1013 -0
- package/observers/index.d.ts +109 -0
- package/overlay/_index-deprecated.scss +13 -0
- package/overlay/_index.import.scss +13 -0
- package/overlay/_index.scss +152 -0
- package/overlay/index.d.ts +1343 -0
- package/overlay-prebuilt.css +1 -0
- package/package.json +232 -0
- package/platform/index.d.ts +106 -0
- package/portal/index.d.ts +328 -0
- package/scrolling/index.d.ts +849 -0
- package/stepper/index.d.ts +419 -0
- package/table/index.d.ts +1483 -0
- package/text-field/_index.import.scss +2 -0
- package/text-field/_index.scss +89 -0
- package/text-field/index.d.ts +203 -0
- package/text-field-prebuilt.css +1 -0
- package/tree/index.d.ts +593 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { IterableChangeRecord } from '@angular/core';
|
|
4
|
+
import { IterableChanges } from '@angular/core';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { OnDestroy } from '@angular/core';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
import { TemplateRef } from '@angular/core';
|
|
9
|
+
import { ViewContainerRef } from '@angular/core';
|
|
10
|
+
|
|
11
|
+
/** DataSource wrapper for a native array. */
|
|
12
|
+
export declare class ArrayDataSource<T> extends DataSource<T> {
|
|
13
|
+
private _data;
|
|
14
|
+
constructor(_data: readonly T[] | Observable<readonly T[]>);
|
|
15
|
+
connect(): Observable<readonly T[]>;
|
|
16
|
+
disconnect(): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Interface for any component that provides a view of some data collection and wants to provide
|
|
21
|
+
* information regarding the view and any changes made.
|
|
22
|
+
*/
|
|
23
|
+
export declare interface CollectionViewer {
|
|
24
|
+
/**
|
|
25
|
+
* A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the
|
|
26
|
+
* data. The `start` index is inclusive, while the `end` is exclusive.
|
|
27
|
+
*/
|
|
28
|
+
viewChange: Observable<ListRange>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare abstract class DataSource<T> {
|
|
32
|
+
/**
|
|
33
|
+
* Connects a collection viewer (such as a data-table) to this data source. Note that
|
|
34
|
+
* the stream provided will be accessed during change detection and should not directly change
|
|
35
|
+
* values that are bound in template views.
|
|
36
|
+
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
37
|
+
* data source.
|
|
38
|
+
* @returns Observable that emits a new value when the data changes.
|
|
39
|
+
*/
|
|
40
|
+
abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Disconnects a collection viewer (such as a data-table) from this data source. Can be used
|
|
43
|
+
* to perform any clean-up or tear-down operations when a view is being destroyed.
|
|
44
|
+
*
|
|
45
|
+
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
46
|
+
* data source.
|
|
47
|
+
*/
|
|
48
|
+
abstract disconnect(collectionViewer: CollectionViewer): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A repeater that destroys views when they are removed from a
|
|
53
|
+
* {@link ViewContainerRef}. When new items are inserted into the container,
|
|
54
|
+
* the repeater will always construct a new embedded view for each item.
|
|
55
|
+
*
|
|
56
|
+
* @template T The type for the embedded view's $implicit property.
|
|
57
|
+
* @template R The type for the item in each IterableDiffer change record.
|
|
58
|
+
* @template C The type for the context passed to each embedded view.
|
|
59
|
+
*/
|
|
60
|
+
export declare class _DisposeViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
|
|
61
|
+
applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
|
|
62
|
+
detach(): void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Returns an error that reports that multiple values are passed into a selection model
|
|
67
|
+
* with a single value.
|
|
68
|
+
* @docs-private
|
|
69
|
+
*/
|
|
70
|
+
export declare function getMultipleValuesInSingleSelectionError(): Error;
|
|
71
|
+
|
|
72
|
+
/** Checks whether an object is a data source. */
|
|
73
|
+
export declare function isDataSource(value: any): value is DataSource<any>;
|
|
74
|
+
|
|
75
|
+
/** Represents a range of numbers with a specified start and end. */
|
|
76
|
+
export declare type ListRange = {
|
|
77
|
+
start: number;
|
|
78
|
+
end: number;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* A repeater that caches views when they are removed from a
|
|
83
|
+
* {@link ViewContainerRef}. When new items are inserted into the container,
|
|
84
|
+
* the repeater will reuse one of the cached views instead of creating a new
|
|
85
|
+
* embedded view. Recycling cached views reduces the quantity of expensive DOM
|
|
86
|
+
* inserts.
|
|
87
|
+
*
|
|
88
|
+
* @template T The type for the embedded view's $implicit property.
|
|
89
|
+
* @template R The type for the item in each IterableDiffer change record.
|
|
90
|
+
* @template C The type for the context passed to each embedded view.
|
|
91
|
+
*/
|
|
92
|
+
export declare class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
|
|
93
|
+
/**
|
|
94
|
+
* The size of the cache used to store unused views.
|
|
95
|
+
* Setting the cache size to `0` will disable caching. Defaults to 20 views.
|
|
96
|
+
*/
|
|
97
|
+
viewCacheSize: number;
|
|
98
|
+
/**
|
|
99
|
+
* View cache that stores embedded view instances that have been previously stamped out,
|
|
100
|
+
* but don't are not currently rendered. The view repeater will reuse these views rather than
|
|
101
|
+
* creating brand new ones.
|
|
102
|
+
*
|
|
103
|
+
* TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance.
|
|
104
|
+
*/
|
|
105
|
+
private _viewCache;
|
|
106
|
+
/** Apply changes to the DOM. */
|
|
107
|
+
applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
|
|
108
|
+
detach(): void;
|
|
109
|
+
/**
|
|
110
|
+
* Inserts a view for a new item, either from the cache or by creating a new
|
|
111
|
+
* one. Returns `undefined` if the item was inserted into a cached view.
|
|
112
|
+
*/
|
|
113
|
+
private _insertView;
|
|
114
|
+
/** Detaches the view at the given index and inserts into the view cache. */
|
|
115
|
+
private _detachAndCacheView;
|
|
116
|
+
/** Moves view at the previous index to the current index. */
|
|
117
|
+
private _moveView;
|
|
118
|
+
/**
|
|
119
|
+
* Cache the given detached view. If the cache is full, the view will be
|
|
120
|
+
* destroyed.
|
|
121
|
+
*/
|
|
122
|
+
private _maybeCacheView;
|
|
123
|
+
/** Inserts a recycled view from the cache at the given index. */
|
|
124
|
+
private _insertViewFromCache;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Event emitted when the value of a MatSelectionModel has changed.
|
|
129
|
+
* @docs-private
|
|
130
|
+
*/
|
|
131
|
+
export declare interface SelectionChange<T> {
|
|
132
|
+
/** Model that dispatched the event. */
|
|
133
|
+
source: SelectionModel<T>;
|
|
134
|
+
/** Options that were added to the model. */
|
|
135
|
+
added: T[];
|
|
136
|
+
/** Options that were removed from the model. */
|
|
137
|
+
removed: T[];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Class to be used to power selecting one or more options from a list.
|
|
142
|
+
*/
|
|
143
|
+
export declare class SelectionModel<T> {
|
|
144
|
+
private _multiple;
|
|
145
|
+
private _emitChanges;
|
|
146
|
+
compareWith?: ((o1: T, o2: T) => boolean) | undefined;
|
|
147
|
+
/** Currently-selected values. */
|
|
148
|
+
private _selection;
|
|
149
|
+
/** Keeps track of the deselected options that haven't been emitted by the change event. */
|
|
150
|
+
private _deselectedToEmit;
|
|
151
|
+
/** Keeps track of the selected options that haven't been emitted by the change event. */
|
|
152
|
+
private _selectedToEmit;
|
|
153
|
+
/** Cache for the array value of the selected items. */
|
|
154
|
+
private _selected;
|
|
155
|
+
/** Selected values. */
|
|
156
|
+
get selected(): T[];
|
|
157
|
+
/** Event emitted when the value has changed. */
|
|
158
|
+
readonly changed: Subject<SelectionChange<T>>;
|
|
159
|
+
constructor(_multiple?: boolean, initiallySelectedValues?: T[], _emitChanges?: boolean, compareWith?: ((o1: T, o2: T) => boolean) | undefined);
|
|
160
|
+
/**
|
|
161
|
+
* Selects a value or an array of values.
|
|
162
|
+
* @param values The values to select
|
|
163
|
+
* @return Whether the selection changed as a result of this call
|
|
164
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
165
|
+
*/
|
|
166
|
+
select(...values: T[]): boolean | void;
|
|
167
|
+
/**
|
|
168
|
+
* Deselects a value or an array of values.
|
|
169
|
+
* @param values The values to deselect
|
|
170
|
+
* @return Whether the selection changed as a result of this call
|
|
171
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
172
|
+
*/
|
|
173
|
+
deselect(...values: T[]): boolean | void;
|
|
174
|
+
/**
|
|
175
|
+
* Sets the selected values
|
|
176
|
+
* @param values The new selected values
|
|
177
|
+
* @return Whether the selection changed as a result of this call
|
|
178
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
179
|
+
*/
|
|
180
|
+
setSelection(...values: T[]): boolean | void;
|
|
181
|
+
/**
|
|
182
|
+
* Toggles a value between selected and deselected.
|
|
183
|
+
* @param value The value to toggle
|
|
184
|
+
* @return Whether the selection changed as a result of this call
|
|
185
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
186
|
+
*/
|
|
187
|
+
toggle(value: T): boolean | void;
|
|
188
|
+
/**
|
|
189
|
+
* Clears all of the selected values.
|
|
190
|
+
* @param flushEvent Whether to flush the changes in an event.
|
|
191
|
+
* If false, the changes to the selection will be flushed along with the next event.
|
|
192
|
+
* @return Whether the selection changed as a result of this call
|
|
193
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
194
|
+
*/
|
|
195
|
+
clear(flushEvent?: boolean): boolean | void;
|
|
196
|
+
/**
|
|
197
|
+
* Determines whether a value is selected.
|
|
198
|
+
*/
|
|
199
|
+
isSelected(value: T): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Determines whether the model does not have a value.
|
|
202
|
+
*/
|
|
203
|
+
isEmpty(): boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Determines whether the model has a value.
|
|
206
|
+
*/
|
|
207
|
+
hasValue(): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Sorts the selected values based on a predicate function.
|
|
210
|
+
*/
|
|
211
|
+
sort(predicate?: (a: T, b: T) => number): void;
|
|
212
|
+
/**
|
|
213
|
+
* Gets whether multiple values can be selected.
|
|
214
|
+
*/
|
|
215
|
+
isMultipleSelection(): boolean;
|
|
216
|
+
/** Emits a change event and clears the records of selected and deselected values. */
|
|
217
|
+
private _emitChangeEvent;
|
|
218
|
+
/** Selects a value. */
|
|
219
|
+
private _markSelected;
|
|
220
|
+
/** Deselects a value. */
|
|
221
|
+
private _unmarkSelected;
|
|
222
|
+
/** Clears out the selected values. */
|
|
223
|
+
private _unmarkAll;
|
|
224
|
+
/**
|
|
225
|
+
* Verifies the value assignment and throws an error if the specified value array is
|
|
226
|
+
* including multiple values while the selection model is not supporting multiple values.
|
|
227
|
+
*/
|
|
228
|
+
private _verifyValueAssignment;
|
|
229
|
+
/** Whether there are queued up change to be emitted. */
|
|
230
|
+
private _hasQueuedChanges;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Interface for a class that can flatten hierarchical structured data and re-expand the flattened
|
|
235
|
+
* data back into its original structure. Should be used in conjunction with the cdk-tree.
|
|
236
|
+
*/
|
|
237
|
+
export declare interface TreeDataNodeFlattener<T> {
|
|
238
|
+
/** Transforms a set of hierarchical structured data into a flattened data array. */
|
|
239
|
+
flattenNodes(structuredData: any[]): T[];
|
|
240
|
+
/**
|
|
241
|
+
* Expands a flattened array of data into its hierarchical form using the provided expansion
|
|
242
|
+
* model.
|
|
243
|
+
*/
|
|
244
|
+
expandFlattenedNodes(nodes: T[], expansionModel: SelectionModel<T>): T[];
|
|
245
|
+
/**
|
|
246
|
+
* Put node descendants of node in array.
|
|
247
|
+
* If `onlyExpandable` is true, then only process expandable descendants.
|
|
248
|
+
*/
|
|
249
|
+
nodeDescendents(node: T, nodes: T[], onlyExpandable: boolean): void;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Class to coordinate unique selection based on name.
|
|
254
|
+
* Intended to be consumed as an Angular service.
|
|
255
|
+
* This service is needed because native radio change events are only fired on the item currently
|
|
256
|
+
* being selected, and we still need to uncheck the previous selection.
|
|
257
|
+
*
|
|
258
|
+
* This service does not *store* any IDs and names because they may change at any time, so it is
|
|
259
|
+
* less error-prone if they are simply passed through when the events occur.
|
|
260
|
+
*/
|
|
261
|
+
export declare class UniqueSelectionDispatcher implements OnDestroy {
|
|
262
|
+
private _listeners;
|
|
263
|
+
/**
|
|
264
|
+
* Notify other items that selection for the given name has been set.
|
|
265
|
+
* @param id ID of the item.
|
|
266
|
+
* @param name Name of the item.
|
|
267
|
+
*/
|
|
268
|
+
notify(id: string, name: string): void;
|
|
269
|
+
/**
|
|
270
|
+
* Listen for future changes to item selection.
|
|
271
|
+
* @return Function used to deregister listener
|
|
272
|
+
*/
|
|
273
|
+
listen(listener: UniqueSelectionDispatcherListener): () => void;
|
|
274
|
+
ngOnDestroy(): void;
|
|
275
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
|
|
276
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export declare type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
|
|
283
|
+
* @docs-private
|
|
284
|
+
*/
|
|
285
|
+
export declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Describes a strategy for rendering items in a {@link ViewContainerRef}.
|
|
289
|
+
*
|
|
290
|
+
* @template T The type for the embedded view's $implicit property.
|
|
291
|
+
* @template R The type for the item in each IterableDiffer change record.
|
|
292
|
+
* @template C The type for the context passed to each embedded view.
|
|
293
|
+
*/
|
|
294
|
+
export declare interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
|
|
295
|
+
applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
|
|
296
|
+
detach(): void;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Meta data describing the state of a view after it was updated by a
|
|
301
|
+
* {@link _ViewRepeater}.
|
|
302
|
+
*
|
|
303
|
+
* @template R The type for the item in each IterableDiffer change record.
|
|
304
|
+
* @template C The type for the context passed to each embedded view.
|
|
305
|
+
*/
|
|
306
|
+
export declare interface _ViewRepeaterItemChange<R, C> {
|
|
307
|
+
/** The view's context after it was changed. */
|
|
308
|
+
context?: C;
|
|
309
|
+
/** Indicates how the view was changed. */
|
|
310
|
+
operation: _ViewRepeaterOperation;
|
|
311
|
+
/** The view's corresponding change record. */
|
|
312
|
+
record: IterableChangeRecord<R>;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Type for a callback to be executed after a view has changed.
|
|
317
|
+
*
|
|
318
|
+
* @template R The type for the item in each IterableDiffer change record.
|
|
319
|
+
* @template C The type for the context passed to each embedded view.
|
|
320
|
+
*/
|
|
321
|
+
export declare type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* The context for an embedded view in the repeater's view container.
|
|
325
|
+
*
|
|
326
|
+
* @template T The type for the embedded view's $implicit property.
|
|
327
|
+
*/
|
|
328
|
+
export declare interface _ViewRepeaterItemContext<T> {
|
|
329
|
+
$implicit?: T;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A factory that derives the embedded view context for an item in a view
|
|
334
|
+
* container.
|
|
335
|
+
*
|
|
336
|
+
* @template T The type for the embedded view's $implicit property.
|
|
337
|
+
* @template R The type for the item in each IterableDiffer change record.
|
|
338
|
+
* @template C The type for the context passed to each embedded view.
|
|
339
|
+
*/
|
|
340
|
+
export declare type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (record: IterableChangeRecord<R>, adjustedPreviousIndex: number | null, currentIndex: number | null) => _ViewRepeaterItemInsertArgs<C>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The arguments needed to construct an embedded view for an item in a view
|
|
344
|
+
* container.
|
|
345
|
+
*
|
|
346
|
+
* @template C The type for the context passed to each embedded view.
|
|
347
|
+
*/
|
|
348
|
+
export declare interface _ViewRepeaterItemInsertArgs<C> {
|
|
349
|
+
templateRef: TemplateRef<C>;
|
|
350
|
+
context?: C;
|
|
351
|
+
index?: number;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Extracts the value of an item from an {@link IterableChangeRecord}.
|
|
356
|
+
*
|
|
357
|
+
* @template T The type for the embedded view's $implicit property.
|
|
358
|
+
* @template R The type for the item in each IterableDiffer change record.
|
|
359
|
+
*/
|
|
360
|
+
export declare type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;
|
|
361
|
+
|
|
362
|
+
/** Indicates how a view was changed by a {@link _ViewRepeater}. */
|
|
363
|
+
export declare const enum _ViewRepeaterOperation {
|
|
364
|
+
/** The content of an existing view was replaced with another item. */
|
|
365
|
+
REPLACED = 0,
|
|
366
|
+
/** A new view was created with `createEmbeddedView`. */
|
|
367
|
+
INSERTED = 1,
|
|
368
|
+
/** The position of a view changed, but the content remains the same. */
|
|
369
|
+
MOVED = 2,
|
|
370
|
+
/** A view was detached from the view container. */
|
|
371
|
+
REMOVED = 3
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export { }
|