constants.js 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. */
  27. export var MDCChipActionCssClasses;
  28. (function (MDCChipActionCssClasses) {
  29. MDCChipActionCssClasses["PRIMARY_ACTION"] = "mdc-evolution-chip__action--primary";
  30. MDCChipActionCssClasses["TRAILING_ACTION"] = "mdc-evolution-chip__action--trailing";
  31. MDCChipActionCssClasses["CHIP_ROOT"] = "mdc-evolution-chip";
  32. })(MDCChipActionCssClasses || (MDCChipActionCssClasses = {}));
  33. /**
  34. * MDCChipActionInteractionTrigger provides detail of the different triggers for
  35. * action interactions.
  36. */
  37. export var MDCChipActionInteractionTrigger;
  38. (function (MDCChipActionInteractionTrigger) {
  39. MDCChipActionInteractionTrigger[MDCChipActionInteractionTrigger["UNSPECIFIED"] = 0] = "UNSPECIFIED";
  40. MDCChipActionInteractionTrigger[MDCChipActionInteractionTrigger["CLICK"] = 1] = "CLICK";
  41. MDCChipActionInteractionTrigger[MDCChipActionInteractionTrigger["BACKSPACE_KEY"] = 2] = "BACKSPACE_KEY";
  42. MDCChipActionInteractionTrigger[MDCChipActionInteractionTrigger["DELETE_KEY"] = 3] = "DELETE_KEY";
  43. MDCChipActionInteractionTrigger[MDCChipActionInteractionTrigger["SPACEBAR_KEY"] = 4] = "SPACEBAR_KEY";
  44. MDCChipActionInteractionTrigger[MDCChipActionInteractionTrigger["ENTER_KEY"] = 5] = "ENTER_KEY";
  45. })(MDCChipActionInteractionTrigger || (MDCChipActionInteractionTrigger = {}));
  46. /**
  47. * MDCChipActionType provides the different types of available actions.
  48. */
  49. export var MDCChipActionType;
  50. (function (MDCChipActionType) {
  51. MDCChipActionType[MDCChipActionType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
  52. MDCChipActionType[MDCChipActionType["PRIMARY"] = 1] = "PRIMARY";
  53. MDCChipActionType[MDCChipActionType["TRAILING"] = 2] = "TRAILING";
  54. })(MDCChipActionType || (MDCChipActionType = {}));
  55. /**
  56. * MDCChipActionEvents provides the different events emitted by the action.
  57. */
  58. export var MDCChipActionEvents;
  59. (function (MDCChipActionEvents) {
  60. MDCChipActionEvents["INTERACTION"] = "MDCChipAction:interaction";
  61. MDCChipActionEvents["NAVIGATION"] = "MDCChipAction:navigation";
  62. })(MDCChipActionEvents || (MDCChipActionEvents = {}));
  63. /**
  64. * MDCChipActionFocusBehavior provides configurations for focusing or unfocusing
  65. * an action.
  66. */
  67. export var MDCChipActionFocusBehavior;
  68. (function (MDCChipActionFocusBehavior) {
  69. MDCChipActionFocusBehavior[MDCChipActionFocusBehavior["FOCUSABLE"] = 0] = "FOCUSABLE";
  70. MDCChipActionFocusBehavior[MDCChipActionFocusBehavior["FOCUSABLE_AND_FOCUSED"] = 1] = "FOCUSABLE_AND_FOCUSED";
  71. MDCChipActionFocusBehavior[MDCChipActionFocusBehavior["NOT_FOCUSABLE"] = 2] = "NOT_FOCUSABLE";
  72. })(MDCChipActionFocusBehavior || (MDCChipActionFocusBehavior = {}));
  73. /**
  74. * MDCChipActionAttributes provides the HTML attributes used by the foundation.
  75. */
  76. export var MDCChipActionAttributes;
  77. (function (MDCChipActionAttributes) {
  78. MDCChipActionAttributes["ARIA_DISABLED"] = "aria-disabled";
  79. MDCChipActionAttributes["ARIA_HIDDEN"] = "aria-hidden";
  80. MDCChipActionAttributes["ARIA_SELECTED"] = "aria-selected";
  81. MDCChipActionAttributes["DATA_DELETABLE"] = "data-mdc-deletable";
  82. MDCChipActionAttributes["DISABLED"] = "disabled";
  83. MDCChipActionAttributes["ROLE"] = "role";
  84. MDCChipActionAttributes["TAB_INDEX"] = "tabindex";
  85. })(MDCChipActionAttributes || (MDCChipActionAttributes = {}));
  86. //# sourceMappingURL=constants.js.map