Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
3.4 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 | * Returns an exception to be thrown when attempting to change a select's `multiple` option
|
---|
10 | * after initialization.
|
---|
11 | * @docs-private
|
---|
12 | */
|
---|
13 | export function getMatSelectDynamicMultipleError() {
|
---|
14 | return Error('Cannot change `multiple` mode of select after initialization.');
|
---|
15 | }
|
---|
16 | /**
|
---|
17 | * Returns an exception to be thrown when attempting to assign a non-array value to a select
|
---|
18 | * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for
|
---|
19 | * resetting the value.
|
---|
20 | * @docs-private
|
---|
21 | */
|
---|
22 | export function getMatSelectNonArrayValueError() {
|
---|
23 | return Error('Value must be an array in multiple-selection mode.');
|
---|
24 | }
|
---|
25 | /**
|
---|
26 | * Returns an exception to be thrown when assigning a non-function value to the comparator
|
---|
27 | * used to determine if a value corresponds to an option. Note that whether the function
|
---|
28 | * actually takes two values and returns a boolean is not checked.
|
---|
29 | */
|
---|
30 | export function getMatSelectNonFunctionValueError() {
|
---|
31 | return Error('`compareWith` must be a function.');
|
---|
32 | }
|
---|
33 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWVycm9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9zZWxlY3Qvc2VsZWN0LWVycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSDs7OztHQUlHO0FBQ0gsTUFBTSxVQUF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