UNPKG

2.7 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright 2020 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/**
24 * MDCChipActionCssClasses provides the classes to be queried and manipulated on
25 * the root.
26 */
27export declare enum MDCChipActionCssClasses {
28 PRIMARY_ACTION = "mdc-evolution-chip__action--primary",
29 TRAILING_ACTION = "mdc-evolution-chip__action--trailing",
30 CHIP_ROOT = "mdc-evolution-chip"
31}
32/**
33 * MDCChipActionInteractionTrigger provides detail of the different triggers for
34 * action interactions.
35 */
36export declare enum MDCChipActionInteractionTrigger {
37 UNSPECIFIED = 0,
38 CLICK = 1,
39 BACKSPACE_KEY = 2,
40 DELETE_KEY = 3,
41 SPACEBAR_KEY = 4,
42 ENTER_KEY = 5
43}
44/**
45 * MDCChipActionType provides the different types of available actions.
46 */
47export declare enum MDCChipActionType {
48 UNSPECIFIED = 0,
49 PRIMARY = 1,
50 TRAILING = 2
51}
52/**
53 * MDCChipActionEvents provides the different events emitted by the action.
54 */
55export declare enum MDCChipActionEvents {
56 INTERACTION = "MDCChipAction:interaction",
57 NAVIGATION = "MDCChipAction:navigation"
58}
59/**
60 * MDCChipActionFocusBehavior provides configurations for focusing or unfocusing
61 * an action.
62 */
63export declare enum MDCChipActionFocusBehavior {
64 FOCUSABLE = 0,
65 FOCUSABLE_AND_FOCUSED = 1,
66 NOT_FOCUSABLE = 2
67}
68/**
69 * MDCChipActionAttributes provides the HTML attributes used by the foundation.
70 */
71export declare enum MDCChipActionAttributes {
72 ARIA_DISABLED = "aria-disabled",
73 ARIA_HIDDEN = "aria-hidden",
74 ARIA_SELECTED = "aria-selected",
75 DATA_DELETABLE = "data-mdc-deletable",
76 DISABLED = "disabled",
77 ROLE = "role",
78 TAB_INDEX = "tabindex"
79}