You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.5 KiB
1 lines
1.5 KiB
{"version":3,"file":"simple-snack-bar.d.ts","sources":["simple-snack-bar.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { MatSnackBarRef } from './snack-bar-ref';\n/**\n * Interface for a simple snack bar component that has a message and a single action.\n */\nexport interface TextOnlySnackBar {\n data: {\n message: string;\n action: string;\n };\n snackBarRef: MatSnackBarRef<TextOnlySnackBar>;\n action: () => void;\n hasAction: boolean;\n}\n/**\n * A component used to open as the default snack bar, matching material spec.\n * This should only be used internally by the snack bar service.\n */\nexport declare class SimpleSnackBar implements TextOnlySnackBar {\n snackBarRef: MatSnackBarRef<SimpleSnackBar>;\n /** Data that was injected into the snack bar. */\n data: {\n message: string;\n action: string;\n };\n constructor(snackBarRef: MatSnackBarRef<SimpleSnackBar>, data: any);\n /** Performs the action on the snack bar. */\n action(): void;\n /** If the action button should be shown. */\n get hasAction(): boolean;\n}\n"]}
|