constants.d.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * @license
  3. * Copyright 2019 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. * CSS class names used in component.
  25. */
  26. export declare const cssClasses: {
  27. CELL: string;
  28. CELL_NUMERIC: string;
  29. CONTENT: string;
  30. HEADER_CELL: string;
  31. HEADER_CELL_LABEL: string;
  32. HEADER_CELL_SORTED: string;
  33. HEADER_CELL_SORTED_DESCENDING: string;
  34. HEADER_CELL_WITH_SORT: string;
  35. HEADER_CELL_WRAPPER: string;
  36. HEADER_ROW: string;
  37. HEADER_ROW_CHECKBOX: string;
  38. IN_PROGRESS: string;
  39. LINEAR_PROGRESS: string;
  40. PAGINATION_ROWS_PER_PAGE_LABEL: string;
  41. PAGINATION_ROWS_PER_PAGE_SELECT: string;
  42. PROGRESS_INDICATOR: string;
  43. ROOT: string;
  44. ROW: string;
  45. ROW_CHECKBOX: string;
  46. ROW_SELECTED: string;
  47. SORT_ICON_BUTTON: string;
  48. SORT_STATUS_LABEL: string;
  49. TABLE_CONTAINER: string;
  50. };
  51. /**
  52. * DOM attributes used in component.
  53. */
  54. export declare const attributes: {
  55. ARIA_SELECTED: string;
  56. ARIA_SORT: string;
  57. };
  58. /**
  59. * List of data attributes used in component.
  60. */
  61. export declare const dataAttributes: {
  62. COLUMN_ID: string;
  63. ROW_ID: string;
  64. };
  65. /**
  66. * CSS selectors used in component.
  67. */
  68. export declare const selectors: {
  69. CONTENT: string;
  70. HEADER_CELL: string;
  71. HEADER_CELL_WITH_SORT: string;
  72. HEADER_ROW: string;
  73. HEADER_ROW_CHECKBOX: string;
  74. PROGRESS_INDICATOR: string;
  75. ROW: string;
  76. ROW_CHECKBOX: string;
  77. ROW_SELECTED: string;
  78. SORT_ICON_BUTTON: string;
  79. SORT_STATUS_LABEL: string;
  80. };
  81. /**
  82. * Messages used in component.
  83. */
  84. export declare const messages: {
  85. SORTED_IN_DESCENDING: string;
  86. SORTED_IN_ASCENDING: string;
  87. };
  88. /**
  89. * Sort values defined by ARIA.
  90. * See https://www.w3.org/WAI/PF/aria/states_and_properties#aria-sort
  91. */
  92. export declare enum SortValue {
  93. ASCENDING = "ascending",
  94. DESCENDING = "descending",
  95. NONE = "none",
  96. OTHER = "other"
  97. }
  98. /**
  99. * Event names used in component.
  100. */
  101. export declare const events: {
  102. ROW_CLICK: string;
  103. ROW_SELECTION_CHANGED: string;
  104. SELECTED_ALL: string;
  105. SORTED: string;
  106. UNSELECTED_ALL: string;
  107. };