@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,193 @@
1
+ @use 'sass:list';
2
+ @use 'sass:map';
3
+ @use 'sass:math';
4
+ @use 'sass:meta';
5
+ @use 'sass:color';
6
+
7
+ // Deprecated flag that is no longer used to control duplication warnings.
8
+ // Remove in v22
9
+ $theme-ignore-duplication-warnings: false;
10
+
11
+ // Whether to enable compatibility with legacy methods for accessing theme information.
12
+ $theme-legacy-inspection-api-compatibility: true !default;
13
+
14
+ // Whether density should be generated by default.
15
+ $_generate-default-density: true !default;
16
+
17
+ // Warning that will be printed if the legacy theming API is used.
18
+ $private-legacy-theme-warning: 'Angular Material themes should be created from a map containing ' +
19
+ 'the keys "color", "typography", and "density". The color value should be a map containing the ' +
20
+ 'palette values for "primary", "accent", and "warn". ' +
21
+ 'See https://material.angular.dev/guide/theming for more information.';
22
+
23
+ // Flag whether to disable theme definitions copying color values to the top-level theme config.
24
+ // This copy is to preserve backwards compatibility.
25
+ $_disable-color-backwards-compatibility: false;
26
+
27
+ // These variable are not intended to be overridden externally. They use `!default` to
28
+ // avoid being reset every time this file is imported.
29
+ $_emitted-color: () !default;
30
+ $_emitted-typography: () !default;
31
+ $_emitted-density: () !default;
32
+ $_emitted-base: () !default;
33
+
34
+ //
35
+ // Private APIs
36
+ //
37
+
38
+ $private-internal-name: _mat-theming-internals-do-not-access;
39
+
40
+ /// Strip out any settings map entries that have empty values (null or ()).
41
+ @function _strip-empty-settings($settings) {
42
+ $result: ();
43
+ @each $key, $value in $settings {
44
+ @if $value != null and $value != () {
45
+ $result: map.set($result, $key, $value);
46
+ }
47
+ }
48
+ @if ($result == ()) {
49
+ @return null;
50
+ }
51
+ @return $result;
52
+ }
53
+
54
+ // Checks whether the given value resolves to a theme object. Theme objects are always
55
+ // of type `map` and can optionally only specify `color`, `density` or `typography`.
56
+ @function private-is-theme-object($value) {
57
+ @return meta.type-of($value) == 'map' and (
58
+ map.has-key($value, color) or
59
+ map.has-key($value, density) or
60
+ map.has-key($value, typography) or
61
+ list.length($value) == 0
62
+ );
63
+ }
64
+
65
+ // Checks whether a given value corresponds to a legacy constructed theme.
66
+ @function private-is-legacy-constructed-theme($value) {
67
+ @return meta.type-of($value) == 'map' and map.get($value, '_is-legacy-theme');
68
+ }
69
+
70
+ // This is the implementation of the `m2-get-color-config` function.
71
+ // It's declared here to avoid a circular reference between this file and `m2/_theming.scss`.
72
+ @function private-get-color-config($theme, $default: null) {
73
+ // If a configuration has been passed, return the config directly.
74
+ @if not private-is-theme-object($theme) {
75
+ @return $theme;
76
+ }
77
+ // If the theme has been constructed through the legacy theming API, we use the theme object
78
+ // as color configuration instead of the dedicated `color` property. We do this because for
79
+ // backwards compatibility, we copied the color configuration from `$theme.color` to `$theme`.
80
+ // Hence developers could customize the colors at top-level and want to respect these changes
81
+ // TODO: Remove when legacy theming API is removed.
82
+ @if private-is-legacy-constructed-theme($theme) {
83
+ @return $theme;
84
+ }
85
+ @if map.has-key($theme, color) {
86
+ @return map.get($theme, color);
87
+ }
88
+ @return $default;
89
+ }
90
+
91
+ // This is the implementation of the `m2-get-density-config` function.
92
+ // It's declared here to avoid a circular reference between this file and `m2/_theming.scss`.
93
+ @function private-get-density-config($theme-or-config, $default: 0) {
94
+ // If a configuration has been passed, return the config directly.
95
+ @if not private-is-theme-object($theme-or-config) {
96
+ @return $theme-or-config;
97
+ }
98
+ // In case a theme has been passed, extract the configuration if present,
99
+ // or fall back to the default density config.
100
+ @if map.has-key($theme-or-config, density) {
101
+ @return map.get($theme-or-config, density);
102
+ }
103
+ @return $default;
104
+ }
105
+
106
+ // This is the implementation of the `m2-get-typography-config` function.
107
+ // It's declared here to avoid a circular reference between this file and `m2/_theming.scss`.
108
+ @function private-get-typography-config($theme-or-config, $default: null) {
109
+ // If a configuration has been passed, return the config directly.
110
+ @if not private-is-theme-object($theme-or-config) {
111
+ @return $theme-or-config;
112
+ }
113
+ // In case a theme has been passed, extract the configuration if present,
114
+ // or fall back to the default typography config.
115
+ @if (map.has-key($theme-or-config, typography)) {
116
+ @return map.get($theme-or-config, typography);
117
+ }
118
+ @return $default;
119
+ }
120
+
121
+ // Creates a backwards compatible theme. Previously in Angular Material, theme objects
122
+ // contained the color configuration directly. With the recent refactoring of the theming
123
+ // system to allow for density and typography configurations, this is no longer the case.
124
+ // To ensure that constructed themes which will be passed to custom theme mixins do not break,
125
+ // we copy the color configuration and put its properties at the top-level of the theme object.
126
+ // Here is an example of a pattern that should still work until it's officially marked as a
127
+ // breaking change:
128
+ //
129
+ // @mixin my-custom-component-theme($theme) {
130
+ // .my-comp {
131
+ // background-color: mat.m2-get-color-from-palette(map.get($theme, primary));
132
+ // }
133
+ // }
134
+ //
135
+ // Note that the `$theme.primary` key does usually not exist since the color configuration
136
+ // is stored in `$theme.color` which contains a property for `primary`. This method copies
137
+ // the map from `$theme.color` to `$theme` for backwards compatibility.
138
+ @function private-create-backwards-compatibility-theme($theme) {
139
+ @if ($_disable-color-backwards-compatibility or not map.get($theme, color)) {
140
+ @return $theme;
141
+ }
142
+ $color: map.get($theme, color);
143
+ @return map.merge($theme, $color);
144
+ }
145
+
146
+ // Gets the theme from the given value that is either already a theme, or a color configuration.
147
+ // This handles the legacy case where developers pass a color configuration directly to the
148
+ // theme mixin. Before we introduced the new pattern for constructing a theme, developers passed
149
+ // the color configuration directly to the theme mixins. This can be still the case if developers
150
+ // construct a theme manually and pass it to a theme. We support this for backwards compatibility.
151
+ // TODO(devversion): remove this in the future. Constructing themes manually is rare,
152
+ // and the code can be easily updated to the new API.
153
+ @function private-legacy-get-theme($theme-or-color-config) {
154
+ @if private-is-theme-object($theme-or-color-config) or
155
+ map.get($theme-or-color-config, $private-internal-name, theme-version) == 1 {
156
+ @return $theme-or-color-config;
157
+ }
158
+
159
+ @warn $private-legacy-theme-warning;
160
+ @return private-create-backwards-compatibility-theme((
161
+ _is-legacy-theme: true,
162
+ color: $theme-or-color-config
163
+ ));
164
+ }
165
+
166
+ // Approximates an rgba color into a solid hex color, given a background color.
167
+ @function private-rgba-to-hex($color, $background-color) {
168
+ // We convert the rgba color into a solid one by taking the opacity from the rgba
169
+ // value and using it to determine the percentage of the background to put
170
+ // into foreground when mixing the colors together.
171
+ @return color.mix($background-color, rgba($color, 1), (1 - color.opacity($color)) * 100%);
172
+ }
173
+
174
+ // Clamps the density scale to a number between the given min and max.
175
+ // 'minimum' and 'maximum' are converted to the given min or max number respectively.
176
+ @function clamp-density($density-scale, $min, $max: 0) {
177
+ @if $density-scale == minimum {
178
+ @return $min;
179
+ }
180
+ @if $density-scale == maximum {
181
+ @return $max;
182
+ }
183
+ @if meta.type-of($density-scale) != 'number' or not math.is-unitless($density-scale) {
184
+ @return 0;
185
+ }
186
+ @if $density-scale < $min {
187
+ @return $min;
188
+ }
189
+ @if $density-scale > $max {
190
+ @return $max;
191
+ }
192
+ @return $density-scale;
193
+ }
@@ -0,0 +1,5 @@
1
+ @mixin selector-defined($msg) {
2
+ @if #{&} == '' {
3
+ @error $msg;
4
+ }
5
+ }
@@ -0,0 +1,398 @@
1
+ // Utility classes that can be used to style elements with the most commonly used system tokens in
2
+ // Material Design. Includes color, typography, elevation, state, and shape.
3
+ @mixin system-classes() {
4
+
5
+ // ***********************************************************************************************
6
+ // Background - Applies background colors defined by Material Design.
7
+ // See https://m3.material.io/styles/color/roles for detailed guidance.
8
+ // ***********************************************************************************************
9
+
10
+ // Styles an element with a primary color background. Use for key components across the UI, such
11
+ // as buttons that have greater importance on the page. In Angular Material, this is used for the
12
+ // selected date in a datepicker, the handle of a slider, and the background of a checkbox.
13
+ .mat-bg-primary {
14
+ background-color: var(--mat-sys-primary);
15
+ }
16
+
17
+ // Styles an element with a primary container color background. Use for filling components that
18
+ // should stand out on a surface. In Angular Material, this is used for the container of a
19
+ // floating action button.
20
+ .mat-bg-primary-container {
21
+ background-color: var(--mat-sys-primary-container);
22
+ }
23
+
24
+ // Styles an element with a secondary color background. Use for less prominent components in the
25
+ // UI that have a different color scheme than the primary.
26
+ .mat-bg-secondary {
27
+ background-color: var(--mat-sys-secondary);
28
+ }
29
+
30
+ // Styles an element with a secondary container color background. Use for components that need
31
+ // less emphasis than secondary, such as filter chips. In Angular Material, this is used for
32
+ // selected items in a list and the container of a tonal button.
33
+ .mat-bg-secondary-container {
34
+ background-color: var(--mat-sys-secondary-container);
35
+ }
36
+
37
+ // Styles an element with an error color background. Use for indicating an error state, such as
38
+ // an invalid text field, or for the background of an important notification. In Angular
39
+ // Material, this is used for the background of a badge.
40
+ .mat-bg-error {
41
+ background-color: var(--mat-sys-error);
42
+ }
43
+
44
+ // Styles an element with an error container color background. Use for components that need less
45
+ // emphasis than error, such as a container for error text.
46
+ .mat-bg-error-container {
47
+ background-color: var(--mat-sys-error-container);
48
+ }
49
+
50
+ // Styles an element with a surface color background. Use for general surfaces of components. In
51
+ // Angular Material, this is used for the background of many components, like tables, dialogs,
52
+ // menus, and toolbars.
53
+ .mat-bg-surface {
54
+ background-color: var(--mat-sys-surface);
55
+ }
56
+
57
+ // Styles an element with a surface variant color background. Use for surfaces that need to stand
58
+ // out from the main surface color. In Angular Material, this is used for the background of a
59
+ // filled form field and the track of a progress bar.
60
+ .mat-bg-surface-variant {
61
+ background-color: var(--mat-sys-surface-variant);
62
+ }
63
+
64
+ // Styles an element with the "highest" surface container color background. Use for surfaces that
65
+ // need the most emphasis against the main surface color. In Angular Material, this is used for
66
+ // the background of a filled card.
67
+ .mat-bg-surface-container-highest {
68
+ background-color: var(--mat-sys-surface-container-highest);
69
+ }
70
+
71
+ // Styles an element with a "high" surface container color background. Use for surfaces that need
72
+ // more emphasis against the main surface color. In Angular Material, this is used for the
73
+ // background of a datepicker.
74
+ .mat-bg-surface-container-high {
75
+ background-color: var(--mat-sys-surface-container-high);
76
+ }
77
+
78
+ // Styles an element with a surface container color background. Use for surfaces that need to
79
+ // stand out from the main surface color. In Angular Material, this is used for the background
80
+ // of a menu.
81
+ .mat-bg-surface-container {
82
+ background-color: var(--mat-sys-surface-container);
83
+ }
84
+
85
+ // Styles an element with a "low" surface container color background. Use for surfaces that need
86
+ // less emphasis against the main surface color. In Angular Material, this is used for the
87
+ // background of a bottom sheet.
88
+ .mat-bg-surface-container-low {
89
+ background-color: var(--mat-sys-surface-container-low);
90
+ }
91
+
92
+ // Styles an element with the "lowest" surface container color background. Use for surfaces that
93
+ // need the least emphasis against the main surface color.
94
+ .mat-bg-surface-container-lowest {
95
+ background-color: var(--mat-sys-surface-container-lowest);
96
+ }
97
+
98
+ // Styles an element with an inverse surface color background. Use for making elements stand out
99
+ // against the default color scheme. Good for temporary notifications. In Angular Material, this
100
+ // is used for the background of a snackbar and a tooltip.
101
+ .mat-bg-inverse-surface {
102
+ background-color: var(--mat-sys-inverse-surface);
103
+ }
104
+
105
+ // Styles an element with a disabled color background. Use for disabled components. In Angular
106
+ // Material, this is used for components generally filled with the primary color but are
107
+ // currently disabled.
108
+ .mat-bg-disabled {
109
+ background-color: color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent);
110
+ }
111
+
112
+
113
+ // ***********************************************************************************************
114
+ // Text - Apply colors to text
115
+ // ***********************************************************************************************
116
+
117
+ // Styles the text of an element with the primary color. Use for text that needs to stand out.
118
+ // In Angular Material, this is used for the text of a text button and the selected tab label.
119
+ .mat-text-primary {
120
+ color: var(--mat-sys-primary);
121
+ }
122
+
123
+ // Styles the text of an element with the secondary color. Use for text that needs to stand out.
124
+ .mat-text-secondary {
125
+ color: var(--mat-sys-secondary);
126
+ }
127
+
128
+ // Styles the text of an element with the error color. Use for text that indicates an error, such
129
+ // as validation messages. In Angular Material, this is used for the error text in a form field.
130
+ .mat-text-error {
131
+ color: var(--mat-sys-error);
132
+ }
133
+
134
+ // Styles the text of an element with the disabled color. Use for text in disabled components.
135
+ .mat-text-disabled {
136
+ color: color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent);
137
+ }
138
+
139
+ // Styles the text of an element with the on-surface-variant color. Use for text that should have
140
+ // a lower emphasis than the surrounding text. This can include subheading, captions, and hint
141
+ // text.
142
+ .mat-text-on-surface-variant {
143
+ color: var(--mat-sys-on-surface-variant);
144
+ }
145
+
146
+ // Styles the text of an element with a color that contrasts well against a primary background.
147
+ .mat-text-on-primary {
148
+ color: var(--mat-sys-on-primary);
149
+ }
150
+
151
+ // Styles the text of an element with a color that contrasts well against a primary-container
152
+ // background.
153
+ .mat-text-on-primary-container {
154
+ color: var(--mat-sys-on-primary-container);
155
+ }
156
+
157
+ // Styles the text of an element with a color that contrasts well against a secondary background.
158
+ .mat-text-on-secondary {
159
+ color: var(--mat-sys-on-secondary);
160
+ }
161
+
162
+ // Styles the text of an element with a color that contrasts well against a secondary-container
163
+ // background.
164
+ .mat-text-on-secondary-container {
165
+ color: var(--mat-sys-on-secondary-container);
166
+ }
167
+
168
+ // Styles the text of an element with a color that contrasts well against an error background.
169
+ .mat-text-on-error {
170
+ color: var(--mat-sys-on-error);
171
+ }
172
+
173
+ // Styles the text of an element with a color that contrasts well against an error-container
174
+ // background.
175
+ .mat-text-on-error-container {
176
+ color: var(--mat-sys-on-error-container);
177
+ }
178
+
179
+ // Styles the text of an element with a color that contrasts well against a surface background.
180
+ .mat-text-on-surface {
181
+ color: var(--mat-sys-on-surface);
182
+ }
183
+
184
+ // Styles the text of an element with a color that contrasts well against an inverse-surface
185
+ // background.
186
+ .mat-text-inverse-on-surface {
187
+ color: var(--mat-sys-inverse-on-surface);
188
+ }
189
+
190
+ // ***********************************************************************************************
191
+ // Font - Apply typography styles
192
+ // See https://m3.material.io/styles/typography/applying-type for guidance.
193
+ // ***********************************************************************************************
194
+
195
+ // Sets the font to the body small typeface. Use for small body text, such as captions. In Angular
196
+ // Material, this is used for the subscript text in a form field and the text in a paginator.
197
+ .mat-font-body-sm {
198
+ font: var(--mat-sys-body-small);
199
+ letter-spacing: var(--mat-sys-body-small-tracking);
200
+ }
201
+
202
+ // Sets the font to the body medium typeface. Use for medium body text, this is the default
203
+ // body font. In Angular Material, this is used for the text in a table row and the supporting
204
+ // text in a dialog.
205
+ .mat-font-body-md {
206
+ font: var(--mat-sys-body-medium);
207
+ letter-spacing: var(--mat-sys-body-medium-tracking);
208
+ }
209
+
210
+ // Sets the font to the body large typeface. Use for large body text, such as an introductory
211
+ // paragraph. In Angular Material, this is used for the text in a list item and the text in a
212
+ // select trigger.
213
+ .mat-font-body-lg {
214
+ font: var(--mat-sys-body-large);
215
+ letter-spacing: var(--mat-sys-body-large-tracking);
216
+ }
217
+
218
+ // Sets the font to the display small typeface. Use for small display text, such as a date.
219
+ .mat-font-display-sm {
220
+ font: var(--mat-sys-display-small);
221
+ letter-spacing: var(--mat-sys-display-small-tracking);
222
+ }
223
+
224
+ // Sets the font to the display medium typeface. Use for medium display text, such as a hero
225
+ // title.
226
+ .mat-font-display-md {
227
+ font: var(--mat-sys-display-medium);
228
+ letter-spacing: var(--mat-sys-display-medium-tracking);
229
+ }
230
+
231
+ // Sets the font to the display large typeface. Use for large display text, such as a hero title.
232
+ .mat-font-display-lg {
233
+ font: var(--mat-sys-display-large);
234
+ letter-spacing: var(--mat-sys-display-large-tracking);
235
+ }
236
+
237
+ // Sets the font to the headline small typeface. Use for small headlines, such as a page title. In
238
+ // Angular Material, this is used for the headline in a dialog.
239
+ .mat-font-headline-sm {
240
+ font: var(--mat-sys-headline-small);
241
+ letter-spacing: var(--mat-sys-headline-small-tracking);
242
+ }
243
+
244
+ // Sets the font to the headline medium typeface. Use for medium headlines, such as a section
245
+ // title.
246
+ .mat-font-headline-md {
247
+ font: var(--mat-sys-headline-medium);
248
+ letter-spacing: var(--mat-sys-headline-medium-tracking);
249
+ }
250
+
251
+ // Sets the font to the headline large typeface. Use for large headlines, such as a page title on
252
+ // a large screen.
253
+ .mat-font-headline-lg {
254
+ font: var(--mat-sys-headline-large);
255
+ letter-spacing: var(--mat-sys-headline-large-tracking);
256
+ }
257
+
258
+ // Sets the font to the label small typeface. Use for small labels, such as text in a badge.
259
+ .mat-font-label-sm {
260
+ font: var(--mat-sys-label-small);
261
+ letter-spacing: var(--mat-sys-label-small-tracking);
262
+ }
263
+
264
+ // Sets the font to the label medium typeface. Use for medium labels. In Angular Material, this
265
+ // is used for the slider label.
266
+ .mat-font-label-md {
267
+ font: var(--mat-sys-label-medium);
268
+ letter-spacing: var(--mat-sys-label-medium-tracking);
269
+ }
270
+
271
+ // Sets the font to the label large typeface. Use for large labels. In Angular Material, this is
272
+ // used for buttons, chips, and menu labels.
273
+ .mat-font-label-lg {
274
+ font: var(--mat-sys-label-large);
275
+ letter-spacing: var(--mat-sys-label-large-tracking);
276
+ }
277
+
278
+ // Sets the font to the title small typeface. Use for small titles, such as a card title. In
279
+ // Angular Material, this is used for the header of a table and the label of an option group.
280
+ .mat-font-title-sm {
281
+ font: var(--mat-sys-title-small);
282
+ letter-spacing: var(--mat-sys-title-small-tracking);
283
+ }
284
+
285
+ // Sets the font to the title medium typeface. Use for medium titles, such as a dialog title
286
+ // or the primary text in a list item. In Angular Material, this is used for the subtitle
287
+ // of a card and the header of an expansion panel.
288
+ .mat-font-title-md {
289
+ font: var(--mat-sys-title-medium);
290
+ letter-spacing: var(--mat-sys-title-medium-tracking);
291
+ }
292
+
293
+ // Sets the font to the title large typeface. Use for large titles, such as a page title on a
294
+ // small screen. In Angular Material, this is used for the title of a card and the title of a
295
+ // toolbar.
296
+ .mat-font-title-lg {
297
+ font: var(--mat-sys-title-large);
298
+ letter-spacing: var(--mat-sys-title-large-tracking);
299
+ }
300
+
301
+
302
+ // ***********************************************************************************************
303
+ // Corner - Apply varying amounts of a border radius
304
+ // See https://m3.material.io/styles/shape/corner-radius-scale for guidance.
305
+ // ***********************************************************************************************
306
+
307
+ // Sets the border radius to extra small. Use for components that need a small amount of rounding,
308
+ // such as a chip. In Angular Material, this is used for the shape of a snackbar and a tooltip.
309
+ .mat-corner-xs {
310
+ border-radius: var(--mat-sys-corner-extra-small);
311
+ }
312
+
313
+ // Sets the border radius to small. Use for components that need a small amount of rounding, such
314
+ // as a text field.
315
+ .mat-corner-sm {
316
+ border-radius: var(--mat-sys-corner-small);
317
+ }
318
+
319
+ // Sets the border radius to medium. Use for components that need a medium amount of rounding,
320
+ // such as a button. In Angular Material, this is used for the shape of a card.
321
+ .mat-corner-md {
322
+ border-radius: var(--mat-sys-corner-medium);
323
+ }
324
+
325
+ // Sets the border radius to large. Use for components that need a large amount of rounding, such
326
+ // as a card. In Angular Material, this is used for the shape of a floating action button and a
327
+ // datepicker.
328
+ .mat-corner-lg {
329
+ border-radius: var(--mat-sys-corner-large);
330
+ }
331
+
332
+ // Sets the border radius to extra large. Use for components that need a large amount of
333
+ // rounding. In Angular Material, this is used for the shape of a button toggle and the shape of
334
+ // a dialog.
335
+ .mat-corner-xl {
336
+ border-radius: var(--mat-sys-corner-extra-large);
337
+ }
338
+
339
+ // Sets the border radius to full. Use for components that are circular, such as a user avatar.
340
+ // In Angular Material, this is used for the shape of a badge and the shape of a button.
341
+ .mat-corner-full {
342
+ border-radius: var(--mat-sys-corner-full);
343
+ }
344
+
345
+
346
+ // ***********************************************************************************************
347
+ // Border - Applies a 1px solid border
348
+ // ***********************************************************************************************
349
+
350
+ // Adds an outline to an element. Use for components that need a visible boundary. In Angular
351
+ // Material, this is used for the outline of an outlined button.
352
+ .mat-border {
353
+ border: 1px solid var(--mat-sys-outline);
354
+ }
355
+
356
+ // Adds a less prominent outline to an element. Use for components that need a less obvious
357
+ // boundary. In Angular Material, this is used for the outline of an outlined card and the color
358
+ // of the divider
359
+ .mat-border-subtle {
360
+ border: 1px solid var(--mat-sys-outline-variant);
361
+ }
362
+
363
+ // ***********************************************************************************************
364
+ // Shadow - Applies elevation levels through box-shadow
365
+ // See https://m3.material.io/styles/elevation/applying-elevation for guidance.
366
+ // ***********************************************************************************************
367
+
368
+ // Use to slightly raise the appearance of a surface. In Angular Material, this is used for the
369
+ // elevation of an elevated card and the handle of a slider.
370
+ .mat-shadow-1 {
371
+ box-shadow: var(--mat-sys-level1);
372
+ }
373
+
374
+ // Use to raise the appearance of a surface. In Angular Material, this is used for the
375
+ // elevation of a menu and a select panel.
376
+ .mat-shadow-2 {
377
+ box-shadow: var(--mat-sys-level2);
378
+ }
379
+
380
+ // Used to raise the appearance of a surface. In Angular Material, this is used for the elevation
381
+ // of a floating action button.
382
+ .mat-shadow-3 {
383
+ box-shadow: var(--mat-sys-level3);
384
+ }
385
+
386
+ // Used to raise the appearance of a surface. This is generally reserved for elevation changes
387
+ // due to interaction like focus and hover. In Angular Material, this is used for the elevation
388
+ // of a hovered floating action button.
389
+ .mat-shadow-4 {
390
+ box-shadow: var(--mat-sys-level4);
391
+ }
392
+
393
+ // Used to greatly raise the appearance of a surface. This is generally reserved for elevation
394
+ // changes due to interaction like focus and hover.
395
+ .mat-shadow-5 {
396
+ box-shadow: var(--mat-sys-level5);
397
+ }
398
+ }
@@ -0,0 +1,25 @@
1
+ @use 'sass:map';
2
+ @use 'sass:meta';
3
+ @use './m2';
4
+
5
+ // Gets the theme's system values as a flat map.
6
+ @function get-system($theme) {
7
+ @if meta.type-of($theme) == map {
8
+ $system: map.get($theme, _mat-system);
9
+ @if $system {
10
+ @return $system;
11
+ }
12
+
13
+ // If the $theme is a typography-config, convert it to a system map.
14
+ @if map.has-key($theme, body-1) {
15
+ @return m2.md-sys-typescale-values($theme);
16
+ }
17
+ }
18
+
19
+ // If the $theme is a density scale, convert it to a system map.
20
+ @if meta.type-of($theme) == 'number' or $theme == minimum or $theme == maximum {
21
+ @return (density-scale: $theme);
22
+ }
23
+
24
+ @return ();
25
+ }