@angular/material 14.0.0 → 14.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ import { ViewContainerRef } from '@angular/core';
35
35
 
36
36
  declare namespace i1 {
37
37
  export {
38
- _SnackBarContainer,
38
+ _MatSnackBarContainerBase,
39
39
  MatSnackBarContainer
40
40
  }
41
41
  }
@@ -92,7 +92,7 @@ export declare abstract class _MatSnackBarBase implements OnDestroy {
92
92
  /** The component that should be rendered as the snack bar's simple component. */
93
93
  protected abstract simpleSnackBarComponent: Type<TextOnlySnackBar>;
94
94
  /** The container component that attaches the provided template or component. */
95
- protected abstract snackBarContainerComponent: Type<_SnackBarContainer>;
95
+ protected abstract snackBarContainerComponent: Type<_MatSnackBarContainerBase>;
96
96
  /** The CSS class to apply for handset mode. */
97
97
  protected abstract handsetCssClass: string;
98
98
  /** Reference to the currently opened snackbar at *any* level. */
@@ -186,9 +186,19 @@ export declare class MatSnackBarConfig<D = any> {
186
186
  * Internal component that wraps user-provided snack bar content.
187
187
  * @docs-private
188
188
  */
189
- export declare class MatSnackBarContainer extends BasePortalOutlet implements OnDestroy, _SnackBarContainer {
189
+ export declare class MatSnackBarContainer extends _MatSnackBarContainerBase {
190
+ protected _afterPortalAttached(): void;
191
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarContainer, never>;
192
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatSnackBarContainer, "snack-bar-container", never, {}, {}, never, never, false>;
193
+ }
194
+
195
+ /**
196
+ * Base class for snack bar containers.
197
+ * @docs-private
198
+ */
199
+ export declare abstract class _MatSnackBarContainerBase extends BasePortalOutlet implements OnDestroy {
190
200
  private _ngZone;
191
- private _elementRef;
201
+ protected _elementRef: ElementRef<HTMLElement>;
192
202
  private _changeDetectorRef;
193
203
  private _platform;
194
204
  /** The snack bar configuration. */
@@ -242,8 +252,11 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
242
252
  * errors where we end up removing an element which is in the middle of an animation.
243
253
  */
244
254
  private _completeExit;
245
- /** Applies the various positioning and user-configured CSS classes to the snack bar. */
246
- private _applySnackBarClasses;
255
+ /**
256
+ * Called after the portal contents have been attached. Can be
257
+ * used to modify the DOM once it's guaranteed to be in place.
258
+ */
259
+ protected _afterPortalAttached(): void;
247
260
  /** Asserts that no content is already attached to the container. */
248
261
  private _assertNotAttached;
249
262
  /**
@@ -251,8 +264,8 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
251
264
  * announce it.
252
265
  */
253
266
  private _screenReaderAnnounce;
254
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarContainer, never>;
255
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSnackBarContainer, "snack-bar-container", never, {}, {}, never, never, false>;
267
+ static ɵfac: i0.ɵɵFactoryDeclaration<_MatSnackBarContainerBase, never>;
268
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_MatSnackBarContainerBase, never, never, {}, {}, never, never, false>;
256
269
  }
257
270
 
258
271
  /** Event that is emitted when a snack bar is dismissed. */
@@ -281,7 +294,7 @@ export declare class MatSnackBarRef<T> {
281
294
  * The instance of the component making up the content of the snack bar.
282
295
  * @docs-private
283
296
  */
284
- containerInstance: _SnackBarContainer;
297
+ containerInstance: _MatSnackBarContainerBase;
285
298
  /** Subject for notifying the user that the snack bar has been dismissed. */
286
299
  private readonly _afterDismissed;
287
300
  /** Subject for notifying the user that the snack bar has opened and appeared. */
@@ -295,7 +308,7 @@ export declare class MatSnackBarRef<T> {
295
308
  private _durationTimeoutId;
296
309
  /** Whether the snack bar was dismissed using the action button. */
297
310
  private _dismissedByAction;
298
- constructor(containerInstance: _SnackBarContainer, _overlayRef: OverlayRef);
311
+ constructor(containerInstance: _MatSnackBarContainerBase, _overlayRef: OverlayRef);
299
312
  /** Dismisses the snack bar. */
300
313
  dismiss(): void;
301
314
  /** Marks the snackbar action clicked. */
@@ -343,21 +356,6 @@ export declare class SimpleSnackBar implements TextOnlySnackBar {
343
356
  static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", never, {}, {}, never, never, false>;
344
357
  }
345
358
 
346
- /**
347
- * Internal interface for a snack bar container.
348
- * @docs-private
349
- */
350
- export declare interface _SnackBarContainer {
351
- snackBarConfig: MatSnackBarConfig;
352
- readonly _onAnnounce: Subject<any>;
353
- readonly _onExit: Subject<any>;
354
- readonly _onEnter: Subject<any>;
355
- enter: () => void;
356
- exit: () => Observable<void>;
357
- attachTemplatePortal: <C>(portal: TemplatePortal<C>) => EmbeddedViewRef<C>;
358
- attachComponentPortal: <T>(portal: ComponentPortal<T>) => ComponentRef<T>;
359
- }
360
-
361
359
  /**
362
360
  * Interface for a simple snack bar component that has a message and a single action.
363
361
  */