/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var MatTestLegacyDialogOpener_1; import { __decorate, __metadata } from "tslib"; import { ChangeDetectionStrategy, Component, NgModule, ViewEncapsulation } from '@angular/core'; import { MatLegacyDialog, MatLegacyDialogModule, } from '@angular/material/legacy-dialog'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { _MatTestDialogOpenerBase } from '@angular/material/dialog/testing'; /** * Test component that immediately opens a dialog when created. * @deprecated Use `MatTestDialogOpener` from `@angular/material/dialog/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating. * @breaking-change 17.0.0 */ export let MatTestLegacyDialogOpener = MatTestLegacyDialogOpener_1 = class MatTestLegacyDialogOpener extends _MatTestDialogOpenerBase { constructor(dialog) { super(dialog); } /** Static method that prepares this class to open the provided component. */ static withComponent(component, config) { _MatTestDialogOpenerBase.component = component; _MatTestDialogOpenerBase.config = config; return MatTestLegacyDialogOpener_1; } }; MatTestLegacyDialogOpener = MatTestLegacyDialogOpener_1 = __decorate([ Component({ selector: 'mat-test-dialog-opener', template: '', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { // This binding is used to ensure that the component ID // doesn't clash with the `MatTestDialogOpener`. '[attr.mat-id-collision]': 'null', }, }), __metadata("design:paramtypes", [MatLegacyDialog]) ], MatTestLegacyDialogOpener); /** * @deprecated Use `MatTestDialogOpenerModule` from `@angular/material/dialog/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating. * @breaking-change 17.0.0 */ export let MatTestLegacyDialogOpenerModule = class MatTestLegacyDialogOpenerModule { }; MatTestLegacyDialogOpenerModule = __decorate([ NgModule({ declarations: [MatTestLegacyDialogOpener], imports: [MatLegacyDialogModule, NoopAnimationsModule], }) ], MatTestLegacyDialogOpenerModule); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLW9wZW5lci5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