@angular/cdk 14.0.0-next.1 → 14.0.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/_index.scss +11 -0
- package/a11y/a11y-module.d.ts +2 -3
- package/a11y/focus-monitor/focus-monitor.d.ts +1 -1
- package/a11y/focus-trap/focus-trap.d.ts +1 -1
- package/a11y/live-announcer/live-announcer.d.ts +5 -1
- package/a11y-prebuilt.css +1 -1
- package/accordion/accordion-item.d.ts +1 -1
- package/accordion/accordion.d.ts +1 -1
- package/bidi/dir.d.ts +1 -1
- package/clipboard/copy-to-clipboard.d.ts +1 -1
- package/dialog/dialog-config.d.ts +115 -0
- package/dialog/dialog-container.d.ts +95 -0
- package/dialog/dialog-injectors.d.ts +24 -0
- package/dialog/dialog-module.d.ts +10 -0
- package/dialog/dialog-ref.d.ts +64 -0
- package/dialog/dialog.d.ts +103 -0
- package/dialog/dialog_public_index.d.ts +4 -0
- package/dialog/index.d.ts +8 -0
- package/dialog/package.json +9 -0
- package/dialog/public-api.d.ts +13 -0
- package/drag-drop/directives/drag-handle.d.ts +1 -1
- package/drag-drop/directives/drag-placeholder.d.ts +1 -1
- package/drag-drop/directives/drag-preview.d.ts +1 -1
- package/drag-drop/directives/drag.d.ts +8 -9
- package/drag-drop/directives/drop-list-group.d.ts +1 -1
- package/drag-drop/directives/drop-list.d.ts +1 -1
- package/drag-drop/drag-events.d.ts +8 -0
- package/drag-drop/drag-ref.d.ts +11 -1
- package/drag-drop/drop-list-ref.d.ts +5 -1
- package/drag-drop/parent-position-tracker.d.ts +11 -3
- package/esm2020/a11y/a11y-module.mjs +6 -7
- package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +13 -11
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +7 -12
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
- package/esm2020/a11y/live-announcer/live-announcer.mjs +26 -18
- package/esm2020/accordion/accordion-item.mjs +4 -4
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +4 -4
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/dir.mjs +4 -4
- package/esm2020/bidi/directionality.mjs +4 -4
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/dialog/dialog-config.mjs +58 -0
- package/esm2020/dialog/dialog-container.mjs +265 -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 +285 -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/drag-handle.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
- package/esm2020/drag-drop/directives/drag.mjs +33 -24
- package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
- package/esm2020/drag-drop/directives/drop-list.mjs +14 -13
- package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
- package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
- package/esm2020/drag-drop/drag-drop.mjs +4 -4
- package/esm2020/drag-drop/drag-events.mjs +1 -1
- package/esm2020/drag-drop/drag-ref.mjs +48 -24
- package/esm2020/drag-drop/drop-list-ref.mjs +7 -3
- package/esm2020/drag-drop/parent-position-tracker.mjs +13 -5
- package/esm2020/layout/breakpoints-observer.mjs +4 -4
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/media-matcher.mjs +4 -4
- package/esm2020/menu/context-menu-trigger.mjs +227 -0
- package/esm2020/menu/index.mjs +9 -0
- package/esm2020/menu/menu-aim.mjs +204 -0
- package/esm2020/menu/menu-bar.mjs +159 -0
- package/esm2020/menu/menu-base.mjs +203 -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 +48 -0
- package/esm2020/menu/menu-item-radio.mjs +114 -0
- package/esm2020/menu/menu-item-selectable.mjs +42 -0
- package/esm2020/menu/menu-item.mjs +289 -0
- package/esm2020/menu/menu-module.mjs +62 -0
- package/esm2020/menu/menu-stack.mjs +156 -0
- package/esm2020/menu/menu-trigger-base.mjs +114 -0
- package/esm2020/menu/menu-trigger.mjs +302 -0
- package/esm2020/menu/menu.mjs +168 -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/observe-content.mjs +14 -14
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +26 -8
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +33 -12
- package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-directives.mjs +7 -7
- package/esm2020/overlay/overlay-module.mjs +5 -5
- package/esm2020/overlay/overlay-ref.mjs +27 -20
- package/esm2020/overlay/overlay.mjs +14 -8
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +13 -1
- package/esm2020/overlay/position/global-position-strategy.mjs +64 -30
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/public-api.mjs +2 -2
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +4 -4
- package/esm2020/portal/dom-portal-outlet.mjs +29 -5
- package/esm2020/portal/portal-directives.mjs +20 -18
- package/esm2020/portal/portal.mjs +12 -3
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
- package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
- package/esm2020/scrolling/scrollable.mjs +4 -4
- package/esm2020/scrolling/scrolling-module.mjs +10 -11
- package/esm2020/scrolling/viewport-ruler.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.mjs +7 -5
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +8 -6
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +9 -22
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
- package/esm2020/table/row.mjs +28 -28
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +21 -21
- package/esm2020/table/text-column.mjs +5 -5
- package/esm2020/testing/component-harness.mjs +7 -1
- package/esm2020/testing/harness-environment.mjs +12 -1
- package/esm2020/testing/public-api.mjs +2 -1
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +8 -3
- package/esm2020/testing/test-element-errors.mjs +15 -0
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +13 -4
- package/esm2020/testing/testbed/unit-test-element.mjs +21 -5
- package/esm2020/text-field/autofill.mjs +7 -7
- package/esm2020/text-field/autosize.mjs +4 -4
- package/esm2020/text-field/text-field-module.mjs +5 -7
- package/esm2020/tree/nested-node.mjs +4 -4
- package/esm2020/tree/node.mjs +4 -4
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +7 -7
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +71 -66
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -10
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +10 -10
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -10
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/coercion.mjs.map +1 -1
- package/fesm2015/collections.mjs +3 -3
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/dialog.mjs +749 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +133 -86
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/keycodes.mjs.map +1 -1
- package/fesm2015/layout.mjs +10 -10
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/menu.mjs +2131 -0
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/observers.mjs +13 -13
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +197 -99
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -7
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +58 -24
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +35 -31
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +24 -37
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +79 -79
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs +7 -2
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +32 -8
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs +39 -1
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +14 -15
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -25
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +70 -65
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -10
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +10 -10
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -10
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/coercion.mjs.map +1 -1
- package/fesm2020/collections.mjs +3 -3
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/dialog.mjs +753 -0
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/drag-drop.mjs +132 -86
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/keycodes.mjs.map +1 -1
- package/fesm2020/layout.mjs +10 -10
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/menu.mjs +2104 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/observers.mjs +13 -13
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +197 -99
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -7
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +58 -24
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +35 -31
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +24 -37
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +79 -79
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs +7 -2
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +32 -8
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs +33 -1
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +14 -15
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -25
- package/fesm2020/tree.mjs.map +1 -1
- package/menu/context-menu-trigger.d.ts +98 -0
- package/menu/index.d.ts +8 -0
- package/menu/menu-aim.d.ts +107 -0
- package/menu/menu-bar.d.ts +52 -0
- package/menu/menu-base.d.ts +104 -0
- package/menu/menu-errors.d.ts +17 -0
- package/menu/menu-group.d.ts +8 -0
- package/menu/menu-interface.d.ts +25 -0
- package/menu/menu-item-checkbox.d.ts +18 -0
- package/menu/menu-item-radio.d.ts +59 -0
- package/menu/menu-item-selectable.d.ts +21 -0
- package/menu/menu-item.d.ts +140 -0
- package/menu/menu-module.d.ts +17 -0
- package/menu/menu-stack.d.ts +122 -0
- package/menu/menu-trigger-base.d.ts +77 -0
- package/menu/menu-trigger.d.ts +104 -0
- package/menu/menu.d.ts +60 -0
- package/menu/menu_public_index.d.ts +4 -0
- package/menu/package.json +9 -0
- package/menu/pointer-focus-tracker.d.ts +47 -0
- package/menu/public-api.d.ts +23 -0
- package/observers/observe-content.d.ts +1 -1
- package/overlay/_index.scss +11 -1
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +7 -2
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +8 -2
- package/overlay/overlay-directives.d.ts +2 -2
- package/overlay/overlay-ref.d.ts +4 -1
- package/overlay/overlay.d.ts +3 -2
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -0
- package/overlay/position/global-position-strategy.d.ts +14 -3
- package/overlay/public-api.d.ts +1 -1
- package/overlay-prebuilt.css +1 -1
- package/package.json +19 -3
- package/portal/dom-portal-outlet.d.ts +17 -6
- package/portal/portal-directives.d.ts +4 -4
- package/portal/portal.d.ts +12 -2
- package/schematics/collection.json +2 -1
- package/schematics/index.js +6 -2
- package/schematics/index.mjs +6 -2
- package/schematics/migration.json +5 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/drag-drop/index.js +5 -14
- package/schematics/ng-generate/drag-drop/index.mjs +5 -14
- package/schematics/ng-generate/drag-drop/schema.json +1 -1
- package/schematics/ng-update/data/constructor-checks.js +7 -1
- package/schematics/ng-update/data/constructor-checks.mjs +7 -1
- package/schematics/ng-update/data/index.js +6 -2
- package/schematics/ng-update/data/index.mjs +6 -2
- package/schematics/ng-update/devkit-migration-rule.js +5 -14
- package/schematics/ng-update/devkit-migration-rule.mjs +5 -14
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.mjs +1 -1
- package/schematics/ng-update/html-parsing/elements.js +2 -3
- package/schematics/ng-update/html-parsing/elements.mjs +2 -3
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +7 -2
- package/schematics/ng-update/index.mjs +7 -2
- package/schematics/ng-update/migrations/symbol-removal.js +2 -3
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -3
- package/schematics/ng-update/public-api.js +6 -2
- package/schematics/ng-update/public-api.mjs +6 -2
- package/schematics/tsconfig.json +2 -10
- package/schematics/update-tool/public-api.js +6 -2
- package/schematics/update-tool/public-api.mjs +6 -2
- package/schematics/update-tool/target-version.d.ts +2 -1
- package/schematics/update-tool/target-version.js +2 -1
- package/schematics/update-tool/target-version.mjs +2 -1
- package/schematics/utils/ast.js +11 -22
- package/schematics/utils/ast.mjs +11 -22
- package/schematics/utils/build-component.js +10 -15
- package/schematics/utils/build-component.mjs +10 -15
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +7 -2
- package/schematics/utils/get-project.mjs +7 -2
- package/schematics/utils/index.js +6 -2
- package/schematics/utils/index.mjs +6 -2
- package/schematics/utils/project-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- package/schematics/utils/project-targets.js +3 -4
- package/schematics/utils/project-targets.mjs +3 -4
- package/schematics/utils/project-tsconfig-paths.js +16 -28
- package/schematics/utils/project-tsconfig-paths.mjs +16 -28
- package/scrolling/fixed-size-virtual-scroll.d.ts +1 -1
- package/scrolling/scrollable.d.ts +1 -1
- package/scrolling/scrolling-module.d.ts +1 -2
- package/scrolling/virtual-for-of.d.ts +1 -1
- package/scrolling/virtual-scroll-viewport.d.ts +1 -1
- package/stepper/step-header.d.ts +1 -1
- package/stepper/step-label.d.ts +1 -1
- package/stepper/stepper-button.d.ts +2 -2
- package/stepper/stepper.d.ts +5 -14
- package/table/cell.d.ts +7 -7
- package/table/row.d.ts +9 -9
- package/table/table.d.ts +8 -12
- package/table/text-column.d.ts +2 -2
- package/testing/component-harness.d.ts +18 -0
- package/testing/harness-environment.d.ts +2 -0
- package/testing/public-api.d.ts +1 -0
- package/testing/test-element-errors.d.ts +12 -0
- package/testing/test-element.d.ts +4 -2
- package/testing/testbed/fake-events/type-in-element.d.ts +2 -2
- package/testing/testbed/unit-test-element.d.ts +4 -1
- package/text-field/autofill.d.ts +1 -1
- package/text-field/autosize.d.ts +1 -1
- package/text-field/text-field-module.d.ts +1 -2
- package/text-field-prebuilt.css +1 -1
- package/tree/nested-node.d.ts +1 -1
- package/tree/node.d.ts +1 -1
- package/tree/outlet.d.ts +1 -1
- package/tree/padding.d.ts +1 -1
- package/tree/toggle.d.ts +1 -1
- package/tree/tree.d.ts +2 -2
package/a11y/_index.scss
CHANGED
|
@@ -21,6 +21,17 @@
|
|
|
21
21
|
// Avoid some cases where the browser will still render the native controls (see #9049).
|
|
22
22
|
-webkit-appearance: none;
|
|
23
23
|
-moz-appearance: none;
|
|
24
|
+
|
|
25
|
+
// We need at least one of top/bottom/left/right in order to prevent cases where the
|
|
26
|
+
// absolute-positioned element is pushed down and can affect scrolling (see #24597).
|
|
27
|
+
// `left` was chosen here, because it's the least likely to break overrides where the
|
|
28
|
+
// element might have been positioned (e.g. `mat-checkbox`).
|
|
29
|
+
left: 0;
|
|
30
|
+
|
|
31
|
+
[dir='rtl'] & {
|
|
32
|
+
left: auto;
|
|
33
|
+
right: 0;
|
|
34
|
+
}
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
|
package/a11y/a11y-module.d.ts
CHANGED
|
@@ -3,11 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "./live-announcer/live-announcer";
|
|
4
4
|
import * as i2 from "./focus-trap/focus-trap";
|
|
5
5
|
import * as i3 from "./focus-monitor/focus-monitor";
|
|
6
|
-
import * as i4 from "@angular/cdk/
|
|
7
|
-
import * as i5 from "@angular/cdk/observers";
|
|
6
|
+
import * as i4 from "@angular/cdk/observers";
|
|
8
7
|
export declare class A11yModule {
|
|
9
8
|
constructor(highContrastModeDetector: HighContrastModeDetector);
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<A11yModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<A11yModule, [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus], [typeof i4.
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<A11yModule, [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus], [typeof i4.ObserversModule], [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus]>;
|
|
12
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<A11yModule>;
|
|
13
12
|
}
|
|
@@ -205,5 +205,5 @@ export declare class CdkMonitorFocus implements AfterViewInit, OnDestroy {
|
|
|
205
205
|
ngAfterViewInit(): void;
|
|
206
206
|
ngOnDestroy(): void;
|
|
207
207
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMonitorFocus, never>;
|
|
208
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { "cdkFocusChange": "cdkFocusChange"; }, never>;
|
|
208
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { "cdkFocusChange": "cdkFocusChange"; }, never, never, false>;
|
|
209
209
|
}
|
|
@@ -159,5 +159,5 @@ export declare class CdkTrapFocus implements OnDestroy, AfterContentInit, OnChan
|
|
|
159
159
|
ngOnChanges(changes: SimpleChanges): void;
|
|
160
160
|
private _captureFocus;
|
|
161
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTrapFocus, never>;
|
|
162
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { "enabled": "cdkTrapFocus"; "autoCapture": "cdkTrapFocusAutoCapture"; }, {}, never>;
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { "enabled": "cdkTrapFocus"; "autoCapture": "cdkTrapFocusAutoCapture"; }, {}, never, never, false>;
|
|
163
163
|
}
|
|
@@ -15,6 +15,8 @@ export declare class LiveAnnouncer implements OnDestroy {
|
|
|
15
15
|
private _liveElement;
|
|
16
16
|
private _document;
|
|
17
17
|
private _previousTimeout;
|
|
18
|
+
private _currentPromise;
|
|
19
|
+
private _currentResolve;
|
|
18
20
|
constructor(elementToken: any, _ngZone: NgZone, _document: any, _defaultOptions?: LiveAnnouncerDefaultOptions | undefined);
|
|
19
21
|
/**
|
|
20
22
|
* Announces a message to screenreaders.
|
|
@@ -72,10 +74,12 @@ export declare class CdkAriaLive implements OnDestroy {
|
|
|
72
74
|
get politeness(): AriaLivePoliteness;
|
|
73
75
|
set politeness(value: AriaLivePoliteness);
|
|
74
76
|
private _politeness;
|
|
77
|
+
/** Time in milliseconds after which to clear out the announcer element. */
|
|
78
|
+
duration: number;
|
|
75
79
|
private _previousAnnouncedText?;
|
|
76
80
|
private _subscription;
|
|
77
81
|
constructor(_elementRef: ElementRef, _liveAnnouncer: LiveAnnouncer, _contentObserver: ContentObserver, _ngZone: NgZone);
|
|
78
82
|
ngOnDestroy(): void;
|
|
79
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAriaLive, never>;
|
|
80
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { "politeness": "cdkAriaLive"; }, {}, never>;
|
|
84
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { "politeness": "cdkAriaLive"; "duration": "cdkAriaLiveDuration"; }, {}, never, never, false>;
|
|
81
85
|
}
|
package/a11y-prebuilt.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}
|
|
1
|
+
.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
|
|
@@ -55,5 +55,5 @@ export declare class CdkAccordionItem implements OnDestroy {
|
|
|
55
55
|
open(): void;
|
|
56
56
|
private _subscribeToOpenCloseAllActions;
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordionItem, [{ optional: true; skipSelf: true; }, null, null]>;
|
|
58
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { "expanded": "expanded"; "disabled": "disabled"; }, { "closed": "closed"; "opened": "opened"; "destroyed": "destroyed"; "expandedChange": "expandedChange"; }, never>;
|
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { "expanded": "expanded"; "disabled": "disabled"; }, { "closed": "closed"; "opened": "opened"; "destroyed": "destroyed"; "expandedChange": "expandedChange"; }, never, never, false>;
|
|
59
59
|
}
|
package/accordion/accordion.d.ts
CHANGED
|
@@ -36,5 +36,5 @@ export declare class CdkAccordion implements OnDestroy, OnChanges {
|
|
|
36
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
37
37
|
ngOnDestroy(): void;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordion, never>;
|
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never, never, false>;
|
|
40
40
|
}
|
package/bidi/dir.d.ts
CHANGED
|
@@ -32,5 +32,5 @@ export declare class Dir implements Directionality, AfterContentInit, OnDestroy
|
|
|
32
32
|
ngAfterContentInit(): void;
|
|
33
33
|
ngOnDestroy(): void;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<Dir, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": "dir"; }, { "change": "dirChange"; }, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": "dir"; }, { "change": "dirChange"; }, never, never, false>;
|
|
36
36
|
}
|
|
@@ -45,5 +45,5 @@ export declare class CdkCopyToClipboard implements OnDestroy {
|
|
|
45
45
|
copy(attempts?: number): void;
|
|
46
46
|
ngOnDestroy(): void;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkCopyToClipboard, [null, null, { optional: true; }]>;
|
|
48
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { "text": "cdkCopyToClipboard"; "attempts": "cdkCopyToClipboardAttempts"; }, { "copied": "cdkCopyToClipboardCopied"; }, never>;
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { "text": "cdkCopyToClipboard"; "attempts": "cdkCopyToClipboardAttempts"; }, { "copied": "cdkCopyToClipboardCopied"; }, never, never, false>;
|
|
49
49
|
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { ViewContainerRef, ComponentFactoryResolver, Injector, StaticProvider, Type } from '@angular/core';
|
|
9
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
10
|
+
import { PositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
|
|
11
|
+
import { BasePortalOutlet } from '@angular/cdk/portal';
|
|
12
|
+
/** Options for where to set focus to automatically on dialog open */
|
|
13
|
+
export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
14
|
+
/** Valid ARIA roles for a dialog. */
|
|
15
|
+
export declare type DialogRole = 'dialog' | 'alertdialog';
|
|
16
|
+
/** Configuration for opening a modal dialog. */
|
|
17
|
+
export declare class DialogConfig<D = unknown, R = unknown, C extends BasePortalOutlet = BasePortalOutlet> {
|
|
18
|
+
/**
|
|
19
|
+
* Where the attached component should live in Angular's *logical* component tree.
|
|
20
|
+
* This affects what is available for injection and the change detection order for the
|
|
21
|
+
* component instantiated inside of the dialog. This does not affect where the dialog
|
|
22
|
+
* content will be rendered.
|
|
23
|
+
*/
|
|
24
|
+
viewContainerRef?: ViewContainerRef;
|
|
25
|
+
/**
|
|
26
|
+
* Injector used for the instantiation of the component to be attached. If provided,
|
|
27
|
+
* takes precedence over the injector indirectly provided by `ViewContainerRef`.
|
|
28
|
+
*/
|
|
29
|
+
injector?: Injector;
|
|
30
|
+
/** ID for the dialog. If omitted, a unique one will be generated. */
|
|
31
|
+
id?: string;
|
|
32
|
+
/** The ARIA role of the dialog element. */
|
|
33
|
+
role?: DialogRole;
|
|
34
|
+
/** Optional CSS class or classes applied to the overlay panel. */
|
|
35
|
+
panelClass?: string | string[];
|
|
36
|
+
/** Whether the dialog has a backdrop. */
|
|
37
|
+
hasBackdrop?: boolean;
|
|
38
|
+
/** Optional CSS class or classes applied to the overlay backdrop. */
|
|
39
|
+
backdropClass?: string | string[];
|
|
40
|
+
/** Whether the dialog closes with the escape key or pointer events outside the panel element. */
|
|
41
|
+
disableClose?: boolean;
|
|
42
|
+
/** Width of the dialog. */
|
|
43
|
+
width?: string;
|
|
44
|
+
/** Height of the dialog. */
|
|
45
|
+
height?: string;
|
|
46
|
+
/** Min-width of the dialog. If a number is provided, assumes pixel units. */
|
|
47
|
+
minWidth?: number | string;
|
|
48
|
+
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
49
|
+
minHeight?: number | string;
|
|
50
|
+
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
51
|
+
maxWidth?: number | string;
|
|
52
|
+
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
53
|
+
maxHeight?: number | string;
|
|
54
|
+
/** Strategy to use when positioning the dialog. Defaults to centering it on the page. */
|
|
55
|
+
positionStrategy?: PositionStrategy;
|
|
56
|
+
/** Data being injected into the child component. */
|
|
57
|
+
data?: D | null;
|
|
58
|
+
/** Layout direction for the dialog's content. */
|
|
59
|
+
direction?: Direction;
|
|
60
|
+
/** ID of the element that describes the dialog. */
|
|
61
|
+
ariaDescribedBy?: string | null;
|
|
62
|
+
/** ID of the element that labels the dialog. */
|
|
63
|
+
ariaLabelledBy?: string | null;
|
|
64
|
+
/** Dialog label applied via `aria-label` */
|
|
65
|
+
ariaLabel?: string | null;
|
|
66
|
+
/** Whether this a modal dialog. Used to set the `aria-modal` attribute. */
|
|
67
|
+
ariaModal?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Where the dialog should focus on open.
|
|
70
|
+
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
71
|
+
* AutoFocusTarget instead.
|
|
72
|
+
*/
|
|
73
|
+
autoFocus?: AutoFocusTarget | string | boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the dialog should restore focus to the previously-focused element upon closing.
|
|
76
|
+
* Has the following behavior based on the type that is passed in:
|
|
77
|
+
* - `boolean` - when true, will return focus to the element that was focused before the dialog
|
|
78
|
+
* was opened, otherwise won't restore focus at all.
|
|
79
|
+
* - `string` - focus will be restored to the first element that matches the CSS selector.
|
|
80
|
+
* - `HTMLElement` - focus will be restored to the specific element.
|
|
81
|
+
*/
|
|
82
|
+
restoreFocus?: boolean | string | HTMLElement;
|
|
83
|
+
/**
|
|
84
|
+
* Scroll strategy to be used for the dialog. This determines how
|
|
85
|
+
* the dialog responds to scrolling underneath the panel element.
|
|
86
|
+
*/
|
|
87
|
+
scrollStrategy?: ScrollStrategy;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the dialog should close when the user navigates backwards or forwards through browser
|
|
90
|
+
* history. This does not apply to navigation via anchor element unless using URL-hash based
|
|
91
|
+
* routing (`HashLocationStrategy` in the Angular router).
|
|
92
|
+
*/
|
|
93
|
+
closeOnNavigation?: boolean;
|
|
94
|
+
/** Alternate `ComponentFactoryResolver` to use when resolving the associated component. */
|
|
95
|
+
componentFactoryResolver?: ComponentFactoryResolver;
|
|
96
|
+
/**
|
|
97
|
+
* Providers that will be exposed to the contents of the dialog. Can also
|
|
98
|
+
* be provided as a function in order to generate the providers lazily.
|
|
99
|
+
*/
|
|
100
|
+
providers?: StaticProvider[] | ((dialogRef: R, config: DialogConfig<D, R, C>, container: C) => StaticProvider[]);
|
|
101
|
+
/**
|
|
102
|
+
* Component into which the dialog content will be rendered. Defaults to `CdkDialogContainer`.
|
|
103
|
+
* A configuration object can be passed in to customize the providers that will be exposed
|
|
104
|
+
* to the dialog container.
|
|
105
|
+
*/
|
|
106
|
+
container?: Type<C> | {
|
|
107
|
+
type: Type<C>;
|
|
108
|
+
providers: (config: DialogConfig<D, R, C>) => StaticProvider[];
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Context that will be passed to template-based dialogs.
|
|
112
|
+
* A function can be passed in to resolve the context lazily.
|
|
113
|
+
*/
|
|
114
|
+
templateContext?: Record<string, any> | (() => Record<string, any>);
|
|
115
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { FocusMonitor, FocusOrigin, FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
|
|
9
|
+
import { OverlayRef } from '@angular/cdk/overlay';
|
|
10
|
+
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
11
|
+
import { AfterViewInit, ComponentRef, ElementRef, EmbeddedViewRef, NgZone, OnDestroy } from '@angular/core';
|
|
12
|
+
import { DialogConfig } from './dialog-config';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare function throwDialogContentAlreadyAttachedError(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Internal component that wraps user-provided dialog content.
|
|
17
|
+
* @docs-private
|
|
18
|
+
*/
|
|
19
|
+
export declare class CdkDialogContainer<C extends DialogConfig = DialogConfig> extends BasePortalOutlet implements AfterViewInit, OnDestroy {
|
|
20
|
+
protected _elementRef: ElementRef;
|
|
21
|
+
protected _focusTrapFactory: FocusTrapFactory;
|
|
22
|
+
readonly _config: C;
|
|
23
|
+
private _interactivityChecker;
|
|
24
|
+
private _ngZone;
|
|
25
|
+
private _overlayRef;
|
|
26
|
+
private _focusMonitor?;
|
|
27
|
+
protected _document: Document;
|
|
28
|
+
/** The portal outlet inside of this container into which the dialog content will be loaded. */
|
|
29
|
+
_portalOutlet: CdkPortalOutlet;
|
|
30
|
+
/** The class that traps and manages focus within the dialog. */
|
|
31
|
+
private _focusTrap;
|
|
32
|
+
/** Element that was focused before the dialog was opened. Save this to restore upon close. */
|
|
33
|
+
private _elementFocusedBeforeDialogWasOpened;
|
|
34
|
+
/**
|
|
35
|
+
* Type of interaction that led to the dialog being closed. This is used to determine
|
|
36
|
+
* whether the focus style will be applied when returning focus to its original location
|
|
37
|
+
* after the dialog is closed.
|
|
38
|
+
*/
|
|
39
|
+
_closeInteractionType: FocusOrigin | null;
|
|
40
|
+
/** ID of the element that should be considered as the dialog's label. */
|
|
41
|
+
_ariaLabelledBy: string | null;
|
|
42
|
+
constructor(_elementRef: ElementRef, _focusTrapFactory: FocusTrapFactory, _document: any, _config: C, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, _overlayRef: OverlayRef, _focusMonitor?: FocusMonitor | undefined);
|
|
43
|
+
ngAfterViewInit(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Can be used by child classes to customize the initial focus
|
|
46
|
+
* capturing behavior (e.g. if it's tied to an animation).
|
|
47
|
+
*/
|
|
48
|
+
protected _captureInitialFocus(): void;
|
|
49
|
+
ngOnDestroy(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Attach a ComponentPortal as content to this dialog container.
|
|
52
|
+
* @param portal Portal to be attached as the dialog content.
|
|
53
|
+
*/
|
|
54
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
55
|
+
/**
|
|
56
|
+
* Attach a TemplatePortal as content to this dialog container.
|
|
57
|
+
* @param portal Portal to be attached as the dialog content.
|
|
58
|
+
*/
|
|
59
|
+
attachTemplatePortal<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
|
|
60
|
+
/**
|
|
61
|
+
* Attaches a DOM portal to the dialog container.
|
|
62
|
+
* @param portal Portal to be attached.
|
|
63
|
+
* @deprecated To be turned into a method.
|
|
64
|
+
* @breaking-change 10.0.0
|
|
65
|
+
*/
|
|
66
|
+
attachDomPortal: (portal: DomPortal) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Focuses the provided element. If the element is not focusable, it will add a tabIndex
|
|
69
|
+
* attribute to forcefully focus it. The attribute is removed after focus is moved.
|
|
70
|
+
* @param element The element to focus.
|
|
71
|
+
*/
|
|
72
|
+
private _forceFocus;
|
|
73
|
+
/**
|
|
74
|
+
* Focuses the first element that matches the given selector within the focus trap.
|
|
75
|
+
* @param selector The CSS selector for the element to set focus to.
|
|
76
|
+
*/
|
|
77
|
+
private _focusByCssSelector;
|
|
78
|
+
/**
|
|
79
|
+
* Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
|
|
80
|
+
* cannot be moved then focus will go to the dialog container.
|
|
81
|
+
*/
|
|
82
|
+
protected _trapFocus(): void;
|
|
83
|
+
/** Restores focus to the element that was focused before the dialog opened. */
|
|
84
|
+
private _restoreFocus;
|
|
85
|
+
/** Focuses the dialog container. */
|
|
86
|
+
private _focusDialogContainer;
|
|
87
|
+
/** Returns whether focus is inside the dialog. */
|
|
88
|
+
private _containsFocus;
|
|
89
|
+
/** Sets up the focus trap. */
|
|
90
|
+
private _initializeFocusTrap;
|
|
91
|
+
/** Sets up the listener that handles clicks on the dialog backdrop. */
|
|
92
|
+
private _handleBackdropClicks;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogContainer<any>, [null, null, { optional: true; }, null, null, null, null, null]>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogContainer<any>, "cdk-dialog-container", never, {}, {}, never, never, false>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { InjectionToken } from '@angular/core';
|
|
9
|
+
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
10
|
+
import { DialogConfig } from './dialog-config';
|
|
11
|
+
/** Injection token for the Dialog's ScrollStrategy. */
|
|
12
|
+
export declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
13
|
+
/** Injection token for the Dialog's Data. */
|
|
14
|
+
export declare const DIALOG_DATA: InjectionToken<any>;
|
|
15
|
+
/** Injection token that can be used to provide default options for the dialog module. */
|
|
16
|
+
export declare const DEFAULT_DIALOG_CONFIG: InjectionToken<DialogConfig<unknown, unknown, import("@angular/cdk/portal").BasePortalOutlet>>;
|
|
17
|
+
/** @docs-private */
|
|
18
|
+
export declare function DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
19
|
+
/** @docs-private */
|
|
20
|
+
export declare const DIALOG_SCROLL_STRATEGY_PROVIDER: {
|
|
21
|
+
provide: InjectionToken<() => ScrollStrategy>;
|
|
22
|
+
deps: (typeof Overlay)[];
|
|
23
|
+
useFactory: typeof DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dialog-container";
|
|
3
|
+
import * as i2 from "@angular/cdk/overlay";
|
|
4
|
+
import * as i3 from "@angular/cdk/portal";
|
|
5
|
+
import * as i4 from "@angular/cdk/a11y";
|
|
6
|
+
export declare class DialogModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.CdkDialogContainer], [typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.A11yModule], [typeof i3.PortalModule, typeof i1.CdkDialogContainer]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { OverlayRef } from '@angular/cdk/overlay';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import { DialogConfig } from './dialog-config';
|
|
11
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
12
|
+
import { BasePortalOutlet } from '@angular/cdk/portal';
|
|
13
|
+
/** Additional options that can be passed in when closing a dialog. */
|
|
14
|
+
export interface DialogCloseOptions {
|
|
15
|
+
/** Focus original to use when restoring focus. */
|
|
16
|
+
focusOrigin?: FocusOrigin;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reference to a dialog opened via the Dialog service.
|
|
20
|
+
*/
|
|
21
|
+
export declare class DialogRef<R = unknown, C = unknown> {
|
|
22
|
+
readonly overlayRef: OverlayRef;
|
|
23
|
+
readonly config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>;
|
|
24
|
+
/**
|
|
25
|
+
* Instance of component opened into the dialog. Will be
|
|
26
|
+
* null when the dialog is opened using a `TemplateRef`.
|
|
27
|
+
*/
|
|
28
|
+
readonly componentInstance: C | null;
|
|
29
|
+
/** Instance of the container that is rendering out the dialog content. */
|
|
30
|
+
readonly containerInstance: BasePortalOutlet & {
|
|
31
|
+
_closeInteractionType?: FocusOrigin;
|
|
32
|
+
};
|
|
33
|
+
/** Whether the user is allowed to close the dialog. */
|
|
34
|
+
disableClose: boolean | undefined;
|
|
35
|
+
/** Emits when the dialog has been closed. */
|
|
36
|
+
readonly closed: Observable<R | undefined>;
|
|
37
|
+
/** Emits when the backdrop of the dialog is clicked. */
|
|
38
|
+
readonly backdropClick: Observable<MouseEvent>;
|
|
39
|
+
/** Emits when on keyboard events within the dialog. */
|
|
40
|
+
readonly keydownEvents: Observable<KeyboardEvent>;
|
|
41
|
+
/** Emits on pointer events that happen outside of the dialog. */
|
|
42
|
+
readonly outsidePointerEvents: Observable<MouseEvent>;
|
|
43
|
+
/** Unique ID for the dialog. */
|
|
44
|
+
readonly id: string;
|
|
45
|
+
constructor(overlayRef: OverlayRef, config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>);
|
|
46
|
+
/**
|
|
47
|
+
* Close the dialog.
|
|
48
|
+
* @param result Optional result to return to the dialog opener.
|
|
49
|
+
* @param options Additional options to customize the closing behavior.
|
|
50
|
+
*/
|
|
51
|
+
close(result?: R, options?: DialogCloseOptions): void;
|
|
52
|
+
/** Updates the position of the dialog based on the current position strategy. */
|
|
53
|
+
updatePosition(): this;
|
|
54
|
+
/**
|
|
55
|
+
* Updates the dialog's width and height.
|
|
56
|
+
* @param width New width of the dialog.
|
|
57
|
+
* @param height New height of the dialog.
|
|
58
|
+
*/
|
|
59
|
+
updateSize(width?: string | number, height?: string | number): this;
|
|
60
|
+
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
61
|
+
addPanelClass(classes: string | string[]): this;
|
|
62
|
+
/** Remove a CSS class or an array of classes from the overlay pane. */
|
|
63
|
+
removePanelClass(classes: string | string[]): this;
|
|
64
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { TemplateRef, Injector, OnDestroy } from '@angular/core';
|
|
9
|
+
import { Observable, Subject } from 'rxjs';
|
|
10
|
+
import { DialogRef } from './dialog-ref';
|
|
11
|
+
import { DialogConfig } from './dialog-config';
|
|
12
|
+
import { ComponentType, Overlay, OverlayContainer } from '@angular/cdk/overlay';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class Dialog implements OnDestroy {
|
|
15
|
+
private _overlay;
|
|
16
|
+
private _injector;
|
|
17
|
+
private _defaultOptions;
|
|
18
|
+
private _parentDialog;
|
|
19
|
+
private _overlayContainer;
|
|
20
|
+
private _openDialogsAtThisLevel;
|
|
21
|
+
private readonly _afterAllClosedAtThisLevel;
|
|
22
|
+
private readonly _afterOpenedAtThisLevel;
|
|
23
|
+
private _ariaHiddenElements;
|
|
24
|
+
private _scrollStrategy;
|
|
25
|
+
/** Keeps track of the currently-open dialogs. */
|
|
26
|
+
get openDialogs(): readonly DialogRef<any, any>[];
|
|
27
|
+
/** Stream that emits when a dialog has been opened. */
|
|
28
|
+
get afterOpened(): Subject<DialogRef<any, any>>;
|
|
29
|
+
/**
|
|
30
|
+
* Stream that emits when all open dialog have finished closing.
|
|
31
|
+
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
32
|
+
*/
|
|
33
|
+
readonly afterAllClosed: Observable<void>;
|
|
34
|
+
constructor(_overlay: Overlay, _injector: Injector, _defaultOptions: DialogConfig, _parentDialog: Dialog, _overlayContainer: OverlayContainer, scrollStrategy: any);
|
|
35
|
+
/**
|
|
36
|
+
* Opens a modal dialog containing the given component.
|
|
37
|
+
* @param component Type of the component to load into the dialog.
|
|
38
|
+
* @param config Extra configuration options.
|
|
39
|
+
* @returns Reference to the newly-opened dialog.
|
|
40
|
+
*/
|
|
41
|
+
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DialogConfig<D, DialogRef<R, C>>): DialogRef<R, C>;
|
|
42
|
+
/**
|
|
43
|
+
* Opens a modal dialog containing the given template.
|
|
44
|
+
* @param template TemplateRef to instantiate as the dialog content.
|
|
45
|
+
* @param config Extra configuration options.
|
|
46
|
+
* @returns Reference to the newly-opened dialog.
|
|
47
|
+
*/
|
|
48
|
+
open<R = unknown, D = unknown, C = unknown>(template: TemplateRef<C>, config?: DialogConfig<D, DialogRef<R, C>>): DialogRef<R, C>;
|
|
49
|
+
open<R = unknown, D = unknown, C = unknown>(componentOrTemplateRef: ComponentType<C> | TemplateRef<C>, config?: DialogConfig<D, DialogRef<R, C>>): DialogRef<R, C>;
|
|
50
|
+
/**
|
|
51
|
+
* Closes all of the currently-open dialogs.
|
|
52
|
+
*/
|
|
53
|
+
closeAll(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Finds an open dialog by its id.
|
|
56
|
+
* @param id ID to use when looking up the dialog.
|
|
57
|
+
*/
|
|
58
|
+
getDialogById<R, C>(id: string): DialogRef<R, C> | undefined;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Creates an overlay config from a dialog config.
|
|
62
|
+
* @param config The dialog configuration.
|
|
63
|
+
* @returns The overlay configuration.
|
|
64
|
+
*/
|
|
65
|
+
private _getOverlayConfig;
|
|
66
|
+
/**
|
|
67
|
+
* Attaches a dialog container to a dialog's already-created overlay.
|
|
68
|
+
* @param overlay Reference to the dialog's underlying overlay.
|
|
69
|
+
* @param config The dialog configuration.
|
|
70
|
+
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
71
|
+
*/
|
|
72
|
+
private _attachContainer;
|
|
73
|
+
/**
|
|
74
|
+
* Attaches the user-provided component to the already-created dialog container.
|
|
75
|
+
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
76
|
+
* or a TemplateRef to instantiate as the content.
|
|
77
|
+
* @param dialogRef Reference to the dialog being opened.
|
|
78
|
+
* @param dialogContainer Component that is going to wrap the dialog content.
|
|
79
|
+
* @param config Configuration used to open the dialog.
|
|
80
|
+
*/
|
|
81
|
+
private _attachDialogContent;
|
|
82
|
+
/**
|
|
83
|
+
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
84
|
+
* of a dialog to close itself and, optionally, to return a value.
|
|
85
|
+
* @param config Config object that is used to construct the dialog.
|
|
86
|
+
* @param dialogRef Reference to the dialog being opened.
|
|
87
|
+
* @param dialogContainer Component that is going to wrap the dialog content.
|
|
88
|
+
* @returns The custom injector that can be used inside the dialog.
|
|
89
|
+
*/
|
|
90
|
+
private _createInjector;
|
|
91
|
+
/**
|
|
92
|
+
* Removes a dialog from the array of open dialogs.
|
|
93
|
+
* @param dialogRef Dialog to be removed.
|
|
94
|
+
*/
|
|
95
|
+
private _removeOpenDialog;
|
|
96
|
+
/** Hides all of the content that isn't an overlay from assistive technology. */
|
|
97
|
+
private _hideNonDialogContentFromAssistiveTechnology;
|
|
98
|
+
/** Closes all of the dialogs in an array. */
|
|
99
|
+
private _closeDialogs;
|
|
100
|
+
private _getAfterAllClosed;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, [null, null, { optional: true; }, { optional: true; skipSelf: true; }, null, null]>;
|
|
102
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Dialog>;
|
|
103
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@angular/cdk/dialog",
|
|
3
|
+
"fesm2020": "../fesm2020/dialog.mjs",
|
|
4
|
+
"fesm2015": "../fesm2015/dialog.mjs",
|
|
5
|
+
"esm2020": "../esm2020/dialog/dialog_public_index.mjs",
|
|
6
|
+
"typings": "./dialog_public_index.d.ts",
|
|
7
|
+
"module": "../fesm2015/dialog.mjs",
|
|
8
|
+
"es2020": "../fesm2020/dialog.mjs"
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
export * from './dialog-container';
|
|
9
|
+
export * from './dialog-config';
|
|
10
|
+
export * from './dialog-ref';
|
|
11
|
+
export * from './dialog';
|
|
12
|
+
export * from './dialog-module';
|
|
13
|
+
export * from './dialog-injectors';
|
|
@@ -29,5 +29,5 @@ export declare class CdkDragHandle implements OnDestroy {
|
|
|
29
29
|
constructor(element: ElementRef<HTMLElement>, parentDrag?: any);
|
|
30
30
|
ngOnDestroy(): void;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragHandle, [null, { optional: true; skipSelf: true; }]>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragHandle, "[cdkDragHandle]", never, { "disabled": "cdkDragHandleDisabled"; }, {}, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragHandle, "[cdkDragHandle]", never, { "disabled": "cdkDragHandleDisabled"; }, {}, never, never, false>;
|
|
33
33
|
}
|
|
@@ -23,5 +23,5 @@ export declare class CdkDragPlaceholder<T = any> {
|
|
|
23
23
|
data: T;
|
|
24
24
|
constructor(templateRef: TemplateRef<T>);
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPlaceholder<any>, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPlaceholder<any>, "ng-template[cdkDragPlaceholder]", never, { "data": "data"; }, {}, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPlaceholder<any>, "ng-template[cdkDragPlaceholder]", never, { "data": "data"; }, {}, never, never, false>;
|
|
27
27
|
}
|
|
@@ -28,5 +28,5 @@ export declare class CdkDragPreview<T = any> {
|
|
|
28
28
|
private _matchSize;
|
|
29
29
|
constructor(templateRef: TemplateRef<T>);
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPreview<any>, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { "data": "data"; "matchSize": "matchSize"; }, {}, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { "data": "data"; "matchSize": "matchSize"; }, {}, never, never, false>;
|
|
32
32
|
}
|
|
@@ -66,10 +66,7 @@ export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDes
|
|
|
66
66
|
* Sets the position of a `CdkDrag` that is outside of a drop container.
|
|
67
67
|
* Can be used to restore the element's position for a returning user.
|
|
68
68
|
*/
|
|
69
|
-
freeDragPosition:
|
|
70
|
-
x: number;
|
|
71
|
-
y: number;
|
|
72
|
-
};
|
|
69
|
+
freeDragPosition: Point;
|
|
73
70
|
/** Whether starting to drag this element is disabled. */
|
|
74
71
|
get disabled(): boolean;
|
|
75
72
|
set disabled(value: BooleanInput);
|
|
@@ -136,10 +133,12 @@ export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDes
|
|
|
136
133
|
/**
|
|
137
134
|
* Gets the pixel coordinates of the draggable outside of a drop container.
|
|
138
135
|
*/
|
|
139
|
-
getFreeDragPosition():
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
getFreeDragPosition(): Readonly<Point>;
|
|
137
|
+
/**
|
|
138
|
+
* Sets the current position in pixels the draggable outside of a drop container.
|
|
139
|
+
* @param value New position to be set.
|
|
140
|
+
*/
|
|
141
|
+
setFreeDragPosition(value: Point): void;
|
|
143
142
|
ngAfterViewInit(): void;
|
|
144
143
|
ngOnChanges(changes: SimpleChanges): void;
|
|
145
144
|
ngOnDestroy(): void;
|
|
@@ -156,5 +155,5 @@ export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDes
|
|
|
156
155
|
/** Sets up the listener that syncs the handles with the drag ref. */
|
|
157
156
|
private _setupHandlesListener;
|
|
158
157
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDrag<any>, [null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }, { optional: true; }, null, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }]>;
|
|
159
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDrag<any>, "[cdkDrag]", ["cdkDrag"], { "data": "cdkDragData"; "lockAxis": "cdkDragLockAxis"; "rootElementSelector": "cdkDragRootElement"; "boundaryElement": "cdkDragBoundary"; "dragStartDelay": "cdkDragStartDelay"; "freeDragPosition": "cdkDragFreeDragPosition"; "disabled": "cdkDragDisabled"; "constrainPosition": "cdkDragConstrainPosition"; "previewClass": "cdkDragPreviewClass"; "previewContainer": "cdkDragPreviewContainer"; }, { "started": "cdkDragStarted"; "released": "cdkDragReleased"; "ended": "cdkDragEnded"; "entered": "cdkDragEntered"; "exited": "cdkDragExited"; "dropped": "cdkDragDropped"; "moved": "cdkDragMoved"; }, ["_previewTemplate", "_placeholderTemplate", "_handles"]>;
|
|
158
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDrag<any>, "[cdkDrag]", ["cdkDrag"], { "data": "cdkDragData"; "lockAxis": "cdkDragLockAxis"; "rootElementSelector": "cdkDragRootElement"; "boundaryElement": "cdkDragBoundary"; "dragStartDelay": "cdkDragStartDelay"; "freeDragPosition": "cdkDragFreeDragPosition"; "disabled": "cdkDragDisabled"; "constrainPosition": "cdkDragConstrainPosition"; "previewClass": "cdkDragPreviewClass"; "previewContainer": "cdkDragPreviewContainer"; }, { "started": "cdkDragStarted"; "released": "cdkDragReleased"; "ended": "cdkDragEnded"; "entered": "cdkDragEntered"; "exited": "cdkDragExited"; "dropped": "cdkDragDropped"; "moved": "cdkDragMoved"; }, ["_previewTemplate", "_placeholderTemplate", "_handles"], never, false>;
|
|
160
159
|
}
|
|
@@ -29,5 +29,5 @@ export declare class CdkDropListGroup<T> implements OnDestroy {
|
|
|
29
29
|
private _disabled;
|
|
30
30
|
ngOnDestroy(): void;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDropListGroup<any>, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropListGroup<any>, "[cdkDropListGroup]", ["cdkDropListGroup"], { "disabled": "cdkDropListGroupDisabled"; }, {}, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropListGroup<any>, "[cdkDropListGroup]", ["cdkDropListGroup"], { "disabled": "cdkDropListGroupDisabled"; }, {}, never, never, false>;
|
|
33
33
|
}
|