@angular/cdk-experimental 14.0.0-next.10 → 14.0.0-next.13

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.
Files changed (212) hide show
  1. package/column-resize/index.d.ts +419 -6
  2. package/combobox/index.d.ts +123 -8
  3. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  4. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
  5. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  6. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  7. package/esm2020/column-resize/column-resize-module.mjs +9 -9
  8. package/esm2020/column-resize/column-resize-notifier.mjs +7 -7
  9. package/esm2020/column-resize/column-resize.mjs +4 -4
  10. package/esm2020/column-resize/column-size-store.mjs +4 -4
  11. package/esm2020/column-resize/event-dispatcher.mjs +4 -4
  12. package/esm2020/column-resize/overlay-handle.mjs +4 -4
  13. package/esm2020/column-resize/resizable.mjs +4 -4
  14. package/esm2020/column-resize/resize-strategy.mjs +10 -10
  15. package/esm2020/combobox/combobox-module.mjs +5 -5
  16. package/esm2020/combobox/combobox-popup.mjs +4 -4
  17. package/esm2020/combobox/combobox.mjs +4 -4
  18. package/esm2020/listbox/listbox-module.mjs +5 -5
  19. package/esm2020/listbox/listbox.mjs +7 -7
  20. package/esm2020/popover-edit/edit-event-dispatcher.mjs +4 -4
  21. package/esm2020/popover-edit/edit-ref.mjs +4 -4
  22. package/esm2020/popover-edit/edit-services.mjs +4 -4
  23. package/esm2020/popover-edit/focus-dispatcher.mjs +4 -4
  24. package/esm2020/popover-edit/focus-escape-notifier.mjs +4 -4
  25. package/esm2020/popover-edit/lens-directives.mjs +10 -10
  26. package/esm2020/popover-edit/popover-edit-module.mjs +6 -6
  27. package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +7 -7
  28. package/esm2020/popover-edit/table-directives.mjs +16 -16
  29. package/esm2020/scrolling/auto-size-virtual-scroll.mjs +4 -4
  30. package/esm2020/scrolling/scrolling-module.mjs +5 -5
  31. package/esm2020/selection/row-selection.mjs +4 -4
  32. package/esm2020/selection/select-all.mjs +4 -4
  33. package/esm2020/selection/selection-column.mjs +10 -10
  34. package/esm2020/selection/selection-module.mjs +5 -5
  35. package/esm2020/selection/selection-toggle.mjs +4 -4
  36. package/esm2020/selection/selection.mjs +4 -4
  37. package/esm2020/table-scroll-container/table-scroll-container-module.mjs +5 -5
  38. package/esm2020/table-scroll-container/table-scroll-container.mjs +4 -4
  39. package/esm2020/version.mjs +1 -1
  40. package/fesm2015/cdk-experimental.mjs +1 -1
  41. package/fesm2015/cdk-experimental.mjs.map +1 -1
  42. package/fesm2015/column-resize.mjs +50 -50
  43. package/fesm2015/column-resize.mjs.map +1 -1
  44. package/fesm2015/combobox.mjs +10 -10
  45. package/fesm2015/combobox.mjs.map +1 -1
  46. package/fesm2015/listbox.mjs +10 -10
  47. package/fesm2015/listbox.mjs.map +1 -1
  48. package/fesm2015/popover-edit.mjs +50 -50
  49. package/fesm2015/popover-edit.mjs.map +1 -1
  50. package/fesm2015/scrolling.mjs +7 -7
  51. package/fesm2015/scrolling.mjs.map +1 -1
  52. package/fesm2015/selection.mjs +23 -23
  53. package/fesm2015/selection.mjs.map +1 -1
  54. package/fesm2015/table-scroll-container.mjs +7 -7
  55. package/fesm2015/table-scroll-container.mjs.map +1 -1
  56. package/fesm2020/cdk-experimental.mjs +1 -1
  57. package/fesm2020/cdk-experimental.mjs.map +1 -1
  58. package/fesm2020/column-resize.mjs +50 -50
  59. package/fesm2020/column-resize.mjs.map +1 -1
  60. package/fesm2020/combobox.mjs +10 -10
  61. package/fesm2020/combobox.mjs.map +1 -1
  62. package/fesm2020/listbox.mjs +10 -10
  63. package/fesm2020/listbox.mjs.map +1 -1
  64. package/fesm2020/popover-edit.mjs +50 -50
  65. package/fesm2020/popover-edit.mjs.map +1 -1
  66. package/fesm2020/scrolling.mjs +7 -7
  67. package/fesm2020/scrolling.mjs.map +1 -1
  68. package/fesm2020/selection.mjs +23 -23
  69. package/fesm2020/selection.mjs.map +1 -1
  70. package/fesm2020/table-scroll-container.mjs +7 -7
  71. package/fesm2020/table-scroll-container.mjs.map +1 -1
  72. package/index.d.ts +6 -8
  73. package/listbox/index.d.ts +197 -8
  74. package/package.json +9 -25
  75. package/popover-edit/index.d.ts +532 -5
  76. package/scrolling/index.d.ts +173 -6
  77. package/selection/index.d.ts +273 -5
  78. package/table-scroll-container/index.d.ts +61 -5
  79. package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -28
  80. package/column-resize/column-resize-directives/column-resize.d.ts +0 -28
  81. package/column-resize/column-resize-directives/constants.d.ts +0 -10
  82. package/column-resize/column-resize-directives/default-enabled-column-resize-flex.d.ts +0 -28
  83. package/column-resize/column-resize-directives/default-enabled-column-resize.d.ts +0 -28
  84. package/column-resize/column-resize-module.d.ts +0 -23
  85. package/column-resize/column-resize-notifier.d.ts +0 -49
  86. package/column-resize/column-resize.d.ts +0 -39
  87. package/column-resize/column-resize_public_index.d.ts +0 -4
  88. package/column-resize/column-size-store.d.ts +0 -12
  89. package/column-resize/event-dispatcher.d.ts +0 -44
  90. package/column-resize/overlay-handle.d.ts +0 -43
  91. package/column-resize/package.json +0 -9
  92. package/column-resize/public-api.d.ts +0 -20
  93. package/column-resize/resizable.d.ts +0 -69
  94. package/column-resize/resize-ref.d.ts +0 -17
  95. package/column-resize/resize-strategy.d.ts +0 -83
  96. package/column-resize/selectors.d.ts +0 -10
  97. package/combobox/combobox-module.d.ts +0 -9
  98. package/combobox/combobox-popup.d.ts +0 -27
  99. package/combobox/combobox.d.ts +0 -68
  100. package/combobox/combobox_public_index.d.ts +0 -4
  101. package/combobox/package.json +0 -9
  102. package/combobox/public-api.d.ts +0 -10
  103. package/dialog/dialog-config.d.ts +0 -82
  104. package/dialog/dialog-container.d.ts +0 -99
  105. package/dialog/dialog-injectors.d.ts +0 -30
  106. package/dialog/dialog-module.d.ts +0 -10
  107. package/dialog/dialog-ref.d.ts +0 -57
  108. package/dialog/dialog.d.ts +0 -100
  109. package/dialog/dialog_public_index.d.ts +0 -4
  110. package/dialog/index.d.ts +0 -8
  111. package/dialog/package.json +0 -9
  112. package/dialog/public-api.d.ts +0 -13
  113. package/esm2020/dialog/dialog-config.mjs +0 -43
  114. package/esm2020/dialog/dialog-container.mjs +0 -300
  115. package/esm2020/dialog/dialog-injectors.mjs +0 -30
  116. package/esm2020/dialog/dialog-module.mjs +0 -56
  117. package/esm2020/dialog/dialog-ref.mjs +0 -116
  118. package/esm2020/dialog/dialog.mjs +0 -252
  119. package/esm2020/dialog/dialog_public_index.mjs +0 -5
  120. package/esm2020/dialog/index.mjs +0 -9
  121. package/esm2020/dialog/public-api.mjs +0 -14
  122. package/esm2020/menu/context-menu-trigger.mjs +0 -227
  123. package/esm2020/menu/index.mjs +0 -9
  124. package/esm2020/menu/menu-aim.mjs +0 -204
  125. package/esm2020/menu/menu-bar.mjs +0 -159
  126. package/esm2020/menu/menu-base.mjs +0 -203
  127. package/esm2020/menu/menu-errors.mjs +0 -22
  128. package/esm2020/menu/menu-group.mjs +0 -30
  129. package/esm2020/menu/menu-interface.mjs +0 -11
  130. package/esm2020/menu/menu-item-checkbox.mjs +0 -48
  131. package/esm2020/menu/menu-item-radio.mjs +0 -114
  132. package/esm2020/menu/menu-item-selectable.mjs +0 -42
  133. package/esm2020/menu/menu-item.mjs +0 -289
  134. package/esm2020/menu/menu-module.mjs +0 -62
  135. package/esm2020/menu/menu-stack.mjs +0 -156
  136. package/esm2020/menu/menu-trigger-base.mjs +0 -114
  137. package/esm2020/menu/menu-trigger.mjs +0 -302
  138. package/esm2020/menu/menu.mjs +0 -168
  139. package/esm2020/menu/menu_public_index.mjs +0 -5
  140. package/esm2020/menu/pointer-focus-tracker.mjs +0 -51
  141. package/esm2020/menu/public-api.mjs +0 -24
  142. package/fesm2015/dialog.mjs +0 -803
  143. package/fesm2015/dialog.mjs.map +0 -1
  144. package/fesm2015/menu.mjs +0 -2131
  145. package/fesm2015/menu.mjs.map +0 -1
  146. package/fesm2020/dialog.mjs +0 -797
  147. package/fesm2020/dialog.mjs.map +0 -1
  148. package/fesm2020/menu.mjs +0 -2104
  149. package/fesm2020/menu.mjs.map +0 -1
  150. package/listbox/listbox-module.d.ts +0 -7
  151. package/listbox/listbox.d.ts +0 -172
  152. package/listbox/listbox_public_index.d.ts +0 -4
  153. package/listbox/package.json +0 -9
  154. package/listbox/public-api.d.ts +0 -9
  155. package/menu/context-menu-trigger.d.ts +0 -98
  156. package/menu/index.d.ts +0 -8
  157. package/menu/menu-aim.d.ts +0 -107
  158. package/menu/menu-bar.d.ts +0 -52
  159. package/menu/menu-base.d.ts +0 -104
  160. package/menu/menu-errors.d.ts +0 -17
  161. package/menu/menu-group.d.ts +0 -8
  162. package/menu/menu-interface.d.ts +0 -25
  163. package/menu/menu-item-checkbox.d.ts +0 -18
  164. package/menu/menu-item-radio.d.ts +0 -59
  165. package/menu/menu-item-selectable.d.ts +0 -21
  166. package/menu/menu-item.d.ts +0 -140
  167. package/menu/menu-module.d.ts +0 -17
  168. package/menu/menu-stack.d.ts +0 -122
  169. package/menu/menu-trigger-base.d.ts +0 -77
  170. package/menu/menu-trigger.d.ts +0 -104
  171. package/menu/menu.d.ts +0 -60
  172. package/menu/menu_public_index.d.ts +0 -4
  173. package/menu/package.json +0 -9
  174. package/menu/pointer-focus-tracker.d.ts +0 -47
  175. package/menu/public-api.d.ts +0 -23
  176. package/popover-edit/constants.d.ts +0 -19
  177. package/popover-edit/edit-event-dispatcher.d.ts +0 -99
  178. package/popover-edit/edit-ref.d.ts +0 -52
  179. package/popover-edit/edit-services.d.ts +0 -37
  180. package/popover-edit/focus-dispatcher.d.ts +0 -31
  181. package/popover-edit/focus-escape-notifier.d.ts +0 -40
  182. package/popover-edit/form-value-container.d.ts +0 -24
  183. package/popover-edit/lens-directives.d.ts +0 -82
  184. package/popover-edit/package.json +0 -9
  185. package/popover-edit/polyfill.d.ts +0 -9
  186. package/popover-edit/popover-edit-module.d.ts +0 -9
  187. package/popover-edit/popover-edit-position-strategy-factory.d.ts +0 -42
  188. package/popover-edit/popover-edit_public_index.d.ts +0 -4
  189. package/popover-edit/public-api.d.ts +0 -17
  190. package/popover-edit/table-directives.d.ts +0 -150
  191. package/public-api.d.ts +0 -8
  192. package/scrolling/auto-size-virtual-scroll.d.ts +0 -160
  193. package/scrolling/package.json +0 -9
  194. package/scrolling/public-api.d.ts +0 -9
  195. package/scrolling/scrolling-module.d.ts +0 -7
  196. package/scrolling/scrolling_public_index.d.ts +0 -4
  197. package/selection/package.json +0 -9
  198. package/selection/public-api.d.ts +0 -14
  199. package/selection/row-selection.d.ts +0 -27
  200. package/selection/select-all.d.ts +0 -52
  201. package/selection/selection-column.d.ts +0 -34
  202. package/selection/selection-module.d.ts +0 -13
  203. package/selection/selection-set.d.ts +0 -56
  204. package/selection/selection-toggle.d.ts +0 -46
  205. package/selection/selection.d.ts +0 -65
  206. package/selection/selection_public_index.d.ts +0 -4
  207. package/table-scroll-container/package.json +0 -9
  208. package/table-scroll-container/public-api.d.ts +0 -9
  209. package/table-scroll-container/table-scroll-container-module.d.ts +0 -7
  210. package/table-scroll-container/table-scroll-container.d.ts +0 -53
  211. package/table-scroll-container/table-scroll-container_public_index.d.ts +0 -4
  212. package/version.d.ts +0 -10
@@ -1,99 +0,0 @@
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 { AnimationEvent } from '@angular/animations';
9
- import { FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
10
- import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal';
11
- import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, NgZone, OnDestroy } from '@angular/core';
12
- import { Subject } from 'rxjs';
13
- import { DialogConfig } from './dialog-config';
14
- import * as i0 from "@angular/core";
15
- export declare function throwDialogContentAlreadyAttachedError(): void;
16
- /**
17
- * Internal component that wraps user-provided dialog content.
18
- * @docs-private
19
- */
20
- export declare class CdkDialogContainer extends BasePortalOutlet implements OnDestroy {
21
- private _elementRef;
22
- private _focusTrapFactory;
23
- private _changeDetectorRef;
24
- private readonly _interactivityChecker;
25
- private readonly _ngZone;
26
- /** The dialog configuration. */
27
- _config: DialogConfig;
28
- private readonly _document;
29
- /** State of the dialog animation. */
30
- _state: 'void' | 'enter' | 'exit';
31
- /** Element that was focused before the dialog was opened. Save this to restore upon close. */
32
- private _elementFocusedBeforeDialogWasOpened;
33
- /** The class that traps and manages focus within the dialog. */
34
- private _focusTrap;
35
- /** The portal host inside of this container into which the dialog content will be loaded. */
36
- _portalHost: CdkPortalOutlet;
37
- /** A subject emitting before the dialog enters the view. */
38
- readonly _beforeEnter: Subject<void>;
39
- /** A subject emitting after the dialog enters the view. */
40
- readonly _afterEnter: Subject<void>;
41
- /** A subject emitting before the dialog exits the view. */
42
- readonly _beforeExit: Subject<void>;
43
- /** A subject emitting after the dialog exits the view. */
44
- readonly _afterExit: Subject<void>;
45
- /** Stream of animation `done` events. */
46
- readonly _animationDone: Subject<AnimationEvent>;
47
- constructor(_elementRef: ElementRef<HTMLElement>, _focusTrapFactory: FocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, _document: any,
48
- /** The dialog configuration. */
49
- _config: DialogConfig);
50
- /** Initializes the dialog container with the attached content. */
51
- _initializeWithAttachedContent(): void;
52
- /** Destroy focus trap to place focus back to the element focused before the dialog opened. */
53
- ngOnDestroy(): void;
54
- /**
55
- * Attach a ComponentPortal as content to this dialog container.
56
- * @param portal Portal to be attached as the dialog content.
57
- */
58
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
59
- /**
60
- * Attach a TemplatePortal as content to this dialog container.
61
- * @param portal Portal to be attached as the dialog content.
62
- */
63
- attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
64
- /**
65
- * Attaches a DOM portal to the dialog container.
66
- * @param portal Portal to be attached.
67
- * @deprecated To be turned into a method.
68
- * @breaking-change 10.0.0
69
- */
70
- attachDomPortal: (portal: DomPortal) => void;
71
- /** Emit lifecycle events based on animation `start` callback. */
72
- _onAnimationStart(event: AnimationEvent): void;
73
- /** Starts the dialog exit animation. */
74
- _startExiting(): void;
75
- /** Saves a reference to the element that was focused before the dialog was opened. */
76
- private _savePreviouslyFocusedElement;
77
- /** Focuses the dialog container. */
78
- private _focusDialogContainer;
79
- /**
80
- * Focuses the provided element. If the element is not focusable, it will add a tabIndex
81
- * attribute to forcefully focus it. The attribute is removed after focus is moved.
82
- * @param element The element to focus.
83
- */
84
- private _forceFocus;
85
- /**
86
- * Focuses the first element that matches the given selector within the focus trap.
87
- * @param selector The CSS selector for the element to set focus to.
88
- */
89
- private _focusByCssSelector;
90
- /**
91
- * Autofocus the element specified by the autoFocus field. When autoFocus is not 'dialog', if
92
- * for some reason the element cannot be focused, the dialog container will be focused.
93
- */
94
- private _autoFocus;
95
- /** Returns the focus to the element focused before the dialog was open. */
96
- private _returnFocusAfterDialog;
97
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogContainer, [null, null, null, null, null, { optional: true; }, null]>;
98
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogContainer, "cdk-dialog-container", never, {}, {}, never, never>;
99
- }
@@ -1,30 +0,0 @@
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 { ComponentType, Overlay, ScrollStrategy } from '@angular/cdk/overlay';
10
- import { DialogRef } from './dialog-ref';
11
- import { CdkDialogContainer } from './dialog-container';
12
- import { DialogConfig } from './dialog-config';
13
- /** Injection token for the Dialog's ScrollStrategy. */
14
- export declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
15
- /** Injection token for the Dialog's Data. */
16
- export declare const DIALOG_DATA: InjectionToken<any>;
17
- /** Injection token for the DialogRef constructor. */
18
- export declare const DIALOG_REF: InjectionToken<DialogRef<any, any>>;
19
- /** Injection token for the DialogConfig. */
20
- export declare const DIALOG_CONFIG: InjectionToken<DialogConfig<any>>;
21
- /** Injection token for the Dialog's DialogContainer component. */
22
- export declare const DIALOG_CONTAINER: InjectionToken<ComponentType<CdkDialogContainer>>;
23
- /** @docs-private */
24
- export declare function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
25
- /** @docs-private */
26
- export declare const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER: {
27
- provide: InjectionToken<() => ScrollStrategy>;
28
- deps: (typeof Overlay)[];
29
- useFactory: typeof MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
30
- };
@@ -1,10 +0,0 @@
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
- }
@@ -1,57 +0,0 @@
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, OverlaySizeConfig } from '@angular/cdk/overlay';
9
- import { Observable } from 'rxjs';
10
- import { DialogPosition } from './dialog-config';
11
- import { CdkDialogContainer } from './dialog-container';
12
- /**
13
- * Reference to a dialog opened via the Dialog service.
14
- */
15
- export declare class DialogRef<T, R = any> {
16
- _overlayRef: OverlayRef;
17
- protected _containerInstance: CdkDialogContainer;
18
- readonly id: string;
19
- /** The instance of the component in the dialog. */
20
- componentInstance: T;
21
- /** Whether the user is allowed to close the dialog. */
22
- disableClose: boolean | undefined;
23
- /** Result to be passed to afterClosed. */
24
- private _result;
25
- constructor(_overlayRef: OverlayRef, _containerInstance: CdkDialogContainer, id?: string);
26
- /** Gets an observable that emits when the overlay's backdrop has been clicked. */
27
- backdropClick(): Observable<MouseEvent>;
28
- /**
29
- * Close the dialog.
30
- * @param dialogResult Optional result to return to the dialog opener.
31
- */
32
- close(dialogResult?: R): void;
33
- /**
34
- * Updates the dialog's position.
35
- * @param position New dialog position.
36
- */
37
- updatePosition(position?: DialogPosition): this;
38
- /**
39
- * Gets an observable that emits when keydown events are targeted on the overlay.
40
- */
41
- keydownEvents(): Observable<KeyboardEvent>;
42
- /**
43
- * Updates the dialog's width and height, defined, min and max.
44
- * @param size New size for the overlay.
45
- */
46
- updateSize(size: OverlaySizeConfig): this;
47
- /** Fetches the position strategy object from the overlay ref. */
48
- private _getPositionStrategy;
49
- /** Gets an observable that emits when dialog begins opening. */
50
- beforeOpened(): Observable<void>;
51
- /** Gets an observable that emits when dialog is finished opening. */
52
- afterOpened(): Observable<void>;
53
- /** Gets an observable that emits when dialog begins closing. */
54
- beforeClosed(): Observable<R | undefined>;
55
- /** Gets an observable that emits when dialog is finished closing. */
56
- afterClosed(): Observable<R | undefined>;
57
- }
@@ -1,100 +0,0 @@
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, Type } from '@angular/core';
9
- import { Observable, Subject } from 'rxjs';
10
- import { DialogRef } from './dialog-ref';
11
- import { Location } from '@angular/common';
12
- import { DialogConfig } from './dialog-config';
13
- import { CdkDialogContainer } from './dialog-container';
14
- import { ComponentType, Overlay, OverlayRef } from '@angular/cdk/overlay';
15
- import * as i0 from "@angular/core";
16
- /**
17
- * Service to open modal dialogs.
18
- */
19
- export declare class Dialog implements OnDestroy {
20
- private _overlay;
21
- private _injector;
22
- private _dialogRefConstructor;
23
- private _parentDialog;
24
- private _scrollStrategy;
25
- /** Stream that emits when all dialogs are closed. */
26
- _getAfterAllClosed(): Observable<void>;
27
- readonly _afterAllClosedBase: Subject<void>;
28
- afterAllClosed: Observable<void>;
29
- /** Stream that emits when a dialog is opened. */
30
- get afterOpened(): Subject<DialogRef<any>>;
31
- readonly _afterOpened: Subject<DialogRef<any, any>>;
32
- /** Stream that emits when a dialog is opened. */
33
- get openDialogs(): DialogRef<any>[];
34
- _openDialogs: DialogRef<any>[];
35
- constructor(_overlay: Overlay, _injector: Injector, _dialogRefConstructor: Type<DialogRef<any>>, scrollStrategy: any, _parentDialog: Dialog, location: Location);
36
- /** Gets an open dialog by id. */
37
- getById(id: string): DialogRef<any> | undefined;
38
- /** Closes all open dialogs. */
39
- closeAll(): void;
40
- /** Opens a dialog from a component. */
41
- openFromComponent<T>(component: ComponentType<T>, config?: DialogConfig): DialogRef<any>;
42
- /** Opens a dialog from a template. */
43
- openFromTemplate<T>(template: TemplateRef<T>, config?: DialogConfig): DialogRef<any>;
44
- ngOnDestroy(): void;
45
- /**
46
- * Forwards emitting events for when dialogs are opened and all dialogs are closed.
47
- */
48
- private _registerDialogRef;
49
- /**
50
- * Creates an overlay config from a dialog config.
51
- * @param config The dialog configuration.
52
- * @returns The overlay configuration.
53
- */
54
- protected _createOverlay(config: DialogConfig): OverlayRef;
55
- /**
56
- * Attaches an MatDialogContainer to a dialog's already-created overlay.
57
- * @param overlay Reference to the dialog's underlying overlay.
58
- * @param config The dialog configuration.
59
- * @returns A promise resolving to a ComponentRef for the attached container.
60
- */
61
- protected _attachDialogContainer(overlay: OverlayRef, config: DialogConfig): CdkDialogContainer;
62
- /**
63
- * Attaches the user-provided component to the already-created MatDialogContainer.
64
- * @param componentOrTemplateRef The type of component being loaded into the dialog,
65
- * or a TemplateRef to instantiate as the content.
66
- * @param dialogContainer Reference to the wrapping MatDialogContainer.
67
- * @param overlayRef Reference to the overlay in which the dialog resides.
68
- * @param config The dialog configuration.
69
- * @returns A promise resolving to the MatDialogRef that should be returned to the user.
70
- */
71
- protected _attachDialogContentForComponent<T>(componentOrTemplateRef: ComponentType<T>, dialogContainer: CdkDialogContainer, overlayRef: OverlayRef, config: DialogConfig): DialogRef<any>;
72
- /**
73
- * Attaches the user-provided component to the already-created MatDialogContainer.
74
- * @param componentOrTemplateRef The type of component being loaded into the dialog,
75
- * or a TemplateRef to instantiate as the content.
76
- * @param dialogContainer Reference to the wrapping MatDialogContainer.
77
- * @param overlayRef Reference to the overlay in which the dialog resides.
78
- * @param config The dialog configuration.
79
- * @returns A promise resolving to the MatDialogRef that should be returned to the user.
80
- */
81
- protected _attachDialogContentForTemplate<T>(componentOrTemplateRef: TemplateRef<T>, dialogContainer: CdkDialogContainer, overlayRef: OverlayRef, config: DialogConfig): DialogRef<any>;
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.
87
- * @param container Dialog container element that wraps all of the contents.
88
- * @returns The custom injector that can be used inside the dialog.
89
- */
90
- private _createInjector;
91
- /** Creates a new dialog ref. */
92
- private _createDialogRef;
93
- /**
94
- * Expands the provided configuration object to include the default values for properties which
95
- * are undefined.
96
- */
97
- private _applyConfigDefaults;
98
- static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, [null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; }]>;
99
- static ɵprov: i0.ɵɵInjectableDeclaration<Dialog>;
100
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
package/dialog/index.d.ts DELETED
@@ -1,8 +0,0 @@
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 './public-api';
@@ -1,9 +0,0 @@
1
- {
2
- "name": "@angular/cdk-experimental/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
- }
@@ -1,13 +0,0 @@
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';
@@ -1,43 +0,0 @@
1
- export class DialogConfig {
2
- constructor() {
3
- /** The ARIA role of the dialog. */
4
- this.role = 'dialog';
5
- /** Custom class(es) for the overlay panel. */
6
- this.panelClass = '';
7
- /** Whether the dialog has a background. */
8
- this.hasBackdrop = true;
9
- /** Custom class(es) for the backdrop. */
10
- this.backdropClass = '';
11
- /** Whether the dialog can be closed by user interaction. */
12
- this.disableClose = false;
13
- /** The width of the dialog. */
14
- this.width = '';
15
- /** The height of the dialog. */
16
- this.height = '';
17
- /** The minimum width of the dialog. */
18
- this.minWidth = '';
19
- /** The minimum height of the dialog. */
20
- this.minHeight = '';
21
- /** The maximum width of the dialog. */
22
- this.maxWidth = '80vw';
23
- /** The maximum height of the dialog. */
24
- this.maxHeight = '';
25
- /** Data to be injected into the dialog content. */
26
- this.data = null;
27
- /** ID of the element that describes the dialog. */
28
- this.ariaDescribedBy = null;
29
- /** Aria label to assign to the dialog element */
30
- this.ariaLabel = null;
31
- /**
32
- * Where the dialog should focus on open.
33
- * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
34
- * AutoFocusTarget instead.
35
- */
36
- this.autoFocus = 'first-tabbable';
37
- /** Duration of the enter animation. Has to be a valid CSS value (e.g. 100ms). */
38
- this.enterAnimationDuration = '225ms';
39
- /** Duration of the exit animation. Has to be a valid CSS value (e.g. 50ms). */
40
- this.exitAnimationDuration = '225ms';
41
- }
42
- }
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGstZXhwZXJpbWVudGFsL2RpYWxvZy9kaWFsb2ctY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBCQSxNQUFNLE9BQU8sWUFBWTtJQUF6QjtRQXFCRSxtQ0FBbUM7UUFDbkMsU0FBSSxHQUFnQixRQUFRLENBQUM7UUFFN0IsOENBQThDO1FBQzlDLGVBQVUsR0FBdUIsRUFBRSxDQUFDO1FBRXBDLDJDQUEyQztRQUMzQyxnQkFBVyxHQUFhLElBQUksQ0FBQztRQUU3Qix5Q0FBeUM7UUFDekMsa0JBQWEsR0FBd0IsRUFBRSxDQUFDO1FBRXhDLDREQUE0RDtRQUM1RCxpQkFBWSxHQUFhLEtBQUssQ0FBQztRQUUvQiwrQkFBK0I7UUFDL0IsVUFBSyxHQUFZLEVBQUUsQ0FBQztRQUVwQixnQ0FBZ0M7UUFDaEMsV0FBTSxHQUFZLEVBQUUsQ0FBQztRQUVyQix1Q0FBdUM7UUFDdkMsYUFBUSxHQUFxQixFQUFFLENBQUM7UUFFaEMsd0NBQXdDO1FBQ3hDLGNBQVMsR0FBcUIsRUFBRSxDQUFDO1FBRWpDLHVDQUF1QztRQUN2Qy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