@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,271 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import * as i0 from '@angular/core';
3
+ import { OnDestroy, ErrorHandler } from '@angular/core';
4
+ import { SafeResourceUrl, SafeHtml, DomSanitizer } from '@angular/platform-browser';
5
+ import { Observable } from 'rxjs';
6
+
7
+ /**
8
+ * Returns an exception to be thrown in the case when attempting to
9
+ * load an icon with a name that cannot be found.
10
+ * @docs-private
11
+ */
12
+ declare function getMatIconNameNotFoundError(iconName: string): Error;
13
+ /**
14
+ * Returns an exception to be thrown when the consumer attempts to use
15
+ * `<mat-icon>` without including @angular/common/http.
16
+ * @docs-private
17
+ */
18
+ declare function getMatIconNoHttpProviderError(): Error;
19
+ /**
20
+ * Returns an exception to be thrown when a URL couldn't be sanitized.
21
+ * @param url URL that was attempted to be sanitized.
22
+ * @docs-private
23
+ */
24
+ declare function getMatIconFailedToSanitizeUrlError(url: SafeResourceUrl): Error;
25
+ /**
26
+ * Returns an exception to be thrown when a HTML string couldn't be sanitized.
27
+ * @param literal HTML that was attempted to be sanitized.
28
+ * @docs-private
29
+ */
30
+ declare function getMatIconFailedToSanitizeLiteralError(literal: SafeHtml): Error;
31
+ /** Options that can be used to configure how an icon or the icons in an icon set are presented. */
32
+ interface IconOptions {
33
+ /** View box to set on the icon. */
34
+ viewBox?: string;
35
+ /** Whether or not to fetch the icon or icon set using HTTP credentials. */
36
+ withCredentials?: boolean;
37
+ }
38
+ /**
39
+ * Function that will be invoked by the icon registry when trying to resolve the
40
+ * URL from which to fetch an icon. The returned URL will be used to make a request for the icon.
41
+ */
42
+ type IconResolver = (name: string, namespace: string) => SafeResourceUrl | SafeResourceUrlWithIconOptions | null;
43
+ /** Object that specifies a URL from which to fetch an icon and the options to use for it. */
44
+ interface SafeResourceUrlWithIconOptions {
45
+ url: SafeResourceUrl;
46
+ options: IconOptions;
47
+ }
48
+ /**
49
+ * Service to register and display icons used by the `<mat-icon>` component.
50
+ * - Registers icon URLs by namespace and name.
51
+ * - Registers icon set URLs by namespace.
52
+ * - Registers aliases for CSS classes, for use with icon fonts.
53
+ * - Loads icons from URLs and extracts individual icons from icon sets.
54
+ */
55
+ declare class MatIconRegistry implements OnDestroy {
56
+ private _httpClient;
57
+ private _sanitizer;
58
+ private readonly _errorHandler;
59
+ private _document;
60
+ /**
61
+ * URLs and cached SVG elements for individual icons. Keys are of the format "[namespace]:[icon]".
62
+ */
63
+ private _svgIconConfigs;
64
+ /**
65
+ * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.
66
+ * Multiple icon sets can be registered under the same namespace.
67
+ */
68
+ private _iconSetConfigs;
69
+ /** Cache for icons loaded by direct URLs. */
70
+ private _cachedIconsByUrl;
71
+ /** In-progress icon fetches. Used to coalesce multiple requests to the same URL. */
72
+ private _inProgressUrlFetches;
73
+ /** Map from font identifiers to their CSS class names. Used for icon fonts. */
74
+ private _fontCssClassesByAlias;
75
+ /** Registered icon resolver functions. */
76
+ private _resolvers;
77
+ /**
78
+ * The CSS classes to apply when an `<mat-icon>` component has no icon name, url, or font
79
+ * specified. The default 'material-icons' value assumes that the material icon font has been
80
+ * loaded as described at https://google.github.io/material-design-icons/#icon-font-for-the-web
81
+ */
82
+ private _defaultFontSetClass;
83
+ constructor(_httpClient: HttpClient, _sanitizer: DomSanitizer, document: any, _errorHandler: ErrorHandler);
84
+ /**
85
+ * Registers an icon by URL in the default namespace.
86
+ * @param iconName Name under which the icon should be registered.
87
+ * @param url
88
+ */
89
+ addSvgIcon(iconName: string, url: SafeResourceUrl, options?: IconOptions): this;
90
+ /**
91
+ * Registers an icon using an HTML string in the default namespace.
92
+ * @param iconName Name under which the icon should be registered.
93
+ * @param literal SVG source of the icon.
94
+ */
95
+ addSvgIconLiteral(iconName: string, literal: SafeHtml, options?: IconOptions): this;
96
+ /**
97
+ * Registers an icon by URL in the specified namespace.
98
+ * @param namespace Namespace in which the icon should be registered.
99
+ * @param iconName Name under which the icon should be registered.
100
+ * @param url
101
+ */
102
+ addSvgIconInNamespace(namespace: string, iconName: string, url: SafeResourceUrl, options?: IconOptions): this;
103
+ /**
104
+ * Registers an icon resolver function with the registry. The function will be invoked with the
105
+ * name and namespace of an icon when the registry tries to resolve the URL from which to fetch
106
+ * the icon. The resolver is expected to return a `SafeResourceUrl` that points to the icon,
107
+ * an object with the icon URL and icon options, or `null` if the icon is not supported. Resolvers
108
+ * will be invoked in the order in which they have been registered.
109
+ * @param resolver Resolver function to be registered.
110
+ */
111
+ addSvgIconResolver(resolver: IconResolver): this;
112
+ /**
113
+ * Registers an icon using an HTML string in the specified namespace.
114
+ * @param namespace Namespace in which the icon should be registered.
115
+ * @param iconName Name under which the icon should be registered.
116
+ * @param literal SVG source of the icon.
117
+ */
118
+ addSvgIconLiteralInNamespace(namespace: string, iconName: string, literal: SafeHtml, options?: IconOptions): this;
119
+ /**
120
+ * Registers an icon set by URL in the default namespace.
121
+ * @param url
122
+ */
123
+ addSvgIconSet(url: SafeResourceUrl, options?: IconOptions): this;
124
+ /**
125
+ * Registers an icon set using an HTML string in the default namespace.
126
+ * @param literal SVG source of the icon set.
127
+ */
128
+ addSvgIconSetLiteral(literal: SafeHtml, options?: IconOptions): this;
129
+ /**
130
+ * Registers an icon set by URL in the specified namespace.
131
+ * @param namespace Namespace in which to register the icon set.
132
+ * @param url
133
+ */
134
+ addSvgIconSetInNamespace(namespace: string, url: SafeResourceUrl, options?: IconOptions): this;
135
+ /**
136
+ * Registers an icon set using an HTML string in the specified namespace.
137
+ * @param namespace Namespace in which to register the icon set.
138
+ * @param literal SVG source of the icon set.
139
+ */
140
+ addSvgIconSetLiteralInNamespace(namespace: string, literal: SafeHtml, options?: IconOptions): this;
141
+ /**
142
+ * Defines an alias for CSS class names to be used for icon fonts. Creating an matIcon
143
+ * component with the alias as the fontSet input will cause the class name to be applied
144
+ * to the `<mat-icon>` element.
145
+ *
146
+ * If the registered font is a ligature font, then don't forget to also include the special
147
+ * class `mat-ligature-font` to allow the usage via attribute. So register like this:
148
+ *
149
+ * ```ts
150
+ * iconRegistry.registerFontClassAlias('f1', 'font1 mat-ligature-font');
151
+ * ```
152
+ *
153
+ * And use like this:
154
+ *
155
+ * ```html
156
+ * <mat-icon fontSet="f1" fontIcon="home"></mat-icon>
157
+ * ```
158
+ *
159
+ * @param alias Alias for the font.
160
+ * @param classNames Class names override to be used instead of the alias.
161
+ */
162
+ registerFontClassAlias(alias: string, classNames?: string): this;
163
+ /**
164
+ * Returns the CSS class name associated with the alias by a previous call to
165
+ * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.
166
+ */
167
+ classNameForFontAlias(alias: string): string;
168
+ /**
169
+ * Sets the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
170
+ * have a fontSet input value, and is not loading an icon by name or URL.
171
+ */
172
+ setDefaultFontSetClass(...classNames: string[]): this;
173
+ /**
174
+ * Returns the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
175
+ * have a fontSet input value, and is not loading an icon by name or URL.
176
+ */
177
+ getDefaultFontSetClass(): string[];
178
+ /**
179
+ * Returns an Observable that produces the icon (as an `<svg>` DOM element) from the given URL.
180
+ * The response from the URL may be cached so this will not always cause an HTTP request, but
181
+ * the produced element will always be a new copy of the originally fetched icon. (That is,
182
+ * it will not contain any modifications made to elements previously returned).
183
+ *
184
+ * @param safeUrl URL from which to fetch the SVG icon.
185
+ */
186
+ getSvgIconFromUrl(safeUrl: SafeResourceUrl): Observable<SVGElement>;
187
+ /**
188
+ * Returns an Observable that produces the icon (as an `<svg>` DOM element) with the given name
189
+ * and namespace. The icon must have been previously registered with addIcon or addIconSet;
190
+ * if not, the Observable will throw an error.
191
+ *
192
+ * @param name Name of the icon to be retrieved.
193
+ * @param namespace Namespace in which to look for the icon.
194
+ */
195
+ getNamedSvgIcon(name: string, namespace?: string): Observable<SVGElement>;
196
+ ngOnDestroy(): void;
197
+ /**
198
+ * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.
199
+ */
200
+ private _getSvgFromConfig;
201
+ /**
202
+ * Attempts to find an icon with the specified name in any of the SVG icon sets.
203
+ * First searches the available cached icons for a nested element with a matching name, and
204
+ * if found copies the element to a new `<svg>` element. If not found, fetches all icon sets
205
+ * that have not been cached, and searches again after all fetches are completed.
206
+ * The returned Observable produces the SVG element if possible, and throws
207
+ * an error if no icon with the specified name can be found.
208
+ */
209
+ private _getSvgFromIconSetConfigs;
210
+ /**
211
+ * Searches the cached SVG elements for the given icon sets for a nested icon element whose "id"
212
+ * tag matches the specified name. If found, copies the nested element to a new SVG element and
213
+ * returns it. Returns null if no matching element is found.
214
+ */
215
+ private _extractIconWithNameFromAnySet;
216
+ /**
217
+ * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element
218
+ * from it.
219
+ */
220
+ private _loadSvgIconFromConfig;
221
+ /**
222
+ * Loads the content of the icon set URL specified in the
223
+ * SvgIconConfig and attaches it to the config.
224
+ */
225
+ private _loadSvgIconSetFromConfig;
226
+ /**
227
+ * Searches the cached element of the given SvgIconConfig for a nested icon element whose "id"
228
+ * tag matches the specified name. If found, copies the nested element to a new SVG element and
229
+ * returns it. Returns null if no matching element is found.
230
+ */
231
+ private _extractSvgIconFromSet;
232
+ /**
233
+ * Creates a DOM element from the given SVG string.
234
+ */
235
+ private _svgElementFromString;
236
+ /**
237
+ * Converts an element into an SVG node by cloning all of its children.
238
+ */
239
+ private _toSvgElement;
240
+ /**
241
+ * Sets the default attributes for an SVG element to be used as an icon.
242
+ */
243
+ private _setSvgAttributes;
244
+ /**
245
+ * Returns an Observable which produces the string contents of the given icon. Results may be
246
+ * cached, so future calls with the same URL may not cause another HTTP request.
247
+ */
248
+ private _fetchIcon;
249
+ /**
250
+ * Registers an icon config by name in the specified namespace.
251
+ * @param namespace Namespace in which to register the icon config.
252
+ * @param iconName Name under which to register the config.
253
+ * @param config Config to be registered.
254
+ */
255
+ private _addSvgIconConfig;
256
+ /**
257
+ * Registers an icon set config in the specified namespace.
258
+ * @param namespace Namespace in which to register the icon config.
259
+ * @param config Config to be registered.
260
+ */
261
+ private _addSvgIconSetConfig;
262
+ /** Parses a config's text into an SVG element. */
263
+ private _svgElementFromConfig;
264
+ /** Tries to create an icon config through the registered resolver functions. */
265
+ private _getIconConfigFromResolvers;
266
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatIconRegistry, [{ optional: true; }, null, { optional: true; }, null]>;
267
+ static ɵprov: i0.ɵɵInjectableDeclaration<MatIconRegistry>;
268
+ }
269
+
270
+ export { MatIconRegistry, getMatIconFailedToSanitizeLiteralError, getMatIconFailedToSanitizeUrlError, getMatIconNameNotFoundError, getMatIconNoHttpProviderError };
271
+ export type { IconOptions, IconResolver, SafeResourceUrlWithIconOptions };
@@ -0,0 +1,61 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { MatFormFieldControlHarnessFilters, MatFormFieldControlHarnessBase } from '@angular/material/form-field/testing/control';
3
+
4
+ /** A set of criteria that can be used to filter a list of `MatInputHarness` instances. */
5
+ interface InputHarnessFilters extends MatFormFieldControlHarnessFilters {
6
+ /** Filters based on the value of the input. */
7
+ value?: string | RegExp;
8
+ /** Filters based on the placeholder text of the input. */
9
+ placeholder?: string | RegExp;
10
+ }
11
+
12
+ /** Harness for interacting with a standard Material inputs in tests. */
13
+ declare class MatInputHarness extends MatFormFieldControlHarnessBase {
14
+ static hostSelector: string;
15
+ /**
16
+ * Gets a `HarnessPredicate` that can be used to search for a `MatInputHarness` that meets
17
+ * certain criteria.
18
+ * @param options Options for filtering which input instances are considered a match.
19
+ * @return a `HarnessPredicate` configured with the given options.
20
+ */
21
+ static with(options?: InputHarnessFilters): HarnessPredicate<MatInputHarness>;
22
+ /** Whether the input is disabled. */
23
+ isDisabled(): Promise<boolean>;
24
+ /** Whether the input is required. */
25
+ isRequired(): Promise<boolean>;
26
+ /** Whether the input is readonly. */
27
+ isReadonly(): Promise<boolean>;
28
+ /** Gets the value of the input. */
29
+ getValue(): Promise<string>;
30
+ /** Gets the name of the input. */
31
+ getName(): Promise<string>;
32
+ /**
33
+ * Gets the type of the input. Returns "textarea" if the input is
34
+ * a textarea.
35
+ */
36
+ getType(): Promise<string>;
37
+ /** Gets the placeholder of the input. */
38
+ getPlaceholder(): Promise<string>;
39
+ /** Gets the id of the input. */
40
+ getId(): Promise<string>;
41
+ /**
42
+ * Focuses the input and returns a promise that indicates when the
43
+ * action is complete.
44
+ */
45
+ focus(): Promise<void>;
46
+ /**
47
+ * Blurs the input and returns a promise that indicates when the
48
+ * action is complete.
49
+ */
50
+ blur(): Promise<void>;
51
+ /** Whether the input is focused. */
52
+ isFocused(): Promise<boolean>;
53
+ /**
54
+ * Sets the value of the input. The value will be set by simulating
55
+ * keypresses that correspond to the given value.
56
+ */
57
+ setValue(newValue: string): Promise<void>;
58
+ }
59
+
60
+ export { MatInputHarness };
61
+ export type { InputHarnessFilters };
@@ -0,0 +1,25 @@
1
+ import * as i0 from '@angular/core';
2
+ import { QueryList, ElementRef } from '@angular/core';
3
+ import * as i2 from '@angular/cdk/bidi';
4
+
5
+ /**
6
+ * Shared directive to count lines inside a text area, such as a list item.
7
+ * Line elements can be extracted with a @ContentChildren(MatLine) query, then
8
+ * counted by checking the query list's length.
9
+ */
10
+ declare class MatLine {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatLine, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatLine, "[mat-line], [matLine]", never, {}, {}, never, never, true, never>;
13
+ }
14
+ /**
15
+ * Helper that takes a query list of lines and sets the correct class on the host.
16
+ * @docs-private
17
+ */
18
+ declare function setLines(lines: QueryList<unknown>, element: ElementRef<HTMLElement>, prefix?: string): void;
19
+ declare class MatLineModule {
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatLineModule, never>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatLineModule, never, [typeof MatLine], [typeof MatLine, typeof i2.BidiModule]>;
22
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatLineModule>;
23
+ }
24
+
25
+ export { MatLine, MatLineModule, setLines };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Type describing possible positions of a checkbox or radio in a list option
3
+ * with respect to the list item's text.
4
+ */
5
+ type MatListOptionTogglePosition = 'before' | 'after';
6
+ /**
7
+ * Interface describing a list option. This is used to avoid circular
8
+ * dependencies between the list-option and the styler directives.
9
+ * @docs-private
10
+ */
11
+ interface ListOption {
12
+ _getTogglePosition(): MatListOptionTogglePosition;
13
+ }
14
+
15
+ export type { ListOption, MatListOptionTogglePosition };
@@ -0,0 +1,146 @@
1
+ import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, AfterViewChecked, OnDestroy, ChangeDetectorRef, EventEmitter, ElementRef, QueryList } from '@angular/core';
4
+ import { Subject } from 'rxjs';
5
+
6
+ /**
7
+ * Injection token that can be used to reference instances of `MatOptgroup`. It serves as
8
+ * alternative token to the actual `MatOptgroup` class which could cause unnecessary
9
+ * retention of the class and its component metadata.
10
+ */
11
+ declare const MAT_OPTGROUP: InjectionToken<MatOptgroup>;
12
+ /**
13
+ * Component that is used to group instances of `mat-option`.
14
+ */
15
+ declare class MatOptgroup {
16
+ /** Label for the option group. */
17
+ label: string;
18
+ /** whether the option group is disabled. */
19
+ disabled: boolean;
20
+ /** Unique id for the underlying label. */
21
+ _labelId: string;
22
+ /** Whether the group is in inert a11y mode. */
23
+ _inert: boolean;
24
+ constructor(...args: unknown[]);
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatOptgroup, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatOptgroup, "mat-optgroup", ["matOptgroup"], { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*", "mat-option, ng-container"], true, never>;
27
+ static ngAcceptInputType_disabled: unknown;
28
+ }
29
+
30
+ /** Event object emitted by MatOption when selected or deselected. */
31
+ declare class MatOptionSelectionChange<T = any> {
32
+ /** Reference to the option that emitted the event. */
33
+ source: MatOption<T>;
34
+ /** Whether the change in the option's value was a result of a user action. */
35
+ isUserInput: boolean;
36
+ constructor(
37
+ /** Reference to the option that emitted the event. */
38
+ source: MatOption<T>,
39
+ /** Whether the change in the option's value was a result of a user action. */
40
+ isUserInput?: boolean);
41
+ }
42
+ /**
43
+ * Single option inside of a `<mat-select>` element.
44
+ */
45
+ declare class MatOption<T = any> implements FocusableOption, AfterViewChecked, OnDestroy {
46
+ private _element;
47
+ _changeDetectorRef: ChangeDetectorRef;
48
+ private _parent;
49
+ group: MatOptgroup | null;
50
+ private _signalDisableRipple;
51
+ private _selected;
52
+ private _active;
53
+ private _mostRecentViewValue;
54
+ /** Whether the wrapping component is in multiple selection mode. */
55
+ get multiple(): boolean | null | undefined;
56
+ /** Whether or not the option is currently selected. */
57
+ get selected(): boolean;
58
+ /** The form value of the option. */
59
+ value: T;
60
+ /** The unique ID of the option. */
61
+ id: string;
62
+ /** Whether the option is disabled. */
63
+ get disabled(): boolean;
64
+ set disabled(value: boolean);
65
+ private _disabled;
66
+ /** Whether ripples for the option are disabled. */
67
+ get disableRipple(): boolean;
68
+ /** Whether to display checkmark for single-selection. */
69
+ get hideSingleSelectionIndicator(): boolean;
70
+ /** Event emitted when the option is selected or deselected. */
71
+ readonly onSelectionChange: EventEmitter<MatOptionSelectionChange<T>>;
72
+ /** Element containing the option's text. */
73
+ _text: ElementRef<HTMLElement> | undefined;
74
+ /** Emits when the state of the option changes and any parents have to be notified. */
75
+ readonly _stateChanges: Subject<void>;
76
+ constructor(...args: unknown[]);
77
+ /**
78
+ * Whether or not the option is currently active and ready to be selected.
79
+ * An active option displays styles as if it is focused, but the
80
+ * focus is actually retained somewhere else. This comes in handy
81
+ * for components like autocomplete where focus must remain on the input.
82
+ */
83
+ get active(): boolean;
84
+ /**
85
+ * The displayed value of the option. It is necessary to show the selected option in the
86
+ * select's trigger.
87
+ */
88
+ get viewValue(): string;
89
+ /** Selects the option. */
90
+ select(emitEvent?: boolean): void;
91
+ /** Deselects the option. */
92
+ deselect(emitEvent?: boolean): void;
93
+ /** Sets focus onto this option. */
94
+ focus(_origin?: FocusOrigin, options?: FocusOptions): void;
95
+ /**
96
+ * This method sets display styles on the option to make it appear
97
+ * active. This is used by the ActiveDescendantKeyManager so key
98
+ * events will display the proper options as active on arrow key events.
99
+ */
100
+ setActiveStyles(): void;
101
+ /**
102
+ * This method removes display styles on the option that made it appear
103
+ * active. This is used by the ActiveDescendantKeyManager so key
104
+ * events will display the proper options as active on arrow key events.
105
+ */
106
+ setInactiveStyles(): void;
107
+ /** Gets the label to be used when determining whether the option should be focused. */
108
+ getLabel(): string;
109
+ /** Ensures the option is selected when activated from the keyboard. */
110
+ _handleKeydown(event: KeyboardEvent): void;
111
+ /**
112
+ * `Selects the option while indicating the selection came from the user. Used to
113
+ * determine if the select's view -> model callback should be invoked.`
114
+ */
115
+ _selectViaInteraction(): void;
116
+ /** Returns the correct tabindex for the option depending on disabled state. */
117
+ _getTabIndex(): string;
118
+ /** Gets the host DOM element. */
119
+ _getHostElement(): HTMLElement;
120
+ ngAfterViewChecked(): void;
121
+ ngOnDestroy(): void;
122
+ /** Emits the selection change event. */
123
+ private _emitSelectionChangeEvent;
124
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatOption<any>, never>;
125
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatOption<any>, "mat-option", ["matOption"], { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, never, ["mat-icon", "*"], true, never>;
126
+ static ngAcceptInputType_disabled: unknown;
127
+ }
128
+ /**
129
+ * Counts the amount of option group labels that precede the specified option.
130
+ * @param optionIndex Index of the option at which to start counting.
131
+ * @param options Flat list of all of the options.
132
+ * @param optionGroups Flat list of all of the option groups.
133
+ * @docs-private
134
+ */
135
+ declare function _countGroupLabelsBeforeOption(optionIndex: number, options: QueryList<MatOption>, optionGroups: QueryList<MatOptgroup>): number;
136
+ /**
137
+ * Determines the position to which to scroll a panel in order for an option to be into view.
138
+ * @param optionOffset Offset of the option from the top of the panel.
139
+ * @param optionHeight Height of the options.
140
+ * @param currentScrollPosition Current scroll position of the panel.
141
+ * @param panelHeight Height of the panel.
142
+ * @docs-private
143
+ */
144
+ declare function _getOptionScrollPosition(optionOffset: number, optionHeight: number, currentScrollPosition: number, panelHeight: number): number;
145
+
146
+ export { MAT_OPTGROUP, MatOptgroup, MatOption, MatOptionSelectionChange, _countGroupLabelsBeforeOption, _getOptionScrollPosition };
@@ -0,0 +1,35 @@
1
+ import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
2
+
3
+ interface OptionHarnessFilters extends BaseHarnessFilters {
4
+ text?: string | RegExp;
5
+ isSelected?: boolean;
6
+ }
7
+
8
+ /** Harness for interacting with a `mat-option` in tests. */
9
+ declare class MatOptionHarness extends ContentContainerComponentHarness {
10
+ /** Selector used to locate option instances. */
11
+ static hostSelector: string;
12
+ /** Element containing the option's text. */
13
+ private _text;
14
+ /**
15
+ * Gets a `HarnessPredicate` that can be used to search for an option with specific attributes.
16
+ * @param options Options for filtering which option instances are considered a match.
17
+ * @return a `HarnessPredicate` configured with the given options.
18
+ */
19
+ static with<T extends MatOptionHarness>(this: ComponentHarnessConstructor<T>, options?: OptionHarnessFilters): HarnessPredicate<T>;
20
+ /** Clicks the option. */
21
+ click(): Promise<void>;
22
+ /** Gets the option's label text. */
23
+ getText(): Promise<string>;
24
+ /** Gets whether the option is disabled. */
25
+ isDisabled(): Promise<boolean>;
26
+ /** Gets whether the option is selected. */
27
+ isSelected(): Promise<boolean>;
28
+ /** Gets whether the option is active. */
29
+ isActive(): Promise<boolean>;
30
+ /** Gets whether the option is in multiple selection mode. */
31
+ isMultiple(): Promise<boolean>;
32
+ }
33
+
34
+ export { MatOptionHarness };
35
+ export type { OptionHarnessFilters };
@@ -0,0 +1,13 @@
1
+ import * as i0 from '@angular/core';
2
+ import { MatRippleModule } from './_ripple-module-chunk.js';
3
+ import { MatPseudoCheckboxModule } from './_pseudo-checkbox-module-chunk.js';
4
+ import { MatOption, MatOptgroup } from './_option-chunk.js';
5
+ import * as i2 from '@angular/cdk/bidi';
6
+
7
+ declare class MatOptionModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatOptionModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatOptionModule, never, [typeof MatRippleModule, typeof MatPseudoCheckboxModule, typeof MatOption, typeof MatOptgroup], [typeof MatOption, typeof MatOptgroup, typeof i2.BidiModule]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatOptionModule>;
11
+ }
12
+
13
+ export { MatOptionModule };
@@ -0,0 +1,20 @@
1
+ import { Signal, InjectionToken } from '@angular/core';
2
+
3
+ /**
4
+ * Describes a parent component that manages a list of options.
5
+ * Contains properties that the options can inherit.
6
+ * @docs-private
7
+ */
8
+ interface MatOptionParentComponent {
9
+ disableRipple?: boolean | Signal<boolean>;
10
+ multiple?: boolean;
11
+ inertGroups?: boolean;
12
+ hideSingleSelectionIndicator?: boolean;
13
+ }
14
+ /**
15
+ * Injection token used to provide the parent component to options.
16
+ */
17
+ declare const MAT_OPTION_PARENT_COMPONENT: InjectionToken<MatOptionParentComponent>;
18
+
19
+ export { MAT_OPTION_PARENT_COMPONENT };
20
+ export type { MatOptionParentComponent };