source: trip-planner-front/node_modules/@angular/material/esm2015/menu/menu-errors.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.5 KB
Line 
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/**
9 * Throws an exception for the case when menu trigger doesn't have a valid mat-menu instance
10 * @docs-private
11 */
12export function throwMatMenuMissingError() {
13 throw Error(`matMenuTriggerFor: must pass in an mat-menu instance.
14
15 Example:
16 <mat-menu #menu="matMenu"></mat-menu>
17 <button [matMenuTriggerFor]="menu"></button>`);
18}
19/**
20 * Throws an exception for the case when menu's x-position value isn't valid.
21 * In other words, it doesn't match 'before' or 'after'.
22 * @docs-private
23 */
24export function throwMatMenuInvalidPositionX() {
25 throw Error(`xPosition value must be either 'before' or after'.
26 Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>`);
27}
28/**
29 * Throws an exception for the case when menu's y-position value isn't valid.
30 * In other words, it doesn't match 'above' or 'below'.
31 * @docs-private
32 */
33export function throwMatMenuInvalidPositionY() {
34 throw Error(`yPosition value must be either 'above' or below'.
35 Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>`);
36}
37/**
38 * Throws an exception for the case when a menu is assigned
39 * to a trigger that is placed inside the same menu.
40 * @docs-private
41 */
42export function throwMatMenuRecursiveError() {
43 throw Error(`matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is ` +
44 `not a parent of the trigger or move the trigger outside of the menu.`);
45}
46//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1lcnJvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvbWVudS9tZW51LWVycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7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