1 | /**
|
2 | * @license
|
3 | * Copyright 2016 Google Inc.
|
4 | *
|
5 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 | * of this software and associated documentation files (the "Software"), to deal
|
7 | * in the Software without restriction, including without limitation the rights
|
8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 | * copies of the Software, and to permit persons to whom the Software is
|
10 | * furnished to do so, subject to the following conditions:
|
11 | *
|
12 | * The above copyright notice and this permission notice shall be included in
|
13 | * all copies or substantial portions of the Software.
|
14 | *
|
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21 | * THE SOFTWARE.
|
22 | */
|
23 | var cssClasses = {
|
24 | ACTIVATED: 'mdc-select--activated',
|
25 | DISABLED: 'mdc-select--disabled',
|
26 | FOCUSED: 'mdc-select--focused',
|
27 | INVALID: 'mdc-select--invalid',
|
28 | MENU_INVALID: 'mdc-select__menu--invalid',
|
29 | OUTLINED: 'mdc-select--outlined',
|
30 | REQUIRED: 'mdc-select--required',
|
31 | ROOT: 'mdc-select',
|
32 | WITH_LEADING_ICON: 'mdc-select--with-leading-icon',
|
33 | };
|
34 | var strings = {
|
35 | ARIA_CONTROLS: 'aria-controls',
|
36 | ARIA_DESCRIBEDBY: 'aria-describedby',
|
37 | ARIA_SELECTED_ATTR: 'aria-selected',
|
38 | CHANGE_EVENT: 'MDCSelect:change',
|
39 | HIDDEN_INPUT_SELECTOR: 'input[type="hidden"]',
|
40 | LABEL_SELECTOR: '.mdc-floating-label',
|
41 | LEADING_ICON_SELECTOR: '.mdc-select__icon',
|
42 | LINE_RIPPLE_SELECTOR: '.mdc-line-ripple',
|
43 | MENU_SELECTOR: '.mdc-select__menu',
|
44 | OUTLINE_SELECTOR: '.mdc-notched-outline',
|
45 | SELECTED_TEXT_SELECTOR: '.mdc-select__selected-text',
|
46 | SELECT_ANCHOR_SELECTOR: '.mdc-select__anchor',
|
47 | VALUE_ATTR: 'data-value',
|
48 | };
|
49 | var numbers = {
|
50 | LABEL_SCALE: 0.75,
|
51 | UNSET_INDEX: -1,
|
52 | CLICK_DEBOUNCE_TIMEOUT_MS: 330,
|
53 | };
|
54 | export { cssClasses, strings, numbers };
|
55 | //# sourceMappingURL=constants.js.map |
\ | No newline at end of file |