@depup/angular__material 21.2.2-depup.19

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 (578) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +31 -0
  3. package/_index.scss +145 -0
  4. package/autocomplete/_autocomplete-theme.scss +76 -0
  5. package/autocomplete/_m2-autocomplete.scss +19 -0
  6. package/autocomplete/_m3-autocomplete.scss +26 -0
  7. package/badge/_badge-theme.scss +106 -0
  8. package/badge/_m2-badge.scss +73 -0
  9. package/badge/_m3-badge.scss +52 -0
  10. package/bottom-sheet/_bottom-sheet-theme.scss +76 -0
  11. package/bottom-sheet/_m2-bottom-sheet.scss +24 -0
  12. package/bottom-sheet/_m3-bottom-sheet.scss +25 -0
  13. package/button/_button-theme.scss +113 -0
  14. package/button/_fab-theme.scss +111 -0
  15. package/button/_icon-button-theme.scss +136 -0
  16. package/button/_m2-button.scss +194 -0
  17. package/button/_m2-fab.scss +101 -0
  18. package/button/_m2-icon-button.scss +59 -0
  19. package/button/_m3-button.scss +170 -0
  20. package/button/_m3-fab.scss +92 -0
  21. package/button/_m3-icon-button.scss +54 -0
  22. package/button-toggle/_button-toggle-theme.scss +93 -0
  23. package/button-toggle/_m2-button-toggle.scss +68 -0
  24. package/button-toggle/_m3-button-toggle.scss +72 -0
  25. package/card/_card-theme.scss +76 -0
  26. package/card/_m2-card.scss +39 -0
  27. package/card/_m3-card.scss +44 -0
  28. package/changes.json +10 -0
  29. package/checkbox/_checkbox-theme.scss +105 -0
  30. package/checkbox/_m2-checkbox.scss +78 -0
  31. package/checkbox/_m3-checkbox.scss +68 -0
  32. package/chips/_chips-theme.scss +115 -0
  33. package/chips/_m2-chip.scss +85 -0
  34. package/chips/_m3-chip.scss +81 -0
  35. package/core/_core-theme.scss +125 -0
  36. package/core/_core.scss +50 -0
  37. package/core/_m2-app.scss +24 -0
  38. package/core/_m3-app.scss +44 -0
  39. package/core/color/_all-color.scss +17 -0
  40. package/core/density/private/_all-density.scss +78 -0
  41. package/core/focus-indicators/_private.scss +126 -0
  42. package/core/m2/_index.scss +52 -0
  43. package/core/m2/_palette.scss +748 -0
  44. package/core/m2/_theming.scss +340 -0
  45. package/core/m2/_typography-utils.scss +81 -0
  46. package/core/m2/_typography.scss +388 -0
  47. package/core/option/_m2-optgroup.scss +21 -0
  48. package/core/option/_m2-option.scss +38 -0
  49. package/core/option/_m3-optgroup.scss +25 -0
  50. package/core/option/_m3-option.scss +37 -0
  51. package/core/option/_optgroup-theme.scss +76 -0
  52. package/core/option/_option-theme.scss +103 -0
  53. package/core/ripple/_m2-ripple.scss +17 -0
  54. package/core/ripple/_m3-ripple.scss +17 -0
  55. package/core/ripple/_ripple-theme.scss +75 -0
  56. package/core/ripple/_ripple.scss +56 -0
  57. package/core/selection/pseudo-checkbox/_m2-pseudo-checkbox.scss +32 -0
  58. package/core/selection/pseudo-checkbox/_m3-pseudo-checkbox.scss +34 -0
  59. package/core/selection/pseudo-checkbox/_pseudo-checkbox-common.scss +86 -0
  60. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +110 -0
  61. package/core/style/_checkbox-common.scss +11 -0
  62. package/core/style/_elevation.scss +208 -0
  63. package/core/style/_layout-common.scss +8 -0
  64. package/core/style/_private.scss +27 -0
  65. package/core/style/_sass-utils.scss +57 -0
  66. package/core/style/_validation.scss +52 -0
  67. package/core/style/_variables.scss +44 -0
  68. package/core/style/_vendor-prefixes.scss +56 -0
  69. package/core/theming/_all-theme.scss +168 -0
  70. package/core/theming/_color-api-backwards-compatibility.scss +159 -0
  71. package/core/theming/_config-validation.scss +174 -0
  72. package/core/theming/_definition.scss +141 -0
  73. package/core/theming/_inspection.scss +289 -0
  74. package/core/theming/_m2-inspection.scss +243 -0
  75. package/core/theming/_palettes.scss +1036 -0
  76. package/core/theming/_theming.scss +193 -0
  77. package/core/theming/_validation.scss +5 -0
  78. package/core/tokens/_classes.scss +398 -0
  79. package/core/tokens/_m2-utils.scss +25 -0
  80. package/core/tokens/_m3-tokens.scss +126 -0
  81. package/core/tokens/_m3-utils.scss +36 -0
  82. package/core/tokens/_system.scss +398 -0
  83. package/core/tokens/_token-utils.scss +119 -0
  84. package/core/tokens/m2/_index.scss +6 -0
  85. package/core/tokens/m2/_md-sys-color-internal.scss +11 -0
  86. package/core/tokens/m2/_md-sys-color.scss +123 -0
  87. package/core/tokens/m2/_md-sys-elevation.scss +10 -0
  88. package/core/tokens/m2/_md-sys-motion.scss +30 -0
  89. package/core/tokens/m2/_md-sys-shape.scss +16 -0
  90. package/core/tokens/m2/_md-sys-state.scss +8 -0
  91. package/core/tokens/m2/_md-sys-typescale.scss +68 -0
  92. package/core/tokens/m3/_index.scss +7 -0
  93. package/core/tokens/m3/_md-sys-color-internal.scss +11 -0
  94. package/core/tokens/m3/_md-sys-color.scss +118 -0
  95. package/core/tokens/m3/_md-sys-elevation.scss +15 -0
  96. package/core/tokens/m3/_md-sys-motion.scss +35 -0
  97. package/core/tokens/m3/_md-sys-shape.scss +21 -0
  98. package/core/tokens/m3/_md-sys-state.scss +13 -0
  99. package/core/tokens/m3/_md-sys-typescale-internal.scss +5 -0
  100. package/core/tokens/m3/_md-sys-typescale.scss +114 -0
  101. package/core/tokens/m3/_theme.scss +35 -0
  102. package/core/typography/_all-typography.scss +104 -0
  103. package/core/typography/_typography-utils.scss +31 -0
  104. package/core/typography/_typography.scss +269 -0
  105. package/core/typography/_versioning.scss +90 -0
  106. package/datepicker/_datepicker-theme.scss +132 -0
  107. package/datepicker/_m2-datepicker.scss +81 -0
  108. package/datepicker/_m3-datepicker.scss +74 -0
  109. package/dialog/_dialog-legacy-padding.scss +31 -0
  110. package/dialog/_dialog-theme.scss +76 -0
  111. package/dialog/_m2-dialog.scss +43 -0
  112. package/dialog/_m3-dialog.scss +47 -0
  113. package/divider/_divider-theme.scss +75 -0
  114. package/divider/_m2-divider.scss +17 -0
  115. package/divider/_m3-divider.scss +19 -0
  116. package/expansion/_expansion-theme.scss +76 -0
  117. package/expansion/_m2-expansion.scss +64 -0
  118. package/expansion/_m3-expansion.scss +61 -0
  119. package/fesm2022/_animation-chunk.mjs +22 -0
  120. package/fesm2022/_animation-chunk.mjs.map +1 -0
  121. package/fesm2022/_date-formats-chunk.mjs +86 -0
  122. package/fesm2022/_date-formats-chunk.mjs.map +1 -0
  123. package/fesm2022/_date-range-input-harness-chunk.mjs +322 -0
  124. package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -0
  125. package/fesm2022/_error-options-chunk.mjs +66 -0
  126. package/fesm2022/_error-options-chunk.mjs.map +1 -0
  127. package/fesm2022/_error-state-chunk.mjs +30 -0
  128. package/fesm2022/_error-state-chunk.mjs.map +1 -0
  129. package/fesm2022/_form-field-chunk.mjs +1351 -0
  130. package/fesm2022/_form-field-chunk.mjs.map +1 -0
  131. package/fesm2022/_icon-button-chunk.mjs +268 -0
  132. package/fesm2022/_icon-button-chunk.mjs.map +1 -0
  133. package/fesm2022/_icon-registry-chunk.mjs +368 -0
  134. package/fesm2022/_icon-registry-chunk.mjs.map +1 -0
  135. package/fesm2022/_input-harness-chunk.mjs +67 -0
  136. package/fesm2022/_input-harness-chunk.mjs.map +1 -0
  137. package/fesm2022/_input-value-accessor-chunk.mjs +6 -0
  138. package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -0
  139. package/fesm2022/_internal-form-field-chunk.mjs +67 -0
  140. package/fesm2022/_internal-form-field-chunk.mjs.map +1 -0
  141. package/fesm2022/_line-chunk.mjs +99 -0
  142. package/fesm2022/_line-chunk.mjs.map +1 -0
  143. package/fesm2022/_option-chunk.mjs +385 -0
  144. package/fesm2022/_option-chunk.mjs.map +1 -0
  145. package/fesm2022/_option-harness-chunk.mjs +30 -0
  146. package/fesm2022/_option-harness-chunk.mjs.map +1 -0
  147. package/fesm2022/_option-module-chunk.mjs +48 -0
  148. package/fesm2022/_option-module-chunk.mjs.map +1 -0
  149. package/fesm2022/_pseudo-checkbox-chunk.mjs +88 -0
  150. package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -0
  151. package/fesm2022/_pseudo-checkbox-module-chunk.mjs +46 -0
  152. package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -0
  153. package/fesm2022/_public-api-chunk.mjs +84 -0
  154. package/fesm2022/_public-api-chunk.mjs.map +1 -0
  155. package/fesm2022/_ripple-chunk.mjs +544 -0
  156. package/fesm2022/_ripple-chunk.mjs.map +1 -0
  157. package/fesm2022/_ripple-loader-chunk.mjs +144 -0
  158. package/fesm2022/_ripple-loader-chunk.mjs.map +1 -0
  159. package/fesm2022/_ripple-module-chunk.mjs +46 -0
  160. package/fesm2022/_ripple-module-chunk.mjs.map +1 -0
  161. package/fesm2022/_structural-styles-chunk.mjs +45 -0
  162. package/fesm2022/_structural-styles-chunk.mjs.map +1 -0
  163. package/fesm2022/_tooltip-chunk.mjs +848 -0
  164. package/fesm2022/_tooltip-chunk.mjs.map +1 -0
  165. package/fesm2022/autocomplete-testing.mjs +75 -0
  166. package/fesm2022/autocomplete-testing.mjs.map +1 -0
  167. package/fesm2022/autocomplete.mjs +1068 -0
  168. package/fesm2022/autocomplete.mjs.map +1 -0
  169. package/fesm2022/badge-testing.mjs +48 -0
  170. package/fesm2022/badge-testing.mjs.map +1 -0
  171. package/fesm2022/badge.mjs +357 -0
  172. package/fesm2022/badge.mjs.map +1 -0
  173. package/fesm2022/bottom-sheet-testing.mjs +17 -0
  174. package/fesm2022/bottom-sheet-testing.mjs.map +1 -0
  175. package/fesm2022/bottom-sheet.mjs +390 -0
  176. package/fesm2022/bottom-sheet.mjs.map +1 -0
  177. package/fesm2022/button-testing.mjs +81 -0
  178. package/fesm2022/button-testing.mjs.map +1 -0
  179. package/fesm2022/button-toggle-testing.mjs +87 -0
  180. package/fesm2022/button-toggle-testing.mjs.map +1 -0
  181. package/fesm2022/button-toggle.mjs +789 -0
  182. package/fesm2022/button-toggle.mjs.map +1 -0
  183. package/fesm2022/button.mjs +308 -0
  184. package/fesm2022/button.mjs.map +1 -0
  185. package/fesm2022/card-testing.mjs +29 -0
  186. package/fesm2022/card-testing.mjs.map +1 -0
  187. package/fesm2022/card.mjs +615 -0
  188. package/fesm2022/card.mjs.map +1 -0
  189. package/fesm2022/checkbox-testing.mjs +79 -0
  190. package/fesm2022/checkbox-testing.mjs.map +1 -0
  191. package/fesm2022/checkbox.mjs +551 -0
  192. package/fesm2022/checkbox.mjs.map +1 -0
  193. package/fesm2022/chips-testing.mjs +239 -0
  194. package/fesm2022/chips-testing.mjs.map +1 -0
  195. package/fesm2022/chips.mjs +2663 -0
  196. package/fesm2022/chips.mjs.map +1 -0
  197. package/fesm2022/core-testing.mjs +22 -0
  198. package/fesm2022/core-testing.mjs.map +1 -0
  199. package/fesm2022/core.mjs +408 -0
  200. package/fesm2022/core.mjs.map +1 -0
  201. package/fesm2022/datepicker-testing.mjs +26 -0
  202. package/fesm2022/datepicker-testing.mjs.map +1 -0
  203. package/fesm2022/datepicker.mjs +5015 -0
  204. package/fesm2022/datepicker.mjs.map +1 -0
  205. package/fesm2022/dialog-testing.mjs +123 -0
  206. package/fesm2022/dialog-testing.mjs.map +1 -0
  207. package/fesm2022/dialog.mjs +873 -0
  208. package/fesm2022/dialog.mjs.map +1 -0
  209. package/fesm2022/divider-testing.mjs +17 -0
  210. package/fesm2022/divider-testing.mjs.map +1 -0
  211. package/fesm2022/divider.mjs +132 -0
  212. package/fesm2022/divider.mjs.map +1 -0
  213. package/fesm2022/expansion-testing.mjs +87 -0
  214. package/fesm2022/expansion-testing.mjs.map +1 -0
  215. package/fesm2022/expansion.mjs +749 -0
  216. package/fesm2022/expansion.mjs.map +1 -0
  217. package/fesm2022/form-field-testing-control.mjs +24 -0
  218. package/fesm2022/form-field-testing-control.mjs.map +1 -0
  219. package/fesm2022/form-field-testing.mjs +135 -0
  220. package/fesm2022/form-field-testing.mjs.map +1 -0
  221. package/fesm2022/form-field.mjs +57 -0
  222. package/fesm2022/form-field.mjs.map +1 -0
  223. package/fesm2022/grid-list-testing.mjs +80 -0
  224. package/fesm2022/grid-list-testing.mjs.map +1 -0
  225. package/fesm2022/grid-list.mjs +604 -0
  226. package/fesm2022/grid-list.mjs.map +1 -0
  227. package/fesm2022/icon-testing.mjs +172 -0
  228. package/fesm2022/icon-testing.mjs.map +1 -0
  229. package/fesm2022/icon.mjs +366 -0
  230. package/fesm2022/icon.mjs.map +1 -0
  231. package/fesm2022/input-testing.mjs +73 -0
  232. package/fesm2022/input-testing.mjs.map +1 -0
  233. package/fesm2022/input.mjs +495 -0
  234. package/fesm2022/input.mjs.map +1 -0
  235. package/fesm2022/list-testing.mjs +295 -0
  236. package/fesm2022/list-testing.mjs.map +1 -0
  237. package/fesm2022/list.mjs +1604 -0
  238. package/fesm2022/list.mjs.map +1 -0
  239. package/fesm2022/material.mjs +4 -0
  240. package/fesm2022/material.mjs.map +1 -0
  241. package/fesm2022/menu-testing.mjs +174 -0
  242. package/fesm2022/menu-testing.mjs.map +1 -0
  243. package/fesm2022/menu.mjs +1421 -0
  244. package/fesm2022/menu.mjs.map +1 -0
  245. package/fesm2022/paginator-testing.mjs +69 -0
  246. package/fesm2022/paginator-testing.mjs.map +1 -0
  247. package/fesm2022/paginator.mjs +445 -0
  248. package/fesm2022/paginator.mjs.map +1 -0
  249. package/fesm2022/progress-bar-testing.mjs +20 -0
  250. package/fesm2022/progress-bar-testing.mjs.map +1 -0
  251. package/fesm2022/progress-bar.mjs +247 -0
  252. package/fesm2022/progress-bar.mjs.map +1 -0
  253. package/fesm2022/progress-spinner-testing.mjs +21 -0
  254. package/fesm2022/progress-spinner-testing.mjs.map +1 -0
  255. package/fesm2022/progress-spinner.mjs +258 -0
  256. package/fesm2022/progress-spinner.mjs.map +1 -0
  257. package/fesm2022/radio-testing.mjs +143 -0
  258. package/fesm2022/radio-testing.mjs.map +1 -0
  259. package/fesm2022/radio.mjs +751 -0
  260. package/fesm2022/radio.mjs.map +1 -0
  261. package/fesm2022/select-testing.mjs +92 -0
  262. package/fesm2022/select-testing.mjs.map +1 -0
  263. package/fesm2022/select.mjs +1181 -0
  264. package/fesm2022/select.mjs.map +1 -0
  265. package/fesm2022/sidenav-testing.mjs +80 -0
  266. package/fesm2022/sidenav-testing.mjs.map +1 -0
  267. package/fesm2022/sidenav.mjs +1151 -0
  268. package/fesm2022/sidenav.mjs.map +1 -0
  269. package/fesm2022/slide-toggle-testing.mjs +68 -0
  270. package/fesm2022/slide-toggle-testing.mjs.map +1 -0
  271. package/fesm2022/slide-toggle.mjs +403 -0
  272. package/fesm2022/slide-toggle.mjs.map +1 -0
  273. package/fesm2022/slider-testing.mjs +105 -0
  274. package/fesm2022/slider-testing.mjs.map +1 -0
  275. package/fesm2022/slider.mjs +1720 -0
  276. package/fesm2022/slider.mjs.map +1 -0
  277. package/fesm2022/snack-bar-testing.mjs +47 -0
  278. package/fesm2022/snack-bar-testing.mjs.map +1 -0
  279. package/fesm2022/snack-bar.mjs +820 -0
  280. package/fesm2022/snack-bar.mjs.map +1 -0
  281. package/fesm2022/sort-testing.mjs +55 -0
  282. package/fesm2022/sort-testing.mjs.map +1 -0
  283. package/fesm2022/sort.mjs +470 -0
  284. package/fesm2022/sort.mjs.map +1 -0
  285. package/fesm2022/stepper-testing.mjs +99 -0
  286. package/fesm2022/stepper-testing.mjs.map +1 -0
  287. package/fesm2022/stepper.mjs +900 -0
  288. package/fesm2022/stepper.mjs.map +1 -0
  289. package/fesm2022/table-testing.mjs +152 -0
  290. package/fesm2022/table-testing.mjs.map +1 -0
  291. package/fesm2022/table.mjs +1151 -0
  292. package/fesm2022/table.mjs.map +1 -0
  293. package/fesm2022/tabs-testing.mjs +144 -0
  294. package/fesm2022/tabs-testing.mjs.map +1 -0
  295. package/fesm2022/tabs.mjs +2435 -0
  296. package/fesm2022/tabs.mjs.map +1 -0
  297. package/fesm2022/timepicker-testing.mjs +128 -0
  298. package/fesm2022/timepicker-testing.mjs.map +1 -0
  299. package/fesm2022/timepicker.mjs +1284 -0
  300. package/fesm2022/timepicker.mjs.map +1 -0
  301. package/fesm2022/toolbar-testing.mjs +26 -0
  302. package/fesm2022/toolbar-testing.mjs.map +1 -0
  303. package/fesm2022/toolbar.mjs +182 -0
  304. package/fesm2022/toolbar.mjs.map +1 -0
  305. package/fesm2022/tooltip-testing.mjs +48 -0
  306. package/fesm2022/tooltip-testing.mjs.map +1 -0
  307. package/fesm2022/tooltip.mjs +58 -0
  308. package/fesm2022/tooltip.mjs.map +1 -0
  309. package/fesm2022/tree-testing.mjs +104 -0
  310. package/fesm2022/tree-testing.mjs.map +1 -0
  311. package/fesm2022/tree.mjs +681 -0
  312. package/fesm2022/tree.mjs.map +1 -0
  313. package/form-field/_form-field-theme.scss +96 -0
  314. package/form-field/_m2-form-field.scss +226 -0
  315. package/form-field/_m3-form-field.scss +137 -0
  316. package/grid-list/_grid-list-theme.scss +76 -0
  317. package/grid-list/_m2-grid-list.scss +21 -0
  318. package/grid-list/_m3-grid-list.scss +20 -0
  319. package/icon/_icon-theme.scss +109 -0
  320. package/icon/_m2-icon.scss +15 -0
  321. package/icon/_m3-icon.scss +21 -0
  322. package/input/_input-theme.scss +36 -0
  323. package/list/_list-theme.scss +201 -0
  324. package/list/_m2-list.scss +92 -0
  325. package/list/_m3-list.scss +93 -0
  326. package/menu/_m2-menu.scss +44 -0
  327. package/menu/_m3-menu.scss +42 -0
  328. package/menu/_menu-theme.scss +76 -0
  329. package/package.json +404 -0
  330. package/paginator/_m2-paginator.scss +69 -0
  331. package/paginator/_m3-paginator.scss +46 -0
  332. package/paginator/_paginator-theme.scss +76 -0
  333. package/prebuilt-themes/azure-blue.css +1 -0
  334. package/prebuilt-themes/cyan-orange.css +1 -0
  335. package/prebuilt-themes/deeppurple-amber.css +1 -0
  336. package/prebuilt-themes/indigo-pink.css +1 -0
  337. package/prebuilt-themes/magenta-violet.css +1 -0
  338. package/prebuilt-themes/pink-bluegrey.css +1 -0
  339. package/prebuilt-themes/purple-green.css +1 -0
  340. package/prebuilt-themes/rose-red.css +1 -0
  341. package/progress-bar/_m2-progress-bar.scss +36 -0
  342. package/progress-bar/_m3-progress-bar.scss +29 -0
  343. package/progress-bar/_progress-bar-theme.scss +93 -0
  344. package/progress-spinner/_m2-progress-spinner.scss +25 -0
  345. package/progress-spinner/_m3-progress-spinner.scss +27 -0
  346. package/progress-spinner/_progress-spinner-theme.scss +95 -0
  347. package/radio/_m2-radio.scss +67 -0
  348. package/radio/_m3-radio.scss +65 -0
  349. package/radio/_radio-theme.scss +102 -0
  350. package/schematics/collection.json +55 -0
  351. package/schematics/migration.json +15 -0
  352. package/schematics/ng-add/fonts/material-fonts.d.ts +11 -0
  353. package/schematics/ng-add/fonts/material-fonts.js +41 -0
  354. package/schematics/ng-add/fonts/material-fonts.js.map +1 -0
  355. package/schematics/ng-add/index.d.ts +17 -0
  356. package/schematics/ng-add/index.js +54 -0
  357. package/schematics/ng-add/index.js.map +1 -0
  358. package/schematics/ng-add/package-config.d.ts +12 -0
  359. package/schematics/ng-add/package-config.js +51 -0
  360. package/schematics/ng-add/package-config.js.map +1 -0
  361. package/schematics/ng-add/schema.d.ts +15 -0
  362. package/schematics/ng-add/schema.js +10 -0
  363. package/schematics/ng-add/schema.js.map +1 -0
  364. package/schematics/ng-add/schema.json +43 -0
  365. package/schematics/ng-add/setup-project.d.ts +15 -0
  366. package/schematics/ng-add/setup-project.js +36 -0
  367. package/schematics/ng-add/setup-project.js.map +1 -0
  368. package/schematics/ng-add/theming/create-theme.d.ts +9 -0
  369. package/schematics/ng-add/theming/create-theme.js +58 -0
  370. package/schematics/ng-add/theming/create-theme.js.map +1 -0
  371. package/schematics/ng-add/theming/theming.d.ts +11 -0
  372. package/schematics/ng-add/theming/theming.js +133 -0
  373. package/schematics/ng-add/theming/theming.js.map +1 -0
  374. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +27 -0
  375. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +99 -0
  376. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +38 -0
  377. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +118 -0
  378. package/schematics/ng-generate/address-form/index.d.ts +14 -0
  379. package/schematics/ng-generate/address-form/index.js +43 -0
  380. package/schematics/ng-generate/address-form/index.js.map +1 -0
  381. package/schematics/ng-generate/address-form/schema.d.ts +10 -0
  382. package/schematics/ng-generate/address-form/schema.js +10 -0
  383. package/schematics/ng-generate/address-form/schema.js.map +1 -0
  384. package/schematics/ng-generate/address-form/schema.json +100 -0
  385. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +21 -0
  386. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +26 -0
  387. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +36 -0
  388. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +56 -0
  389. package/schematics/ng-generate/dashboard/index.d.ts +14 -0
  390. package/schematics/ng-generate/dashboard/index.js +42 -0
  391. package/schematics/ng-generate/dashboard/index.js.map +1 -0
  392. package/schematics/ng-generate/dashboard/schema.d.ts +10 -0
  393. package/schematics/ng-generate/dashboard/schema.js +10 -0
  394. package/schematics/ng-generate/dashboard/schema.js.map +1 -0
  395. package/schematics/ng-generate/dashboard/schema.json +100 -0
  396. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +17 -0
  397. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +28 -0
  398. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +36 -0
  399. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +42 -0
  400. package/schematics/ng-generate/navigation/index.d.ts +14 -0
  401. package/schematics/ng-generate/navigation/index.js +42 -0
  402. package/schematics/ng-generate/navigation/index.js.map +1 -0
  403. package/schematics/ng-generate/navigation/schema.d.ts +10 -0
  404. package/schematics/ng-generate/navigation/schema.js +10 -0
  405. package/schematics/ng-generate/navigation/schema.js.map +1 -0
  406. package/schematics/ng-generate/navigation/schema.json +105 -0
  407. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__-datasource.ts.template +111 -0
  408. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +3 -0
  409. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +26 -0
  410. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +32 -0
  411. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +36 -0
  412. package/schematics/ng-generate/table/index.d.ts +14 -0
  413. package/schematics/ng-generate/table/index.js +40 -0
  414. package/schematics/ng-generate/table/index.js.map +1 -0
  415. package/schematics/ng-generate/table/schema.d.ts +10 -0
  416. package/schematics/ng-generate/table/schema.js +10 -0
  417. package/schematics/ng-generate/table/schema.js.map +1 -0
  418. package/schematics/ng-generate/table/schema.json +100 -0
  419. package/schematics/ng-generate/theme-color/index_bundled.js +6561 -0
  420. package/schematics/ng-generate/theme-color/index_bundled.js.map +6 -0
  421. package/schematics/ng-generate/theme-color/schema.json +55 -0
  422. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +4 -0
  423. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +22 -0
  424. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +32 -0
  425. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +93 -0
  426. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/example-data.ts.template +47 -0
  427. package/schematics/ng-generate/tree/index.d.ts +14 -0
  428. package/schematics/ng-generate/tree/index.js +40 -0
  429. package/schematics/ng-generate/tree/index.js.map +1 -0
  430. package/schematics/ng-generate/tree/schema.d.ts +10 -0
  431. package/schematics/ng-generate/tree/schema.js +10 -0
  432. package/schematics/ng-generate/tree/schema.js.map +1 -0
  433. package/schematics/ng-generate/tree/schema.json +100 -0
  434. package/schematics/ng-update/index_bundled.js +204 -0
  435. package/schematics/ng-update/index_bundled.js.map +6 -0
  436. package/schematics/package.json +3 -0
  437. package/select/_m2-select.scss +49 -0
  438. package/select/_m3-select.scss +54 -0
  439. package/select/_select-theme.scss +99 -0
  440. package/sidenav/_m2-sidenav.scss +48 -0
  441. package/sidenav/_m3-sidenav.scss +26 -0
  442. package/sidenav/_sidenav-theme.scss +75 -0
  443. package/slide-toggle/_m2-slide-toggle.scss +134 -0
  444. package/slide-toggle/_m3-slide-toggle.scss +133 -0
  445. package/slide-toggle/_slide-toggle-theme.scss +119 -0
  446. package/slider/_m2-slider.scss +73 -0
  447. package/slider/_m3-slider.scss +69 -0
  448. package/slider/_slider-theme.scss +103 -0
  449. package/snack-bar/_m2-snack-bar.scss +24 -0
  450. package/snack-bar/_m3-snack-bar.scss +26 -0
  451. package/snack-bar/_snack-bar-theme.scss +77 -0
  452. package/sort/_m2-sort.scss +16 -0
  453. package/sort/_m3-sort.scss +20 -0
  454. package/sort/_sort-theme.scss +76 -0
  455. package/stepper/_m2-stepper.scss +65 -0
  456. package/stepper/_m3-stepper.scss +66 -0
  457. package/stepper/_stepper-theme.scss +102 -0
  458. package/table/_m2-table.scss +63 -0
  459. package/table/_m3-table.scss +52 -0
  460. package/table/_table-theme.scss +76 -0
  461. package/tabs/_m2-tabs.scss +68 -0
  462. package/tabs/_m3-tabs.scss +58 -0
  463. package/tabs/_tabs-theme.scss +131 -0
  464. package/timepicker/_m2-timepicker.scss +19 -0
  465. package/timepicker/_m3-timepicker.scss +21 -0
  466. package/timepicker/_timepicker-theme.scss +81 -0
  467. package/toolbar/_m2-toolbar.scss +43 -0
  468. package/toolbar/_m3-toolbar.scss +41 -0
  469. package/toolbar/_toolbar-theme.scss +114 -0
  470. package/tooltip/_m2-tooltip.scss +24 -0
  471. package/tooltip/_m3-tooltip.scss +25 -0
  472. package/tooltip/_tooltip-theme.scss +76 -0
  473. package/tree/_m2-tree.scss +30 -0
  474. package/tree/_m3-tree.scss +37 -0
  475. package/tree/_tree-theme.scss +76 -0
  476. package/types/_badge-chunk.d.ts +100 -0
  477. package/types/_button-toggle-chunk.d.ts +252 -0
  478. package/types/_date-adapter-chunk.d.ts +261 -0
  479. package/types/_date-range-input-harness-chunk.d.ts +284 -0
  480. package/types/_dialog-chunk.d.ts +336 -0
  481. package/types/_error-options-chunk.d.ts +17 -0
  482. package/types/_form-field-chunk.d.ts +375 -0
  483. package/types/_form-field-control-chunk.d.ts +64 -0
  484. package/types/_form-field-control-harness-chunk.d.ts +20 -0
  485. package/types/_form-field-module-chunk.d.ts +18 -0
  486. package/types/_icon-module-chunk.d.ts +162 -0
  487. package/types/_icon-registry-chunk.d.ts +271 -0
  488. package/types/_input-harness-chunk.d.ts +61 -0
  489. package/types/_line-chunk.d.ts +25 -0
  490. package/types/_list-option-types-chunk.d.ts +15 -0
  491. package/types/_option-chunk.d.ts +146 -0
  492. package/types/_option-harness-chunk.d.ts +35 -0
  493. package/types/_option-module-chunk.d.ts +13 -0
  494. package/types/_option-parent-chunk.d.ts +20 -0
  495. package/types/_paginator-chunk.d.ts +184 -0
  496. package/types/_palette-chunk.d.ts +4 -0
  497. package/types/_progress-spinner-chunk.d.ts +91 -0
  498. package/types/_pseudo-checkbox-module-chunk.d.ts +45 -0
  499. package/types/_ripple-chunk.d.ts +256 -0
  500. package/types/_ripple-loader-chunk.d.ts +48 -0
  501. package/types/_ripple-module-chunk.d.ts +11 -0
  502. package/types/_sort-chunk.d.ts +88 -0
  503. package/types/_sort-direction-chunk.d.ts +3 -0
  504. package/types/_tooltip-chunk.d.ts +315 -0
  505. package/types/autocomplete-testing.d.ts +53 -0
  506. package/types/autocomplete.d.ts +420 -0
  507. package/types/badge-testing.d.ts +36 -0
  508. package/types/badge.d.ts +14 -0
  509. package/types/bottom-sheet-testing.d.ts +26 -0
  510. package/types/bottom-sheet.d.ts +192 -0
  511. package/types/button-testing.d.ts +70 -0
  512. package/types/button-toggle-testing.d.ts +97 -0
  513. package/types/button-toggle.d.ts +16 -0
  514. package/types/button.d.ts +210 -0
  515. package/types/card-testing.d.ts +41 -0
  516. package/types/card.d.ts +156 -0
  517. package/types/checkbox-testing.d.ts +86 -0
  518. package/types/checkbox.d.ts +216 -0
  519. package/types/chips-testing.d.ts +270 -0
  520. package/types/chips.d.ts +993 -0
  521. package/types/core-testing.d.ts +32 -0
  522. package/types/core.d.ts +185 -0
  523. package/types/datepicker-testing.d.ts +25 -0
  524. package/types/datepicker.d.ts +1746 -0
  525. package/types/dialog-testing.d.ts +83 -0
  526. package/types/dialog.d.ts +84 -0
  527. package/types/divider-testing.d.ts +15 -0
  528. package/types/divider.d.ts +24 -0
  529. package/types/expansion-testing.d.ts +101 -0
  530. package/types/expansion.d.ts +258 -0
  531. package/types/form-field-testing-control.d.ts +13 -0
  532. package/types/form-field-testing.d.ts +127 -0
  533. package/types/form-field.d.ts +19 -0
  534. package/types/grid-list-testing.d.ts +82 -0
  535. package/types/grid-list.d.ts +207 -0
  536. package/types/icon-testing.d.ts +81 -0
  537. package/types/icon.d.ts +8 -0
  538. package/types/input-testing.d.ts +73 -0
  539. package/types/input.d.ts +208 -0
  540. package/types/list-testing.d.ts +354 -0
  541. package/types/list.d.ts +516 -0
  542. package/types/material.d.ts +3 -0
  543. package/types/menu-testing.d.ts +141 -0
  544. package/types/menu.d.ts +547 -0
  545. package/types/paginator-testing.d.ts +51 -0
  546. package/types/paginator.d.ts +36 -0
  547. package/types/progress-bar-testing.d.ts +24 -0
  548. package/types/progress-bar.d.ts +106 -0
  549. package/types/progress-spinner-testing.d.ts +28 -0
  550. package/types/progress-spinner.d.ts +13 -0
  551. package/types/radio-testing.d.ts +109 -0
  552. package/types/radio.d.ts +295 -0
  553. package/types/select-testing.d.ts +63 -0
  554. package/types/select.d.ts +448 -0
  555. package/types/sidenav-testing.d.ts +122 -0
  556. package/types/sidenav.d.ts +335 -0
  557. package/types/slide-toggle-testing.d.ts +66 -0
  558. package/types/slide-toggle.d.ts +151 -0
  559. package/types/slider-testing.d.ts +90 -0
  560. package/types/slider.d.ts +662 -0
  561. package/types/snack-bar-testing.d.ts +64 -0
  562. package/types/snack-bar.d.ts +328 -0
  563. package/types/sort-testing.d.ts +48 -0
  564. package/types/sort.d.ts +126 -0
  565. package/types/stepper-testing.d.ts +136 -0
  566. package/types/stepper.d.ts +225 -0
  567. package/types/table-testing.d.ts +174 -0
  568. package/types/table.d.ts +302 -0
  569. package/types/tabs-testing.d.ts +145 -0
  570. package/types/tabs.d.ts +890 -0
  571. package/types/timepicker-testing.d.ts +108 -0
  572. package/types/timepicker.d.ts +318 -0
  573. package/types/toolbar-testing.d.ts +33 -0
  574. package/types/toolbar.d.ts +44 -0
  575. package/types/tooltip-testing.d.ts +35 -0
  576. package/types/tooltip.d.ts +17 -0
  577. package/types/tree-testing.d.ts +119 -0
  578. package/types/tree.d.ts +233 -0
@@ -0,0 +1,106 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core';
3
+ import { ThemePalette } from './_palette-chunk.js';
4
+ import * as i2 from '@angular/cdk/bidi';
5
+
6
+ /** Last animation end data. */
7
+ interface ProgressAnimationEnd {
8
+ value: number;
9
+ }
10
+ /** Default `mat-progress-bar` options that can be overridden. */
11
+ interface MatProgressBarDefaultOptions {
12
+ /**
13
+ * Default theme color of the progress bar. This API is supported in M2 themes only,
14
+ * it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/progress-bar/styling.
15
+ *
16
+ * For information on applying color variants in M3, see
17
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
18
+ */
19
+ color?: ThemePalette;
20
+ /** Default mode of the progress bar. */
21
+ mode?: ProgressBarMode;
22
+ }
23
+ /** Injection token to be used to override the default options for `mat-progress-bar`. */
24
+ declare const MAT_PROGRESS_BAR_DEFAULT_OPTIONS: InjectionToken<MatProgressBarDefaultOptions>;
25
+ /**
26
+ * Injection token used to provide the current location to `MatProgressBar`.
27
+ * Used to handle server-side rendering and to stub out during unit tests.
28
+ * @docs-private
29
+ */
30
+ declare const MAT_PROGRESS_BAR_LOCATION: InjectionToken<MatProgressBarLocation>;
31
+ /**
32
+ * Stubbed out location for `MatProgressBar`.
33
+ * @docs-private
34
+ */
35
+ interface MatProgressBarLocation {
36
+ getPathname: () => string;
37
+ }
38
+ type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
39
+ declare class MatProgressBar implements AfterViewInit, OnDestroy {
40
+ readonly _elementRef: ElementRef<HTMLElement>;
41
+ private _ngZone;
42
+ private _changeDetectorRef;
43
+ private _renderer;
44
+ private _cleanupTransitionEnd;
45
+ constructor(...args: unknown[]);
46
+ /** Flag that indicates whether NoopAnimations mode is set to true. */
47
+ _isNoopAnimation: boolean;
48
+ /**
49
+ * Theme color of the progress bar. This API is supported in M2 themes only, it
50
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/progress-bar/styling.
51
+ *
52
+ * For information on applying color variants in M3, see
53
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
54
+ */
55
+ get color(): string | null | undefined;
56
+ set color(value: string | null | undefined);
57
+ private _color;
58
+ private _defaultColor;
59
+ /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
60
+ get value(): number;
61
+ set value(v: number);
62
+ private _value;
63
+ /** Buffer value of the progress bar. Defaults to zero. */
64
+ get bufferValue(): number;
65
+ set bufferValue(v: number);
66
+ private _bufferValue;
67
+ /**
68
+ * Event emitted when animation of the primary progress bar completes. This event will not
69
+ * be emitted when animations are disabled, nor will it be emitted for modes with continuous
70
+ * animations (indeterminate and query).
71
+ */
72
+ readonly animationEnd: EventEmitter<ProgressAnimationEnd>;
73
+ /**
74
+ * Mode of the progress bar.
75
+ *
76
+ * Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
77
+ * 'determinate'.
78
+ * Mirrored to mode attribute.
79
+ */
80
+ get mode(): ProgressBarMode;
81
+ set mode(value: ProgressBarMode);
82
+ private _mode;
83
+ ngAfterViewInit(): void;
84
+ ngOnDestroy(): void;
85
+ /** Gets the transform style that should be applied to the primary bar. */
86
+ _getPrimaryBarTransform(): string;
87
+ /** Gets the `flex-basis` value that should be applied to the buffer bar. */
88
+ _getBufferBarFlexBasis(): string;
89
+ /** Returns whether the progress bar is indeterminate. */
90
+ _isIndeterminate(): boolean;
91
+ /** Event handler for `transitionend` events. */
92
+ private _transitionendHandler;
93
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressBar, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressBar, "mat-progress-bar", ["matProgressBar"], { "color": { "alias": "color"; "required": false; }; "value": { "alias": "value"; "required": false; }; "bufferValue": { "alias": "bufferValue"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "animationEnd": "animationEnd"; }, never, never, true, never>;
95
+ static ngAcceptInputType_value: unknown;
96
+ static ngAcceptInputType_bufferValue: unknown;
97
+ }
98
+
99
+ declare class MatProgressBarModule {
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressBarModule, never>;
101
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressBarModule, never, [typeof MatProgressBar], [typeof MatProgressBar, typeof i2.BidiModule]>;
102
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressBarModule>;
103
+ }
104
+
105
+ export { MAT_PROGRESS_BAR_DEFAULT_OPTIONS, MAT_PROGRESS_BAR_LOCATION, MatProgressBar, MatProgressBarModule };
106
+ export type { MatProgressBarDefaultOptions, MatProgressBarLocation, ProgressAnimationEnd, ProgressBarMode };
@@ -0,0 +1,28 @@
1
+ import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { ProgressSpinnerMode } from './_progress-spinner-chunk.js';
3
+ import '@angular/core';
4
+ import './_palette-chunk.js';
5
+
6
+ /** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */
7
+ interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
8
+ }
9
+
10
+ /** Harness for interacting with a MDC based mat-progress-spinner in tests. */
11
+ declare class MatProgressSpinnerHarness extends ComponentHarness {
12
+ /** The selector for the host element of a `MatProgressSpinner` instance. */
13
+ static hostSelector: string;
14
+ /**
15
+ * Gets a `HarnessPredicate` that can be used to search for a progress spinnner with specific
16
+ * attributes.
17
+ * @param options Options for filtering which progress spinner instances are considered a match.
18
+ * @return a `HarnessPredicate` configured with the given options.
19
+ */
20
+ static with<T extends MatProgressSpinnerHarness>(this: ComponentHarnessConstructor<T>, options?: ProgressSpinnerHarnessFilters): HarnessPredicate<T>;
21
+ /** Gets the progress spinner's value. */
22
+ getValue(): Promise<number | null>;
23
+ /** Gets the progress spinner's mode. */
24
+ getMode(): Promise<ProgressSpinnerMode>;
25
+ }
26
+
27
+ export { MatProgressSpinnerHarness };
28
+ export type { ProgressSpinnerHarnessFilters };
@@ -0,0 +1,13 @@
1
+ import { MatProgressSpinner } from './_progress-spinner-chunk.js';
2
+ export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS, MatProgressSpinnerDefaultOptions, MatSpinner, ProgressSpinnerMode } from './_progress-spinner-chunk.js';
3
+ import * as i0 from '@angular/core';
4
+ import * as i2 from '@angular/cdk/bidi';
5
+ import './_palette-chunk.js';
6
+
7
+ declare class MatProgressSpinnerModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinnerModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressSpinnerModule, never, [typeof MatProgressSpinner, typeof MatProgressSpinner], [typeof MatProgressSpinner, typeof MatProgressSpinner, typeof i2.BidiModule]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressSpinnerModule>;
11
+ }
12
+
13
+ export { MatProgressSpinner, MatProgressSpinnerModule };
@@ -0,0 +1,109 @@
1
+ import * as _angular_cdk_testing from '@angular/cdk/testing';
2
+ import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
3
+
4
+ /** A set of criteria that can be used to filter a list of `MatRadioGroupHarness` instances. */
5
+ interface RadioGroupHarnessFilters extends BaseHarnessFilters {
6
+ /** Only find instances whose name attribute is the given value. */
7
+ name?: string;
8
+ }
9
+ /** A set of criteria that can be used to filter a list of `MatRadioButtonHarness` instances. */
10
+ interface RadioButtonHarnessFilters extends BaseHarnessFilters {
11
+ /** Only find instances whose label matches the given value. */
12
+ label?: string | RegExp;
13
+ /** Only find instances whose name attribute is the given value. */
14
+ name?: string;
15
+ /** Only find instances with the given checked value. */
16
+ checked?: boolean;
17
+ }
18
+
19
+ /** Harness for interacting with a mat-radio-group in tests. */
20
+ declare class MatRadioGroupHarness extends ComponentHarness {
21
+ /** The selector for the host element of a `MatRadioGroup` instance. */
22
+ static hostSelector: string;
23
+ private _buttonClass;
24
+ /**
25
+ * Gets a `HarnessPredicate` that can be used to search for a radio group with specific
26
+ * attributes.
27
+ * @param options Options for filtering which radio group instances are considered a match.
28
+ * @return a `HarnessPredicate` configured with the given options.
29
+ */
30
+ static with<T extends MatRadioGroupHarness>(this: ComponentHarnessConstructor<T>, options?: RadioGroupHarnessFilters): HarnessPredicate<T>;
31
+ /** Gets the name of the radio-group. */
32
+ getName(): Promise<string | null>;
33
+ /** Gets the id of the radio-group. */
34
+ getId(): Promise<string | null>;
35
+ /** Gets the checked radio-button in a radio-group. */
36
+ getCheckedRadioButton(): Promise<MatRadioButtonHarness | null>;
37
+ /** Gets the checked value of the radio-group. */
38
+ getCheckedValue(): Promise<string | null>;
39
+ /**
40
+ * Gets a list of radio buttons which are part of the radio-group.
41
+ * @param filter Optionally filters which radio buttons are included.
42
+ */
43
+ getRadioButtons(filter?: RadioButtonHarnessFilters): Promise<MatRadioButtonHarness[]>;
44
+ /**
45
+ * Checks a radio button in this group.
46
+ * @param filter An optional filter to apply to the child radio buttons. The first tab matching
47
+ * the filter will be selected.
48
+ */
49
+ checkRadioButton(filter?: RadioButtonHarnessFilters): Promise<void>;
50
+ /** Gets the name attribute of the host element. */
51
+ private _getGroupNameFromHost;
52
+ /** Gets a list of the name attributes of all child radio buttons. */
53
+ private _getNamesFromRadioButtons;
54
+ /** Checks if the specified radio names are all equal. */
55
+ private _checkRadioNamesInGroupEqual;
56
+ /**
57
+ * Checks if a radio-group harness has the given name. Throws if a radio-group with
58
+ * matching name could be found but has mismatching radio-button names.
59
+ */
60
+ protected static _checkRadioGroupName(harness: MatRadioGroupHarness, name: string): Promise<boolean>;
61
+ }
62
+ /** Harness for interacting with a mat-radio-button in tests. */
63
+ declare class MatRadioButtonHarness extends ComponentHarness {
64
+ /** The selector for the host element of a `MatRadioButton` instance. */
65
+ static hostSelector: string;
66
+ /**
67
+ * Gets a `HarnessPredicate` that can be used to search for a radio button with specific
68
+ * attributes.
69
+ * @param options Options for filtering which radio button instances are considered a match.
70
+ * @return a `HarnessPredicate` configured with the given options.
71
+ */
72
+ static with<T extends MatRadioButtonHarness>(this: ComponentHarnessConstructor<T>, options?: RadioButtonHarnessFilters): HarnessPredicate<T>;
73
+ protected _textLabel: () => Promise<_angular_cdk_testing.TestElement>;
74
+ protected _clickLabel: () => Promise<_angular_cdk_testing.TestElement>;
75
+ private _input;
76
+ /** Whether the radio-button is checked. */
77
+ isChecked(): Promise<boolean>;
78
+ /** Whether the radio-button is disabled. */
79
+ isDisabled(): Promise<boolean>;
80
+ /** Whether the radio-button is required. */
81
+ isRequired(): Promise<boolean>;
82
+ /** Gets the radio-button's name. */
83
+ getName(): Promise<string | null>;
84
+ /** Gets the radio-button's id. */
85
+ getId(): Promise<string | null>;
86
+ /**
87
+ * Gets the value of the radio-button. The radio-button value will be converted to a string.
88
+ *
89
+ * Note: This means that for radio-button's with an object as a value `[object Object]` is
90
+ * intentionally returned.
91
+ */
92
+ getValue(): Promise<string | null>;
93
+ /** Gets the radio-button's label text. */
94
+ getLabelText(): Promise<string>;
95
+ /** Focuses the radio-button. */
96
+ focus(): Promise<void>;
97
+ /** Blurs the radio-button. */
98
+ blur(): Promise<void>;
99
+ /** Whether the radio-button is focused. */
100
+ isFocused(): Promise<boolean>;
101
+ /**
102
+ * Puts the radio-button in a checked state by clicking it if it is currently unchecked,
103
+ * or doing nothing if it is already checked.
104
+ */
105
+ check(): Promise<void>;
106
+ }
107
+
108
+ export { MatRadioButtonHarness, MatRadioGroupHarness };
109
+ export type { RadioButtonHarnessFilters, RadioGroupHarnessFilters };
@@ -0,0 +1,295 @@
1
+ import { FocusOrigin } from '@angular/cdk/a11y';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, AfterContentInit, OnDestroy, EventEmitter, QueryList, OnInit, AfterViewInit, DoCheck, ElementRef } from '@angular/core';
4
+ import { ControlValueAccessor } from '@angular/forms';
5
+ import { ThemePalette } from './_palette-chunk.js';
6
+ import { MatRippleModule } from './_ripple-module-chunk.js';
7
+ import * as i2 from '@angular/cdk/bidi';
8
+ import './_ripple-chunk.js';
9
+ import '@angular/cdk/platform';
10
+
11
+ /** Change event object emitted by radio button and radio group. */
12
+ declare class MatRadioChange<T = any> {
13
+ /** The radio button that emits the change event. */
14
+ source: MatRadioButton;
15
+ /** The value of the radio button. */
16
+ value: T;
17
+ constructor(
18
+ /** The radio button that emits the change event. */
19
+ source: MatRadioButton,
20
+ /** The value of the radio button. */
21
+ value: T);
22
+ }
23
+ /**
24
+ * Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
25
+ * allows it to support [(ngModel)] and ngControl.
26
+ * @docs-private
27
+ */
28
+ declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
29
+ /**
30
+ * Injection token that can be used to inject instances of `MatRadioGroup`. It serves as
31
+ * alternative token to the actual `MatRadioGroup` class which could cause unnecessary
32
+ * retention of the class and its component metadata.
33
+ */
34
+ declare const MAT_RADIO_GROUP: InjectionToken<MatRadioGroup>;
35
+ interface MatRadioDefaultOptions {
36
+ /**
37
+ * Theme color of the radio button. This API is supported in M2 themes only, it
38
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/radio/styling.
39
+ *
40
+ * For information on applying color variants in M3, see
41
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
42
+ */
43
+ color: ThemePalette;
44
+ /** Whether disabled radio buttons should be interactive. */
45
+ disabledInteractive?: boolean;
46
+ }
47
+ declare const MAT_RADIO_DEFAULT_OPTIONS: InjectionToken<MatRadioDefaultOptions>;
48
+ /**
49
+ * A group of radio buttons. May contain one or more `<mat-radio-button>` elements.
50
+ */
51
+ declare class MatRadioGroup implements AfterContentInit, OnDestroy, ControlValueAccessor {
52
+ private _changeDetector;
53
+ /** Selected value for the radio group. */
54
+ private _value;
55
+ /** The HTML name attribute applied to radio buttons in this group. */
56
+ private _name;
57
+ /** The currently selected radio button. Should match value. */
58
+ private _selected;
59
+ /** Whether the `value` has been set to its initial value. */
60
+ private _isInitialized;
61
+ /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */
62
+ private _labelPosition;
63
+ /** Whether the radio group is disabled. */
64
+ private _disabled;
65
+ /** Whether the radio group is required. */
66
+ private _required;
67
+ /** Subscription to changes in amount of radio buttons. */
68
+ private _buttonChanges;
69
+ /** The method to be called in order to update ngModel */
70
+ _controlValueAccessorChangeFn: (value: any) => void;
71
+ /**
72
+ * onTouch function registered via registerOnTouch (ControlValueAccessor).
73
+ * @docs-private
74
+ */
75
+ onTouched: () => any;
76
+ /**
77
+ * Event emitted when the group value changes.
78
+ * Change events are only emitted when the value changes due to user interaction with
79
+ * a radio button (the same behavior as `<input type-"radio">`).
80
+ */
81
+ readonly change: EventEmitter<MatRadioChange>;
82
+ /** Child radio buttons. */
83
+ _radios: QueryList<MatRadioButton>;
84
+ /**
85
+ * Theme color of the radio buttons in the group. This API is supported in M2
86
+ * themes only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/radio/styling.
87
+ *
88
+ * For information on applying color variants in M3, see
89
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
90
+ */
91
+ color: ThemePalette;
92
+ /** Name of the radio button group. All radio buttons inside this group will use this name. */
93
+ get name(): string;
94
+ set name(value: string);
95
+ /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */
96
+ get labelPosition(): 'before' | 'after';
97
+ set labelPosition(v: "before" | "after");
98
+ /**
99
+ * Value for the radio-group. Should equal the value of the selected radio button if there is
100
+ * a corresponding radio button with a matching value. If there is not such a corresponding
101
+ * radio button, this value persists to be applied in case a new radio button is added with a
102
+ * matching value.
103
+ */
104
+ get value(): any;
105
+ set value(newValue: any);
106
+ _checkSelectedRadioButton(): void;
107
+ /**
108
+ * The currently selected radio button. If set to a new radio button, the radio group value
109
+ * will be updated to match the new selected button.
110
+ */
111
+ get selected(): MatRadioButton | null;
112
+ set selected(selected: MatRadioButton | null);
113
+ /** Whether the radio group is disabled */
114
+ get disabled(): boolean;
115
+ set disabled(value: boolean);
116
+ /** Whether the radio group is required */
117
+ get required(): boolean;
118
+ set required(value: boolean);
119
+ /** Whether buttons in the group should be interactive while they're disabled. */
120
+ get disabledInteractive(): boolean;
121
+ set disabledInteractive(value: boolean);
122
+ private _disabledInteractive;
123
+ constructor(...args: unknown[]);
124
+ /**
125
+ * Initialize properties once content children are available.
126
+ * This allows us to propagate relevant attributes to associated buttons.
127
+ */
128
+ ngAfterContentInit(): void;
129
+ ngOnDestroy(): void;
130
+ /**
131
+ * Mark this group as being "touched" (for ngModel). Meant to be called by the contained
132
+ * radio buttons upon their blur.
133
+ */
134
+ _touch(): void;
135
+ private _updateRadioButtonNames;
136
+ /** Updates the `selected` radio button from the internal _value state. */
137
+ private _updateSelectedRadioFromValue;
138
+ /** Dispatch change event with current selection and group value. */
139
+ _emitChangeEvent(): void;
140
+ _markRadiosForCheck(): void;
141
+ /**
142
+ * Sets the model value. Implemented as part of ControlValueAccessor.
143
+ * @param value
144
+ */
145
+ writeValue(value: any): void;
146
+ /**
147
+ * Registers a callback to be triggered when the model value changes.
148
+ * Implemented as part of ControlValueAccessor.
149
+ * @param fn Callback to be registered.
150
+ */
151
+ registerOnChange(fn: (value: any) => void): void;
152
+ /**
153
+ * Registers a callback to be triggered when the control is touched.
154
+ * Implemented as part of ControlValueAccessor.
155
+ * @param fn Callback to be registered.
156
+ */
157
+ registerOnTouched(fn: any): void;
158
+ /**
159
+ * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
160
+ * @param isDisabled Whether the control should be disabled.
161
+ */
162
+ setDisabledState(isDisabled: boolean): void;
163
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioGroup, never>;
164
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatRadioGroup, "mat-radio-group", ["matRadioGroup"], { "color": { "alias": "color"; "required": false; }; "name": { "alias": "name"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, { "change": "change"; }, ["_radios"], never, true, never>;
165
+ static ngAcceptInputType_disabled: unknown;
166
+ static ngAcceptInputType_required: unknown;
167
+ static ngAcceptInputType_disabledInteractive: unknown;
168
+ }
169
+ declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, OnDestroy {
170
+ protected _elementRef: ElementRef<any>;
171
+ private _changeDetector;
172
+ private _focusMonitor;
173
+ private _radioDispatcher;
174
+ private _defaultOptions;
175
+ private _ngZone;
176
+ private _renderer;
177
+ private _uniqueId;
178
+ private _cleanupClick;
179
+ /** The unique ID for the radio button. */
180
+ id: string;
181
+ /** Analog to HTML 'name' attribute used to group radios for unique selection. */
182
+ name: string;
183
+ /** Used to set the 'aria-label' attribute on the underlying input element. */
184
+ ariaLabel: string | null;
185
+ /** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
186
+ ariaLabelledby: string | null;
187
+ /** The 'aria-describedby' attribute is read after the element's label and field type. */
188
+ ariaDescribedby: string | null;
189
+ /** Whether ripples are disabled inside the radio button */
190
+ disableRipple: boolean;
191
+ /** Tabindex of the radio button. */
192
+ tabIndex: number;
193
+ /** Whether this radio button is checked. */
194
+ get checked(): boolean;
195
+ set checked(value: boolean);
196
+ /** The value of this radio button. */
197
+ get value(): any;
198
+ set value(value: any);
199
+ /** Whether the label should appear after or before the radio button. Defaults to 'after' */
200
+ get labelPosition(): 'before' | 'after';
201
+ set labelPosition(value: "before" | "after");
202
+ private _labelPosition;
203
+ /** Whether the radio button is disabled. */
204
+ get disabled(): boolean;
205
+ set disabled(value: boolean);
206
+ /** Whether the radio button is required. */
207
+ get required(): boolean;
208
+ set required(value: boolean);
209
+ /**
210
+ * Theme color of the radio button. This API is supported in M2 themes only, it
211
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/radio/styling.
212
+ *
213
+ * For information on applying color variants in M3, see
214
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
215
+ */
216
+ get color(): ThemePalette;
217
+ set color(newValue: ThemePalette);
218
+ private _color;
219
+ /** Whether the radio button should remain interactive when it is disabled. */
220
+ get disabledInteractive(): boolean;
221
+ set disabledInteractive(value: boolean);
222
+ private _disabledInteractive;
223
+ /**
224
+ * Event emitted when the checked state of this radio button changes.
225
+ * Change events are only emitted when the value changes due to user interaction with
226
+ * the radio button (the same behavior as `<input type-"radio">`).
227
+ */
228
+ readonly change: EventEmitter<MatRadioChange>;
229
+ /** The parent radio group. May or may not be present. */
230
+ radioGroup: MatRadioGroup;
231
+ /** ID of the native input element inside `<mat-radio-button>` */
232
+ get inputId(): string;
233
+ /** Whether this radio is checked. */
234
+ private _checked;
235
+ /** Whether this radio is disabled. */
236
+ private _disabled;
237
+ /** Whether this radio is required. */
238
+ private _required;
239
+ /** Value assigned to this radio. */
240
+ private _value;
241
+ /** Unregister function for _radioDispatcher */
242
+ private _removeUniqueSelectionListener;
243
+ /** Previous value of the input's tabindex. */
244
+ private _previousTabIndex;
245
+ /** The native `<input type=radio>` element */
246
+ _inputElement: ElementRef<HTMLInputElement>;
247
+ /** Trigger elements for the ripple events. */
248
+ _rippleTrigger: ElementRef<HTMLElement>;
249
+ /** Whether animations are disabled. */
250
+ _noopAnimations: boolean;
251
+ private _injector;
252
+ constructor(...args: unknown[]);
253
+ /** Focuses the radio button. */
254
+ focus(options?: FocusOptions, origin?: FocusOrigin): void;
255
+ /**
256
+ * Marks the radio button as needing checking for change detection.
257
+ * This method is exposed because the parent radio group will directly
258
+ * update bound properties of the radio button.
259
+ */
260
+ _markForCheck(): void;
261
+ ngOnInit(): void;
262
+ ngDoCheck(): void;
263
+ ngAfterViewInit(): void;
264
+ ngOnDestroy(): void;
265
+ /** Dispatch change event with current value. */
266
+ private _emitChangeEvent;
267
+ _isRippleDisabled(): boolean;
268
+ /** Triggered when the radio button receives an interaction from the user. */
269
+ _onInputInteraction(event: Event): void;
270
+ /** Triggered when the user clicks on the touch target. */
271
+ _onTouchTargetClick(event: Event): void;
272
+ /** Sets the disabled state and marks for check if a change occurred. */
273
+ protected _setDisabled(value: boolean): void;
274
+ /** Called when the input is clicked. */
275
+ private _onInputClick;
276
+ /** Gets the tabindex for the underlying input element. */
277
+ private _updateTabIndex;
278
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButton, never>;
279
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
280
+ static ngAcceptInputType_disableRipple: unknown;
281
+ static ngAcceptInputType_tabIndex: unknown;
282
+ static ngAcceptInputType_checked: unknown;
283
+ static ngAcceptInputType_disabled: unknown;
284
+ static ngAcceptInputType_required: unknown;
285
+ static ngAcceptInputType_disabledInteractive: unknown;
286
+ }
287
+
288
+ declare class MatRadioModule {
289
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioModule, never>;
290
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatRadioModule, never, [typeof MatRippleModule, typeof MatRadioGroup, typeof MatRadioButton], [typeof i2.BidiModule, typeof MatRadioGroup, typeof MatRadioButton]>;
291
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatRadioModule>;
292
+ }
293
+
294
+ export { MAT_RADIO_DEFAULT_OPTIONS, MAT_RADIO_GROUP, MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, MatRadioButton, MatRadioChange, MatRadioGroup, MatRadioModule };
295
+ export type { MatRadioDefaultOptions };
@@ -0,0 +1,63 @@
1
+ import { ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { OptionHarnessFilters, MatOptionHarness, OptgroupHarnessFilters, MatOptgroupHarness } from '@angular/material/core/testing';
3
+ import { MatFormFieldControlHarnessFilters, MatFormFieldControlHarnessBase } from '@angular/material/form-field/testing/control';
4
+
5
+ /** A set of criteria that can be used to filter a list of `MatSelectHarness` instances. */
6
+ interface SelectHarnessFilters extends MatFormFieldControlHarnessFilters {
7
+ /** Only find instances which match the given disabled state. */
8
+ disabled?: boolean;
9
+ }
10
+
11
+ /** Harness for interacting with a mat-select in tests. */
12
+ declare class MatSelectHarness extends MatFormFieldControlHarnessBase {
13
+ static hostSelector: string;
14
+ private _prefix;
15
+ private _optionClass;
16
+ private _optionGroupClass;
17
+ private _documentRootLocator;
18
+ private _backdrop;
19
+ /**
20
+ * Gets a `HarnessPredicate` that can be used to search for a select with specific attributes.
21
+ * @param options Options for filtering which select instances are considered a match.
22
+ * @return a `HarnessPredicate` configured with the given options.
23
+ */
24
+ static with<T extends MatSelectHarness>(this: ComponentHarnessConstructor<T>, options?: SelectHarnessFilters): HarnessPredicate<T>;
25
+ /** Gets a boolean promise indicating if the select is disabled. */
26
+ isDisabled(): Promise<boolean>;
27
+ /** Gets a boolean promise indicating if the select is valid. */
28
+ isValid(): Promise<boolean>;
29
+ /** Gets a boolean promise indicating if the select is required. */
30
+ isRequired(): Promise<boolean>;
31
+ /** Gets a boolean promise indicating if the select is empty (no value is selected). */
32
+ isEmpty(): Promise<boolean>;
33
+ /** Gets a boolean promise indicating if the select is in multi-selection mode. */
34
+ isMultiple(): Promise<boolean>;
35
+ /** Gets a promise for the select's value text. */
36
+ getValueText(): Promise<string>;
37
+ /** Focuses the select and returns a void promise that indicates when the action is complete. */
38
+ focus(): Promise<void>;
39
+ /** Blurs the select and returns a void promise that indicates when the action is complete. */
40
+ blur(): Promise<void>;
41
+ /** Whether the select is focused. */
42
+ isFocused(): Promise<boolean>;
43
+ /** Gets the options inside the select panel. */
44
+ getOptions(filter?: Omit<OptionHarnessFilters, 'ancestor'>): Promise<MatOptionHarness[]>;
45
+ /** Gets the groups of options inside the panel. */
46
+ getOptionGroups(filter?: Omit<OptgroupHarnessFilters, 'ancestor'>): Promise<MatOptgroupHarness[]>;
47
+ /** Gets whether the select is open. */
48
+ isOpen(): Promise<boolean>;
49
+ /** Opens the select's panel. */
50
+ open(): Promise<void>;
51
+ /**
52
+ * Clicks the options that match the passed-in filter. If the select is in multi-selection
53
+ * mode all options will be clicked, otherwise the harness will pick the first matching option.
54
+ */
55
+ clickOptions(filter?: OptionHarnessFilters): Promise<void>;
56
+ /** Closes the select's panel. */
57
+ close(): Promise<void>;
58
+ /** Gets the selector that should be used to find this select's panel. */
59
+ private _getPanelSelector;
60
+ }
61
+
62
+ export { MatSelectHarness };
63
+ export type { SelectHarnessFilters };