@angular/material 19.2.3 → 19.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/autocomplete/index.d.ts +12 -5
  2. package/autocomplete/testing/index.d.ts +2 -1
  3. package/badge/index.d.ts +7 -98
  4. package/badge/testing/index.d.ts +3 -1
  5. package/badge.d-49a8a74b.d.ts +98 -0
  6. package/bottom-sheet/index.d.ts +2 -2
  7. package/button/index.d.ts +10 -220
  8. package/button-toggle/index.d.ts +10 -257
  9. package/button-toggle/testing/index.d.ts +4 -1
  10. package/button-toggle.d-edc8acff.d.ts +257 -0
  11. package/card/index.d.ts +3 -2
  12. package/checkbox/index.d.ts +4 -3
  13. package/chips/index.d.ts +8 -4
  14. package/common-module.d-0e6515ae.d.ts +43 -0
  15. package/core/index.d.ts +21 -846
  16. package/core/testing/index.d.ts +3 -61
  17. package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +3 -1
  18. package/core/tokens/m3/definitions/_md-sys-color.scss +44 -2
  19. package/core/tokens/m3/definitions/_md-sys-typescale.scss +20 -1
  20. package/date-adapter.d-c6835d41.d.ts +267 -0
  21. package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
  22. package/datepicker/index.d.ts +18 -12
  23. package/datepicker/testing/index.d.ts +5 -277
  24. package/dialog/index.d.ts +12 -360
  25. package/dialog/testing/index.d.ts +6 -1
  26. package/dialog.d-7187c941.d.ts +357 -0
  27. package/divider/index.d.ts +3 -2
  28. package/divider/testing/index.d.ts +2 -14
  29. package/divider-harness.d-d34fede4.d.ts +14 -0
  30. package/error-options.d-448d9046.d.ts +17 -0
  31. package/expansion/index.d.ts +3 -2
  32. package/fesm2022/autocomplete/testing.mjs +2 -1
  33. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  34. package/fesm2022/autocomplete.mjs +14 -3
  35. package/fesm2022/autocomplete.mjs.map +1 -1
  36. package/fesm2022/badge/testing.mjs.map +1 -1
  37. package/fesm2022/badge.mjs +2 -1
  38. package/fesm2022/badge.mjs.map +1 -1
  39. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  40. package/fesm2022/bottom-sheet.mjs +3 -1
  41. package/fesm2022/bottom-sheet.mjs.map +1 -1
  42. package/fesm2022/button/testing.mjs.map +1 -1
  43. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  44. package/fesm2022/button-toggle.mjs +7 -1
  45. package/fesm2022/button-toggle.mjs.map +1 -1
  46. package/fesm2022/button.mjs +14 -481
  47. package/fesm2022/button.mjs.map +1 -1
  48. package/fesm2022/card/testing.mjs.map +1 -1
  49. package/fesm2022/card.mjs +3 -1
  50. package/fesm2022/card.mjs.map +1 -1
  51. package/fesm2022/checkbox/testing.mjs.map +1 -1
  52. package/fesm2022/checkbox.mjs +7 -1
  53. package/fesm2022/checkbox.mjs.map +1 -1
  54. package/fesm2022/chips/testing.mjs.map +1 -1
  55. package/fesm2022/chips.mjs +11 -2
  56. package/fesm2022/chips.mjs.map +1 -1
  57. package/fesm2022/common-module-a39ee957.mjs +42 -0
  58. package/fesm2022/common-module-a39ee957.mjs.map +1 -0
  59. package/fesm2022/core/testing.mjs +3 -76
  60. package/fesm2022/core/testing.mjs.map +1 -1
  61. package/fesm2022/core.mjs +27 -1587
  62. package/fesm2022/core.mjs.map +1 -1
  63. package/fesm2022/date-formats-b618acb8.mjs +190 -0
  64. package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
  65. package/fesm2022/date-range-input-harness-3718a667.mjs +467 -0
  66. package/fesm2022/date-range-input-harness-3718a667.mjs.map +1 -0
  67. package/fesm2022/datepicker/testing.mjs +5 -465
  68. package/fesm2022/datepicker/testing.mjs.map +1 -1
  69. package/fesm2022/datepicker.mjs +23 -13
  70. package/fesm2022/datepicker.mjs.map +1 -1
  71. package/fesm2022/dialog/testing.mjs +12 -1
  72. package/fesm2022/dialog/testing.mjs.map +1 -1
  73. package/fesm2022/dialog.mjs +14 -897
  74. package/fesm2022/dialog.mjs.map +1 -1
  75. package/fesm2022/divider/testing.mjs +2 -17
  76. package/fesm2022/divider/testing.mjs.map +1 -1
  77. package/fesm2022/divider-harness-8099453f.mjs +18 -0
  78. package/fesm2022/divider-harness-8099453f.mjs.map +1 -0
  79. package/fesm2022/divider.mjs +3 -1
  80. package/fesm2022/divider.mjs.map +1 -1
  81. package/fesm2022/error-options-aca21924.mjs +29 -0
  82. package/fesm2022/error-options-aca21924.mjs.map +1 -0
  83. package/fesm2022/error-state-8f4ce1af.mjs +37 -0
  84. package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
  85. package/fesm2022/expansion/testing.mjs.map +1 -1
  86. package/fesm2022/expansion.mjs +3 -1
  87. package/fesm2022/expansion.mjs.map +1 -1
  88. package/fesm2022/form-field/testing/control.mjs +2 -10
  89. package/fesm2022/form-field/testing/control.mjs.map +1 -1
  90. package/fesm2022/form-field/testing.mjs +7 -4
  91. package/fesm2022/form-field/testing.mjs.map +1 -1
  92. package/fesm2022/form-field-50ec956f.mjs +1076 -0
  93. package/fesm2022/form-field-50ec956f.mjs.map +1 -0
  94. package/fesm2022/form-field-control-harness-efefd4cf.mjs +11 -0
  95. package/fesm2022/form-field-control-harness-efefd4cf.mjs.map +1 -0
  96. package/fesm2022/form-field.mjs +14 -1106
  97. package/fesm2022/form-field.mjs.map +1 -1
  98. package/fesm2022/grid-list/testing.mjs +1 -1
  99. package/fesm2022/grid-list/testing.mjs.map +1 -1
  100. package/fesm2022/grid-list.mjs +8 -147
  101. package/fesm2022/grid-list.mjs.map +1 -1
  102. package/fesm2022/icon/testing.mjs +5 -1
  103. package/fesm2022/icon/testing.mjs.map +1 -1
  104. package/fesm2022/icon-button-655c4ed3.mjs +275 -0
  105. package/fesm2022/icon-button-655c4ed3.mjs.map +1 -0
  106. package/fesm2022/icon-module-881c6455.mjs +395 -0
  107. package/fesm2022/icon-module-881c6455.mjs.map +1 -0
  108. package/fesm2022/icon-registry-e1064d47.mjs +639 -0
  109. package/fesm2022/icon-registry-e1064d47.mjs.map +1 -0
  110. package/fesm2022/icon.mjs +11 -1024
  111. package/fesm2022/icon.mjs.map +1 -1
  112. package/fesm2022/index-2f2536d6.mjs +22 -0
  113. package/fesm2022/index-2f2536d6.mjs.map +1 -0
  114. package/fesm2022/index-a36e3c7c.mjs +20 -0
  115. package/fesm2022/index-a36e3c7c.mjs.map +1 -0
  116. package/fesm2022/input/testing.mjs +5 -113
  117. package/fesm2022/input/testing.mjs.map +1 -1
  118. package/fesm2022/input-harness-e68bb132.mjs +115 -0
  119. package/fesm2022/input-harness-e68bb132.mjs.map +1 -0
  120. package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
  121. package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
  122. package/fesm2022/input.mjs +14 -12
  123. package/fesm2022/input.mjs.map +1 -1
  124. package/fesm2022/internal-form-field-5960ea2e.mjs +27 -0
  125. package/fesm2022/internal-form-field-5960ea2e.mjs.map +1 -0
  126. package/fesm2022/line-11b0093d.mjs +59 -0
  127. package/fesm2022/line-11b0093d.mjs.map +1 -0
  128. package/fesm2022/list/testing.mjs +1 -1
  129. package/fesm2022/list/testing.mjs.map +1 -1
  130. package/fesm2022/list.mjs +8 -1
  131. package/fesm2022/list.mjs.map +1 -1
  132. package/fesm2022/menu/testing.mjs.map +1 -1
  133. package/fesm2022/menu.mjs +5 -1
  134. package/fesm2022/menu.mjs.map +1 -1
  135. package/fesm2022/module-0776ab9b.mjs +38 -0
  136. package/fesm2022/module-0776ab9b.mjs.map +1 -0
  137. package/fesm2022/module-087ecec3.mjs +970 -0
  138. package/fesm2022/module-087ecec3.mjs.map +1 -0
  139. package/fesm2022/module-6b33072b.mjs +218 -0
  140. package/fesm2022/module-6b33072b.mjs.map +1 -0
  141. package/fesm2022/module-b0a3e0af.mjs +1293 -0
  142. package/fesm2022/module-b0a3e0af.mjs.map +1 -0
  143. package/fesm2022/module-b3de5709.mjs +899 -0
  144. package/fesm2022/module-b3de5709.mjs.map +1 -0
  145. package/fesm2022/optgroup-harness-d5cf72ed.mjs +36 -0
  146. package/fesm2022/optgroup-harness-d5cf72ed.mjs.map +1 -0
  147. package/fesm2022/option-cb353f7a.mjs +348 -0
  148. package/fesm2022/option-cb353f7a.mjs.map +1 -0
  149. package/fesm2022/option-harness-b4971f41.mjs +46 -0
  150. package/fesm2022/option-harness-b4971f41.mjs.map +1 -0
  151. package/fesm2022/paginator/testing.mjs +4 -1
  152. package/fesm2022/paginator/testing.mjs.map +1 -1
  153. package/fesm2022/paginator.mjs +33 -7
  154. package/fesm2022/paginator.mjs.map +1 -1
  155. package/fesm2022/progress-bar.mjs +3 -1
  156. package/fesm2022/progress-bar.mjs.map +1 -1
  157. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  158. package/fesm2022/progress-spinner.mjs +3 -1
  159. package/fesm2022/progress-spinner.mjs.map +1 -1
  160. package/fesm2022/pseudo-checkbox-4a60d45e.mjs +52 -0
  161. package/fesm2022/pseudo-checkbox-4a60d45e.mjs.map +1 -0
  162. package/fesm2022/pseudo-checkbox-module-31a58606.mjs +20 -0
  163. package/fesm2022/pseudo-checkbox-module-31a58606.mjs.map +1 -0
  164. package/fesm2022/public-api-c5ab57f5.mjs +147 -0
  165. package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
  166. package/fesm2022/radio/testing.mjs.map +1 -1
  167. package/fesm2022/radio.mjs +8 -1
  168. package/fesm2022/radio.mjs.map +1 -1
  169. package/fesm2022/ripple-5bdada85.mjs +639 -0
  170. package/fesm2022/ripple-5bdada85.mjs.map +1 -0
  171. package/fesm2022/ripple-loader-dabcd93d.mjs +165 -0
  172. package/fesm2022/ripple-loader-dabcd93d.mjs.map +1 -0
  173. package/fesm2022/select/testing.mjs +5 -121
  174. package/fesm2022/select/testing.mjs.map +1 -1
  175. package/fesm2022/select-harness-30466074.mjs +123 -0
  176. package/fesm2022/select-harness-30466074.mjs.map +1 -0
  177. package/fesm2022/select.mjs +30 -1288
  178. package/fesm2022/select.mjs.map +1 -1
  179. package/fesm2022/sidenav/testing.mjs.map +1 -1
  180. package/fesm2022/sidenav.mjs +1 -1
  181. package/fesm2022/sidenav.mjs.map +1 -1
  182. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  183. package/fesm2022/slide-toggle.mjs +7 -1
  184. package/fesm2022/slide-toggle.mjs.map +1 -1
  185. package/fesm2022/slider/testing.mjs.map +1 -1
  186. package/fesm2022/slider.mjs +6 -1
  187. package/fesm2022/slider.mjs.map +1 -1
  188. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  189. package/fesm2022/snack-bar.mjs +10 -2
  190. package/fesm2022/snack-bar.mjs.map +1 -1
  191. package/fesm2022/sort/testing.mjs.map +1 -1
  192. package/fesm2022/sort.mjs +3 -1
  193. package/fesm2022/sort.mjs.map +1 -1
  194. package/fesm2022/stepper/testing.mjs.map +1 -1
  195. package/fesm2022/stepper.mjs +11 -2
  196. package/fesm2022/stepper.mjs.map +1 -1
  197. package/fesm2022/structural-styles-326dcb39.mjs +18 -0
  198. package/fesm2022/structural-styles-326dcb39.mjs.map +1 -0
  199. package/fesm2022/table/testing.mjs.map +1 -1
  200. package/fesm2022/table.mjs +3 -1
  201. package/fesm2022/table.mjs.map +1 -1
  202. package/fesm2022/tabs/testing.mjs.map +1 -1
  203. package/fesm2022/tabs.mjs +4 -1
  204. package/fesm2022/tabs.mjs.map +1 -1
  205. package/fesm2022/timepicker/testing.mjs +1 -1
  206. package/fesm2022/timepicker/testing.mjs.map +1 -1
  207. package/fesm2022/timepicker.mjs +22 -9
  208. package/fesm2022/timepicker.mjs.map +1 -1
  209. package/fesm2022/toolbar/testing.mjs.map +1 -1
  210. package/fesm2022/toolbar.mjs +3 -1
  211. package/fesm2022/toolbar.mjs.map +1 -1
  212. package/fesm2022/tooltip/testing.mjs.map +1 -1
  213. package/fesm2022/tooltip.mjs +15 -968
  214. package/fesm2022/tooltip.mjs.map +1 -1
  215. package/fesm2022/tree/testing.mjs.map +1 -1
  216. package/fesm2022/tree.mjs +3 -1
  217. package/fesm2022/tree.mjs.map +1 -1
  218. package/form-field/index.d.ts +12 -437
  219. package/form-field/testing/control/index.d.ts +2 -10
  220. package/form-field/testing/index.d.ts +7 -5
  221. package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
  222. package/form-field-control.d-eb86711c.d.ts +62 -0
  223. package/form-field.d-2edbc094.d.ts +367 -0
  224. package/grid-list/index.d.ts +5 -3
  225. package/icon/index.d.ts +9 -449
  226. package/icon/testing/index.d.ts +3 -1
  227. package/icon-module.d-aa3bbba0.d.ts +167 -0
  228. package/icon-registry.d-1dffe9de.d.ts +286 -0
  229. package/index.d-0536b706.d.ts +11 -0
  230. package/index.d-37e31cd3.d.ts +13 -0
  231. package/input/index.d.ts +11 -6
  232. package/input/testing/index.d.ts +4 -59
  233. package/input-harness.d-4eecd1d3.d.ts +60 -0
  234. package/line.d-570a2537.d.ts +25 -0
  235. package/list/index.d.ts +13 -19
  236. package/list/testing/index.d.ts +2 -2
  237. package/list-option-types.d-8739f903.d.ts +15 -0
  238. package/menu/index.d.ts +6 -3
  239. package/module.d-74a721b9.d.ts +326 -0
  240. package/module.d-ba05faa6.d.ts +448 -0
  241. package/module.d-c17c834e.d.ts +18 -0
  242. package/module.d-f490a6d4.d.ts +224 -0
  243. package/optgroup-harness.d-7f741f69.d.ts +31 -0
  244. package/option-harness.d-3d33fc9a.d.ts +34 -0
  245. package/option-parent.d-559ad5c5.d.ts +19 -0
  246. package/option.d-6f493d78.d.ts +146 -0
  247. package/package.json +2 -2
  248. package/paginator/index.d.ts +29 -201
  249. package/paginator/testing/index.d.ts +4 -1
  250. package/paginator.d-40b1766e.d.ts +199 -0
  251. package/palette.d-ec4a617c.d.ts +4 -0
  252. package/progress-bar/index.d.ts +4 -3
  253. package/progress-spinner/index.d.ts +7 -96
  254. package/progress-spinner/testing/index.d.ts +3 -1
  255. package/progress-spinner.d-1fc040c5.d.ts +96 -0
  256. package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
  257. package/radio/index.d.ts +7 -3
  258. package/ripple-loader.d-8aac2988.d.ts +48 -0
  259. package/ripple.d-2fb57d04.d.ts +255 -0
  260. package/schematics/ng-add/index.js +1 -1
  261. package/schematics/ng-add/index.mjs +1 -1
  262. package/select/index.d.ts +24 -446
  263. package/select/testing/index.d.ts +5 -62
  264. package/select-harness.d-7441a7ac.d.ts +63 -0
  265. package/sidenav/index.d.ts +4 -3
  266. package/slide-toggle/index.d.ts +4 -3
  267. package/slider/index.d.ts +6 -3
  268. package/snack-bar/index.d.ts +8 -3
  269. package/sort/index.d.ts +10 -88
  270. package/sort/testing/index.d.ts +1 -1
  271. package/sort-direction.d-f4ce4649.d.ts +3 -0
  272. package/sort.d-c2b79a45.d.ts +87 -0
  273. package/stepper/index.d.ts +9 -4
  274. package/table/index.d.ts +11 -4
  275. package/tabs/index.d.ts +5 -3
  276. package/timepicker/index.d.ts +6 -4
  277. package/timepicker/testing/index.d.ts +1 -1
  278. package/toolbar/index.d.ts +3 -2
  279. package/tooltip/index.d.ts +10 -325
  280. package/tree/index.d.ts +3 -2
@@ -0,0 +1,224 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, NgZone, OnInit } from '@angular/core';
3
+ import { M as MatCommonModule } from './common-module.d-0e6515ae.js';
4
+ import { M as MatRippleModule } from './index.d-0536b706.js';
5
+ import { FocusOrigin } from '@angular/cdk/a11y';
6
+ import { T as ThemePalette } from './palette.d-ec4a617c.js';
7
+ import { M as MatRippleLoader } from './ripple-loader.d-8aac2988.js';
8
+
9
+ /** Object that can be used to configure the default options for the button component. */
10
+ interface MatButtonConfig {
11
+ /** Whether disabled buttons should be interactive. */
12
+ disabledInteractive?: boolean;
13
+ /** Default palette color to apply to buttons. */
14
+ color?: ThemePalette;
15
+ }
16
+ /** Injection token that can be used to provide the default options the button component. */
17
+ declare const MAT_BUTTON_CONFIG: InjectionToken<MatButtonConfig>;
18
+ /** Base class for all buttons. */
19
+ declare class MatButtonBase implements AfterViewInit, OnDestroy {
20
+ _elementRef: ElementRef<any>;
21
+ _ngZone: NgZone;
22
+ _animationMode: "NoopAnimations" | "BrowserAnimations" | null;
23
+ private readonly _focusMonitor;
24
+ /**
25
+ * Handles the lazy creation of the MatButton ripple.
26
+ * Used to improve initial load time of large applications.
27
+ */
28
+ protected _rippleLoader: MatRippleLoader;
29
+ /** Whether this button is a FAB. Used to apply the correct class on the ripple. */
30
+ protected _isFab: boolean;
31
+ /**
32
+ * Theme color of the button. This API is supported in M2 themes only, it has
33
+ * no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
34
+ *
35
+ * For information on applying color variants in M3, see
36
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
37
+ */
38
+ color?: string | null;
39
+ /** Whether the ripple effect is disabled or not. */
40
+ get disableRipple(): boolean;
41
+ set disableRipple(value: any);
42
+ private _disableRipple;
43
+ /** Whether the button is disabled. */
44
+ get disabled(): boolean;
45
+ set disabled(value: any);
46
+ private _disabled;
47
+ /** `aria-disabled` value of the button. */
48
+ ariaDisabled: boolean | undefined;
49
+ /**
50
+ * Natively disabled buttons prevent focus and any pointer events from reaching the button.
51
+ * In some scenarios this might not be desirable, because it can prevent users from finding out
52
+ * why the button is disabled (e.g. via tooltip). This is also useful for buttons that may
53
+ * become disabled when activated, which would cause focus to be transferred to the document
54
+ * body instead of remaining on the button.
55
+ *
56
+ * Enabling this input will change the button so that it is styled to be disabled and will be
57
+ * marked as `aria-disabled`, but it will allow the button to receive events and focus.
58
+ *
59
+ * Note that by enabling this, you need to set the `tabindex` yourself if the button isn't
60
+ * meant to be tabbable and you have to prevent the button action (e.g. form submissions).
61
+ */
62
+ disabledInteractive: boolean;
63
+ constructor(...args: unknown[]);
64
+ ngAfterViewInit(): void;
65
+ ngOnDestroy(): void;
66
+ /** Focuses the button. */
67
+ focus(origin?: FocusOrigin, options?: FocusOptions): void;
68
+ protected _getAriaDisabled(): boolean | null;
69
+ protected _getDisabledAttribute(): true | null;
70
+ private _updateRippleDisabled;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonBase, never>;
72
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, {}, never, never, true, never>;
73
+ static ngAcceptInputType_disableRipple: unknown;
74
+ static ngAcceptInputType_disabled: unknown;
75
+ static ngAcceptInputType_ariaDisabled: unknown;
76
+ static ngAcceptInputType_disabledInteractive: unknown;
77
+ }
78
+ /**
79
+ * Anchor button base.
80
+ */
81
+ declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
82
+ private _renderer;
83
+ private _cleanupClick;
84
+ tabIndex: number;
85
+ ngOnInit(): void;
86
+ ngOnDestroy(): void;
87
+ _haltDisabledEvents: (event: Event) => void;
88
+ protected _getAriaDisabled(): boolean | null;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchorBase, never>;
90
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatAnchorBase, never, never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
91
+ static ngAcceptInputType_tabIndex: unknown;
92
+ }
93
+
94
+ /**
95
+ * Material Design button component. Users interact with a button to perform an action.
96
+ * See https://material.io/components/buttons
97
+ *
98
+ * The `MatButton` class applies to native button elements and captures the appearances for
99
+ * "text button", "outlined button", and "contained button" per the Material Design
100
+ * specification. `MatButton` additionally captures an additional "flat" appearance, which matches
101
+ * "contained" but without elevation.
102
+ */
103
+ declare class MatButton extends MatButtonBase {
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, never>;
105
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
106
+ }
107
+ /**
108
+ * Material Design button component for anchor elements. Anchor elements are used to provide
109
+ * links for the user to navigate across different routes or pages.
110
+ * See https://material.io/components/buttons
111
+ *
112
+ * The `MatAnchor` class applies to native anchor elements and captures the appearances for
113
+ * "text button", "outlined button", and "contained button" per the Material Design
114
+ * specification. `MatAnchor` additionally captures an additional "flat" appearance, which matches
115
+ * "contained" but without elevation.
116
+ */
117
+ declare class MatAnchor extends MatAnchorBase {
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchor, never>;
119
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
120
+ }
121
+
122
+ /** Default FAB options that can be overridden. */
123
+ interface MatFabDefaultOptions {
124
+ /**
125
+ * Default theme color of the button. This API is supported in M2 themes
126
+ * only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
127
+ *
128
+ * For information on applying color variants in M3, see
129
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
130
+ */
131
+ color?: ThemePalette;
132
+ }
133
+ /** Injection token to be used to override the default options for FAB. */
134
+ declare const MAT_FAB_DEFAULT_OPTIONS: InjectionToken<MatFabDefaultOptions>;
135
+ /**
136
+ * @docs-private
137
+ * @deprecated No longer used, will be removed.
138
+ * @breaking-change 21.0.0
139
+ */
140
+ declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
141
+ /**
142
+ * Material Design floating action button (FAB) component. These buttons represent the primary
143
+ * or most common action for users to interact with.
144
+ * See https://material.io/components/buttons-floating-action-button/
145
+ *
146
+ * The `MatFabButton` class has two appearances: normal and extended.
147
+ */
148
+ declare class MatFabButton extends MatButtonBase {
149
+ private _options;
150
+ _isFab: boolean;
151
+ extended: boolean;
152
+ constructor(...args: unknown[]);
153
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
155
+ static ngAcceptInputType_extended: unknown;
156
+ }
157
+ /**
158
+ * Material Design mini floating action button (FAB) component. These buttons represent the primary
159
+ * or most common action for users to interact with.
160
+ * See https://material.io/components/buttons-floating-action-button/
161
+ */
162
+ declare class MatMiniFabButton extends MatButtonBase {
163
+ private _options;
164
+ _isFab: boolean;
165
+ constructor(...args: unknown[]);
166
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, never>;
167
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
168
+ }
169
+ /**
170
+ * Material Design floating action button (FAB) component for anchor elements. Anchor elements
171
+ * are used to provide links for the user to navigate across different routes or pages.
172
+ * See https://material.io/components/buttons-floating-action-button/
173
+ *
174
+ * The `MatFabAnchor` class has two appearances: normal and extended.
175
+ */
176
+ declare class MatFabAnchor extends MatAnchor {
177
+ private _options;
178
+ _isFab: boolean;
179
+ extended: boolean;
180
+ constructor(...args: unknown[]);
181
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatFabAnchor, never>;
182
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
183
+ static ngAcceptInputType_extended: unknown;
184
+ }
185
+ /**
186
+ * Material Design mini floating action button (FAB) component for anchor elements. Anchor elements
187
+ * are used to provide links for the user to navigate across different routes or pages.
188
+ * See https://material.io/components/buttons-floating-action-button/
189
+ */
190
+ declare class MatMiniFabAnchor extends MatAnchor {
191
+ private _options;
192
+ _isFab: boolean;
193
+ constructor(...args: unknown[]);
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabAnchor, never>;
195
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
196
+ }
197
+
198
+ /**
199
+ * Material Design icon button component. This type of button displays a single interactive icon for
200
+ * users to perform an action.
201
+ * See https://material.io/develop/web/components/buttons/icon-buttons/
202
+ */
203
+ declare class MatIconButton extends MatButtonBase {
204
+ constructor(...args: unknown[]);
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, never>;
206
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], {}, {}, never, ["*"], true, never>;
207
+ }
208
+ /**
209
+ * Material Design icon button component for anchor elements. This button displays a single
210
+ * interaction icon that allows users to navigate across different routes or pages.
211
+ * See https://material.io/develop/web/components/buttons/icon-buttons/
212
+ */
213
+ declare class MatIconAnchor extends MatAnchorBase {
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, never>;
215
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
216
+ }
217
+
218
+ declare class MatButtonModule {
219
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonModule, never>;
220
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, never, [typeof MatCommonModule, typeof MatRippleModule, typeof MatAnchor, typeof MatButton, typeof MatIconAnchor, typeof MatMiniFabAnchor, typeof MatMiniFabButton, typeof MatIconButton, typeof MatFabAnchor, typeof MatFabButton], [typeof MatAnchor, typeof MatButton, typeof MatIconAnchor, typeof MatIconButton, typeof MatMiniFabAnchor, typeof MatMiniFabButton, typeof MatFabAnchor, typeof MatFabButton, typeof MatCommonModule]>;
221
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonModule>;
222
+ }
223
+
224
+ export { MAT_BUTTON_CONFIG as M, type MatButtonConfig as a, MatButton as b, MatAnchor as c, type MatFabDefaultOptions as d, MAT_FAB_DEFAULT_OPTIONS as e, MAT_FAB_DEFAULT_OPTIONS_FACTORY as f, MatFabButton as g, MatMiniFabButton as h, MatFabAnchor as i, MatMiniFabAnchor as j, MatIconButton as k, MatIconAnchor as l, MatButtonModule as m };
@@ -0,0 +1,31 @@
1
+ import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { O as OptionHarnessFilters, M as MatOptionHarness } from './option-harness.d-3d33fc9a.js';
3
+
4
+ interface OptgroupHarnessFilters extends BaseHarnessFilters {
5
+ labelText?: string | RegExp;
6
+ }
7
+
8
+ /** Harness for interacting with a `mat-optgroup` in tests. */
9
+ declare class MatOptgroupHarness extends ComponentHarness {
10
+ /** Selector used to locate option group instances. */
11
+ static hostSelector: string;
12
+ private _label;
13
+ /**
14
+ * Gets a `HarnessPredicate` that can be used to search for a option group with specific
15
+ * 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 MatOptgroupHarness>(this: ComponentHarnessConstructor<T>, options?: OptgroupHarnessFilters): HarnessPredicate<T>;
20
+ /** Gets the option group's label text. */
21
+ getLabelText(): Promise<string>;
22
+ /** Gets whether the option group is disabled. */
23
+ isDisabled(): Promise<boolean>;
24
+ /**
25
+ * Gets the options that are inside the group.
26
+ * @param filter Optionally filters which options are included.
27
+ */
28
+ getOptions(filter?: OptionHarnessFilters): Promise<MatOptionHarness[]>;
29
+ }
30
+
31
+ export { MatOptgroupHarness as M, type OptgroupHarnessFilters as O };
@@ -0,0 +1,34 @@
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 as M, type OptionHarnessFilters as O };
@@ -0,0 +1,19 @@
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 { type MatOptionParentComponent as M, MAT_OPTION_PARENT_COMPONENT as a };
@@ -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 _disabled;
54
+ private _mostRecentViewValue;
55
+ /** Whether the wrapping component is in multiple selection mode. */
56
+ get multiple(): boolean | null | undefined;
57
+ /** Whether or not the option is currently selected. */
58
+ get selected(): boolean;
59
+ /** The form value of the option. */
60
+ value: T;
61
+ /** The unique ID of the option. */
62
+ id: string;
63
+ /** Whether the option is disabled. */
64
+ get disabled(): boolean;
65
+ set disabled(value: boolean);
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 { MatOption as M, _countGroupLabelsBeforeOption as _, MatOptgroup as a, MatOptionSelectionChange as b, _getOptionScrollPosition as c, MAT_OPTGROUP as d };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "19.2.3",
3
+ "version": "19.2.5",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -353,7 +353,7 @@
353
353
  }
354
354
  },
355
355
  "peerDependencies": {
356
- "@angular/cdk": "19.2.3",
356
+ "@angular/cdk": "19.2.5",
357
357
  "@angular/core": "^19.0.0 || ^20.0.0",
358
358
  "@angular/common": "^19.0.0 || ^20.0.0",
359
359
  "@angular/forms": "^19.0.0 || ^20.0.0",