@angular/material 22.0.0-next.2 → 22.0.0-next.4

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 (206) hide show
  1. package/core/tokens/_system.scss +14 -8
  2. package/fesm2022/_animation-chunk.mjs.map +1 -1
  3. package/fesm2022/_date-formats-chunk.mjs.map +1 -1
  4. package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
  5. package/fesm2022/_error-options-chunk.mjs +6 -6
  6. package/fesm2022/_error-options-chunk.mjs.map +1 -1
  7. package/fesm2022/_error-state-chunk.mjs.map +1 -1
  8. package/fesm2022/_form-field-chunk.mjs +33 -37
  9. package/fesm2022/_form-field-chunk.mjs.map +1 -1
  10. package/fesm2022/_icon-button-chunk.mjs +9 -9
  11. package/fesm2022/_icon-button-chunk.mjs.map +1 -1
  12. package/fesm2022/_icon-registry-chunk.mjs +4 -4
  13. package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
  14. package/fesm2022/_input-harness-chunk.mjs.map +1 -1
  15. package/fesm2022/_internal-form-field-chunk.mjs +6 -6
  16. package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
  17. package/fesm2022/_line-chunk.mjs +7 -7
  18. package/fesm2022/_line-chunk.mjs.map +1 -1
  19. package/fesm2022/_option-chunk.mjs +11 -11
  20. package/fesm2022/_option-chunk.mjs.map +1 -1
  21. package/fesm2022/_option-harness-chunk.mjs.map +1 -1
  22. package/fesm2022/_option-module-chunk.mjs +4 -4
  23. package/fesm2022/_option-module-chunk.mjs.map +1 -1
  24. package/fesm2022/_pseudo-checkbox-chunk.mjs +6 -8
  25. package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
  26. package/fesm2022/_pseudo-checkbox-module-chunk.mjs +4 -4
  27. package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
  28. package/fesm2022/_public-api-chunk.mjs.map +1 -1
  29. package/fesm2022/_ripple-chunk.mjs +10 -10
  30. package/fesm2022/_ripple-chunk.mjs.map +1 -1
  31. package/fesm2022/_ripple-loader-chunk.mjs +3 -3
  32. package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
  33. package/fesm2022/_ripple-module-chunk.mjs +4 -4
  34. package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
  35. package/fesm2022/_structural-styles-chunk.mjs +6 -6
  36. package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
  37. package/fesm2022/_tooltip-chunk.mjs +18 -16
  38. package/fesm2022/_tooltip-chunk.mjs.map +1 -1
  39. package/fesm2022/autocomplete-testing.mjs.map +1 -1
  40. package/fesm2022/autocomplete.mjs +22 -26
  41. package/fesm2022/autocomplete.mjs.map +1 -1
  42. package/fesm2022/badge-testing.mjs.map +1 -1
  43. package/fesm2022/badge.mjs +13 -13
  44. package/fesm2022/badge.mjs.map +1 -1
  45. package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
  46. package/fesm2022/bottom-sheet.mjs +18 -20
  47. package/fesm2022/bottom-sheet.mjs.map +1 -1
  48. package/fesm2022/button-testing.mjs.map +1 -1
  49. package/fesm2022/button-toggle-testing.mjs.map +1 -1
  50. package/fesm2022/button-toggle.mjs +14 -14
  51. package/fesm2022/button-toggle.mjs.map +1 -1
  52. package/fesm2022/button.mjs +20 -20
  53. package/fesm2022/button.mjs.map +1 -1
  54. package/fesm2022/card-testing.mjs.map +1 -1
  55. package/fesm2022/card.mjs +49 -49
  56. package/fesm2022/card.mjs.map +1 -1
  57. package/fesm2022/checkbox-testing.mjs.map +1 -1
  58. package/fesm2022/checkbox.mjs +10 -10
  59. package/fesm2022/checkbox.mjs.map +1 -1
  60. package/fesm2022/chips-testing.mjs.map +1 -1
  61. package/fesm2022/chips.mjs +66 -70
  62. package/fesm2022/chips.mjs.map +1 -1
  63. package/fesm2022/core-testing.mjs +1 -1
  64. package/fesm2022/core-testing.mjs.map +1 -1
  65. package/fesm2022/core.mjs +25 -25
  66. package/fesm2022/core.mjs.map +1 -1
  67. package/fesm2022/datepicker-testing.mjs.map +1 -1
  68. package/fesm2022/datepicker.mjs +99 -105
  69. package/fesm2022/datepicker.mjs.map +1 -1
  70. package/fesm2022/dialog-testing.mjs +3 -3
  71. package/fesm2022/dialog-testing.mjs.map +1 -1
  72. package/fesm2022/dialog.mjs +33 -37
  73. package/fesm2022/dialog.mjs.map +1 -1
  74. package/fesm2022/divider-testing.mjs.map +1 -1
  75. package/fesm2022/divider.mjs +10 -10
  76. package/fesm2022/divider.mjs.map +1 -1
  77. package/fesm2022/expansion-testing.mjs.map +1 -1
  78. package/fesm2022/expansion.mjs +35 -37
  79. package/fesm2022/expansion.mjs.map +1 -1
  80. package/fesm2022/form-field-testing-control.mjs.map +1 -1
  81. package/fesm2022/form-field-testing.mjs +1 -1
  82. package/fesm2022/form-field-testing.mjs.map +1 -1
  83. package/fesm2022/form-field.mjs +5 -5
  84. package/fesm2022/form-field.mjs.map +1 -1
  85. package/fesm2022/grid-list-testing.mjs.map +1 -1
  86. package/fesm2022/grid-list.mjs +29 -35
  87. package/fesm2022/grid-list.mjs.map +1 -1
  88. package/fesm2022/icon-testing.mjs +8 -8
  89. package/fesm2022/icon-testing.mjs.map +1 -1
  90. package/fesm2022/icon.mjs +11 -11
  91. package/fesm2022/icon.mjs.map +1 -1
  92. package/fesm2022/input-testing.mjs.map +1 -1
  93. package/fesm2022/input.mjs +8 -8
  94. package/fesm2022/input.mjs.map +1 -1
  95. package/fesm2022/list-testing.mjs.map +1 -1
  96. package/fesm2022/list.mjs +67 -73
  97. package/fesm2022/list.mjs.map +1 -1
  98. package/fesm2022/menu-testing.mjs.map +1 -1
  99. package/fesm2022/menu.mjs +28 -30
  100. package/fesm2022/menu.mjs.map +1 -1
  101. package/fesm2022/paginator-testing.mjs.map +1 -1
  102. package/fesm2022/paginator.mjs +17 -17
  103. package/fesm2022/paginator.mjs.map +1 -1
  104. package/fesm2022/progress-bar-testing.mjs.map +1 -1
  105. package/fesm2022/progress-bar.mjs +10 -10
  106. package/fesm2022/progress-bar.mjs.map +1 -1
  107. package/fesm2022/progress-spinner-testing.mjs.map +1 -1
  108. package/fesm2022/progress-spinner.mjs +10 -10
  109. package/fesm2022/progress-spinner.mjs.map +1 -1
  110. package/fesm2022/radio-testing.mjs.map +1 -1
  111. package/fesm2022/radio.mjs +15 -17
  112. package/fesm2022/radio.mjs.map +1 -1
  113. package/fesm2022/select-testing.mjs.map +1 -1
  114. package/fesm2022/select.mjs +26 -26
  115. package/fesm2022/select.mjs.map +1 -1
  116. package/fesm2022/sidenav-testing.mjs.map +1 -1
  117. package/fesm2022/sidenav.mjs +35 -45
  118. package/fesm2022/sidenav.mjs.map +1 -1
  119. package/fesm2022/slide-toggle-testing.mjs.map +1 -1
  120. package/fesm2022/slide-toggle.mjs +11 -11
  121. package/fesm2022/slide-toggle.mjs.map +1 -1
  122. package/fesm2022/slider-testing.mjs.map +1 -1
  123. package/fesm2022/slider.mjs +41 -43
  124. package/fesm2022/slider.mjs.map +1 -1
  125. package/fesm2022/snack-bar-testing.mjs.map +1 -1
  126. package/fesm2022/snack-bar.mjs +32 -36
  127. package/fesm2022/snack-bar.mjs.map +1 -1
  128. package/fesm2022/sort-testing.mjs.map +1 -1
  129. package/fesm2022/sort.mjs +18 -18
  130. package/fesm2022/sort.mjs.map +1 -1
  131. package/fesm2022/stepper-testing.mjs.map +1 -1
  132. package/fesm2022/stepper.mjs +43 -47
  133. package/fesm2022/stepper.mjs.map +1 -1
  134. package/fesm2022/table-testing.mjs.map +1 -1
  135. package/fesm2022/table.mjs +60 -60
  136. package/fesm2022/table.mjs.map +1 -1
  137. package/fesm2022/tabs-testing.mjs.map +1 -1
  138. package/fesm2022/tabs.mjs +62 -68
  139. package/fesm2022/tabs.mjs.map +1 -1
  140. package/fesm2022/timepicker-testing.mjs.map +1 -1
  141. package/fesm2022/timepicker.mjs +17 -17
  142. package/fesm2022/timepicker.mjs.map +1 -1
  143. package/fesm2022/toolbar-testing.mjs.map +1 -1
  144. package/fesm2022/toolbar.mjs +15 -17
  145. package/fesm2022/toolbar.mjs.map +1 -1
  146. package/fesm2022/tooltip-testing.mjs.map +1 -1
  147. package/fesm2022/tooltip.mjs +4 -4
  148. package/fesm2022/tooltip.mjs.map +1 -1
  149. package/fesm2022/tree-testing.mjs.map +1 -1
  150. package/fesm2022/tree.mjs +31 -31
  151. package/fesm2022/tree.mjs.map +1 -1
  152. package/package.json +2 -2
  153. package/prebuilt-themes/azure-blue.css +167 -1
  154. package/prebuilt-themes/cyan-orange.css +167 -1
  155. package/prebuilt-themes/deeppurple-amber.css +2301 -1
  156. package/prebuilt-themes/indigo-pink.css +2301 -1
  157. package/prebuilt-themes/magenta-violet.css +167 -1
  158. package/prebuilt-themes/pink-bluegrey.css +2301 -1
  159. package/prebuilt-themes/purple-green.css +2301 -1
  160. package/prebuilt-themes/rose-red.css +167 -1
  161. package/schematics/ng-add/index.js +1 -1
  162. package/types/_badge-chunk.d.ts +1 -1
  163. package/types/_button-toggle-chunk.d.ts +3 -3
  164. package/types/_dialog-chunk.d.ts +1 -1
  165. package/types/_form-field-chunk.d.ts +2 -4
  166. package/types/_icon-module-chunk.d.ts +1 -1
  167. package/types/_icon-registry-chunk.d.ts +1 -1
  168. package/types/_option-chunk.d.ts +2 -2
  169. package/types/_option-parent-chunk.d.ts +1 -1
  170. package/types/_paginator-chunk.d.ts +1 -1
  171. package/types/_progress-spinner-chunk.d.ts +1 -1
  172. package/types/_pseudo-checkbox-module-chunk.d.ts +0 -1
  173. package/types/_ripple-chunk.d.ts +2 -2
  174. package/types/autocomplete.d.ts +1 -3
  175. package/types/bottom-sheet.d.ts +1 -2
  176. package/types/button.d.ts +5 -5
  177. package/types/card.d.ts +1 -1
  178. package/types/checkbox.d.ts +1 -1
  179. package/types/chips.d.ts +7 -9
  180. package/types/core.d.ts +1 -1
  181. package/types/datepicker.d.ts +13 -16
  182. package/types/dialog-testing.d.ts +1 -1
  183. package/types/dialog.d.ts +1 -3
  184. package/types/expansion.d.ts +2 -3
  185. package/types/grid-list.d.ts +1 -4
  186. package/types/input.d.ts +1 -1
  187. package/types/list.d.ts +2 -5
  188. package/types/menu.d.ts +3 -4
  189. package/types/paginator.d.ts +0 -1
  190. package/types/progress-bar.d.ts +1 -1
  191. package/types/radio.d.ts +2 -3
  192. package/types/select.d.ts +3 -3
  193. package/types/sidenav-testing.d.ts +1 -1
  194. package/types/sidenav.d.ts +3 -4
  195. package/types/slide-toggle.d.ts +1 -1
  196. package/types/slider.d.ts +8 -13
  197. package/types/snack-bar.d.ts +1 -3
  198. package/types/sort.d.ts +1 -1
  199. package/types/stepper.d.ts +2 -4
  200. package/types/table.d.ts +2 -4
  201. package/types/tabs.d.ts +7 -9
  202. package/types/timepicker.d.ts +1 -1
  203. package/types/toolbar.d.ts +0 -1
  204. package/types/tooltip.d.ts +317 -7
  205. package/types/tree.d.ts +3 -3
  206. package/types/_tooltip-chunk.d.ts +0 -315
@@ -1 +1 @@
1
- {"version":3,"file":"snack-bar-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/snack-bar/testing/snack-bar-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ContentContainerComponentHarness, HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {AriaLivePoliteness} from '@angular/cdk/a11y';\nimport {SnackBarHarnessFilters} from './snack-bar-harness-filters';\n\n/** Harness for interacting with a mat-snack-bar in tests. */\nexport class MatSnackBarHarness extends ContentContainerComponentHarness<string> {\n // Developers can provide a custom component or template for the\n // snackbar. The canonical snack-bar parent is the \"MatSnackBarContainer\".\n /** The selector for the host element of a `MatSnackBar` instance. */\n static hostSelector = '.mat-mdc-snack-bar-container:not([mat-exit])';\n private _messageSelector = '.mdc-snackbar__label';\n private _actionButtonSelector = '.mat-mdc-snack-bar-action';\n\n private _snackBarLiveRegion = this.locatorFor('[aria-live]');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatSnackBarHarness` that meets\n * certain criteria.\n * @param options Options for filtering which snack bar instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: SnackBarHarnessFilters = {}): HarnessPredicate<MatSnackBarHarness> {\n return new HarnessPredicate(MatSnackBarHarness, options);\n }\n\n /**\n * Gets the role of the snack-bar. The role of a snack-bar is determined based\n * on the ARIA politeness specified in the snack-bar config.\n * @deprecated Use `getAriaLive` instead.\n * @breaking-change 13.0.0\n */\n async getRole(): Promise<'alert' | 'status' | null> {\n return (await this.host()).getAttribute('role') as Promise<'alert' | 'status' | null>;\n }\n\n /**\n * Gets the aria-live of the snack-bar's live region. The aria-live of a snack-bar is\n * determined based on the ARIA politeness specified in the snack-bar config.\n */\n async getAriaLive(): Promise<AriaLivePoliteness> {\n return (await this._snackBarLiveRegion()).getAttribute(\n 'aria-live',\n ) as Promise<AriaLivePoliteness>;\n }\n\n /**\n * Whether the snack-bar has an action. Method cannot be used for snack-bar's with custom content.\n */\n async hasAction(): Promise<boolean> {\n return (await this._getActionButton()) !== null;\n }\n\n /**\n * Gets the description of the snack-bar. Method cannot be used for snack-bar's without action or\n * with custom content.\n */\n async getActionDescription(): Promise<string> {\n await this._assertHasAction();\n return (await this._getActionButton())!.text();\n }\n\n /**\n * Dismisses the snack-bar by clicking the action button. Method cannot be used for snack-bar's\n * without action or with custom content.\n */\n async dismissWithAction(): Promise<void> {\n await this._assertHasAction();\n await (await this._getActionButton())!.click();\n }\n\n /**\n * Gets the message of the snack-bar. Method cannot be used for snack-bar's with custom content.\n */\n async getMessage(): Promise<string> {\n return (await this.locatorFor(this._messageSelector)()).text();\n }\n\n /** Gets whether the snack-bar has been dismissed. */\n async isDismissed(): Promise<boolean> {\n // We consider the snackbar dismissed if it's not in the DOM. We can assert that the\n // element isn't in the DOM by seeing that its width and height are zero.\n\n const host = await this.host();\n const [exit, dimensions] = await parallel(() => [\n // The snackbar container is marked with the \"exit\" attribute after it has been dismissed\n // but before the animation has finished (after which it's removed from the DOM).\n host.getAttribute('mat-exit'),\n host.getDimensions(),\n ]);\n\n return exit != null || (!!dimensions && dimensions.height === 0 && dimensions.width === 0);\n }\n\n /**\n * Asserts that the current snack-bar has an action defined. Otherwise the\n * promise will reject.\n */\n private async _assertHasAction(): Promise<void> {\n if (!(await this.hasAction())) {\n throw Error('Method cannot be used for a snack-bar without an action.');\n }\n }\n\n /** Gets the simple snack bar action button. */\n private async _getActionButton() {\n return this.locatorForOptional(this._actionButtonSelector)();\n }\n}\n"],"names":["MatSnackBarHarness","ContentContainerComponentHarness","hostSelector","_messageSelector","_actionButtonSelector","_snackBarLiveRegion","locatorFor","with","options","HarnessPredicate","getRole","host","getAttribute","getAriaLive","hasAction","_getActionButton","getActionDescription","_assertHasAction","text","dismissWithAction","click","getMessage","isDismissed","exit","dimensions","parallel","getDimensions","height","width","Error","locatorForOptional"],"mappings":";;AAaM,MAAOA,kBAAmB,SAAQC,gCAAwC,CAAA;EAI9E,OAAOC,YAAY,GAAG,8CAA8C;AAC5DC,EAAAA,gBAAgB,GAAG,sBAAsB;AACzCC,EAAAA,qBAAqB,GAAG,2BAA2B;AAEnDC,EAAAA,mBAAmB,GAAG,IAAI,CAACC,UAAU,CAAC,aAAa,CAAC;AAQ5D,EAAA,OAAOC,IAAIA,CAACC,OAAA,GAAkC,EAAE,EAAA;AAC9C,IAAA,OAAO,IAAIC,gBAAgB,CAACT,kBAAkB,EAAEQ,OAAO,CAAC;AAC1D;EAQA,MAAME,OAAOA,GAAA;IACX,OAAO,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEC,YAAY,CAAC,MAAM,CAAuC;AACvF;EAMA,MAAMC,WAAWA,GAAA;IACf,OAAO,CAAC,MAAM,IAAI,CAACR,mBAAmB,EAAE,EAAEO,YAAY,CACpD,WAAW,CACmB;AAClC;EAKA,MAAME,SAASA,GAAA;IACb,OAAO,CAAC,MAAM,IAAI,CAACC,gBAAgB,EAAE,MAAM,IAAI;AACjD;EAMA,MAAMC,oBAAoBA,GAAA;AACxB,IAAA,MAAM,IAAI,CAACC,gBAAgB,EAAE;IAC7B,OAAO,CAAC,MAAM,IAAI,CAACF,gBAAgB,EAAE,EAAGG,IAAI,EAAE;AAChD;EAMA,MAAMC,iBAAiBA,GAAA;AACrB,IAAA,MAAM,IAAI,CAACF,gBAAgB,EAAE;IAC7B,MAAM,CAAC,MAAM,IAAI,CAACF,gBAAgB,EAAE,EAAGK,KAAK,EAAE;AAChD;EAKA,MAAMC,UAAUA,GAAA;AACd,IAAA,OAAO,CAAC,MAAM,IAAI,CAACf,UAAU,CAAC,IAAI,CAACH,gBAAgB,CAAC,EAAE,EAAEe,IAAI,EAAE;AAChE;EAGA,MAAMI,WAAWA,GAAA;AAIf,IAAA,MAAMX,IAAI,GAAG,MAAM,IAAI,CAACA,IAAI,EAAE;IAC9B,MAAM,CAACY,IAAI,EAAEC,UAAU,CAAC,GAAG,MAAMC,QAAQ,CAAC,MAAM,CAG9Cd,IAAI,CAACC,YAAY,CAAC,UAAU,CAAC,EAC7BD,IAAI,CAACe,aAAa,EAAE,CACrB,CAAC;AAEF,IAAA,OAAOH,IAAI,IAAI,IAAI,IAAK,CAAC,CAACC,UAAU,IAAIA,UAAU,CAACG,MAAM,KAAK,CAAC,IAAIH,UAAU,CAACI,KAAK,KAAK,CAAE;AAC5F;EAMQ,MAAMX,gBAAgBA,GAAA;IAC5B,IAAI,EAAE,MAAM,IAAI,CAACH,SAAS,EAAE,CAAC,EAAE;MAC7B,MAAMe,KAAK,CAAC,0DAA0D,CAAC;AACzE;AACF;EAGQ,MAAMd,gBAAgBA,GAAA;IAC5B,OAAO,IAAI,CAACe,kBAAkB,CAAC,IAAI,CAAC1B,qBAAqB,CAAC,EAAE;AAC9D;;;;;"}
1
+ {"version":3,"file":"snack-bar-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/snack-bar/testing/snack-bar-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ContentContainerComponentHarness, HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {AriaLivePoliteness} from '@angular/cdk/a11y';\nimport {SnackBarHarnessFilters} from './snack-bar-harness-filters';\n\n/** Harness for interacting with a mat-snack-bar in tests. */\nexport class MatSnackBarHarness extends ContentContainerComponentHarness<string> {\n // Developers can provide a custom component or template for the\n // snackbar. The canonical snack-bar parent is the \"MatSnackBarContainer\".\n /** The selector for the host element of a `MatSnackBar` instance. */\n static hostSelector = '.mat-mdc-snack-bar-container:not([mat-exit])';\n private _messageSelector = '.mdc-snackbar__label';\n private _actionButtonSelector = '.mat-mdc-snack-bar-action';\n\n private _snackBarLiveRegion = this.locatorFor('[aria-live]');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatSnackBarHarness` that meets\n * certain criteria.\n * @param options Options for filtering which snack bar instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: SnackBarHarnessFilters = {}): HarnessPredicate<MatSnackBarHarness> {\n return new HarnessPredicate(MatSnackBarHarness, options);\n }\n\n /**\n * Gets the role of the snack-bar. The role of a snack-bar is determined based\n * on the ARIA politeness specified in the snack-bar config.\n * @deprecated Use `getAriaLive` instead.\n * @breaking-change 13.0.0\n */\n async getRole(): Promise<'alert' | 'status' | null> {\n return (await this.host()).getAttribute('role') as Promise<'alert' | 'status' | null>;\n }\n\n /**\n * Gets the aria-live of the snack-bar's live region. The aria-live of a snack-bar is\n * determined based on the ARIA politeness specified in the snack-bar config.\n */\n async getAriaLive(): Promise<AriaLivePoliteness> {\n return (await this._snackBarLiveRegion()).getAttribute(\n 'aria-live',\n ) as Promise<AriaLivePoliteness>;\n }\n\n /**\n * Whether the snack-bar has an action. Method cannot be used for snack-bar's with custom content.\n */\n async hasAction(): Promise<boolean> {\n return (await this._getActionButton()) !== null;\n }\n\n /**\n * Gets the description of the snack-bar. Method cannot be used for snack-bar's without action or\n * with custom content.\n */\n async getActionDescription(): Promise<string> {\n await this._assertHasAction();\n return (await this._getActionButton())!.text();\n }\n\n /**\n * Dismisses the snack-bar by clicking the action button. Method cannot be used for snack-bar's\n * without action or with custom content.\n */\n async dismissWithAction(): Promise<void> {\n await this._assertHasAction();\n await (await this._getActionButton())!.click();\n }\n\n /**\n * Gets the message of the snack-bar. Method cannot be used for snack-bar's with custom content.\n */\n async getMessage(): Promise<string> {\n return (await this.locatorFor(this._messageSelector)()).text();\n }\n\n /** Gets whether the snack-bar has been dismissed. */\n async isDismissed(): Promise<boolean> {\n // We consider the snackbar dismissed if it's not in the DOM. We can assert that the\n // element isn't in the DOM by seeing that its width and height are zero.\n\n const host = await this.host();\n const [exit, dimensions] = await parallel(() => [\n // The snackbar container is marked with the \"exit\" attribute after it has been dismissed\n // but before the animation has finished (after which it's removed from the DOM).\n host.getAttribute('mat-exit'),\n host.getDimensions(),\n ]);\n\n return exit != null || (!!dimensions && dimensions.height === 0 && dimensions.width === 0);\n }\n\n /**\n * Asserts that the current snack-bar has an action defined. Otherwise the\n * promise will reject.\n */\n private async _assertHasAction(): Promise<void> {\n if (!(await this.hasAction())) {\n throw Error('Method cannot be used for a snack-bar without an action.');\n }\n }\n\n /** Gets the simple snack bar action button. */\n private async _getActionButton() {\n return this.locatorForOptional(this._actionButtonSelector)();\n }\n}\n"],"names":["MatSnackBarHarness","ContentContainerComponentHarness","hostSelector","_messageSelector","_actionButtonSelector","_snackBarLiveRegion","locatorFor","with","options","HarnessPredicate","getRole","host","getAttribute","getAriaLive","hasAction","_getActionButton","getActionDescription","_assertHasAction","text","dismissWithAction","click","getMessage","isDismissed","exit","dimensions","parallel","getDimensions","height","width","Error","locatorForOptional"],"mappings":";;AAaM,MAAOA,kBAAmB,SAAQC,gCAAwC,CAAA;EAI9E,OAAOC,YAAY,GAAG,8CAA8C;AAC5DC,EAAAA,gBAAgB,GAAG,sBAAsB;AACzCC,EAAAA,qBAAqB,GAAG,2BAA2B;AAEnDC,EAAAA,mBAAmB,GAAG,IAAI,CAACC,UAAU,CAAC,aAAa,CAAC;AAQ5D,EAAA,OAAOC,IAAIA,CAACC,OAAA,GAAkC,EAAE,EAAA;AAC9C,IAAA,OAAO,IAAIC,gBAAgB,CAACT,kBAAkB,EAAEQ,OAAO,CAAC;AAC1D,EAAA;EAQA,MAAME,OAAOA,GAAA;IACX,OAAO,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEC,YAAY,CAAC,MAAM,CAAuC;AACvF,EAAA;EAMA,MAAMC,WAAWA,GAAA;IACf,OAAO,CAAC,MAAM,IAAI,CAACR,mBAAmB,EAAE,EAAEO,YAAY,CACpD,WAAW,CACmB;AAClC,EAAA;EAKA,MAAME,SAASA,GAAA;IACb,OAAO,CAAC,MAAM,IAAI,CAACC,gBAAgB,EAAE,MAAM,IAAI;AACjD,EAAA;EAMA,MAAMC,oBAAoBA,GAAA;AACxB,IAAA,MAAM,IAAI,CAACC,gBAAgB,EAAE;IAC7B,OAAO,CAAC,MAAM,IAAI,CAACF,gBAAgB,EAAE,EAAGG,IAAI,EAAE;AAChD,EAAA;EAMA,MAAMC,iBAAiBA,GAAA;AACrB,IAAA,MAAM,IAAI,CAACF,gBAAgB,EAAE;IAC7B,MAAM,CAAC,MAAM,IAAI,CAACF,gBAAgB,EAAE,EAAGK,KAAK,EAAE;AAChD,EAAA;EAKA,MAAMC,UAAUA,GAAA;AACd,IAAA,OAAO,CAAC,MAAM,IAAI,CAACf,UAAU,CAAC,IAAI,CAACH,gBAAgB,CAAC,EAAE,EAAEe,IAAI,EAAE;AAChE,EAAA;EAGA,MAAMI,WAAWA,GAAA;AAIf,IAAA,MAAMX,IAAI,GAAG,MAAM,IAAI,CAACA,IAAI,EAAE;IAC9B,MAAM,CAACY,IAAI,EAAEC,UAAU,CAAC,GAAG,MAAMC,QAAQ,CAAC,MAAM,CAG9Cd,IAAI,CAACC,YAAY,CAAC,UAAU,CAAC,EAC7BD,IAAI,CAACe,aAAa,EAAE,CACrB,CAAC;AAEF,IAAA,OAAOH,IAAI,IAAI,IAAI,IAAK,CAAC,CAACC,UAAU,IAAIA,UAAU,CAACG,MAAM,KAAK,CAAC,IAAIH,UAAU,CAACI,KAAK,KAAK,CAAE;AAC5F,EAAA;EAMQ,MAAMX,gBAAgBA,GAAA;IAC5B,IAAI,EAAE,MAAM,IAAI,CAACH,SAAS,EAAE,CAAC,EAAE;MAC7B,MAAMe,KAAK,CAAC,0DAA0D,CAAC;AACzE,IAAA;AACF,EAAA;EAGQ,MAAMd,gBAAgBA,GAAA;IAC5B,OAAO,IAAI,CAACe,kBAAkB,CAAC,IAAI,CAAC1B,qBAAqB,CAAC,EAAE;AAC9D,EAAA;;;;;"}
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Directive, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, NgZone, ElementRef, ChangeDetectorRef, DOCUMENT, Injector, afterNextRender, ViewChild, TemplateRef, Injectable, NgModule } from '@angular/core';
2
+ import { InjectionToken, Directive, inject, ChangeDetectionStrategy, ViewEncapsulation, Component, NgZone, ElementRef, ChangeDetectorRef, DOCUMENT, Injector, afterNextRender, ViewChild, TemplateRef, Injectable, NgModule } from '@angular/core';
3
+ import { _IdGenerator, LiveAnnouncer } from '@angular/cdk/a11y';
4
+ import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
5
+ import { OverlayConfig, createGlobalPositionStrategy, createOverlayRef, OverlayModule } from '@angular/cdk/overlay';
3
6
  import { Subject, of } from 'rxjs';
4
7
  import { MatButton, MatButtonModule } from './button.mjs';
5
- import { _IdGenerator, LiveAnnouncer } from '@angular/cdk/a11y';
6
8
  import { Platform } from '@angular/cdk/platform';
7
9
  import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
8
10
  import { _animationsDisabled } from './_animation-chunk.mjs';
9
- import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
10
- import { OverlayConfig, createGlobalPositionStrategy, createOverlayRef, OverlayModule } from '@angular/cdk/overlay';
11
11
  import { takeUntil } from 'rxjs/operators';
12
12
  import { BidiModule } from '@angular/cdk/bidi';
13
13
  import './_icon-button-chunk.mjs';
@@ -98,7 +98,7 @@ class MatSnackBarConfig {
98
98
  class MatSnackBarLabel {
99
99
  static ɵfac = i0.ɵɵngDeclareFactory({
100
100
  minVersion: "12.0.0",
101
- version: "22.0.0-next.1",
101
+ version: "22.0.0-next.6",
102
102
  ngImport: i0,
103
103
  type: MatSnackBarLabel,
104
104
  deps: [],
@@ -106,7 +106,7 @@ class MatSnackBarLabel {
106
106
  });
107
107
  static ɵdir = i0.ɵɵngDeclareDirective({
108
108
  minVersion: "14.0.0",
109
- version: "22.0.0-next.1",
109
+ version: "22.0.0-next.6",
110
110
  type: MatSnackBarLabel,
111
111
  isStandalone: true,
112
112
  selector: "[matSnackBarLabel]",
@@ -118,7 +118,7 @@ class MatSnackBarLabel {
118
118
  }
119
119
  i0.ɵɵngDeclareClassMetadata({
120
120
  minVersion: "12.0.0",
121
- version: "22.0.0-next.1",
121
+ version: "22.0.0-next.6",
122
122
  ngImport: i0,
123
123
  type: MatSnackBarLabel,
124
124
  decorators: [{
@@ -134,7 +134,7 @@ i0.ɵɵngDeclareClassMetadata({
134
134
  class MatSnackBarActions {
135
135
  static ɵfac = i0.ɵɵngDeclareFactory({
136
136
  minVersion: "12.0.0",
137
- version: "22.0.0-next.1",
137
+ version: "22.0.0-next.6",
138
138
  ngImport: i0,
139
139
  type: MatSnackBarActions,
140
140
  deps: [],
@@ -142,7 +142,7 @@ class MatSnackBarActions {
142
142
  });
143
143
  static ɵdir = i0.ɵɵngDeclareDirective({
144
144
  minVersion: "14.0.0",
145
- version: "22.0.0-next.1",
145
+ version: "22.0.0-next.6",
146
146
  type: MatSnackBarActions,
147
147
  isStandalone: true,
148
148
  selector: "[matSnackBarActions]",
@@ -154,7 +154,7 @@ class MatSnackBarActions {
154
154
  }
155
155
  i0.ɵɵngDeclareClassMetadata({
156
156
  minVersion: "12.0.0",
157
- version: "22.0.0-next.1",
157
+ version: "22.0.0-next.6",
158
158
  ngImport: i0,
159
159
  type: MatSnackBarActions,
160
160
  decorators: [{
@@ -170,7 +170,7 @@ i0.ɵɵngDeclareClassMetadata({
170
170
  class MatSnackBarAction {
171
171
  static ɵfac = i0.ɵɵngDeclareFactory({
172
172
  minVersion: "12.0.0",
173
- version: "22.0.0-next.1",
173
+ version: "22.0.0-next.6",
174
174
  ngImport: i0,
175
175
  type: MatSnackBarAction,
176
176
  deps: [],
@@ -178,7 +178,7 @@ class MatSnackBarAction {
178
178
  });
179
179
  static ɵdir = i0.ɵɵngDeclareDirective({
180
180
  minVersion: "14.0.0",
181
- version: "22.0.0-next.1",
181
+ version: "22.0.0-next.6",
182
182
  type: MatSnackBarAction,
183
183
  isStandalone: true,
184
184
  selector: "[matSnackBarAction]",
@@ -190,7 +190,7 @@ class MatSnackBarAction {
190
190
  }
191
191
  i0.ɵɵngDeclareClassMetadata({
192
192
  minVersion: "12.0.0",
193
- version: "22.0.0-next.1",
193
+ version: "22.0.0-next.6",
194
194
  ngImport: i0,
195
195
  type: MatSnackBarAction,
196
196
  decorators: [{
@@ -207,7 +207,6 @@ i0.ɵɵngDeclareClassMetadata({
207
207
  class SimpleSnackBar {
208
208
  snackBarRef = inject(MatSnackBarRef);
209
209
  data = inject(MAT_SNACK_BAR_DATA);
210
- constructor() {}
211
210
  action() {
212
211
  this.snackBarRef.dismissWithAction();
213
212
  }
@@ -216,7 +215,7 @@ class SimpleSnackBar {
216
215
  }
217
216
  static ɵfac = i0.ɵɵngDeclareFactory({
218
217
  minVersion: "12.0.0",
219
- version: "22.0.0-next.1",
218
+ version: "22.0.0-next.6",
220
219
  ngImport: i0,
221
220
  type: SimpleSnackBar,
222
221
  deps: [],
@@ -224,7 +223,7 @@ class SimpleSnackBar {
224
223
  });
225
224
  static ɵcmp = i0.ɵɵngDeclareComponent({
226
225
  minVersion: "17.0.0",
227
- version: "22.0.0-next.1",
226
+ version: "22.0.0-next.6",
228
227
  type: SimpleSnackBar,
229
228
  isStandalone: true,
230
229
  selector: "simple-snack-bar",
@@ -234,7 +233,7 @@ class SimpleSnackBar {
234
233
  exportAs: ["matSnackBar"],
235
234
  ngImport: i0,
236
235
  template: "<div matSnackBarLabel>\n {{data.message}}\n</div>\n\n@if (hasAction) {\n <div matSnackBarActions>\n <button matButton matSnackBarAction (click)=\"action()\">\n {{data.action}}\n </button>\n </div>\n}\n",
237
- styles: [".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],
236
+ styles: [".mat-mdc-simple-snack-bar {\n display: flex;\n}\n.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {\n max-height: 50vh;\n overflow: auto;\n}\n"],
238
237
  dependencies: [{
239
238
  kind: "component",
240
239
  type: MatButton,
@@ -260,7 +259,7 @@ class SimpleSnackBar {
260
259
  }
261
260
  i0.ɵɵngDeclareClassMetadata({
262
261
  minVersion: "12.0.0",
263
- version: "22.0.0-next.1",
262
+ version: "22.0.0-next.6",
264
263
  ngImport: i0,
265
264
  type: SimpleSnackBar,
266
265
  decorators: [{
@@ -275,10 +274,9 @@ i0.ɵɵngDeclareClassMetadata({
275
274
  'class': 'mat-mdc-simple-snack-bar'
276
275
  },
277
276
  template: "<div matSnackBarLabel>\n {{data.message}}\n</div>\n\n@if (hasAction) {\n <div matSnackBarActions>\n <button matButton matSnackBarAction (click)=\"action()\">\n {{data.action}}\n </button>\n </div>\n}\n",
278
- styles: [".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"]
277
+ styles: [".mat-mdc-simple-snack-bar {\n display: flex;\n}\n.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {\n max-height: 50vh;\n overflow: auto;\n}\n"]
279
278
  }]
280
- }],
281
- ctorParameters: () => []
279
+ }]
282
280
  });
283
281
 
284
282
  const ENTER_ANIMATION = '_mat-snack-bar-enter';
@@ -486,7 +484,7 @@ class MatSnackBarContainer extends BasePortalOutlet {
486
484
  }
487
485
  static ɵfac = i0.ɵɵngDeclareFactory({
488
486
  minVersion: "12.0.0",
489
- version: "22.0.0-next.1",
487
+ version: "22.0.0-next.6",
490
488
  ngImport: i0,
491
489
  type: MatSnackBarContainer,
492
490
  deps: [],
@@ -494,7 +492,7 @@ class MatSnackBarContainer extends BasePortalOutlet {
494
492
  });
495
493
  static ɵcmp = i0.ɵɵngDeclareComponent({
496
494
  minVersion: "14.0.0",
497
- version: "22.0.0-next.1",
495
+ version: "22.0.0-next.6",
498
496
  type: MatSnackBarContainer,
499
497
  isStandalone: true,
500
498
  selector: "mat-snack-bar-container",
@@ -526,7 +524,7 @@ class MatSnackBarContainer extends BasePortalOutlet {
526
524
  usesInheritance: true,
527
525
  ngImport: i0,
528
526
  template: "<div class=\"mdc-snackbar__surface mat-mdc-snackbar-surface\">\n <!--\n This outer label wrapper will have the class `mdc-snackbar__label` applied if\n the attached template/component does not contain it.\n -->\n <div class=\"mat-mdc-snack-bar-label\" #label>\n <!-- Initialy holds the snack bar content, will be empty after announcing to screen readers. -->\n <div aria-hidden=\"true\">\n <ng-template cdkPortalOutlet />\n </div>\n\n <!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->\n <div [attr.aria-live]=\"_live\" [attr.role]=\"_role\" [attr.id]=\"_liveElementId\"></div>\n </div>\n</div>\n",
529
- styles: ["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"],
527
+ styles: ["@keyframes _mat-snack-bar-enter {\n from {\n transform: scale(0.8);\n opacity: 0;\n }\n to {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes _mat-snack-bar-exit {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n.mat-mdc-snack-bar-container {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n margin: 8px;\n}\n.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {\n width: 100vw;\n}\n\n.mat-snack-bar-container-animations-enabled {\n opacity: 0;\n}\n.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {\n opacity: 1;\n}\n.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {\n animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;\n}\n.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {\n animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;\n}\n\n.mat-mdc-snackbar-surface {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n padding-left: 0;\n padding-right: 8px;\n}\n[dir=rtl] .mat-mdc-snackbar-surface {\n padding-right: 0;\n padding-left: 8px;\n}\n.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {\n min-width: 344px;\n max-width: 672px;\n}\n.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {\n width: 100%;\n min-width: 0;\n}\n@media (forced-colors: active) {\n .mat-mdc-snackbar-surface {\n outline: solid 1px;\n }\n}\n.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {\n color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));\n border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));\n background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface));\n}\n\n.mdc-snackbar__label {\n width: 100%;\n flex-grow: 1;\n box-sizing: border-box;\n margin: 0;\n padding: 14px 8px 14px 16px;\n}\n[dir=rtl] .mdc-snackbar__label {\n padding-left: 8px;\n padding-right: 16px;\n}\n.mat-mdc-snack-bar-container .mdc-snackbar__label {\n font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));\n font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));\n font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));\n line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height));\n}\n\n.mat-mdc-snack-bar-actions {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n box-sizing: border-box;\n}\n\n.mat-mdc-snack-bar-handset,\n.mat-mdc-snack-bar-container,\n.mat-mdc-snack-bar-label {\n flex: 1 1 auto;\n}\n\n.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {\n color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary));\n}\n.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {\n --mat-button-text-state-layer-color: currentColor;\n --mat-button-text-ripple-color: currentColor;\n}\n.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {\n opacity: 0.1;\n}\n"],
530
528
  dependencies: [{
531
529
  kind: "directive",
532
530
  type: CdkPortalOutlet,
@@ -541,7 +539,7 @@ class MatSnackBarContainer extends BasePortalOutlet {
541
539
  }
542
540
  i0.ɵɵngDeclareClassMetadata({
543
541
  minVersion: "12.0.0",
544
- version: "22.0.0-next.1",
542
+ version: "22.0.0-next.6",
545
543
  ngImport: i0,
546
544
  type: MatSnackBarContainer,
547
545
  decorators: [{
@@ -560,7 +558,7 @@ i0.ɵɵngDeclareClassMetadata({
560
558
  '(animationcancel)': 'onAnimationEnd($event.animationName)'
561
559
  },
562
560
  template: "<div class=\"mdc-snackbar__surface mat-mdc-snackbar-surface\">\n <!--\n This outer label wrapper will have the class `mdc-snackbar__label` applied if\n the attached template/component does not contain it.\n -->\n <div class=\"mat-mdc-snack-bar-label\" #label>\n <!-- Initialy holds the snack bar content, will be empty after announcing to screen readers. -->\n <div aria-hidden=\"true\">\n <ng-template cdkPortalOutlet />\n </div>\n\n <!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->\n <div [attr.aria-live]=\"_live\" [attr.role]=\"_role\" [attr.id]=\"_liveElementId\"></div>\n </div>\n</div>\n",
563
- styles: ["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"]
561
+ styles: ["@keyframes _mat-snack-bar-enter {\n from {\n transform: scale(0.8);\n opacity: 0;\n }\n to {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes _mat-snack-bar-exit {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n.mat-mdc-snack-bar-container {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n margin: 8px;\n}\n.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {\n width: 100vw;\n}\n\n.mat-snack-bar-container-animations-enabled {\n opacity: 0;\n}\n.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {\n opacity: 1;\n}\n.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {\n animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;\n}\n.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {\n animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;\n}\n\n.mat-mdc-snackbar-surface {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n padding-left: 0;\n padding-right: 8px;\n}\n[dir=rtl] .mat-mdc-snackbar-surface {\n padding-right: 0;\n padding-left: 8px;\n}\n.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {\n min-width: 344px;\n max-width: 672px;\n}\n.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {\n width: 100%;\n min-width: 0;\n}\n@media (forced-colors: active) {\n .mat-mdc-snackbar-surface {\n outline: solid 1px;\n }\n}\n.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {\n color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));\n border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));\n background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface));\n}\n\n.mdc-snackbar__label {\n width: 100%;\n flex-grow: 1;\n box-sizing: border-box;\n margin: 0;\n padding: 14px 8px 14px 16px;\n}\n[dir=rtl] .mdc-snackbar__label {\n padding-left: 8px;\n padding-right: 16px;\n}\n.mat-mdc-snack-bar-container .mdc-snackbar__label {\n font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));\n font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));\n font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));\n line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height));\n}\n\n.mat-mdc-snack-bar-actions {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n box-sizing: border-box;\n}\n\n.mat-mdc-snack-bar-handset,\n.mat-mdc-snack-bar-container,\n.mat-mdc-snack-bar-label {\n flex: 1 1 auto;\n}\n\n.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {\n color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary));\n}\n.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {\n --mat-button-text-state-layer-color: currentColor;\n --mat-button-text-ripple-color: currentColor;\n}\n.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {\n opacity: 0.1;\n}\n"]
564
562
  }]
565
563
  }],
566
564
  ctorParameters: () => [],
@@ -609,7 +607,6 @@ class MatSnackBar {
609
607
  this._snackBarRefAtThisLevel = value;
610
608
  }
611
609
  }
612
- constructor() {}
613
610
  openFromComponent(component, config) {
614
611
  return this._attach(component, config);
615
612
  }
@@ -746,7 +743,7 @@ class MatSnackBar {
746
743
  }
747
744
  static ɵfac = i0.ɵɵngDeclareFactory({
748
745
  minVersion: "12.0.0",
749
- version: "22.0.0-next.1",
746
+ version: "22.0.0-next.6",
750
747
  ngImport: i0,
751
748
  type: MatSnackBar,
752
749
  deps: [],
@@ -754,7 +751,7 @@ class MatSnackBar {
754
751
  });
755
752
  static ɵprov = i0.ɵɵngDeclareInjectable({
756
753
  minVersion: "12.0.0",
757
- version: "22.0.0-next.1",
754
+ version: "22.0.0-next.6",
758
755
  ngImport: i0,
759
756
  type: MatSnackBar,
760
757
  providedIn: 'root'
@@ -762,7 +759,7 @@ class MatSnackBar {
762
759
  }
763
760
  i0.ɵɵngDeclareClassMetadata({
764
761
  minVersion: "12.0.0",
765
- version: "22.0.0-next.1",
762
+ version: "22.0.0-next.6",
766
763
  ngImport: i0,
767
764
  type: MatSnackBar,
768
765
  decorators: [{
@@ -770,15 +767,14 @@ i0.ɵɵngDeclareClassMetadata({
770
767
  args: [{
771
768
  providedIn: 'root'
772
769
  }]
773
- }],
774
- ctorParameters: () => []
770
+ }]
775
771
  });
776
772
 
777
773
  const DIRECTIVES = [MatSnackBarContainer, MatSnackBarLabel, MatSnackBarActions, MatSnackBarAction];
778
774
  class MatSnackBarModule {
779
775
  static ɵfac = i0.ɵɵngDeclareFactory({
780
776
  minVersion: "12.0.0",
781
- version: "22.0.0-next.1",
777
+ version: "22.0.0-next.6",
782
778
  ngImport: i0,
783
779
  type: MatSnackBarModule,
784
780
  deps: [],
@@ -786,7 +782,7 @@ class MatSnackBarModule {
786
782
  });
787
783
  static ɵmod = i0.ɵɵngDeclareNgModule({
788
784
  minVersion: "14.0.0",
789
- version: "22.0.0-next.1",
785
+ version: "22.0.0-next.6",
790
786
  ngImport: i0,
791
787
  type: MatSnackBarModule,
792
788
  imports: [OverlayModule, PortalModule, MatButtonModule, SimpleSnackBar, MatSnackBarContainer, MatSnackBarLabel, MatSnackBarActions, MatSnackBarAction],
@@ -794,7 +790,7 @@ class MatSnackBarModule {
794
790
  });
795
791
  static ɵinj = i0.ɵɵngDeclareInjector({
796
792
  minVersion: "12.0.0",
797
- version: "22.0.0-next.1",
793
+ version: "22.0.0-next.6",
798
794
  ngImport: i0,
799
795
  type: MatSnackBarModule,
800
796
  providers: [MatSnackBar],
@@ -803,7 +799,7 @@ class MatSnackBarModule {
803
799
  }
804
800
  i0.ɵɵngDeclareClassMetadata({
805
801
  minVersion: "12.0.0",
806
- version: "22.0.0-next.1",
802
+ version: "22.0.0-next.6",
807
803
  ngImport: i0,
808
804
  type: MatSnackBarModule,
809
805
  decorators: [{