@material/web 1.0.0-pre.4 → 1.0.0-pre.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (522) hide show
  1. package/README.md +5 -5
  2. package/badge/lib/_badge.scss +2 -10
  3. package/button/lib/_elevated-button.scss +5 -30
  4. package/button/lib/_elevation.scss +1 -16
  5. package/button/lib/_filled-button.scss +4 -31
  6. package/button/lib/_icon.scss +1 -0
  7. package/button/lib/_outlined-button.scss +6 -23
  8. package/button/lib/_shared.scss +20 -54
  9. package/button/lib/_text-button.scss +8 -34
  10. package/button/lib/_tonal-button.scss +5 -28
  11. package/button/lib/button.d.ts +2 -0
  12. package/button/lib/button.js +5 -1
  13. package/button/lib/button.js.map +1 -1
  14. package/button/lib/elevated-styles.css.js +1 -1
  15. package/button/lib/elevated-styles.css.js.map +1 -1
  16. package/button/lib/filled-styles.css.js +1 -1
  17. package/button/lib/filled-styles.css.js.map +1 -1
  18. package/button/lib/outlined-styles.css.js +1 -1
  19. package/button/lib/outlined-styles.css.js.map +1 -1
  20. package/button/lib/shared-styles.css.js +1 -1
  21. package/button/lib/shared-styles.css.js.map +1 -1
  22. package/button/lib/text-styles.css.js +1 -1
  23. package/button/lib/text-styles.css.js.map +1 -1
  24. package/button/lib/tonal-styles.css.js +1 -1
  25. package/button/lib/tonal-styles.css.js.map +1 -1
  26. package/checkbox/lib/_checkbox.scss +1 -2
  27. package/checkbox/lib/checkbox-styles.css.js +1 -1
  28. package/checkbox/lib/checkbox-styles.css.js.map +1 -1
  29. package/chips/_assist-chip.scss +6 -0
  30. package/chips/_suggestion-chip.scss +6 -0
  31. package/chips/assist-chip.d.ts +20 -0
  32. package/chips/assist-chip.js +24 -0
  33. package/chips/assist-chip.js.map +1 -0
  34. package/chips/lib/_assist-chip.scss +27 -0
  35. package/chips/lib/_shared.scss +183 -0
  36. package/chips/lib/_suggestion-chip.scss +30 -0
  37. package/chips/lib/assist-chip.d.ts +11 -0
  38. package/chips/lib/assist-chip.js +12 -0
  39. package/chips/lib/assist-chip.js.map +1 -0
  40. package/chips/lib/assist-styles.css.js +9 -0
  41. package/chips/lib/assist-styles.css.js.map +1 -0
  42. package/{menusurface/lib/menu-surface-styles.scss → chips/lib/assist-styles.scss} +3 -3
  43. package/chips/lib/chip.d.ts +29 -0
  44. package/chips/lib/chip.js +110 -0
  45. package/chips/lib/chip.js.map +1 -0
  46. package/chips/lib/shared-styles.css.js +9 -0
  47. package/chips/lib/shared-styles.css.js.map +1 -0
  48. package/{autocomplete → chips}/lib/shared-styles.scss +1 -1
  49. package/chips/lib/suggestion-chip.d.ts +11 -0
  50. package/chips/lib/suggestion-chip.js +12 -0
  51. package/chips/lib/suggestion-chip.js.map +1 -0
  52. package/chips/lib/suggestion-styles.css.js +9 -0
  53. package/chips/lib/suggestion-styles.css.js.map +1 -0
  54. package/{autocomplete/lib/autocompletelist/autocomplete-list-styles.scss → chips/lib/suggestion-styles.scss} +3 -3
  55. package/chips/suggestion-chip.d.ts +20 -0
  56. package/chips/suggestion-chip.js +24 -0
  57. package/chips/suggestion-chip.js.map +1 -0
  58. package/dialog/lib/_dialog.scss +7 -5
  59. package/dialog/lib/_tokens.scss +1 -2
  60. package/dialog/lib/dialog-styles.css.js +1 -1
  61. package/dialog/lib/dialog-styles.css.js.map +1 -1
  62. package/dialog/lib/dialog.js +1 -1
  63. package/dialog/lib/dialog.js.map +1 -1
  64. package/elevation/lib/_elevation.scss +1 -21
  65. package/elevation/lib/elevation-styles.css.js +1 -1
  66. package/elevation/lib/elevation-styles.css.js.map +1 -1
  67. package/fab/lib/_fab-extended.scss +3 -10
  68. package/fab/lib/_fab.scss +0 -3
  69. package/fab/lib/_shared.scss +3 -25
  70. package/fab/lib/fab-extended-styles.css.js +1 -1
  71. package/fab/lib/fab-extended-styles.css.js.map +1 -1
  72. package/fab/lib/fab-shared-styles.css.js +1 -1
  73. package/fab/lib/fab-shared-styles.css.js.map +1 -1
  74. package/fab/lib/fab-shared.d.ts +0 -1
  75. package/fab/lib/fab-shared.js +1 -7
  76. package/fab/lib/fab-shared.js.map +1 -1
  77. package/field/lib/field.d.ts +4 -1
  78. package/field/lib/field.js +7 -0
  79. package/field/lib/field.js.map +1 -1
  80. package/focus/lib/_focus-ring.scss +13 -7
  81. package/focus/lib/_md-comp-focus-ring.scss +1 -2
  82. package/focus/lib/focus-ring-styles.css.js +1 -1
  83. package/focus/lib/focus-ring-styles.css.js.map +1 -1
  84. package/iconbutton/lib/_filled-icon-button.scss +1 -12
  85. package/iconbutton/lib/_filled-tonal-icon-button.scss +1 -12
  86. package/iconbutton/lib/_outlined-icon-button.scss +1 -13
  87. package/iconbutton/lib/_shared.scss +10 -6
  88. package/iconbutton/lib/_standard-icon-button.scss +5 -12
  89. package/iconbutton/lib/filled-styles.css.js +1 -1
  90. package/iconbutton/lib/filled-styles.css.js.map +1 -1
  91. package/iconbutton/lib/filled-tonal-styles.css.js +1 -1
  92. package/iconbutton/lib/filled-tonal-styles.css.js.map +1 -1
  93. package/iconbutton/lib/icon-button.js +0 -2
  94. package/iconbutton/lib/icon-button.js.map +1 -1
  95. package/iconbutton/lib/outlined-styles.css.js +1 -1
  96. package/iconbutton/lib/outlined-styles.css.js.map +1 -1
  97. package/iconbutton/lib/shared-styles.css.js +1 -1
  98. package/iconbutton/lib/shared-styles.css.js.map +1 -1
  99. package/iconbutton/lib/standard-styles.css.js +1 -1
  100. package/iconbutton/lib/standard-styles.css.js.map +1 -1
  101. package/list/lib/_list.scss +15 -8
  102. package/list/lib/list-styles.css.js +1 -1
  103. package/list/lib/list-styles.css.js.map +1 -1
  104. package/list/lib/listitem/_list-item.scss +41 -44
  105. package/list/lib/listitem/list-item-styles.css.js +1 -1
  106. package/list/lib/listitem/list-item-styles.css.js.map +1 -1
  107. package/list/lib/listitem/list-item.d.ts +1 -0
  108. package/list/lib/listitem/list-item.js +4 -1
  109. package/list/lib/listitem/list-item.js.map +1 -1
  110. package/menu/lib/_menu.scss +6 -9
  111. package/menu/lib/menu-styles.css.js +1 -1
  112. package/menu/lib/menu-styles.css.js.map +1 -1
  113. package/menu/lib/menu.d.ts +22 -9
  114. package/menu/lib/menu.js +74 -26
  115. package/menu/lib/menu.js.map +1 -1
  116. package/menu/lib/menuitem/menu-item.js +1 -1
  117. package/menu/lib/menuitem/menu-item.js.map +1 -1
  118. package/menu/lib/menuitemlink/menu-item-link.js +2 -1
  119. package/menu/lib/menuitemlink/menu-item-link.js.map +1 -1
  120. package/menu/lib/shared.d.ts +16 -0
  121. package/menu/lib/shared.js +16 -0
  122. package/menu/lib/shared.js.map +1 -1
  123. package/menu/lib/submenuitem/sub-menu-item.d.ts +4 -0
  124. package/menu/lib/submenuitem/sub-menu-item.js +9 -2
  125. package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
  126. package/menu/lib/surfacePositionController.d.ts +10 -2
  127. package/menu/lib/surfacePositionController.js +6 -2
  128. package/menu/lib/surfacePositionController.js.map +1 -1
  129. package/menu/lib/typeaheadController.d.ts +5 -0
  130. package/menu/lib/typeaheadController.js +7 -3
  131. package/menu/lib/typeaheadController.js.map +1 -1
  132. package/navigationbar/lib/_navigation-bar.scss +1 -4
  133. package/navigationdrawer/lib/_navigation-drawer-modal.scss +0 -3
  134. package/navigationdrawer/lib/_navigation-drawer.scss +0 -3
  135. package/navigationdrawer/lib/_shared.scss +0 -9
  136. package/navigationtab/lib/_navigation-tab.scss +4 -10
  137. package/navigationtab/lib/navigation-tab-styles.css.js +1 -1
  138. package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -1
  139. package/package.json +1 -1
  140. package/radio/lib/_radio.scss +1 -2
  141. package/radio/lib/radio-styles.css.js +1 -1
  142. package/radio/lib/radio-styles.css.js.map +1 -1
  143. package/segmentedbutton/lib/_shared.scss +0 -2
  144. package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
  145. package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
  146. package/slider/lib/_slider.scss +1 -4
  147. package/slider/lib/_tokens.scss +2 -8
  148. package/slider/lib/slider-styles.css.js +1 -1
  149. package/slider/lib/slider-styles.css.js.map +1 -1
  150. package/textfield/lib/_filled-text-field.scss +1 -7
  151. package/textfield/lib/_outlined-text-field.scss +1 -7
  152. package/tokens/_index.scss +101 -2
  153. package/tokens/_md-comp-assist-chip.scss +68 -0
  154. package/tokens/_md-comp-badge.scss +34 -0
  155. package/tokens/_md-comp-banner.scss +23 -0
  156. package/tokens/_md-comp-bottom-app-bar.scss +21 -0
  157. package/tokens/_md-comp-carousel-item.scss +23 -0
  158. package/tokens/_md-comp-checkbox.scss +21 -0
  159. package/tokens/_md-comp-circular-progress-indicator.scss +22 -0
  160. package/tokens/_md-comp-data-table.scss +23 -0
  161. package/tokens/_md-comp-date-input-modal.scss +23 -0
  162. package/tokens/_md-comp-date-picker-docked.scss +25 -0
  163. package/tokens/_md-comp-date-picker-modal.scss +25 -0
  164. package/tokens/_md-comp-dialog.scss +43 -0
  165. package/tokens/_md-comp-divider.scss +17 -0
  166. package/tokens/_md-comp-elevated-button.scss +58 -0
  167. package/tokens/_md-comp-elevated-card.scss +23 -0
  168. package/tokens/_md-comp-extended-fab-branded.scss +38 -0
  169. package/tokens/_md-comp-extended-fab-primary.scss +38 -0
  170. package/tokens/_md-comp-extended-fab-secondary.scss +41 -0
  171. package/tokens/_md-comp-extended-fab-surface.scss +38 -0
  172. package/tokens/_md-comp-extended-fab-tertiary.scss +41 -0
  173. package/tokens/_md-comp-fab-branded-large.scss +23 -0
  174. package/tokens/_md-comp-fab-branded.scss +23 -0
  175. package/tokens/_md-comp-fab-primary-large.scss +23 -0
  176. package/tokens/_md-comp-fab-primary-small.scss +23 -0
  177. package/tokens/_md-comp-fab-primary.scss +23 -0
  178. package/tokens/_md-comp-fab-secondary-large.scss +23 -0
  179. package/tokens/_md-comp-fab-secondary-small.scss +23 -0
  180. package/tokens/_md-comp-fab-secondary.scss +23 -0
  181. package/tokens/_md-comp-fab-surface-large.scss +23 -0
  182. package/tokens/_md-comp-fab-surface-small.scss +23 -0
  183. package/tokens/_md-comp-fab-surface.scss +23 -0
  184. package/tokens/_md-comp-fab-tertiary-large.scss +23 -0
  185. package/tokens/_md-comp-fab-tertiary-small.scss +23 -0
  186. package/tokens/_md-comp-fab-tertiary.scss +23 -0
  187. package/tokens/_md-comp-filled-autocomplete.scss +25 -0
  188. package/tokens/_md-comp-filled-button.scss +58 -0
  189. package/tokens/_md-comp-filled-card.scss +23 -0
  190. package/tokens/_md-comp-filled-icon-button.scss +21 -0
  191. package/tokens/_md-comp-filled-menu-button.scss +25 -0
  192. package/tokens/_md-comp-filled-select.scss +25 -0
  193. package/tokens/_md-comp-filled-text-field.scss +46 -0
  194. package/tokens/_md-comp-filled-tonal-button.scss +59 -0
  195. package/tokens/_md-comp-filled-tonal-icon-button.scss +24 -0
  196. package/tokens/_md-comp-filter-chip.scss +38 -0
  197. package/tokens/_md-comp-full-screen-dialog.scss +25 -0
  198. package/tokens/_md-comp-icon-button.scss +21 -0
  199. package/tokens/_md-comp-input-chip.scss +38 -0
  200. package/tokens/_md-comp-linear-progress-indicator.scss +22 -0
  201. package/tokens/_md-comp-list.scss +58 -0
  202. package/tokens/_md-comp-menu.scss +21 -0
  203. package/tokens/_md-comp-navigation-bar.scss +25 -0
  204. package/tokens/_md-comp-navigation-drawer.scss +25 -0
  205. package/tokens/_md-comp-navigation-rail.scss +25 -0
  206. package/tokens/_md-comp-outlined-autocomplete.scss +28 -0
  207. package/tokens/_md-comp-outlined-button.scss +56 -0
  208. package/tokens/_md-comp-outlined-card.scss +23 -0
  209. package/tokens/_md-comp-outlined-icon-button.scss +21 -0
  210. package/tokens/_md-comp-outlined-menu-button.scss +23 -0
  211. package/tokens/_md-comp-outlined-segmented-button.scss +38 -0
  212. package/tokens/_md-comp-outlined-select.scss +25 -0
  213. package/tokens/_md-comp-outlined-text-field.scss +44 -0
  214. package/tokens/_md-comp-plain-tooltip.scss +21 -0
  215. package/tokens/_md-comp-primary-navigation-tab.scss +41 -0
  216. package/tokens/_md-comp-radio-button.scss +19 -0
  217. package/tokens/_md-comp-rich-tooltip.scss +25 -0
  218. package/tokens/_md-comp-scrim.scss +17 -0
  219. package/tokens/_md-comp-search-bar.scss +25 -0
  220. package/tokens/_md-comp-search-view.scss +23 -0
  221. package/tokens/_md-comp-secondary-navigation-tab.scss +41 -0
  222. package/tokens/_md-comp-sheet-bottom.scss +21 -0
  223. package/tokens/_md-comp-sheet-floating.scss +21 -0
  224. package/tokens/_md-comp-sheet-side.scss +25 -0
  225. package/tokens/_md-comp-slider.scss +38 -0
  226. package/tokens/_md-comp-snackbar.scss +25 -0
  227. package/tokens/_md-comp-standard-menu-button.scss +23 -0
  228. package/tokens/_md-comp-suggestion-chip.scss +72 -0
  229. package/tokens/_md-comp-switch.scss +21 -0
  230. package/tokens/_md-comp-text-button.scss +56 -0
  231. package/tokens/_md-comp-time-input.scss +25 -0
  232. package/tokens/_md-comp-time-picker.scss +25 -0
  233. package/tokens/_md-comp-top-app-bar-large.scss +23 -0
  234. package/tokens/_md-comp-top-app-bar-medium.scss +23 -0
  235. package/tokens/_md-comp-top-app-bar-small-centered.scss +26 -0
  236. package/tokens/_md-comp-top-app-bar-small.scss +23 -0
  237. package/tokens/_md-ref-palette.scss +12 -0
  238. package/tokens/_md-ref-typeface.scss +12 -0
  239. package/tokens/_md-sys-color.scss +25 -0
  240. package/tokens/_md-sys-elevation.scss +30 -0
  241. package/tokens/_md-sys-motion.scss +12 -0
  242. package/tokens/_md-sys-shape.scss +12 -0
  243. package/tokens/_md-sys-state.scss +12 -0
  244. package/tokens/_md-sys-typescale.scss +17 -0
  245. package/autocomplete/_filled-autocomplete.scss +0 -6
  246. package/autocomplete/_outlined-autocomplete.scss +0 -6
  247. package/autocomplete/autocomplete-item.d.ts +0 -19
  248. package/autocomplete/autocomplete-item.js +0 -22
  249. package/autocomplete/autocomplete-item.js.map +0 -1
  250. package/autocomplete/autocomplete-list.d.ts +0 -19
  251. package/autocomplete/autocomplete-list.js +0 -23
  252. package/autocomplete/autocomplete-list.js.map +0 -1
  253. package/autocomplete/autocomplete-surface.d.ts +0 -19
  254. package/autocomplete/autocomplete-surface.js +0 -23
  255. package/autocomplete/autocomplete-surface.js.map +0 -1
  256. package/autocomplete/filled-autocomplete.d.ts +0 -28
  257. package/autocomplete/filled-autocomplete.js +0 -46
  258. package/autocomplete/filled-autocomplete.js.map +0 -1
  259. package/autocomplete/lib/_filled-autocomplete.scss +0 -189
  260. package/autocomplete/lib/_outlined-autocomplete.scss +0 -178
  261. package/autocomplete/lib/_shared.scss +0 -25
  262. package/autocomplete/lib/autocomplete.d.ts +0 -54
  263. package/autocomplete/lib/autocomplete.js +0 -265
  264. package/autocomplete/lib/autocomplete.js.map +0 -1
  265. package/autocomplete/lib/autocompleteitem/autocomplete-item.d.ts +0 -11
  266. package/autocomplete/lib/autocompleteitem/autocomplete-item.js +0 -14
  267. package/autocomplete/lib/autocompleteitem/autocomplete-item.js.map +0 -1
  268. package/autocomplete/lib/autocompleteitem/harness.d.ts +0 -11
  269. package/autocomplete/lib/autocompleteitem/harness.js +0 -12
  270. package/autocomplete/lib/autocompleteitem/harness.js.map +0 -1
  271. package/autocomplete/lib/autocompletelist/_autocomplete-list.scss +0 -13
  272. package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js +0 -9
  273. package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js.map +0 -1
  274. package/autocomplete/lib/autocompletelist/autocomplete-list.d.ts +0 -14
  275. package/autocomplete/lib/autocompletelist/autocomplete-list.js +0 -21
  276. package/autocomplete/lib/autocompletelist/autocomplete-list.js.map +0 -1
  277. package/autocomplete/lib/autocompletelist/harness.d.ts +0 -11
  278. package/autocomplete/lib/autocompletelist/harness.js +0 -12
  279. package/autocomplete/lib/autocompletelist/harness.js.map +0 -1
  280. package/autocomplete/lib/autocompletesurface/_autocomplete-surface.scss +0 -13
  281. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js +0 -9
  282. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js.map +0 -1
  283. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss +0 -10
  284. package/autocomplete/lib/autocompletesurface/autocomplete-surface.d.ts +0 -13
  285. package/autocomplete/lib/autocompletesurface/autocomplete-surface.js +0 -21
  286. package/autocomplete/lib/autocompletesurface/autocomplete-surface.js.map +0 -1
  287. package/autocomplete/lib/filled-styles.css.d.ts +0 -1
  288. package/autocomplete/lib/filled-styles.css.js +0 -9
  289. package/autocomplete/lib/filled-styles.css.js.map +0 -1
  290. package/autocomplete/lib/filled-styles.scss +0 -10
  291. package/autocomplete/lib/outlined-styles.css.d.ts +0 -1
  292. package/autocomplete/lib/outlined-styles.css.js +0 -9
  293. package/autocomplete/lib/outlined-styles.css.js.map +0 -1
  294. package/autocomplete/lib/outlined-styles.scss +0 -10
  295. package/autocomplete/lib/shared-styles.css.js +0 -9
  296. package/autocomplete/lib/shared-styles.css.js.map +0 -1
  297. package/autocomplete/outlined-autocomplete.d.ts +0 -28
  298. package/autocomplete/outlined-autocomplete.js +0 -46
  299. package/autocomplete/outlined-autocomplete.js.map +0 -1
  300. package/chips/action/delete-action.d.ts +0 -18
  301. package/chips/action/delete-action.js +0 -20
  302. package/chips/action/delete-action.js.map +0 -1
  303. package/chips/action/lib/action.d.ts +0 -47
  304. package/chips/action/lib/action.js +0 -162
  305. package/chips/action/lib/action.js.map +0 -1
  306. package/chips/action/lib/constants.d.ts +0 -62
  307. package/chips/action/lib/constants.js +0 -69
  308. package/chips/action/lib/constants.js.map +0 -1
  309. package/chips/action/lib/delete-action.d.ts +0 -20
  310. package/chips/action/lib/delete-action.js +0 -65
  311. package/chips/action/lib/delete-action.js.map +0 -1
  312. package/chips/action/lib/events.d.ts +0 -14
  313. package/chips/action/lib/events.js +0 -16
  314. package/chips/action/lib/events.js.map +0 -1
  315. package/chips/action/lib/link-action.d.ts +0 -19
  316. package/chips/action/lib/link-action.js +0 -55
  317. package/chips/action/lib/link-action.js.map +0 -1
  318. package/chips/action/lib/presentational-action.d.ts +0 -15
  319. package/chips/action/lib/presentational-action.js +0 -30
  320. package/chips/action/lib/presentational-action.js.map +0 -1
  321. package/chips/action/lib/primary-action.d.ts +0 -28
  322. package/chips/action/lib/primary-action.js +0 -88
  323. package/chips/action/lib/primary-action.js.map +0 -1
  324. package/chips/action/lib/selectable-action.d.ts +0 -17
  325. package/chips/action/lib/selectable-action.js +0 -67
  326. package/chips/action/lib/selectable-action.js.map +0 -1
  327. package/chips/action/lib/types.d.ts +0 -23
  328. package/chips/action/lib/types.js +0 -7
  329. package/chips/action/lib/types.js.map +0 -1
  330. package/chips/action/link-action.d.ts +0 -18
  331. package/chips/action/link-action.js +0 -20
  332. package/chips/action/link-action.js.map +0 -1
  333. package/chips/action/presentational-action.d.ts +0 -18
  334. package/chips/action/presentational-action.js +0 -20
  335. package/chips/action/presentational-action.js.map +0 -1
  336. package/chips/action/primary-action.d.ts +0 -18
  337. package/chips/action/primary-action.js +0 -20
  338. package/chips/action/primary-action.js.map +0 -1
  339. package/chips/action/selectable-action.d.ts +0 -18
  340. package/chips/action/selectable-action.js +0 -20
  341. package/chips/action/selectable-action.js.map +0 -1
  342. package/chips/chip/lib/_assist-chip-theme.scss +0 -99
  343. package/chips/chip/lib/_chip-theme.scss +0 -1285
  344. package/chips/chip/lib/_chip.scss +0 -444
  345. package/chips/chip/lib/_filter-chip-theme.scss +0 -130
  346. package/chips/chip/lib/_input-chip-theme.scss +0 -91
  347. package/chips/chip/lib/_suggestion-chip-theme.scss +0 -92
  348. package/chips/chip/lib/action-chip.d.ts +0 -18
  349. package/chips/chip/lib/action-chip.js +0 -39
  350. package/chips/chip/lib/action-chip.js.map +0 -1
  351. package/chips/chip/lib/adapter.d.ts +0 -50
  352. package/chips/chip/lib/adapter.js +0 -7
  353. package/chips/chip/lib/adapter.js.map +0 -1
  354. package/chips/chip/lib/animationframe.d.ts +0 -31
  355. package/chips/chip/lib/animationframe.js +0 -66
  356. package/chips/chip/lib/animationframe.js.map +0 -1
  357. package/chips/chip/lib/chip.d.ts +0 -43
  358. package/chips/chip/lib/chip.js +0 -134
  359. package/chips/chip/lib/chip.js.map +0 -1
  360. package/chips/chip/lib/constants.d.ts +0 -43
  361. package/chips/chip/lib/constants.js +0 -48
  362. package/chips/chip/lib/constants.js.map +0 -1
  363. package/chips/chip/lib/foundation.d.ts +0 -41
  364. package/chips/chip/lib/foundation.js +0 -255
  365. package/chips/chip/lib/foundation.js.map +0 -1
  366. package/chips/chip/lib/link-chip.d.ts +0 -21
  367. package/chips/chip/lib/link-chip.js +0 -53
  368. package/chips/chip/lib/link-chip.js.map +0 -1
  369. package/chips/chip/lib/presentational-chip.d.ts +0 -18
  370. package/chips/chip/lib/presentational-chip.js +0 -39
  371. package/chips/chip/lib/presentational-chip.js.map +0 -1
  372. package/chips/chip/lib/selectable-chip.d.ts +0 -22
  373. package/chips/chip/lib/selectable-chip.js +0 -57
  374. package/chips/chip/lib/selectable-chip.js.map +0 -1
  375. package/chips/chip/lib/types.d.ts +0 -42
  376. package/chips/chip/lib/types.js +0 -7
  377. package/chips/chip/lib/types.js.map +0 -1
  378. package/chips/chipset/lib/_chip-set-theme.scss +0 -50
  379. package/chips/chipset/lib/_chip-set.scss +0 -48
  380. package/chips/chipset/lib/adapter.d.ts +0 -45
  381. package/chips/chipset/lib/adapter.js +0 -7
  382. package/chips/chipset/lib/adapter.js.map +0 -1
  383. package/chips/chipset/lib/constants.d.ts +0 -26
  384. package/chips/chipset/lib/constants.js +0 -30
  385. package/chips/chipset/lib/constants.js.map +0 -1
  386. package/chips/chipset/lib/foundation.d.ts +0 -68
  387. package/chips/chipset/lib/foundation.js +0 -314
  388. package/chips/chipset/lib/foundation.js.map +0 -1
  389. package/chips/chipset/lib/types.d.ts +0 -41
  390. package/chips/chipset/lib/types.js +0 -7
  391. package/chips/chipset/lib/types.js.map +0 -1
  392. package/menusurface/_menu-surface.scss +0 -6
  393. package/menusurface/lib/_md-comp-menu-surface.scss +0 -31
  394. package/menusurface/lib/_menu-surface.scss +0 -122
  395. package/menusurface/lib/adapter.d.ts +0 -46
  396. package/menusurface/lib/adapter.js +0 -7
  397. package/menusurface/lib/adapter.js.map +0 -1
  398. package/menusurface/lib/constants.d.ts +0 -71
  399. package/menusurface/lib/constants.js +0 -83
  400. package/menusurface/lib/constants.js.map +0 -1
  401. package/menusurface/lib/foundation.d.ts +0 -176
  402. package/menusurface/lib/foundation.js +0 -544
  403. package/menusurface/lib/foundation.js.map +0 -1
  404. package/menusurface/lib/menu-surface-styles.css.d.ts +0 -1
  405. package/menusurface/lib/menu-surface-styles.css.js +0 -9
  406. package/menusurface/lib/menu-surface-styles.css.js.map +0 -1
  407. package/menusurface/lib/menu-surface.d.ts +0 -62
  408. package/menusurface/lib/menu-surface.js +0 -347
  409. package/menusurface/lib/menu-surface.js.map +0 -1
  410. package/menusurface/lib/types.d.ts +0 -19
  411. package/menusurface/lib/types.js +0 -7
  412. package/menusurface/lib/types.js.map +0 -1
  413. package/menusurface/menu-surface.d.ts +0 -14
  414. package/menusurface/menu-surface.js +0 -17
  415. package/menusurface/menu-surface.js.map +0 -1
  416. package/sass/_elevation.scss +0 -159
  417. package/sass/_resolvers.scss +0 -16
  418. package/sass/_typography.scss +0 -39
  419. package/tokens/v0_160/_index.scss +0 -107
  420. package/tokens/v0_160/_md-comp-assist-chip.scss +0 -109
  421. package/tokens/v0_160/_md-comp-badge.scss +0 -58
  422. package/tokens/v0_160/_md-comp-banner.scss +0 -75
  423. package/tokens/v0_160/_md-comp-bottom-app-bar.scss +0 -35
  424. package/tokens/v0_160/_md-comp-carousel-item.scss +0 -65
  425. package/tokens/v0_160/_md-comp-checkbox.scss +0 -126
  426. package/tokens/v0_160/_md-comp-circular-progress-indicator.scss +0 -39
  427. package/tokens/v0_160/_md-comp-data-table.scss +0 -96
  428. package/tokens/v0_160/_md-comp-date-input-modal.scss +0 -89
  429. package/tokens/v0_160/_md-comp-date-picker-docked.scss +0 -246
  430. package/tokens/v0_160/_md-comp-date-picker-modal.scss +0 -305
  431. package/tokens/v0_160/_md-comp-dialog.scss +0 -123
  432. package/tokens/v0_160/_md-comp-divider.scss +0 -25
  433. package/tokens/v0_160/_md-comp-elevated-button.scss +0 -91
  434. package/tokens/v0_160/_md-comp-elevated-card.scss +0 -59
  435. package/tokens/v0_160/_md-comp-extended-fab-branded.scss +0 -86
  436. package/tokens/v0_160/_md-comp-extended-fab-primary.scss +0 -94
  437. package/tokens/v0_160/_md-comp-extended-fab-secondary.scss +0 -95
  438. package/tokens/v0_160/_md-comp-extended-fab-surface.scss +0 -90
  439. package/tokens/v0_160/_md-comp-extended-fab-tertiary.scss +0 -95
  440. package/tokens/v0_160/_md-comp-fab-branded-large.scss +0 -60
  441. package/tokens/v0_160/_md-comp-fab-branded.scss +0 -60
  442. package/tokens/v0_160/_md-comp-fab-primary-large.scss +0 -65
  443. package/tokens/v0_160/_md-comp-fab-primary-small.scss +0 -65
  444. package/tokens/v0_160/_md-comp-fab-primary.scss +0 -65
  445. package/tokens/v0_160/_md-comp-fab-secondary-large.scss +0 -66
  446. package/tokens/v0_160/_md-comp-fab-secondary-small.scss +0 -66
  447. package/tokens/v0_160/_md-comp-fab-secondary.scss +0 -66
  448. package/tokens/v0_160/_md-comp-fab-surface-large.scss +0 -64
  449. package/tokens/v0_160/_md-comp-fab-surface-small.scss +0 -64
  450. package/tokens/v0_160/_md-comp-fab-surface.scss +0 -64
  451. package/tokens/v0_160/_md-comp-fab-tertiary-large.scss +0 -66
  452. package/tokens/v0_160/_md-comp-fab-tertiary-small.scss +0 -66
  453. package/tokens/v0_160/_md-comp-fab-tertiary.scss +0 -66
  454. package/tokens/v0_160/_md-comp-filled-autocomplete.scss +0 -267
  455. package/tokens/v0_160/_md-comp-filled-button.scss +0 -89
  456. package/tokens/v0_160/_md-comp-filled-card.scss +0 -58
  457. package/tokens/v0_160/_md-comp-filled-icon-button.scss +0 -79
  458. package/tokens/v0_160/_md-comp-filled-menu-button.scss +0 -98
  459. package/tokens/v0_160/_md-comp-filled-select.scss +0 -272
  460. package/tokens/v0_160/_md-comp-filled-text-field.scss +0 -189
  461. package/tokens/v0_160/_md-comp-filled-tonal-button.scss +0 -99
  462. package/tokens/v0_160/_md-comp-filled-tonal-icon-button.scss +0 -86
  463. package/tokens/v0_160/_md-comp-filter-chip.scss +0 -209
  464. package/tokens/v0_160/_md-comp-full-screen-dialog.scss +0 -111
  465. package/tokens/v0_160/_md-comp-icon-button.scss +0 -70
  466. package/tokens/v0_160/_md-comp-input-chip.scss +0 -184
  467. package/tokens/v0_160/_md-comp-linear-progress-indicator.scss +0 -41
  468. package/tokens/v0_160/_md-comp-list.scss +0 -248
  469. package/tokens/v0_160/_md-comp-menu.scss +0 -121
  470. package/tokens/v0_160/_md-comp-navigation-bar.scss +0 -114
  471. package/tokens/v0_160/_md-comp-navigation-drawer.scss +0 -162
  472. package/tokens/v0_160/_md-comp-navigation-rail.scss +0 -131
  473. package/tokens/v0_160/_md-comp-outlined-autocomplete.scss +0 -257
  474. package/tokens/v0_160/_md-comp-outlined-button.scss +0 -84
  475. package/tokens/v0_160/_md-comp-outlined-card.scss +0 -65
  476. package/tokens/v0_160/_md-comp-outlined-icon-button.scss +0 -79
  477. package/tokens/v0_160/_md-comp-outlined-menu-button.scss +0 -94
  478. package/tokens/v0_160/_md-comp-outlined-segmented-button.scss +0 -112
  479. package/tokens/v0_160/_md-comp-outlined-select.scss +0 -262
  480. package/tokens/v0_160/_md-comp-outlined-text-field.scss +0 -171
  481. package/tokens/v0_160/_md-comp-plain-tooltip.scss +0 -55
  482. package/tokens/v0_160/_md-comp-primary-navigation-tab.scss +0 -121
  483. package/tokens/v0_160/_md-comp-radio-button.scss +0 -68
  484. package/tokens/v0_160/_md-comp-rich-tooltip.scss +0 -121
  485. package/tokens/v0_160/_md-comp-scrim.scss +0 -25
  486. package/tokens/v0_160/_md-comp-search-bar.scss +0 -99
  487. package/tokens/v0_160/_md-comp-search-view.scss +0 -93
  488. package/tokens/v0_160/_md-comp-secondary-navigation-tab.scss +0 -84
  489. package/tokens/v0_160/_md-comp-sheet-bottom.scss +0 -45
  490. package/tokens/v0_160/_md-comp-sheet-floating.scss +0 -34
  491. package/tokens/v0_160/_md-comp-sheet-side.scss +0 -91
  492. package/tokens/v0_160/_md-comp-slider.scss +0 -114
  493. package/tokens/v0_160/_md-comp-snackbar.scss +0 -127
  494. package/tokens/v0_160/_md-comp-standard-menu-button.scss +0 -98
  495. package/tokens/v0_160/_md-comp-suggestion-chip.scss +0 -125
  496. package/tokens/v0_160/_md-comp-switch.scss +0 -136
  497. package/tokens/v0_160/_md-comp-text-button.scss +0 -77
  498. package/tokens/v0_160/_md-comp-time-input.scss +0 -218
  499. package/tokens/v0_160/_md-comp-time-picker.scss +0 -264
  500. package/tokens/v0_160/_md-comp-top-app-bar-large.scss +0 -63
  501. package/tokens/v0_160/_md-comp-top-app-bar-medium.scss +0 -63
  502. package/tokens/v0_160/_md-comp-top-app-bar-small-centered.scss +0 -66
  503. package/tokens/v0_160/_md-comp-top-app-bar-small.scss +0 -64
  504. package/tokens/v0_160/_md-ref-palette.scss +0 -107
  505. package/tokens/v0_160/_md-ref-typeface.scss +0 -21
  506. package/tokens/v0_160/_md-sys-color.scss +0 -904
  507. package/tokens/v0_160/_md-sys-elevation.scss +0 -21
  508. package/tokens/v0_160/_md-sys-motion.scss +0 -53
  509. package/tokens/v0_160/_md-sys-shape.scss +0 -30
  510. package/tokens/v0_160/_md-sys-state.scss +0 -19
  511. package/tokens/v0_160/_md-sys-typescale.scss +0 -284
  512. package/tokens/v0_160/index.test.css.d.ts +0 -1
  513. package/tokens/v0_160/index.test.css.js +0 -9
  514. package/tokens/v0_160/index.test.css.js.map +0 -1
  515. package/tokens/v0_160/index.test.scss +0 -584
  516. package/tokens/v0_160/lib.test.css.d.ts +0 -1
  517. package/tokens/v0_160/lib.test.css.js +0 -9
  518. package/tokens/v0_160/lib.test.css.js.map +0 -1
  519. package/tokens/v0_160/lib.test.scss +0 -663
  520. /package/{autocomplete/lib/autocompletelist/autocomplete-list-styles.css.d.ts → chips/lib/assist-styles.css.d.ts} +0 -0
  521. /package/{autocomplete → chips}/lib/shared-styles.css.d.ts +0 -0
  522. /package/{autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.d.ts → chips/lib/suggestion-styles.css.d.ts} +0 -0
@@ -1,92 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
-
7
- // go/keep-sorted start
8
- @use 'sass:map';
9
- // go/keep-sorted end
10
- // go/keep-sorted start
11
- @use '../../../sass/resolvers';
12
- @use '../../../sass/theme';
13
- @use './chip-theme';
14
- // go/keep-sorted end
15
-
16
- $_light-theme: (
17
- container-shape: null,
18
- container-height: null,
19
- flat-container-elevation: null,
20
- flat-outline-color: null,
21
- flat-outline-width: null,
22
- elevated-container-elevation: null,
23
- elevated-container-color: null,
24
- elevated-container-shadow-color: null,
25
- label-text-font: null,
26
- label-text-line-height: null,
27
- label-text-size: null,
28
- label-text-weight: null,
29
- label-text-tracking: null,
30
- label-text-color: null,
31
- flat-disabled-outline-color: null,
32
- flat-disabled-outline-opacity: null,
33
- disabled-label-text-color: null,
34
- disabled-label-text-opacity: null,
35
- elevated-disabled-container-elevation: null,
36
- elevated-disabled-container-color: null,
37
- elevated-disabled-container-opacity: null,
38
- hover-state-layer-color: null,
39
- hover-state-layer-opacity: null,
40
- hover-label-text-color: null,
41
- elevated-hover-container-elevation: null,
42
- focus-state-layer-color: null,
43
- focus-state-layer-opacity: null,
44
- focus-label-text-color: null,
45
- flat-focus-outline-color: null,
46
- elevated-focus-container-elevation: null,
47
- pressed-state-layer-color: null,
48
- pressed-state-layer-opacity: null,
49
- pressed-label-text-color: null,
50
- elevated-pressed-container-elevation: null,
51
- container-surface-tint-layer-color: null,
52
- );
53
-
54
- $_custom-property-prefix: 'suggestion-chip';
55
-
56
- @mixin theme($theme, $resolvers: resolvers.$material) {
57
- @include theme.validate-theme($_light-theme, $theme);
58
-
59
- // Resolve elevation.
60
- @each $key
61
- in (
62
- flat-container-elevation,
63
- elevated-container-elevation,
64
- elevated-disabled-container-elevation,
65
- elevated-hover-container-elevation,
66
- elevated-focus-container-elevation,
67
- elevated-pressed-container-elevation
68
- )
69
- {
70
- $value: map.get($theme, $key);
71
- @if $value {
72
- $theme: map.set(
73
- $theme,
74
- $key,
75
- meta.call(
76
- $elevation-resolver: map.get($resolvers, elevation),
77
- $elevation: $value,
78
- $shadow-color: map.get($theme, elevated-container-shadow-color),
79
- )
80
- );
81
- }
82
- }
83
-
84
- $theme: theme.create-theme-vars($theme, $_custom-property-prefix);
85
- @include theme.emit-theme-vars($theme);
86
- }
87
-
88
- @mixin theme-styles($theme, $resolvers: resolvers.$material) {
89
- @include theme.validate-theme($_light-theme, $theme);
90
- $theme: theme.create-theme-vars($theme, $_custom-property-prefix);
91
- @include chip-theme.theme-styles($theme, $resolvers: $resolvers);
92
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import '../../action/primary-action.js';
7
- import { TemplateResult } from 'lit';
8
- import { Chip } from './chip.js';
9
- /** @soyCompatible */
10
- export declare class ActionChip extends Chip {
11
- /**
12
- * @soyTemplate
13
- * @soyAttributes attributes: .md3-chip
14
- */
15
- protected render(): TemplateResult;
16
- /** @soyTemplate */
17
- private renderPrimaryAction;
18
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import '../../action/primary-action.js';
7
- import { html } from 'lit';
8
- import { classMap } from 'lit/directives/class-map.js';
9
- import { Chip } from './chip.js';
10
- /** @soyCompatible */
11
- export class ActionChip extends Chip {
12
- /**
13
- * @soyTemplate
14
- * @soyAttributes attributes: .md3-chip
15
- */
16
- render() {
17
- return html `
18
- <span class="${classMap(this.getRootClasses())}" role="row">
19
- ${this.renderOverlay()}
20
- <span class="md3-chip__cell md3-chip__cell--primary" role="gridcell">
21
- ${this.renderPrimaryAction()}
22
- </span>
23
- ${this.renderDeleteAction()}
24
- </span>`;
25
- }
26
- /** @soyTemplate */
27
- renderPrimaryAction() {
28
- return html `
29
- <md-primary-action
30
- ?disabled=${this.disabled}
31
- ?isFocusable=${this.isFocusable}
32
- ?isTouchable=${this.isTouchable}
33
- .icon=${this.icon}
34
- .label=${this.label}
35
- .ariaLabel=${this.ariaLabel}>
36
- </md-primary-action>`;
37
- }
38
- }
39
- //# sourceMappingURL=action-chip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-chip.js","sourceRoot":"","sources":["action-chip.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,gCAAgC,CAAC;AAExC,OAAO,EAAC,IAAI,EAAiB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,qBAAqB;AACrB,MAAM,OAAO,UAAW,SAAQ,IAAI;IAClC;;;OAGG;IACgB,MAAM;QACvB,OAAO,IAAI,CAAA;qBACM,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;UAC1C,IAAI,CAAC,aAAa,EAAE;;YAElB,IAAI,CAAC,mBAAmB,EAAE;;UAE5B,IAAI,CAAC,kBAAkB,EAAE;cACrB,CAAC;IACb,CAAC;IAED,mBAAmB;IACX,mBAAmB;QACzB,OAAO,IAAI,CAAA;;sBAEO,IAAI,CAAC,QAAQ;yBACV,IAAI,CAAC,WAAW;yBAChB,IAAI,CAAC,WAAW;kBACvB,IAAI,CAAC,IAAI;mBACR,IAAI,CAAC,KAAK;uBACN,IAAI,CAAC,SAAS;2BACV,CAAC;IAC1B,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport '../../action/primary-action.js';\n\nimport {html, TemplateResult} from 'lit';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {Chip} from './chip.js';\n\n/** @soyCompatible */\nexport class ActionChip extends Chip {\n /**\n * @soyTemplate\n * @soyAttributes attributes: .md3-chip\n */\n protected override render(): TemplateResult {\n return html`\n <span class=\"${classMap(this.getRootClasses())}\" role=\"row\">\n ${this.renderOverlay()}\n <span class=\"md3-chip__cell md3-chip__cell--primary\" role=\"gridcell\">\n ${this.renderPrimaryAction()}\n </span>\n ${this.renderDeleteAction()}\n </span>`;\n }\n\n /** @soyTemplate */\n private renderPrimaryAction(): TemplateResult {\n return html`\n <md-primary-action\n ?disabled=${this.disabled}\n ?isFocusable=${this.isFocusable}\n ?isTouchable=${this.isTouchable}\n .icon=${this.icon}\n .label=${this.label}\n .ariaLabel=${this.ariaLabel}>\n </md-primary-action>`;\n }\n}\n\n"]}
@@ -1,50 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { MDCChipActionFocusBehavior, MDCChipActionType } from '../../action/lib/constants.js';
7
- import { MDCChipAttributes, MDCChipCssClasses, MDCChipEvents } from './constants.js';
8
- /**
9
- * Defines the shape of the adapter expected by the foundation.
10
- * Implement this adapter for your framework of choice to delegate updates to
11
- * the component in your framework of choice. See architecture documentation
12
- * for more details.
13
- * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
14
- */
15
- export interface MDCChipAdapter {
16
- /** Adds the given class to the root element. */
17
- addClass(className: MDCChipCssClasses): void;
18
- /** Emits the given event with the given detail. */
19
- emitEvent<D extends object>(eventName: MDCChipEvents, eventDetail: D): void;
20
- /** Returns the child actions provided by the chip. */
21
- getActions(): MDCChipActionType[];
22
- /** Returns the value for the given attribute, if it exists. */
23
- getAttribute(attrName: MDCChipAttributes): string | null;
24
- /** Returns the ID of the root element. */
25
- getElementID(): string;
26
- /** Returns the offset width of the root element. */
27
- getOffsetWidth(): number;
28
- /** Returns true if the root element has the given class. */
29
- hasClass(className: MDCChipCssClasses): boolean;
30
- /** Proxies to the MDCChipAction#isSelectable method. */
31
- isActionSelectable(action: MDCChipActionType): boolean;
32
- /** Proxies to the MDCChipAction#isSelected method. */
33
- isActionSelected(action: MDCChipActionType): boolean;
34
- /** Proxies to the MDCChipAction#isFocusable method. */
35
- isActionFocusable(action: MDCChipActionType): boolean;
36
- /** Proxies to the MDCChipAction#isDisabled method. */
37
- isActionDisabled(action: MDCChipActionType): boolean;
38
- /** Returns true if the text direction is right-to-left. */
39
- isRTL(): boolean;
40
- /** Removes the given class from the root element. */
41
- removeClass(className: MDCChipCssClasses): void;
42
- /** Proxies to the MDCChipAction#setDisabled method. */
43
- setActionDisabled(action: MDCChipActionType, isDisabled: boolean): void;
44
- /** Proxies to the MDCChipAction#setFocus method. */
45
- setActionFocus(action: MDCChipActionType, behavior: MDCChipActionFocusBehavior): void;
46
- /** Proxies to the MDCChipAction#setSelected method. */
47
- setActionSelected(action: MDCChipActionType, isSelected: boolean): void;
48
- /** Sets the style property to the given value. */
49
- setStyleProperty(property: string, value: string): void;
50
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export {};
7
- //# sourceMappingURL=adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adapter.js","sourceRoot":"","sources":["adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {MDCChipActionFocusBehavior, MDCChipActionType} from '../../action/lib/constants.js';\n\nimport {MDCChipAttributes, MDCChipCssClasses, MDCChipEvents} from './constants.js';\n\n/**\n * Defines the shape of the adapter expected by the foundation.\n * Implement this adapter for your framework of choice to delegate updates to\n * the component in your framework of choice. See architecture documentation\n * for more details.\n * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md\n */\nexport interface MDCChipAdapter {\n /** Adds the given class to the root element. */\n addClass(className: MDCChipCssClasses): void;\n\n /** Emits the given event with the given detail. */\n emitEvent<D extends object>(eventName: MDCChipEvents, eventDetail: D): void;\n\n /** Returns the child actions provided by the chip. */\n getActions(): MDCChipActionType[];\n\n /** Returns the value for the given attribute, if it exists. */\n getAttribute(attrName: MDCChipAttributes): string|null;\n\n /** Returns the ID of the root element. */\n getElementID(): string;\n\n /** Returns the offset width of the root element. */\n getOffsetWidth(): number;\n\n /** Returns true if the root element has the given class. */\n hasClass(className: MDCChipCssClasses): boolean;\n\n /** Proxies to the MDCChipAction#isSelectable method. */\n isActionSelectable(action: MDCChipActionType): boolean;\n\n /** Proxies to the MDCChipAction#isSelected method. */\n isActionSelected(action: MDCChipActionType): boolean;\n\n /** Proxies to the MDCChipAction#isFocusable method. */\n isActionFocusable(action: MDCChipActionType): boolean;\n\n /** Proxies to the MDCChipAction#isDisabled method. */\n isActionDisabled(action: MDCChipActionType): boolean;\n\n /** Returns true if the text direction is right-to-left. */\n isRTL(): boolean;\n\n /** Removes the given class from the root element. */\n removeClass(className: MDCChipCssClasses): void;\n\n /** Proxies to the MDCChipAction#setDisabled method. */\n setActionDisabled(action: MDCChipActionType, isDisabled: boolean): void;\n\n /** Proxies to the MDCChipAction#setFocus method. */\n setActionFocus(\n action: MDCChipActionType, behavior: MDCChipActionFocusBehavior): void;\n\n /** Proxies to the MDCChipAction#setSelected method. */\n setActionSelected(action: MDCChipActionType, isSelected: boolean): void;\n\n /** Sets the style property to the given value. */\n setStyleProperty(property: string, value: string): void;\n}\n"]}
@@ -1,31 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * AnimationFrame provides a user-friendly abstraction around requesting
8
- * and canceling animation frames.
9
- */
10
- export declare class AnimationFrame {
11
- private readonly rafIDs;
12
- /**
13
- * Requests an animation frame. Cancels any existing frame with the same key.
14
- * @param {string} key The key for this callback.
15
- * @param {FrameRequestCallback} callback The callback to be executed.
16
- */
17
- request(key: string, callback: FrameRequestCallback): void;
18
- /**
19
- * Cancels a queued callback with the given key.
20
- * @param {string} key The key for this callback.
21
- */
22
- cancel(key: string): void;
23
- /**
24
- * Cancels all queued callback.
25
- */
26
- cancelAll(): void;
27
- /**
28
- * Returns the queue of unexecuted callback keys.
29
- */
30
- getQueue(): string[];
31
- }
@@ -1,66 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- // TODO: Remove in favor of AnimationSignal
7
- /**
8
- * AnimationFrame provides a user-friendly abstraction around requesting
9
- * and canceling animation frames.
10
- */
11
- export class AnimationFrame {
12
- constructor() {
13
- this.rafIDs = new Map();
14
- }
15
- /**
16
- * Requests an animation frame. Cancels any existing frame with the same key.
17
- * @param {string} key The key for this callback.
18
- * @param {FrameRequestCallback} callback The callback to be executed.
19
- */
20
- request(key, callback) {
21
- this.cancel(key);
22
- const frameID = requestAnimationFrame((frame) => {
23
- this.rafIDs.delete(key);
24
- // Callback must come *after* the key is deleted so that nested calls to
25
- // request with the same key are not deleted.
26
- callback(frame);
27
- });
28
- this.rafIDs.set(key, frameID);
29
- }
30
- /**
31
- * Cancels a queued callback with the given key.
32
- * @param {string} key The key for this callback.
33
- */
34
- cancel(key) {
35
- const rafID = this.rafIDs.get(key);
36
- if (rafID) {
37
- cancelAnimationFrame(rafID);
38
- this.rafIDs.delete(key);
39
- }
40
- }
41
- /**
42
- * Cancels all queued callback.
43
- */
44
- cancelAll() {
45
- // Need to use forEach because it's the only iteration method supported
46
- // by IE11. Suppress the underscore because we don't need it.
47
- // tslint:disable-next-line:enforce-name-casing
48
- this.rafIDs.forEach((_, key) => {
49
- this.cancel(key);
50
- });
51
- }
52
- /**
53
- * Returns the queue of unexecuted callback keys.
54
- */
55
- getQueue() {
56
- const queue = [];
57
- // Need to use forEach because it's the only iteration method supported
58
- // by IE11. Suppress the underscore because we don't need it.
59
- // tslint:disable-next-line:enforce-name-casing
60
- this.rafIDs.forEach((_, key) => {
61
- queue.push(key);
62
- });
63
- return queue;
64
- }
65
- }
66
- //# sourceMappingURL=animationframe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animationframe.js","sourceRoot":"","sources":["animationframe.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2CAA2C;AAC3C;;;GAGG;AACH,MAAM,OAAO,cAAc;IAA3B;QACmB,WAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAuDtD,CAAC;IArDC;;;;OAIG;IACH,OAAO,CAAC,GAAW,EAAE,QAA8B;QACjD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjB,MAAM,OAAO,GAAG,qBAAqB,CAAC,CAAC,KAAK,EAAE,EAAE;YAC9C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACxB,wEAAwE;YACxE,6CAA6C;YAC7C,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,GAAW;QAChB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,KAAK,EAAE;YACT,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SACzB;IACH,CAAC;IAED;;OAEG;IACH,SAAS;QACP,uEAAuE;QACvE,6DAA6D;QAC7D,+CAA+C;QAC/C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,uEAAuE;QACvE,6DAA6D;QAC7D,+CAA+C;QAC/C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC7B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// TODO: Remove in favor of AnimationSignal\n/**\n * AnimationFrame provides a user-friendly abstraction around requesting\n * and canceling animation frames.\n */\nexport class AnimationFrame {\n private readonly rafIDs = new Map<string, number>();\n\n /**\n * Requests an animation frame. Cancels any existing frame with the same key.\n * @param {string} key The key for this callback.\n * @param {FrameRequestCallback} callback The callback to be executed.\n */\n request(key: string, callback: FrameRequestCallback) {\n this.cancel(key);\n const frameID = requestAnimationFrame((frame) => {\n this.rafIDs.delete(key);\n // Callback must come *after* the key is deleted so that nested calls to\n // request with the same key are not deleted.\n callback(frame);\n });\n this.rafIDs.set(key, frameID);\n }\n\n /**\n * Cancels a queued callback with the given key.\n * @param {string} key The key for this callback.\n */\n cancel(key: string) {\n const rafID = this.rafIDs.get(key);\n if (rafID) {\n cancelAnimationFrame(rafID);\n this.rafIDs.delete(key);\n }\n }\n\n /**\n * Cancels all queued callback.\n */\n cancelAll() {\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach((_, key) => {\n this.cancel(key);\n });\n }\n\n /**\n * Returns the queue of unexecuted callback keys.\n */\n getQueue(): string[] {\n const queue: string[] = [];\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach((_, key) => {\n queue.push(key);\n });\n return queue;\n }\n}\n"]}
@@ -1,43 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import '../../../elevation/elevation.js';
7
- import '../../action/delete-action.js';
8
- import { TemplateResult } from 'lit';
9
- import { ClassInfo } from 'lit/directives/class-map.js';
10
- import { ActionElement } from '../../../actionelement/action-element.js';
11
- /** Defines the border type of a chip. */
12
- export declare enum BorderType {
13
- ELEVATED = "ELEVATED",
14
- HAIRLINE = "HAIRLINE"
15
- }
16
- /** Defines the shape of the vertical edge of a chip. */
17
- export declare enum EdgeType {
18
- ROUNDED = "ROUNDED",
19
- STRAIGHT = "STRAIGHT"
20
- }
21
- /** @soyCompatible */
22
- export declare abstract class Chip extends ActionElement {
23
- isFocusable: boolean;
24
- isTouchable: boolean;
25
- disabled: boolean;
26
- hasAvatar: boolean;
27
- hasDeleteAction: boolean;
28
- icon: string;
29
- label: string;
30
- borderType: BorderType;
31
- edgeType: EdgeType;
32
- addedAnnouncement: string;
33
- removedAnnouncement: string;
34
- closeActionAriaLabel: string;
35
- /** @soyPrefixAttribute */
36
- ariaLabel: string;
37
- /** @soyTemplate */
38
- protected getRootClasses(): ClassInfo;
39
- /** @soyTemplate */
40
- protected renderOverlay(): TemplateResult;
41
- /** @soyTemplate */
42
- protected renderDeleteAction(): TemplateResult;
43
- }
@@ -1,134 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { __decorate, __metadata } from "tslib";
7
- import '../../../elevation/elevation.js';
8
- import '../../action/delete-action.js';
9
- import { html } from 'lit';
10
- import { property } from 'lit/decorators.js';
11
- import { ActionElement } from '../../../actionelement/action-element.js';
12
- import { ariaProperty } from '../../../decorators/aria-property.js';
13
- /** Defines the border type of a chip. */
14
- export var BorderType;
15
- (function (BorderType) {
16
- BorderType["ELEVATED"] = "ELEVATED";
17
- BorderType["HAIRLINE"] = "HAIRLINE";
18
- })(BorderType || (BorderType = {}));
19
- /** Defines the shape of the vertical edge of a chip. */
20
- export var EdgeType;
21
- (function (EdgeType) {
22
- EdgeType["ROUNDED"] = "ROUNDED";
23
- EdgeType["STRAIGHT"] = "STRAIGHT";
24
- })(EdgeType || (EdgeType = {}));
25
- /** @soyCompatible */
26
- export class Chip extends ActionElement {
27
- constructor() {
28
- super(...arguments);
29
- this.isFocusable = false;
30
- this.isTouchable = false;
31
- this.disabled = false;
32
- this.hasAvatar = false;
33
- this.hasDeleteAction = false;
34
- this.icon = '';
35
- this.label = '';
36
- this.borderType = BorderType.HAIRLINE;
37
- this.edgeType = EdgeType.ROUNDED;
38
- this.addedAnnouncement = '';
39
- this.removedAnnouncement = '';
40
- this.closeActionAriaLabel = '';
41
- }
42
- /** @soyTemplate */
43
- getRootClasses() {
44
- const hasIcon = this.icon.trim().length > 0;
45
- return {
46
- 'md3-chip': true,
47
- 'md3-chip--disabled': this.disabled,
48
- 'md3-chip--touch': this.isTouchable,
49
- 'md3-chip--with-primary-graphic': hasIcon,
50
- 'md3-chip--with-primary-icon': hasIcon,
51
- 'md3-chip--with-avatar': this.hasAvatar,
52
- 'md3-chip--with-delete-action': this.hasDeleteAction,
53
- };
54
- }
55
- /** @soyTemplate */
56
- renderOverlay() {
57
- return this.borderType === BorderType.ELEVATED ?
58
- html `<md-elevation aria-hidden="true" shadow surface></md-elevation>` :
59
- html ``;
60
- }
61
- /** @soyTemplate */
62
- renderDeleteAction() {
63
- if (!this.hasDeleteAction) {
64
- return html ``;
65
- }
66
- else {
67
- return html `
68
- <span class="md3-chip__cell md3-chip__cell--delete"
69
- role="gridcell">
70
- <md-delete-action
71
- ?disabled=${this.disabled}
72
- ?isFocusable=${this.isFocusable}
73
- ?isTouchable=${this.isTouchable}
74
- .ariaLabel=${this.closeActionAriaLabel}>
75
- </md-delete-action>
76
- </span>`;
77
- }
78
- }
79
- }
80
- __decorate([
81
- property({ type: Boolean, reflect: true }),
82
- __metadata("design:type", Object)
83
- ], Chip.prototype, "isFocusable", void 0);
84
- __decorate([
85
- property({ type: Boolean, reflect: true }),
86
- __metadata("design:type", Object)
87
- ], Chip.prototype, "isTouchable", void 0);
88
- __decorate([
89
- property({ type: Boolean, reflect: true }),
90
- __metadata("design:type", Object)
91
- ], Chip.prototype, "disabled", void 0);
92
- __decorate([
93
- property({ type: Boolean, reflect: true }),
94
- __metadata("design:type", Object)
95
- ], Chip.prototype, "hasAvatar", void 0);
96
- __decorate([
97
- property({ type: Boolean, reflect: true }),
98
- __metadata("design:type", Object)
99
- ], Chip.prototype, "hasDeleteAction", void 0);
100
- __decorate([
101
- property({ type: String }),
102
- __metadata("design:type", Object)
103
- ], Chip.prototype, "icon", void 0);
104
- __decorate([
105
- property({ type: String }),
106
- __metadata("design:type", Object)
107
- ], Chip.prototype, "label", void 0);
108
- __decorate([
109
- property({ type: String }),
110
- __metadata("design:type", Object)
111
- ], Chip.prototype, "borderType", void 0);
112
- __decorate([
113
- property({ type: String }),
114
- __metadata("design:type", Object)
115
- ], Chip.prototype, "edgeType", void 0);
116
- __decorate([
117
- property({ type: String }),
118
- __metadata("design:type", Object)
119
- ], Chip.prototype, "addedAnnouncement", void 0);
120
- __decorate([
121
- property({ type: String }),
122
- __metadata("design:type", Object)
123
- ], Chip.prototype, "removedAnnouncement", void 0);
124
- __decorate([
125
- property({ type: String }),
126
- __metadata("design:type", Object)
127
- ], Chip.prototype, "closeActionAriaLabel", void 0);
128
- __decorate([
129
- ariaProperty // tslint:disable-line:no-new-decorators
130
- ,
131
- property({ type: String, attribute: 'aria-label' }),
132
- __metadata("design:type", String)
133
- ], Chip.prototype, "ariaLabel", void 0);
134
- //# sourceMappingURL=chip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chip.js","sourceRoot":"","sources":["chip.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,iCAAiC,CAAC;AACzC,OAAO,+BAA+B,CAAC;AAEvC,OAAO,EAAC,IAAI,EAAiB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,YAAY,EAAC,MAAM,sCAAsC,CAAC;AAElE,yCAAyC;AACzC,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB;AAED,wDAAwD;AACxD,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;AACvB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAED,qBAAqB;AACrB,MAAM,OAAgB,IAAK,SAAQ,aAAa;IAAhD;;QAC4C,gBAAW,GAAG,KAAK,CAAC;QAEpB,gBAAW,GAAG,KAAK,CAAC;QAEpB,aAAQ,GAAG,KAAK,CAAC;QAEjB,cAAS,GAAG,KAAK,CAAC;QAElB,oBAAe,GAAG,KAAK,CAAC;QAExC,SAAI,GAAG,EAAE,CAAC;QAEV,UAAK,GAAG,EAAE,CAAC;QAEX,eAAU,GAAG,UAAU,CAAC,QAAQ,CAAC;QAEjC,aAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC;QAE5B,sBAAiB,GAAG,EAAE,CAAC;QAEvB,wBAAmB,GAAG,EAAE,CAAC;QAEzB,yBAAoB,GAAG,EAAE,CAAC;IA6CtD,CAAC;IAtCC,mBAAmB;IACT,cAAc;QACtB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5C,OAAO;YACL,UAAU,EAAE,IAAI;YAChB,oBAAoB,EAAE,IAAI,CAAC,QAAQ;YACnC,iBAAiB,EAAE,IAAI,CAAC,WAAW;YACnC,gCAAgC,EAAE,OAAO;YACzC,6BAA6B,EAAE,OAAO;YACtC,uBAAuB,EAAE,IAAI,CAAC,SAAS;YACvC,8BAA8B,EAAE,IAAI,CAAC,eAAe;SACrD,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,aAAa;QACrB,OAAO,IAAI,CAAC,UAAU,KAAK,UAAU,CAAC,QAAQ,CAAC,CAAC;YAC5C,IAAI,CAAA,iEAAiE,CAAC,CAAC;YACvE,IAAI,CAAA,EAAE,CAAC;IACb,CAAC;IAED,mBAAmB;IACT,kBAAkB;QAC1B,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;YACzB,OAAO,IAAI,CAAA,EAAE,CAAC;SACf;aAAM;YACL,OAAO,IAAI,CAAA;;;;wBAIO,IAAI,CAAC,QAAQ;2BACV,IAAI,CAAC,WAAW;2BAChB,IAAI,CAAC,WAAW;yBAClB,IAAI,CAAC,oBAAoB;;gBAElC,CAAC;SACZ;IACH,CAAC;CACF;AAnEC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;yCAAqB;AAE9D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;yCAAqB;AAE9D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;sCAAkB;AAE3D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;uCAAmB;AAE5D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;6CAAyB;AAElE;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;kCAAW;AAEpC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;mCAAY;AAErC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;wCAAkC;AAE3D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;sCAA6B;AAEtD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;+CAAwB;AAEjD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;iDAA0B;AAEnD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;kDAA2B;AAGpD;IAAC,YAAY,CAAE,wCAAwC;;IACtD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAC,CAAC;;uCACtB","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport '../../../elevation/elevation.js';\nimport '../../action/delete-action.js';\n\nimport {html, TemplateResult} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {ClassInfo} from 'lit/directives/class-map.js';\n\nimport {ActionElement} from '../../../actionelement/action-element.js';\nimport {ariaProperty} from '../../../decorators/aria-property.js';\n\n/** Defines the border type of a chip. */\nexport enum BorderType {\n ELEVATED = 'ELEVATED',\n HAIRLINE = 'HAIRLINE',\n}\n\n/** Defines the shape of the vertical edge of a chip. */\nexport enum EdgeType {\n ROUNDED = 'ROUNDED',\n STRAIGHT = 'STRAIGHT',\n}\n\n/** @soyCompatible */\nexport abstract class Chip extends ActionElement {\n @property({type: Boolean, reflect: true}) isFocusable = false;\n\n @property({type: Boolean, reflect: true}) isTouchable = false;\n\n @property({type: Boolean, reflect: true}) disabled = false;\n\n @property({type: Boolean, reflect: true}) hasAvatar = false;\n\n @property({type: Boolean, reflect: true}) hasDeleteAction = false;\n\n @property({type: String}) icon = '';\n\n @property({type: String}) label = '';\n\n @property({type: String}) borderType = BorderType.HAIRLINE;\n\n @property({type: String}) edgeType = EdgeType.ROUNDED;\n\n @property({type: String}) addedAnnouncement = '';\n\n @property({type: String}) removedAnnouncement = '';\n\n @property({type: String}) closeActionAriaLabel = '';\n\n /** @soyPrefixAttribute */\n @ariaProperty // tslint:disable-line:no-new-decorators\n @property({type: String, attribute: 'aria-label'})\n override ariaLabel!: string;\n\n /** @soyTemplate */\n protected getRootClasses(): ClassInfo {\n const hasIcon = this.icon.trim().length > 0;\n return {\n 'md3-chip': true,\n 'md3-chip--disabled': this.disabled,\n 'md3-chip--touch': this.isTouchable,\n 'md3-chip--with-primary-graphic': hasIcon,\n 'md3-chip--with-primary-icon': hasIcon,\n 'md3-chip--with-avatar': this.hasAvatar,\n 'md3-chip--with-delete-action': this.hasDeleteAction,\n };\n }\n\n /** @soyTemplate */\n protected renderOverlay(): TemplateResult {\n return this.borderType === BorderType.ELEVATED ?\n html`<md-elevation aria-hidden=\"true\" shadow surface></md-elevation>` :\n html``;\n }\n\n /** @soyTemplate */\n protected renderDeleteAction(): TemplateResult {\n if (!this.hasDeleteAction) {\n return html``;\n } else {\n return html`\n <span class=\"md3-chip__cell md3-chip__cell--delete\"\n role=\"gridcell\">\n <md-delete-action\n ?disabled=${this.disabled}\n ?isFocusable=${this.isFocusable}\n ?isTouchable=${this.isTouchable}\n .ariaLabel=${this.closeActionAriaLabel}>\n </md-delete-action>\n </span>`;\n }\n }\n}\n"]}
@@ -1,43 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * MDCChipCssClasses provides the named constants for class names.
8
- */
9
- export declare enum MDCChipCssClasses {
10
- SELECTING = "md3-chip--selecting",
11
- DESELECTING = "md3-chip--deselecting",
12
- SELECTING_WITH_PRIMARY_ICON = "md3-chip--selecting-with-primary-icon",
13
- DESELECTING_WITH_PRIMARY_ICON = "md3-chip--deselecting-with-primary-icon",
14
- DISABLED = "md3-chip--disabled",
15
- ENTER = "md3n-chip--enter",
16
- EXIT = "md3-chip--exit",
17
- SELECTED = "md3-chip--selected",
18
- HIDDEN = "md3-chip--hidden",
19
- WITH_PRIMARY_ICON = "md3-chip--with-primary-icon"
20
- }
21
- /**
22
- * MDCChipEvents provides the named constants for emitted events.
23
- */
24
- export declare enum MDCChipEvents {
25
- INTERACTION = "MDCChip:interaction",
26
- NAVIGATION = "MDCChip:navigation",
27
- ANIMATION = "MDCChip:animation"
28
- }
29
- /**
30
- * MDCChipAttributes provides the named constants for strings used by the
31
- * foundation.
32
- */
33
- export declare enum MDCChipAttributes {
34
- DATA_REMOVED_ANNOUNCEMENT = "data-md3-removed-announcement",
35
- DATA_ADDED_ANNOUNCEMENT = "data-md3-added-announcement"
36
- }
37
- /**
38
- * MDCChipAnimation provides the names of runnable animations.
39
- */
40
- export declare enum MDCChipAnimation {
41
- ENTER = "md3-chip-enter",
42
- EXIT = "md3-chip-exit"
43
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * MDCChipCssClasses provides the named constants for class names.
8
- */
9
- export var MDCChipCssClasses;
10
- (function (MDCChipCssClasses) {
11
- MDCChipCssClasses["SELECTING"] = "md3-chip--selecting";
12
- MDCChipCssClasses["DESELECTING"] = "md3-chip--deselecting";
13
- MDCChipCssClasses["SELECTING_WITH_PRIMARY_ICON"] = "md3-chip--selecting-with-primary-icon";
14
- MDCChipCssClasses["DESELECTING_WITH_PRIMARY_ICON"] = "md3-chip--deselecting-with-primary-icon";
15
- MDCChipCssClasses["DISABLED"] = "md3-chip--disabled";
16
- MDCChipCssClasses["ENTER"] = "md3n-chip--enter";
17
- MDCChipCssClasses["EXIT"] = "md3-chip--exit";
18
- MDCChipCssClasses["SELECTED"] = "md3-chip--selected";
19
- MDCChipCssClasses["HIDDEN"] = "md3-chip--hidden";
20
- MDCChipCssClasses["WITH_PRIMARY_ICON"] = "md3-chip--with-primary-icon";
21
- })(MDCChipCssClasses || (MDCChipCssClasses = {}));
22
- /**
23
- * MDCChipEvents provides the named constants for emitted events.
24
- */
25
- export var MDCChipEvents;
26
- (function (MDCChipEvents) {
27
- MDCChipEvents["INTERACTION"] = "MDCChip:interaction";
28
- MDCChipEvents["NAVIGATION"] = "MDCChip:navigation";
29
- MDCChipEvents["ANIMATION"] = "MDCChip:animation";
30
- })(MDCChipEvents || (MDCChipEvents = {}));
31
- /**
32
- * MDCChipAttributes provides the named constants for strings used by the
33
- * foundation.
34
- */
35
- export var MDCChipAttributes;
36
- (function (MDCChipAttributes) {
37
- MDCChipAttributes["DATA_REMOVED_ANNOUNCEMENT"] = "data-md3-removed-announcement";
38
- MDCChipAttributes["DATA_ADDED_ANNOUNCEMENT"] = "data-md3-added-announcement";
39
- })(MDCChipAttributes || (MDCChipAttributes = {}));
40
- /**
41
- * MDCChipAnimation provides the names of runnable animations.
42
- */
43
- export var MDCChipAnimation;
44
- (function (MDCChipAnimation) {
45
- MDCChipAnimation["ENTER"] = "md3-chip-enter";
46
- MDCChipAnimation["EXIT"] = "md3-chip-exit";
47
- })(MDCChipAnimation || (MDCChipAnimation = {}));
48
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,sDAAiC,CAAA;IACjC,0DAAqC,CAAA;IACrC,0FAAqE,CAAA;IACrE,8FAAyE,CAAA;IACzE,oDAA+B,CAAA;IAC/B,+CAA0B,CAAA;IAC1B,4CAAuB,CAAA;IACvB,oDAA+B,CAAA;IAC/B,gDAA2B,CAAA;IAC3B,sEAAiD,CAAA;AACnD,CAAC,EAXW,iBAAiB,KAAjB,iBAAiB,QAW5B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oDAAmC,CAAA;IACnC,kDAAiC,CAAA;IACjC,gDAA+B,CAAA;AACjC,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gFAA2D,CAAA;IAC3D,4EAAuD,CAAA;AACzD,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,4CAAwB,CAAA;IACxB,0CAAsB,CAAA;AACxB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * MDCChipCssClasses provides the named constants for class names.\n */\nexport enum MDCChipCssClasses {\n SELECTING = 'md3-chip--selecting',\n DESELECTING = 'md3-chip--deselecting',\n SELECTING_WITH_PRIMARY_ICON = 'md3-chip--selecting-with-primary-icon',\n DESELECTING_WITH_PRIMARY_ICON = 'md3-chip--deselecting-with-primary-icon',\n DISABLED = 'md3-chip--disabled',\n ENTER = 'md3n-chip--enter',\n EXIT = 'md3-chip--exit',\n SELECTED = 'md3-chip--selected',\n HIDDEN = 'md3-chip--hidden',\n WITH_PRIMARY_ICON = 'md3-chip--with-primary-icon',\n}\n\n/**\n * MDCChipEvents provides the named constants for emitted events.\n */\nexport enum MDCChipEvents {\n INTERACTION = 'MDCChip:interaction',\n NAVIGATION = 'MDCChip:navigation',\n ANIMATION = 'MDCChip:animation',\n}\n\n/**\n * MDCChipAttributes provides the named constants for strings used by the\n * foundation.\n */\nexport enum MDCChipAttributes {\n DATA_REMOVED_ANNOUNCEMENT = 'data-md3-removed-announcement',\n DATA_ADDED_ANNOUNCEMENT = 'data-md3-added-announcement',\n}\n\n/**\n * MDCChipAnimation provides the names of runnable animations.\n */\nexport enum MDCChipAnimation {\n ENTER = 'md3-chip-enter',\n EXIT = 'md3-chip-exit',\n}\n"]}
@@ -1,41 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { MDCChipActionFocusBehavior, MDCChipActionType } from '../../action/lib/constants.js';
7
- import { MDCChipAdapter } from './adapter.js';
8
- import { MDCChipAnimation } from './constants.js';
9
- import { ActionInteractionEvent, ActionNavigationEvent } from './types.js';
10
- /**
11
- * MDCChipFoundation provides a foundation for all chips.
12
- */
13
- export declare class MDCChipFoundation {
14
- private readonly adapter;
15
- static get defaultAdapter(): MDCChipAdapter;
16
- private readonly animFrame;
17
- constructor(adapter?: Partial<MDCChipAdapter>);
18
- destroy(): void;
19
- getElementID(): string;
20
- setDisabled(isDisabled: boolean): void;
21
- isDisabled(): boolean;
22
- getActions(): MDCChipActionType[];
23
- isActionFocusable(action: MDCChipActionType): boolean;
24
- isActionSelectable(action: MDCChipActionType): boolean;
25
- isActionSelected(action: MDCChipActionType): boolean;
26
- setActionFocus(action: MDCChipActionType, focus: MDCChipActionFocusBehavior): void;
27
- setActionSelected(action: MDCChipActionType, isSelected: boolean): void;
28
- startAnimation(animation: MDCChipAnimation): void;
29
- handleAnimationEnd(event: AnimationEvent): void;
30
- handleTransitionEnd(): void;
31
- handleActionInteraction({ detail }: ActionInteractionEvent): void;
32
- handleActionNavigation({ detail }: ActionNavigationEvent): void;
33
- private directionFromKey;
34
- private navigateActions;
35
- private shouldRemove;
36
- private getRemovedAnnouncement;
37
- private getAddedAnnouncement;
38
- private animateSelection;
39
- private resetAnimationStyles;
40
- private updateSelectionStyles;
41
- }