@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,419 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { AfterViewInit } from '@angular/core';
|
|
3
|
+
import { BooleanInput } from '@kato-lee/cdk/coercion';
|
|
4
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
import { Directionality } from '@kato-lee/cdk/bidi';
|
|
6
|
+
import { ElementRef } from '@angular/core';
|
|
7
|
+
import { EventEmitter } from '@angular/core';
|
|
8
|
+
import { FocusableOption } from '@kato-lee/cdk/a11y';
|
|
9
|
+
import * as i0 from '@angular/core';
|
|
10
|
+
import * as i5 from '@kato-lee/cdk/bidi';
|
|
11
|
+
import { InjectionToken } from '@angular/core';
|
|
12
|
+
import { NumberInput } from '@kato-lee/cdk/coercion';
|
|
13
|
+
import { Observable } from 'rxjs';
|
|
14
|
+
import { OnChanges } from '@angular/core';
|
|
15
|
+
import { OnDestroy } from '@angular/core';
|
|
16
|
+
import { QueryList } from '@angular/core';
|
|
17
|
+
import { Subject } from 'rxjs';
|
|
18
|
+
import { TemplateRef } from '@angular/core';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Simplified representation of an "AbstractControl" from @angular/forms.
|
|
22
|
+
* Used to avoid having to bring in @angular/forms for a single optional interface.
|
|
23
|
+
* @docs-private
|
|
24
|
+
*/
|
|
25
|
+
declare interface AbstractControlLike {
|
|
26
|
+
asyncValidator: ((control: any) => any) | null;
|
|
27
|
+
dirty: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
errors: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
} | null;
|
|
33
|
+
invalid: boolean;
|
|
34
|
+
parent: any;
|
|
35
|
+
pending: boolean;
|
|
36
|
+
pristine: boolean;
|
|
37
|
+
root: AbstractControlLike;
|
|
38
|
+
status: string;
|
|
39
|
+
readonly statusChanges: Observable<any>;
|
|
40
|
+
touched: boolean;
|
|
41
|
+
untouched: boolean;
|
|
42
|
+
updateOn: any;
|
|
43
|
+
valid: boolean;
|
|
44
|
+
validator: ((control: any) => any) | null;
|
|
45
|
+
value: any;
|
|
46
|
+
readonly valueChanges: Observable<any>;
|
|
47
|
+
clearAsyncValidators(): void;
|
|
48
|
+
clearValidators(): void;
|
|
49
|
+
disable(opts?: any): void;
|
|
50
|
+
enable(opts?: any): void;
|
|
51
|
+
get(path: (string | number)[] | string): AbstractControlLike | null;
|
|
52
|
+
getError(errorCode: string, path?: (string | number)[] | string): any;
|
|
53
|
+
hasError(errorCode: string, path?: (string | number)[] | string): boolean;
|
|
54
|
+
markAllAsTouched(): void;
|
|
55
|
+
markAsDirty(opts?: any): void;
|
|
56
|
+
markAsPending(opts?: any): void;
|
|
57
|
+
markAsPristine(opts?: any): void;
|
|
58
|
+
markAsTouched(opts?: any): void;
|
|
59
|
+
markAsUntouched(opts?: any): void;
|
|
60
|
+
patchValue(value: any, options?: Object): void;
|
|
61
|
+
reset(value?: any, options?: Object): void;
|
|
62
|
+
setAsyncValidators(newValidator: (control: any) => any | ((control: any) => any)[] | null): void;
|
|
63
|
+
setErrors(
|
|
64
|
+
errors: {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
} | null,
|
|
67
|
+
opts?: any
|
|
68
|
+
): void;
|
|
69
|
+
setParent(parent: any): void;
|
|
70
|
+
setValidators(newValidator: (control: any) => any | ((control: any) => any)[] | null): void;
|
|
71
|
+
setValue(value: any, options?: Object): void;
|
|
72
|
+
updateValueAndValidity(opts?: any): void;
|
|
73
|
+
patchValue(value: any, options?: any): void;
|
|
74
|
+
reset(formState?: any, options?: any): void;
|
|
75
|
+
setValue(value: any, options?: any): void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare class CdkStep implements OnChanges {
|
|
79
|
+
_stepper: CdkStepper;
|
|
80
|
+
private _stepperOptions;
|
|
81
|
+
_displayDefaultIndicatorType: boolean;
|
|
82
|
+
/** Template for step label if it exists. */
|
|
83
|
+
stepLabel: CdkStepLabel;
|
|
84
|
+
/** Template for step content. */
|
|
85
|
+
content: TemplateRef<any>;
|
|
86
|
+
/** The top level abstract control of the step. */
|
|
87
|
+
stepControl: AbstractControlLike;
|
|
88
|
+
/** Whether user has attempted to move away from the step. */
|
|
89
|
+
interacted: boolean;
|
|
90
|
+
/** Emits when the user has attempted to move away from the step. */
|
|
91
|
+
readonly interactedStream: EventEmitter<CdkStep>;
|
|
92
|
+
/** Plain text label of the step. */
|
|
93
|
+
label: string;
|
|
94
|
+
/** Error message to display when there's an error. */
|
|
95
|
+
errorMessage: string;
|
|
96
|
+
/** Aria label for the tab. */
|
|
97
|
+
ariaLabel: string;
|
|
98
|
+
/**
|
|
99
|
+
* Reference to the element that the tab is labelled by.
|
|
100
|
+
* Will be cleared if `aria-label` is set at the same time.
|
|
101
|
+
*/
|
|
102
|
+
ariaLabelledby: string;
|
|
103
|
+
/** State of the step. */
|
|
104
|
+
state: StepState;
|
|
105
|
+
/** Whether the user can return to this step once it has been marked as completed. */
|
|
106
|
+
get editable(): boolean;
|
|
107
|
+
set editable(value: BooleanInput);
|
|
108
|
+
private _editable;
|
|
109
|
+
/** Whether the completion of step is optional. */
|
|
110
|
+
get optional(): boolean;
|
|
111
|
+
set optional(value: BooleanInput);
|
|
112
|
+
private _optional;
|
|
113
|
+
/** Whether step is marked as completed. */
|
|
114
|
+
get completed(): boolean;
|
|
115
|
+
set completed(value: BooleanInput);
|
|
116
|
+
_completedOverride: boolean | null;
|
|
117
|
+
private _getDefaultCompleted;
|
|
118
|
+
/** Whether step has an error. */
|
|
119
|
+
get hasError(): boolean;
|
|
120
|
+
set hasError(value: BooleanInput);
|
|
121
|
+
private _customError;
|
|
122
|
+
private _getDefaultError;
|
|
123
|
+
constructor(_stepper: CdkStepper, stepperOptions?: StepperOptions);
|
|
124
|
+
/** Selects this step component. */
|
|
125
|
+
select(): void;
|
|
126
|
+
/** Resets the step to its initial state. Note that this includes resetting form data. */
|
|
127
|
+
reset(): void;
|
|
128
|
+
ngOnChanges(): void;
|
|
129
|
+
_markAsInteracted(): void;
|
|
130
|
+
/** Determines whether the error state can be shown. */
|
|
131
|
+
_showError(): boolean;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStep, [null, { optional: true }]>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
134
|
+
CdkStep,
|
|
135
|
+
'cdk-step',
|
|
136
|
+
['cdkStep'],
|
|
137
|
+
{
|
|
138
|
+
stepControl: 'stepControl';
|
|
139
|
+
label: 'label';
|
|
140
|
+
errorMessage: 'errorMessage';
|
|
141
|
+
ariaLabel: 'aria-label';
|
|
142
|
+
ariaLabelledby: 'aria-labelledby';
|
|
143
|
+
state: 'state';
|
|
144
|
+
editable: 'editable';
|
|
145
|
+
optional: 'optional';
|
|
146
|
+
completed: 'completed';
|
|
147
|
+
hasError: 'hasError';
|
|
148
|
+
},
|
|
149
|
+
{ interactedStream: 'interacted' },
|
|
150
|
+
['stepLabel'],
|
|
151
|
+
['*'],
|
|
152
|
+
false
|
|
153
|
+
>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export declare class CdkStepHeader implements FocusableOption {
|
|
157
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
158
|
+
constructor(_elementRef: ElementRef<HTMLElement>);
|
|
159
|
+
/** Focuses the step header. */
|
|
160
|
+
focus(): void;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepHeader, never>;
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
163
|
+
CdkStepHeader,
|
|
164
|
+
'[cdkStepHeader]',
|
|
165
|
+
never,
|
|
166
|
+
{},
|
|
167
|
+
{},
|
|
168
|
+
never,
|
|
169
|
+
never,
|
|
170
|
+
false
|
|
171
|
+
>;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export declare class CdkStepLabel {
|
|
175
|
+
template: TemplateRef<any>;
|
|
176
|
+
constructor(/** @docs-private */ template: TemplateRef<any>);
|
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepLabel, never>;
|
|
178
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
179
|
+
CdkStepLabel,
|
|
180
|
+
'[cdkStepLabel]',
|
|
181
|
+
never,
|
|
182
|
+
{},
|
|
183
|
+
{},
|
|
184
|
+
never,
|
|
185
|
+
never,
|
|
186
|
+
false
|
|
187
|
+
>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export declare class CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
191
|
+
private _dir;
|
|
192
|
+
private _changeDetectorRef;
|
|
193
|
+
private _elementRef;
|
|
194
|
+
/** Emits when the component is destroyed. */
|
|
195
|
+
protected readonly _destroyed: Subject<void>;
|
|
196
|
+
/** Used for managing keyboard focus. */
|
|
197
|
+
private _keyManager;
|
|
198
|
+
/** Full list of steps inside the stepper, including inside nested steppers. */
|
|
199
|
+
_steps: QueryList<CdkStep>;
|
|
200
|
+
/** Steps that belong to the current stepper, excluding ones from nested steppers. */
|
|
201
|
+
readonly steps: QueryList<CdkStep>;
|
|
202
|
+
/** The list of step headers of the steps in the stepper. */
|
|
203
|
+
_stepHeader: QueryList<CdkStepHeader>;
|
|
204
|
+
/** List of step headers sorted based on their DOM order. */
|
|
205
|
+
private _sortedHeaders;
|
|
206
|
+
/** Whether the validity of previous steps should be checked or not. */
|
|
207
|
+
get linear(): boolean;
|
|
208
|
+
set linear(value: BooleanInput);
|
|
209
|
+
private _linear;
|
|
210
|
+
/** The index of the selected step. */
|
|
211
|
+
get selectedIndex(): number;
|
|
212
|
+
set selectedIndex(index: NumberInput);
|
|
213
|
+
private _selectedIndex;
|
|
214
|
+
/** The step that is selected. */
|
|
215
|
+
get selected(): CdkStep | undefined;
|
|
216
|
+
set selected(step: CdkStep | undefined);
|
|
217
|
+
/** Event emitted when the selected step has changed. */
|
|
218
|
+
readonly selectionChange: EventEmitter<StepperSelectionEvent>;
|
|
219
|
+
/** Used to track unique ID for each stepper component. */
|
|
220
|
+
_groupId: number;
|
|
221
|
+
/** Orientation of the stepper. */
|
|
222
|
+
get orientation(): StepperOrientation;
|
|
223
|
+
set orientation(value: StepperOrientation);
|
|
224
|
+
private _orientation;
|
|
225
|
+
constructor(
|
|
226
|
+
_dir: Directionality,
|
|
227
|
+
_changeDetectorRef: ChangeDetectorRef,
|
|
228
|
+
_elementRef: ElementRef<HTMLElement>
|
|
229
|
+
);
|
|
230
|
+
ngAfterContentInit(): void;
|
|
231
|
+
ngAfterViewInit(): void;
|
|
232
|
+
ngOnDestroy(): void;
|
|
233
|
+
/** Selects and focuses the next step in list. */
|
|
234
|
+
next(): void;
|
|
235
|
+
/** Selects and focuses the previous step in list. */
|
|
236
|
+
previous(): void;
|
|
237
|
+
/** Resets the stepper to its initial state. Note that this includes clearing form data. */
|
|
238
|
+
reset(): void;
|
|
239
|
+
/** Returns a unique id for each step label element. */
|
|
240
|
+
_getStepLabelId(i: number): string;
|
|
241
|
+
/** Returns unique id for each step content element. */
|
|
242
|
+
_getStepContentId(i: number): string;
|
|
243
|
+
/** Marks the component to be change detected. */
|
|
244
|
+
_stateChanged(): void;
|
|
245
|
+
/** Returns position state of the step with the given index. */
|
|
246
|
+
_getAnimationDirection(index: number): StepContentPositionState;
|
|
247
|
+
/** Returns the type of icon to be displayed. */
|
|
248
|
+
_getIndicatorType(index: number, state?: StepState): StepState;
|
|
249
|
+
private _getDefaultIndicatorLogic;
|
|
250
|
+
private _getGuidelineLogic;
|
|
251
|
+
private _isCurrentStep;
|
|
252
|
+
/** Returns the index of the currently-focused step header. */
|
|
253
|
+
_getFocusIndex(): number | null;
|
|
254
|
+
private _updateSelectedItemIndex;
|
|
255
|
+
_onKeydown(event: KeyboardEvent): void;
|
|
256
|
+
private _anyControlsInvalidOrPending;
|
|
257
|
+
private _layoutDirection;
|
|
258
|
+
/** Checks whether the stepper contains the focused element. */
|
|
259
|
+
private _containsFocus;
|
|
260
|
+
/** Checks whether the passed-in index is a valid step index. */
|
|
261
|
+
private _isValidIndex;
|
|
262
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepper, [{ optional: true }, null, null]>;
|
|
263
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
264
|
+
CdkStepper,
|
|
265
|
+
'[cdkStepper]',
|
|
266
|
+
['cdkStepper'],
|
|
267
|
+
{
|
|
268
|
+
linear: 'linear';
|
|
269
|
+
selectedIndex: 'selectedIndex';
|
|
270
|
+
selected: 'selected';
|
|
271
|
+
orientation: 'orientation';
|
|
272
|
+
},
|
|
273
|
+
{ selectionChange: 'selectionChange' },
|
|
274
|
+
['_steps', '_stepHeader'],
|
|
275
|
+
never,
|
|
276
|
+
false
|
|
277
|
+
>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export declare class CdkStepperModule {
|
|
281
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperModule, never>;
|
|
282
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
283
|
+
CdkStepperModule,
|
|
284
|
+
[
|
|
285
|
+
typeof i1.CdkStep,
|
|
286
|
+
typeof i1.CdkStepper,
|
|
287
|
+
typeof i2.CdkStepHeader,
|
|
288
|
+
typeof i3.CdkStepLabel,
|
|
289
|
+
typeof i4.CdkStepperNext,
|
|
290
|
+
typeof i4.CdkStepperPrevious,
|
|
291
|
+
],
|
|
292
|
+
[typeof i5.BidiModule],
|
|
293
|
+
[
|
|
294
|
+
typeof i1.CdkStep,
|
|
295
|
+
typeof i1.CdkStepper,
|
|
296
|
+
typeof i2.CdkStepHeader,
|
|
297
|
+
typeof i3.CdkStepLabel,
|
|
298
|
+
typeof i4.CdkStepperNext,
|
|
299
|
+
typeof i4.CdkStepperPrevious,
|
|
300
|
+
]
|
|
301
|
+
>;
|
|
302
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CdkStepperModule>;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** Button that moves to the next step in a stepper workflow. */
|
|
306
|
+
export declare class CdkStepperNext {
|
|
307
|
+
_stepper: CdkStepper;
|
|
308
|
+
/** Type of the next button. Defaults to "submit" if not specified. */
|
|
309
|
+
type: string;
|
|
310
|
+
constructor(_stepper: CdkStepper);
|
|
311
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperNext, never>;
|
|
312
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
313
|
+
CdkStepperNext,
|
|
314
|
+
'button[cdkStepperNext]',
|
|
315
|
+
never,
|
|
316
|
+
{ type: 'type' },
|
|
317
|
+
{},
|
|
318
|
+
never,
|
|
319
|
+
never,
|
|
320
|
+
false
|
|
321
|
+
>;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** Button that moves to the previous step in a stepper workflow. */
|
|
325
|
+
export declare class CdkStepperPrevious {
|
|
326
|
+
_stepper: CdkStepper;
|
|
327
|
+
/** Type of the previous button. Defaults to "button" if not specified. */
|
|
328
|
+
type: string;
|
|
329
|
+
constructor(_stepper: CdkStepper);
|
|
330
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperPrevious, never>;
|
|
331
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
332
|
+
CdkStepperPrevious,
|
|
333
|
+
'button[cdkStepperPrevious]',
|
|
334
|
+
never,
|
|
335
|
+
{ type: 'type' },
|
|
336
|
+
{},
|
|
337
|
+
never,
|
|
338
|
+
never,
|
|
339
|
+
false
|
|
340
|
+
>;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
declare namespace i1 {
|
|
344
|
+
export {
|
|
345
|
+
StepContentPositionState,
|
|
346
|
+
StepperOrientation,
|
|
347
|
+
StepperSelectionEvent,
|
|
348
|
+
StepState,
|
|
349
|
+
STEP_STATE,
|
|
350
|
+
STEPPER_GLOBAL_OPTIONS,
|
|
351
|
+
StepperOptions,
|
|
352
|
+
CdkStep,
|
|
353
|
+
CdkStepper,
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
declare namespace i2 {
|
|
358
|
+
export { CdkStepHeader };
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
declare namespace i3 {
|
|
362
|
+
export { CdkStepLabel };
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare namespace i4 {
|
|
366
|
+
export { CdkStepperNext, CdkStepperPrevious };
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/** Enum to represent the different states of the steps. */
|
|
370
|
+
export declare const STEP_STATE: {
|
|
371
|
+
NUMBER: string;
|
|
372
|
+
EDIT: string;
|
|
373
|
+
DONE: string;
|
|
374
|
+
ERROR: string;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Position state of the content of each step in stepper that is used for transitioning
|
|
379
|
+
* the content into correct position upon step selection change.
|
|
380
|
+
*/
|
|
381
|
+
export declare type StepContentPositionState = 'previous' | 'current' | 'next';
|
|
382
|
+
|
|
383
|
+
/** InjectionToken that can be used to specify the global stepper options. */
|
|
384
|
+
export declare const STEPPER_GLOBAL_OPTIONS: InjectionToken<StepperOptions>;
|
|
385
|
+
|
|
386
|
+
/** Configurable options for stepper. */
|
|
387
|
+
export declare interface StepperOptions {
|
|
388
|
+
/**
|
|
389
|
+
* Whether the stepper should display an error state or not.
|
|
390
|
+
* Default behavior is assumed to be false.
|
|
391
|
+
*/
|
|
392
|
+
showError?: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* Whether the stepper should display the default indicator type
|
|
395
|
+
* or not.
|
|
396
|
+
* Default behavior is assumed to be true.
|
|
397
|
+
*/
|
|
398
|
+
displayDefaultIndicatorType?: boolean;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/** Possible orientation of a stepper. */
|
|
402
|
+
export declare type StepperOrientation = 'horizontal' | 'vertical';
|
|
403
|
+
|
|
404
|
+
/** Change event emitted on selection changes. */
|
|
405
|
+
export declare class StepperSelectionEvent {
|
|
406
|
+
/** Index of the step now selected. */
|
|
407
|
+
selectedIndex: number;
|
|
408
|
+
/** Index of the step previously selected. */
|
|
409
|
+
previouslySelectedIndex: number;
|
|
410
|
+
/** The step instance now selected. */
|
|
411
|
+
selectedStep: CdkStep;
|
|
412
|
+
/** The step instance previously selected. */
|
|
413
|
+
previouslySelectedStep: CdkStep;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/** The state of each step. */
|
|
417
|
+
export declare type StepState = 'number' | 'edit' | 'done' | 'error' | string;
|
|
418
|
+
|
|
419
|
+
export {};
|