@depup/angular__material 21.2.4-depup.0 → 21.2.5-depup.0

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 (180) hide show
  1. package/README.md +2 -2
  2. package/changes.json +1 -1
  3. package/fesm2022/_animation-chunk.mjs.map +1 -1
  4. package/fesm2022/_date-formats-chunk.mjs.map +1 -1
  5. package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
  6. package/fesm2022/_error-options-chunk.mjs +6 -6
  7. package/fesm2022/_error-options-chunk.mjs.map +1 -1
  8. package/fesm2022/_error-state-chunk.mjs.map +1 -1
  9. package/fesm2022/_form-field-chunk.mjs +33 -33
  10. package/fesm2022/_form-field-chunk.mjs.map +1 -1
  11. package/fesm2022/_icon-button-chunk.mjs +9 -9
  12. package/fesm2022/_icon-button-chunk.mjs.map +1 -1
  13. package/fesm2022/_icon-registry-chunk.mjs +4 -4
  14. package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
  15. package/fesm2022/_input-harness-chunk.mjs.map +1 -1
  16. package/fesm2022/_internal-form-field-chunk.mjs +6 -6
  17. package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
  18. package/fesm2022/_line-chunk.mjs +7 -7
  19. package/fesm2022/_line-chunk.mjs.map +1 -1
  20. package/fesm2022/_option-chunk.mjs +11 -11
  21. package/fesm2022/_option-chunk.mjs.map +1 -1
  22. package/fesm2022/_option-harness-chunk.mjs.map +1 -1
  23. package/fesm2022/_option-module-chunk.mjs +4 -4
  24. package/fesm2022/_option-module-chunk.mjs.map +1 -1
  25. package/fesm2022/_pseudo-checkbox-chunk.mjs +6 -6
  26. package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
  27. package/fesm2022/_pseudo-checkbox-module-chunk.mjs +4 -4
  28. package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
  29. package/fesm2022/_public-api-chunk.mjs.map +1 -1
  30. package/fesm2022/_ripple-chunk.mjs +10 -10
  31. package/fesm2022/_ripple-chunk.mjs.map +1 -1
  32. package/fesm2022/_ripple-loader-chunk.mjs +3 -3
  33. package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
  34. package/fesm2022/_ripple-module-chunk.mjs +4 -4
  35. package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
  36. package/fesm2022/_structural-styles-chunk.mjs +6 -6
  37. package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
  38. package/fesm2022/_tooltip-chunk.mjs +18 -14
  39. package/fesm2022/_tooltip-chunk.mjs.map +1 -1
  40. package/fesm2022/autocomplete-testing.mjs.map +1 -1
  41. package/fesm2022/autocomplete.mjs +21 -21
  42. package/fesm2022/autocomplete.mjs.map +1 -1
  43. package/fesm2022/badge-testing.mjs.map +1 -1
  44. package/fesm2022/badge.mjs +13 -13
  45. package/fesm2022/badge.mjs.map +1 -1
  46. package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
  47. package/fesm2022/bottom-sheet.mjs +17 -17
  48. package/fesm2022/bottom-sheet.mjs.map +1 -1
  49. package/fesm2022/button-testing.mjs.map +1 -1
  50. package/fesm2022/button-toggle-testing.mjs.map +1 -1
  51. package/fesm2022/button-toggle.mjs +14 -14
  52. package/fesm2022/button-toggle.mjs.map +1 -1
  53. package/fesm2022/button.mjs +20 -20
  54. package/fesm2022/button.mjs.map +1 -1
  55. package/fesm2022/card-testing.mjs.map +1 -1
  56. package/fesm2022/card.mjs +49 -49
  57. package/fesm2022/card.mjs.map +1 -1
  58. package/fesm2022/checkbox-testing.mjs.map +1 -1
  59. package/fesm2022/checkbox.mjs +10 -10
  60. package/fesm2022/checkbox.mjs.map +1 -1
  61. package/fesm2022/chips-testing.mjs.map +1 -1
  62. package/fesm2022/chips.mjs +63 -63
  63. package/fesm2022/chips.mjs.map +1 -1
  64. package/fesm2022/core-testing.mjs +1 -1
  65. package/fesm2022/core-testing.mjs.map +1 -1
  66. package/fesm2022/core.mjs +25 -25
  67. package/fesm2022/core.mjs.map +1 -1
  68. package/fesm2022/datepicker-testing.mjs.map +1 -1
  69. package/fesm2022/datepicker.mjs +97 -97
  70. package/fesm2022/datepicker.mjs.map +1 -1
  71. package/fesm2022/dialog-testing.mjs +3 -3
  72. package/fesm2022/dialog-testing.mjs.map +1 -1
  73. package/fesm2022/dialog.mjs +32 -32
  74. package/fesm2022/dialog.mjs.map +1 -1
  75. package/fesm2022/divider-testing.mjs.map +1 -1
  76. package/fesm2022/divider.mjs +10 -10
  77. package/fesm2022/divider.mjs.map +1 -1
  78. package/fesm2022/expansion-testing.mjs.map +1 -1
  79. package/fesm2022/expansion.mjs +34 -34
  80. package/fesm2022/expansion.mjs.map +1 -1
  81. package/fesm2022/form-field-testing-control.mjs.map +1 -1
  82. package/fesm2022/form-field-testing.mjs +1 -1
  83. package/fesm2022/form-field-testing.mjs.map +1 -1
  84. package/fesm2022/form-field.mjs +5 -5
  85. package/fesm2022/form-field.mjs.map +1 -1
  86. package/fesm2022/grid-list-testing.mjs.map +1 -1
  87. package/fesm2022/grid-list.mjs +29 -29
  88. package/fesm2022/grid-list.mjs.map +1 -1
  89. package/fesm2022/icon-testing.mjs +8 -8
  90. package/fesm2022/icon-testing.mjs.map +1 -1
  91. package/fesm2022/icon.mjs +11 -11
  92. package/fesm2022/icon.mjs.map +1 -1
  93. package/fesm2022/input-testing.mjs.map +1 -1
  94. package/fesm2022/input.mjs +8 -8
  95. package/fesm2022/input.mjs.map +1 -1
  96. package/fesm2022/list-testing.mjs.map +1 -1
  97. package/fesm2022/list.mjs +64 -64
  98. package/fesm2022/list.mjs.map +1 -1
  99. package/fesm2022/menu-testing.mjs.map +1 -1
  100. package/fesm2022/menu.mjs +27 -27
  101. package/fesm2022/menu.mjs.map +1 -1
  102. package/fesm2022/paginator-testing.mjs.map +1 -1
  103. package/fesm2022/paginator.mjs +17 -17
  104. package/fesm2022/paginator.mjs.map +1 -1
  105. package/fesm2022/progress-bar-testing.mjs.map +1 -1
  106. package/fesm2022/progress-bar.mjs +10 -10
  107. package/fesm2022/progress-bar.mjs.map +1 -1
  108. package/fesm2022/progress-spinner-testing.mjs.map +1 -1
  109. package/fesm2022/progress-spinner.mjs +10 -10
  110. package/fesm2022/progress-spinner.mjs.map +1 -1
  111. package/fesm2022/radio-testing.mjs.map +1 -1
  112. package/fesm2022/radio.mjs +14 -14
  113. package/fesm2022/radio.mjs.map +1 -1
  114. package/fesm2022/select-testing.mjs.map +1 -1
  115. package/fesm2022/select.mjs +26 -26
  116. package/fesm2022/select.mjs.map +1 -1
  117. package/fesm2022/sidenav-testing.mjs.map +1 -1
  118. package/fesm2022/sidenav.mjs +33 -36
  119. package/fesm2022/sidenav.mjs.map +1 -1
  120. package/fesm2022/slide-toggle-testing.mjs.map +1 -1
  121. package/fesm2022/slide-toggle.mjs +10 -10
  122. package/fesm2022/slide-toggle.mjs.map +1 -1
  123. package/fesm2022/slider-testing.mjs.map +1 -1
  124. package/fesm2022/slider.mjs +41 -41
  125. package/fesm2022/slider.mjs.map +1 -1
  126. package/fesm2022/snack-bar-testing.mjs.map +1 -1
  127. package/fesm2022/snack-bar.mjs +30 -30
  128. package/fesm2022/snack-bar.mjs.map +1 -1
  129. package/fesm2022/sort-testing.mjs.map +1 -1
  130. package/fesm2022/sort.mjs +18 -18
  131. package/fesm2022/sort.mjs.map +1 -1
  132. package/fesm2022/stepper-testing.mjs.map +1 -1
  133. package/fesm2022/stepper.mjs +42 -42
  134. package/fesm2022/stepper.mjs.map +1 -1
  135. package/fesm2022/table-testing.mjs.map +1 -1
  136. package/fesm2022/table.mjs +60 -60
  137. package/fesm2022/table.mjs.map +1 -1
  138. package/fesm2022/tabs-testing.mjs.map +1 -1
  139. package/fesm2022/tabs.mjs +59 -59
  140. package/fesm2022/tabs.mjs.map +1 -1
  141. package/fesm2022/timepicker-testing.mjs.map +1 -1
  142. package/fesm2022/timepicker.mjs +17 -17
  143. package/fesm2022/timepicker.mjs.map +1 -1
  144. package/fesm2022/toolbar-testing.mjs.map +1 -1
  145. package/fesm2022/toolbar.mjs +15 -15
  146. package/fesm2022/toolbar.mjs.map +1 -1
  147. package/fesm2022/tooltip-testing.mjs.map +1 -1
  148. package/fesm2022/tooltip.mjs +4 -4
  149. package/fesm2022/tooltip.mjs.map +1 -1
  150. package/fesm2022/tree-testing.mjs.map +1 -1
  151. package/fesm2022/tree.mjs +31 -31
  152. package/fesm2022/tree.mjs.map +1 -1
  153. package/package.json +4 -4
  154. package/prebuilt-themes/azure-blue.css +167 -1
  155. package/prebuilt-themes/cyan-orange.css +167 -1
  156. package/prebuilt-themes/deeppurple-amber.css +2301 -1
  157. package/prebuilt-themes/indigo-pink.css +2301 -1
  158. package/prebuilt-themes/magenta-violet.css +167 -1
  159. package/prebuilt-themes/pink-bluegrey.css +2301 -1
  160. package/prebuilt-themes/purple-green.css +2301 -1
  161. package/prebuilt-themes/rose-red.css +167 -1
  162. package/schematics/ng-add/index.js +1 -1
  163. package/types/_button-toggle-chunk.d.ts +1 -1
  164. package/types/_icon-registry-chunk.d.ts +1 -1
  165. package/types/_option-parent-chunk.d.ts +1 -1
  166. package/types/_ripple-chunk.d.ts +1 -1
  167. package/types/dialog.d.ts +1 -1
  168. package/types/grid-list.d.ts +1 -1
  169. package/types/paginator.d.ts +0 -1
  170. package/types/radio.d.ts +1 -1
  171. package/types/select.d.ts +2 -2
  172. package/types/sidenav-testing.d.ts +1 -1
  173. package/types/sidenav.d.ts +1 -1
  174. package/types/slider.d.ts +5 -9
  175. package/types/table.d.ts +2 -4
  176. package/types/tabs.d.ts +1 -1
  177. package/types/timepicker.d.ts +1 -1
  178. package/types/tooltip.d.ts +318 -7
  179. package/types/tree.d.ts +2 -2
  180. package/types/_tooltip-chunk.d.ts +0 -315
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/toolbar/toolbar.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/toolbar/toolbar.html","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/toolbar/toolbar-module.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 {Platform} from '@angular/cdk/platform';\n\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Directive,\n ElementRef,\n Input,\n QueryList,\n ViewEncapsulation,\n inject,\n DOCUMENT,\n} from '@angular/core';\n\n@Directive({\n selector: 'mat-toolbar-row',\n exportAs: 'matToolbarRow',\n host: {'class': 'mat-toolbar-row'},\n})\nexport class MatToolbarRow {}\n\n@Component({\n selector: 'mat-toolbar',\n exportAs: 'matToolbar',\n templateUrl: 'toolbar.html',\n styleUrl: 'toolbar.css',\n host: {\n 'class': 'mat-toolbar',\n '[class]': 'color ? \"mat-\" + color : \"\"',\n '[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',\n '[class.mat-toolbar-single-row]': '_toolbarRows.length === 0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatToolbar implements AfterViewInit {\n protected _elementRef = inject(ElementRef);\n private _platform = inject(Platform);\n private _document = inject(DOCUMENT);\n\n // TODO: should be typed as `ThemePalette` but internal apps pass in arbitrary strings.\n /**\n * Theme color of the toolbar. This API is supported in M2 themes only, it has\n * no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/toolbar/styling.\n *\n * For information on applying color variants in M3, see\n * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants\n */\n @Input() color?: string | null;\n\n /** Reference to all toolbar row elements that have been projected. */\n @ContentChildren(MatToolbarRow, {descendants: true}) _toolbarRows!: QueryList<MatToolbarRow>;\n\n constructor(...args: unknown[]);\n constructor() {}\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._checkToolbarMixedModes();\n this._toolbarRows.changes.subscribe(() => this._checkToolbarMixedModes());\n }\n }\n\n /**\n * Throws an exception when developers are attempting to combine the different toolbar row modes.\n */\n private _checkToolbarMixedModes() {\n if (this._toolbarRows.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n // Check if there are any other DOM nodes that can display content but aren't inside of\n // a <mat-toolbar-row> element.\n const isCombinedUsage = Array.from<HTMLElement>(this._elementRef.nativeElement.childNodes)\n .filter(node => !(node.classList && node.classList.contains('mat-toolbar-row')))\n .filter(node => node.nodeType !== (this._document ? this._document.COMMENT_NODE : 8))\n .some(node => !!(node.textContent && node.textContent.trim()));\n\n if (isCombinedUsage) {\n throwToolbarMixedModesError();\n }\n }\n }\n}\n\n/**\n * Throws an exception when attempting to combine the different toolbar row modes.\n * @docs-private\n */\nexport function throwToolbarMixedModesError() {\n throw Error(\n 'MatToolbar: Attempting to combine different toolbar modes. ' +\n 'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' +\n 'inside of a `<mat-toolbar>` for a single row.',\n );\n}\n","<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n","/**\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 {BidiModule} from '@angular/cdk/bidi';\nimport {NgModule} from '@angular/core';\nimport {MatToolbar, MatToolbarRow} from './toolbar';\n\n@NgModule({\n imports: [MatToolbar, MatToolbarRow],\n exports: [MatToolbar, MatToolbarRow, BidiModule],\n})\nexport class MatToolbarModule {}\n"],"names":["MatToolbarRow","deps","target","i0","ɵɵFactoryTarget","Directive","isStandalone","selector","host","classAttribute","exportAs","ngImport","decorators","args","MatToolbar","_elementRef","inject","ElementRef","_platform","Platform","_document","DOCUMENT","color","_toolbarRows","constructor","ngAfterViewInit","isBrowser","_checkToolbarMixedModes","changes","subscribe","length","ngDevMode","isCombinedUsage","Array","from","nativeElement","childNodes","filter","node","classList","contains","nodeType","COMMENT_NODE","some","textContent","trim","throwToolbarMixedModesError","Component","inputs","properties","queries","propertyName","predicate","descendants","template","styles","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","ContentChildren","Error","MatToolbarModule","NgModule","imports","BidiModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","type","exports"],"mappings":";;;;;MA6BaA,aAAa,CAAA;;;;;UAAbA,aAAa;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;UAAbL,aAAa;AAAAM,IAAAA,YAAA,EAAA,IAAA;AAAAC,IAAAA,QAAA,EAAA,iBAAA;AAAAC,IAAAA,IAAA,EAAA;AAAAC,MAAAA,cAAA,EAAA;KAAA;IAAAC,QAAA,EAAA,CAAA,eAAA,CAAA;AAAAC,IAAAA,QAAA,EAAAR;AAAA,GAAA,CAAA;;;;;;QAAbH,aAAa;AAAAY,EAAAA,UAAA,EAAA,CAAA;UALzBP,SAAS;AAACQ,IAAAA,IAAA,EAAA,CAAA;AACTN,MAAAA,QAAQ,EAAE,iBAAiB;AAC3BG,MAAAA,QAAQ,EAAE,eAAe;AACzBF,MAAAA,IAAI,EAAE;AAAC,QAAA,OAAO,EAAE;AAAkB;KACnC;;;MAiBYM,UAAU,CAAA;AACXC,EAAAA,WAAW,GAAGC,MAAM,CAACC,UAAU,CAAC;AAClCC,EAAAA,SAAS,GAAGF,MAAM,CAACG,QAAQ,CAAC;AAC5BC,EAAAA,SAAS,GAAGJ,MAAM,CAACK,QAAQ,CAAC;EAU3BC,KAAK;EAGuCC,YAAY;EAGjEC,WAAAA,GAAA;AAEAC,EAAAA,eAAeA,GAAA;AACb,IAAA,IAAI,IAAI,CAACP,SAAS,CAACQ,SAAS,EAAE;MAC5B,IAAI,CAACC,uBAAuB,EAAE;AAC9B,MAAA,IAAI,CAACJ,YAAY,CAACK,OAAO,CAACC,SAAS,CAAC,MAAM,IAAI,CAACF,u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AA,CAHjBrD,UAAU,EAAEd,aAAa;cACzBc,UAAU,EAAEd,aAAa,EAAEoE,UAAU;AAAA,GAAA,CAAA;AAEpC,EAAA,OAAAC,IAAA,GAAAlE,EAAA,CAAAmE,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,eAAA;AAAA7D,IAAAA,QAAA,EAAAR,EAAA;AAAAsE,IAAAA,IAAA,EAAAR,gBAAgB;cAFUG,UAAU;AAAA,GAAA,CAAA;;;;;;QAEpCH,gBAAgB;AAAArD,EAAAA,UAAA,EAAA,CAAA;UAJ5BsD,QAAQ;AAACrD,IAAAA,IAAA,EAAA,CAAA;AACRsD,MAAAA,OAAO,EAAE,CAACrD,UAAU,EAAEd,aAAa,CAAC;AACpC0E,MAAAA,OAAO,EAAE,CAAC5D,UAAU,EAAEd,aAAa,EAAEoE,UAAU;KAChD;;;;;;"}
1
+ {"version":3,"file":"toolbar.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/toolbar/toolbar.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/toolbar/toolbar.html","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/toolbar/toolbar-module.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 {Platform} from '@angular/cdk/platform';\n\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Directive,\n ElementRef,\n Input,\n QueryList,\n ViewEncapsulation,\n inject,\n DOCUMENT,\n} from '@angular/core';\n\n@Directive({\n selector: 'mat-toolbar-row',\n exportAs: 'matToolbarRow',\n host: {'class': 'mat-toolbar-row'},\n})\nexport class MatToolbarRow {}\n\n@Component({\n selector: 'mat-toolbar',\n exportAs: 'matToolbar',\n templateUrl: 'toolbar.html',\n styleUrl: 'toolbar.css',\n host: {\n 'class': 'mat-toolbar',\n '[class]': 'color ? \"mat-\" + color : \"\"',\n '[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',\n '[class.mat-toolbar-single-row]': '_toolbarRows.length === 0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatToolbar implements AfterViewInit {\n protected _elementRef = inject(ElementRef);\n private _platform = inject(Platform);\n private _document = inject(DOCUMENT);\n\n // TODO: should be typed as `ThemePalette` but internal apps pass in arbitrary strings.\n /**\n * Theme color of the toolbar. This API is supported in M2 themes only, it has\n * no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/toolbar/styling.\n *\n * For information on applying color variants in M3, see\n * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants\n */\n @Input() color?: string | null;\n\n /** Reference to all toolbar row elements that have been projected. */\n @ContentChildren(MatToolbarRow, {descendants: true}) _toolbarRows!: QueryList<MatToolbarRow>;\n\n constructor(...args: unknown[]);\n constructor() {}\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._checkToolbarMixedModes();\n this._toolbarRows.changes.subscribe(() => this._checkToolbarMixedModes());\n }\n }\n\n /**\n * Throws an exception when developers are attempting to combine the different toolbar row modes.\n */\n private _checkToolbarMixedModes() {\n if (this._toolbarRows.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n // Check if there are any other DOM nodes that can display content but aren't inside of\n // a <mat-toolbar-row> element.\n const isCombinedUsage = Array.from<HTMLElement>(this._elementRef.nativeElement.childNodes)\n .filter(node => !(node.classList && node.classList.contains('mat-toolbar-row')))\n .filter(node => node.nodeType !== (this._document ? this._document.COMMENT_NODE : 8))\n .some(node => !!(node.textContent && node.textContent.trim()));\n\n if (isCombinedUsage) {\n throwToolbarMixedModesError();\n }\n }\n }\n}\n\n/**\n * Throws an exception when attempting to combine the different toolbar row modes.\n * @docs-private\n */\nexport function throwToolbarMixedModesError() {\n throw Error(\n 'MatToolbar: Attempting to combine different toolbar modes. ' +\n 'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' +\n 'inside of a `<mat-toolbar>` for a single row.',\n );\n}\n","<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n","/**\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 {BidiModule} from '@angular/cdk/bidi';\nimport {NgModule} from '@angular/core';\nimport {MatToolbar, MatToolbarRow} from './toolbar';\n\n@NgModule({\n imports: [MatToolbar, MatToolbarRow],\n exports: [MatToolbar, MatToolbarRow, BidiModule],\n})\nexport class MatToolbarModule {}\n"],"names":["MatToolbarRow","deps","target","i0","ɵɵFactoryTarget","Directive","isStandalone","selector","host","classAttribute","exportAs","ngImport","decorators","args","MatToolbar","_elementRef","inject","ElementRef","_platform","Platform","_document","DOCUMENT","color","_toolbarRows","constructor","ngAfterViewInit","isBrowser","_checkToolbarMixedModes","changes","subscribe","length","ngDevMode","isCombinedUsage","Array","from","nativeElement","childNodes","filter","node","classList","contains","nodeType","COMMENT_NODE","some","textContent","trim","throwToolbarMixedModesError","Component","inputs","properties","queries","propertyName","predicate","descendants","template","styles","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","ContentChildren","Error","MatToolbarModule","NgModule","imports","BidiModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","type","exports"],"mappings":";;;;;MA6BaA,aAAa,CAAA;;;;;UAAbA,aAAa;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;UAAbL,aAAa;AAAAM,IAAAA,YAAA,EAAA,IAAA;AAAAC,IAAAA,QAAA,EAAA,iBAAA;AAAAC,IAAAA,IAAA,EAAA;AAAAC,MAAAA,cAAA,EAAA;KAAA;IAAAC,Q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,UAAU,EAAEd,aAAa,CAAC;AACpC0E,MAAAA,OAAO,EAAE,CAAC5D,UAAU,EAAEd,aAAa,EAAEoE,UAAU;KAChD;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/tooltip/testing/tooltip-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 {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\nimport {TooltipHarnessFilters} from './tooltip-harness-filters';\n\n/** Harness for interacting with a mat-tooltip in tests. */\nexport class MatTooltipHarness extends ComponentHarness {\n static hostSelector = '.mat-mdc-tooltip-trigger';\n\n private _optionalPanel = this.documentRootLocatorFactory().locatorForOptional('.mat-mdc-tooltip');\n private _hiddenClass = 'mat-mdc-tooltip-hide';\n private _disabledClass = 'mat-mdc-tooltip-disabled';\n private _showAnimationName = 'mat-mdc-tooltip-show';\n private _hideAnimationName = 'mat-mdc-tooltip-hide';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tooltip trigger with specific\n * attributes.\n * @param options Options for narrowing the search.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatTooltipHarness>(\n this: ComponentHarnessConstructor<T>,\n options: TooltipHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options);\n }\n\n /** Shows the tooltip. */\n async show(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because the tooltip binds\n // different events depending on the device. The `changedTouches` is there in case the\n // element has ripples.\n await host.dispatchEvent('touchstart', {changedTouches: []});\n await host.hover();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._showAnimationName});\n }\n\n /** Hides the tooltip. */\n async hide(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because\n // the tooltip binds different events depending on the device.\n await host.dispatchEvent('touchend');\n await host.mouseAway();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._hideAnimationName});\n }\n\n /** Gets whether the tooltip is open. */\n async isOpen(): Promise<boolean> {\n const panel = await this._optionalPanel();\n return !!panel && !(await panel.hasClass(this._hiddenClass));\n }\n\n /** Gets whether the tooltip is disabled */\n async isDisabled(): Promise<boolean> {\n const host = await this.host();\n return host.hasClass(this._disabledClass);\n }\n\n /** Gets a promise for the tooltip panel's text. */\n async getTooltipText(): Promise<string> {\n const panel = await this._optionalPanel();\n return panel ? panel.text() : '';\n }\n}\n"],"names":["MatTooltipHarness","ComponentHarness","hostSelector","_optionalPanel","documentRootLocatorFactory","locatorForOptional","_hiddenClass","_disabledClass","_showAnimationName","_hideAnimationName","with","options","HarnessPredicate","show","host","dispatchEvent","changedTouches","hover","panel","animationName","hide","mouseAway","isOpen","hasClass","isDisabled","getTooltipText","text"],"mappings":";;AAgBM,MAAOA,iBAAkB,SAAQC,gBAAgB,CAAA;EACrD,OAAOC,YAAY,GAAG,0BAA0B;EAExCC,cAAc,GAAG,IAAI,CAACC,0BAA0B,EAAE,CAACC,kBAAkB,CAAC,kBAAkB,CAAC;AACzFC,EAAAA,YAAY,GAAG,sBAAsB;AACrCC,EAAAA,cAAc,GAAG,0BAA0B;AAC3CC,EAAAA,kBAAkB,GAAG,sBAAsB;AAC3CC,EAAAA,kBAAkB,GAAG,sBAAsB;AAQnD,EAAA,OAAOC,IAAIA,CAETC,OAAA,GAAiC,EAAE,EAAA;AAEnC,IAAA,OAAO,IAAIC,gBAAgB,CAAC,IAAI,EAAED,OAAO,CAAC;AAC5C;EAGA,MAAME,IAAIA,GAAA;AACR,IAAA,MAAMC,IAAI,GAAG,MAAM,IAAI,CAACA,IAAI,EAAE;AAK9B,IAAA,MAAMA,IAAI,CAACC,aAAa,CAAC,YAAY,EAAE;AAACC,MAAA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/tooltip/testing/tooltip-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 {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\nimport {TooltipHarnessFilters} from './tooltip-harness-filters';\n\n/** Harness for interacting with a mat-tooltip in tests. */\nexport class MatTooltipHarness extends ComponentHarness {\n static hostSelector = '.mat-mdc-tooltip-trigger';\n\n private _optionalPanel = this.documentRootLocatorFactory().locatorForOptional('.mat-mdc-tooltip');\n private _hiddenClass = 'mat-mdc-tooltip-hide';\n private _disabledClass = 'mat-mdc-tooltip-disabled';\n private _showAnimationName = 'mat-mdc-tooltip-show';\n private _hideAnimationName = 'mat-mdc-tooltip-hide';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tooltip trigger with specific\n * attributes.\n * @param options Options for narrowing the search.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatTooltipHarness>(\n this: ComponentHarnessConstructor<T>,\n options: TooltipHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options);\n }\n\n /** Shows the tooltip. */\n async show(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because the tooltip binds\n // different events depending on the device. The `changedTouches` is there in case the\n // element has ripples.\n await host.dispatchEvent('touchstart', {changedTouches: []});\n await host.hover();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._showAnimationName});\n }\n\n /** Hides the tooltip. */\n async hide(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because\n // the tooltip binds different events depending on the device.\n await host.dispatchEvent('touchend');\n await host.mouseAway();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._hideAnimationName});\n }\n\n /** Gets whether the tooltip is open. */\n async isOpen(): Promise<boolean> {\n const panel = await this._optionalPanel();\n return !!panel && !(await panel.hasClass(this._hiddenClass));\n }\n\n /** Gets whether the tooltip is disabled */\n async isDisabled(): Promise<boolean> {\n const host = await this.host();\n return host.hasClass(this._disabledClass);\n }\n\n /** Gets a promise for the tooltip panel's text. */\n async getTooltipText(): Promise<string> {\n const panel = await this._optionalPanel();\n return panel ? panel.text() : '';\n }\n}\n"],"names":["MatTooltipHarness","ComponentHarness","hostSelector","_optionalPanel","documentRootLocatorFactory","locatorForOptional","_hiddenClass","_disabledClass","_showAnimationName","_hideAnimationName","with","options","HarnessPredicate","show","host","dispatchEvent","changedTouches","hover","panel","animationName","hide","mouseAway","isOpen","hasClass","isDisabled","getTooltipText","text"],"mappings":";;AAgBM,MAAOA,iBAAkB,SAAQC,gBAAgB,CAAA;EACrD,OAAOC,YAAY,GAAG,0BAA0B;EAExCC,cAAc,GAAG,IAAI,CAACC,0BAA0B,EAAE,CAACC,kBAAkB,CAAC,kBAAkB,CAAC;AACzFC,EAAAA,YAAY,GAAG,sBAAsB;AACrCC,EAAAA,cAAc,GAAG,0BAA0B;AAC3CC,EAAAA,kBAAkB,GAAG,sBAAsB;AAC3CC,EAAAA,kBAAkB,GAAG,sBAAsB;AAQnD,EAAA,OAAOC,IAAIA,CAETC,OAAA,GAAiC,EAAE,EAAA;AAEnC,IAAA,OAAO,IAAIC,gBAAgB,CAAC,IAAI,EAAED,OAAO,CAAC;AAC5C,EAAA;EAGA,MAAME,IAAIA,GAAA;AACR,IAAA,MAAMC,IAAI,GAAG,MAAM,IAAI,CAACA,IAAI,EAAE;AAK9B,IAAA,MAAMA,IAAI,CAACC,aAAa,CAAC,YAAY,EAAE;AAACC,MAAAA,cAAc,EAAE;AAAE,KAAC,CAAC;AAC5D,IAAA,MAAMF,IAAI,CAACG,KAAK,EAAE;AAClB,IAAA,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACf,cAAc,EAAE;AACzC,IAAA,MAAMe,KAAK,EAAEH,aAAa,CAAC,cAAc,EAAE;MAACI,aAAa,EAAE,IAAI,CAACX;AAAkB,KAAC,CAAC;AACtF,EAAA;EAGA,MAAMY,IAAIA,GAAA;AACR,IAAA,MAAMN,IAAI,GAAG,MAAM,IAAI,CAACA,IAAI,EAAE;AAI9B,IAAA,MAAMA,IAAI,CAACC,aAAa,CAAC,UAAU,CAAC;AACpC,IAAA,MAAMD,IAAI,CAACO,SAAS,EAAE;AACtB,IAAA,MAAMH,KAAK,GAAG,MAAM,IAAI,CAACf,cAAc,EAAE;AACzC,IAAA,MAAMe,KAAK,EAAEH,aAAa,CAAC,cAAc,EAAE;MAACI,aAAa,EAAE,IAAI,CAACV;AAAkB,KAAC,CAAC;AACtF,EAAA;EAGA,MAAMa,MAAMA,GAAA;AACV,IAAA,MAAMJ,KAAK,GAAG,MAAM,IAAI,CAACf,cAAc,EAAE;AACzC,IAAA,OAAO,CAAC,CAACe,KAAK,IAAI,EAAE,MAAMA,KAAK,CAACK,QAAQ,CAAC,IAAI,CAACjB,YAAY,CAAC,CAAC;AAC9D,EAAA;EAGA,MAAMkB,UAAUA,GAAA;AACd,IAAA,MAAMV,IAAI,GAAG,MAAM,IAAI,CAACA,IAAI,EAAE;AAC9B,IAAA,OAAOA,IAAI,CAACS,QAAQ,CAAC,IAAI,CAAChB,cAAc,CAAC;AAC3C,EAAA;EAGA,MAAMkB,cAAcA,GAAA;AAClB,IAAA,MAAMP,KAAK,GAAG,MAAM,IAAI,CAACf,cAAc,EAAE;IACzC,OAAOe,KAAK,GAAGA,KAAK,CAACQ,IAAI,EAAE,GAAG,EAAE;AAClC,EAAA;;;;;"}
@@ -18,7 +18,7 @@ import './_animation-chunk.mjs';
18
18
  class MatTooltipModule {
19
19
  static ɵfac = i0.ɵɵngDeclareFactory({
20
20
  minVersion: "12.0.0",
21
- version: "22.0.0-next.1",
21
+ version: "22.0.0-next.5",
22
22
  ngImport: i0,
23
23
  type: MatTooltipModule,
24
24
  deps: [],
@@ -26,7 +26,7 @@ class MatTooltipModule {
26
26
  });
27
27
  static ɵmod = i0.ɵɵngDeclareNgModule({
28
28
  minVersion: "14.0.0",
29
- version: "22.0.0-next.1",
29
+ version: "22.0.0-next.5",
30
30
  ngImport: i0,
31
31
  type: MatTooltipModule,
32
32
  imports: [A11yModule, OverlayModule, MatTooltip, TooltipComponent],
@@ -34,7 +34,7 @@ class MatTooltipModule {
34
34
  });
35
35
  static ɵinj = i0.ɵɵngDeclareInjector({
36
36
  minVersion: "12.0.0",
37
- version: "22.0.0-next.1",
37
+ version: "22.0.0-next.5",
38
38
  ngImport: i0,
39
39
  type: MatTooltipModule,
40
40
  imports: [A11yModule, OverlayModule, BidiModule, CdkScrollableModule]
@@ -42,7 +42,7 @@ class MatTooltipModule {
42
42
  }
43
43
  i0.ɵɵngDeclareClassMetadata({
44
44
  minVersion: "12.0.0",
45
- version: "22.0.0-next.1",
45
+ version: "22.0.0-next.5",
46
46
  ngImport: i0,
47
47
  type: MatTooltipModule,
48
48
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/tooltip/tooltip-module.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 {NgModule} from '@angular/core';\nimport {A11yModule} from '@angular/cdk/a11y';\nimport {BidiModule} from '@angular/cdk/bidi';\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {CdkScrollableModule} from '@angular/cdk/scrolling';\nimport {MatTooltip, TooltipComponent} from './tooltip';\n\n@NgModule({\n imports: [A11yModule, OverlayModule, MatTooltip, TooltipComponent],\n exports: [MatTooltip, TooltipComponent, BidiModule, CdkScrollableModule],\n})\nexport class MatTooltipModule {}\n"],"names":["MatTooltipModule","deps","target","i0","ɵɵFactoryTarget","NgModule","ɵmod","ɵɵngDeclareNgModule","minVersion","version","ngImport","type","imports","A11yModule","OverlayModule","MatTooltip","TooltipComponent","exports","BidiModule","CdkScrollableModule","ɵinj","ɵɵngDeclareInjector","decorators","args"],"mappings":";;;;;;;;;;;;;;;;;MAmBaA,gBAAgB,CAAA;;;;;UAAhBA,gBAAgB;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;AAAhB,EAAA,OAAAC,IAAA,GAAAH,EAAA,CAAAI,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAP,EAAA;AAAAQ,IAAAA,IAAA,EAAAX,gBAAgB;IAHjBY,OAAA,EAAA,CAAAC,UAAU,EAAEC,aAAa,EAAEC,UAAU,EAAEC,gBAAgB,CAAA;IAAAC,OAAA,EAAA,CACvDF,UAAU,EAAEC,gBAAgB,EAAEE,UAAU,EAAEC,mBAAmB;AAAA,GAAA,CAAA;AAE5D,EAAA,OAAAC,IAAA,GAAAjB,EAAA,CAAAkB,mBAAA,CAAA;AAAAb,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAP,EAAA;AAAAQ,IAAAA,IAAA,EAAAX,gBAAgB;cAHjBa,UAAU,EAAEC,aAAa,EACKI,UAAU,EAAEC,mBAAmB;AAAA,GAAA,CAAA;;;;;;QAE5DnB,gBAAgB;AAAAsB,EAAAA,UAAA,EAAA,CAAA;UAJ5BjB,QAAQ;AAACkB,IAAAA,IAAA,EAAA,CAAA;MACRX,OAAO,EAAE,CAACC,UAAU,EAAEC,aAAa,EAAEC,UAAU,EAAEC,gBAAgB,CAAC;MAClEC,OAAO,EAAE,CAACF,UAAU,EAAEC,gBAAgB,EAAEE,UAAU,EAAEC,mBAAmB;KACxE;;;;;;"}
1
+ {"version":3,"file":"tooltip.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/tooltip/tooltip-module.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 {NgModule} from '@angular/core';\nimport {A11yModule} from '@angular/cdk/a11y';\nimport {BidiModule} from '@angular/cdk/bidi';\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {CdkScrollableModule} from '@angular/cdk/scrolling';\nimport {MatTooltip, TooltipComponent} from './tooltip';\n\n@NgModule({\n imports: [A11yModule, OverlayModule, MatTooltip, TooltipComponent],\n exports: [MatTooltip, TooltipComponent, BidiModule, CdkScrollableModule],\n})\nexport class MatTooltipModule {}\n"],"names":["MatTooltipModule","deps","target","i0","ɵɵFactoryTarget","NgModule","ɵmod","ɵɵngDeclareNgModule","minVersion","version","ngImport","type","imports","A11yModule","OverlayModule","MatTooltip","TooltipComponent","exports","BidiModule","CdkScrollableModule","ɵinj","ɵɵngDeclareInjector","decorators","args"],"mappings":";;;;;;;;;;;;;;;;;MAmBaA,gBAAgB,CAAA;;;;;UAAhBA,gBAAgB;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;AAAhB,EAAA,OAAAC,IAAA,GAAAH,EAAA,CAAAI,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAP,EAAA;AAAAQ,IAAAA,IAAA,EAAAX,gBAAgB;IAAAY,OAAA,EAAA,CAHjBC,UAAU,EAAEC,aAAa,EAAEC,UAAU,EAAEC,gBAAgB,CAAA;IAAAC,OAAA,EAAA,CACvDF,UAAU,EAAEC,gBAAgB,EAAEE,UAAU,EAAEC,mBAAmB;AAAA,GAAA,CAAA;AAE5D,EAAA,OAAAC,IAAA,GAAAjB,EAAA,CAAAkB,mBAAA,CAAA;AAAAb,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAP,EAAA;AAAAQ,IAAAA,IAAA,EAAAX,gBAAgB;cAHjBa,UAAU,EAAEC,aAAa,EACKI,UAAU,EAAEC,mBAAmB;AAAA,GAAA,CAAA;;;;;;QAE5DnB,gBAAgB;AAAAsB,EAAAA,UAAA,EAAA,CAAA;UAJ5BjB,QAAQ;AAACkB,IAAAA,IAAA,EAAA,CAAA;MACRX,OAAO,EAAE,CAACC,UAAU,EAAEC,aAAa,EAAEC,UAAU,EAAEC,gBAAgB,CAAC;MAClEC,OAAO,EAAE,CAACF,UAAU,EAAEC,gBAAgB,EAAEE,UAAU,EAAEC,mBAAmB;KACxE;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"tree-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/tree/testing/node-harness.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/tree/testing/tree-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 {\n ComponentHarnessConstructor,\n ContentContainerComponentHarness,\n HarnessPredicate,\n} from '@angular/cdk/testing';\nimport {TreeNodeHarnessFilters} from './tree-harness-filters';\nimport {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion';\n\n/** Harness for interacting with a standard Angular Material tree node. */\nexport class MatTreeNodeHarness extends ContentContainerComponentHarness<string> {\n /** The selector of the host element of a `MatTreeNode` instance. */\n static hostSelector = '.mat-tree-node, .mat-nested-tree-node';\n\n _toggle = this.locatorForOptional('[matTreeNodeToggle]');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tree node with specific attributes.\n * @param options Options for narrowing the search\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: TreeNodeHarnessFilters = {}): HarnessPredicate<MatTreeNodeHarness> {\n return getNodePredicate(MatTreeNodeHarness, options);\n }\n\n /** Whether the tree node is expanded. */\n async isExpanded(): Promise<boolean> {\n return coerceBooleanProperty(await (await this.host()).getAttribute('aria-expanded'));\n }\n\n /** Whether the tree node is expandable. */\n async isExpandable(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-expanded')) !== null;\n }\n\n /** Whether the tree node is disabled. */\n async isDisabled(): Promise<boolean> {\n return coerceBooleanProperty(await (await this.host()).getProperty('aria-disabled'));\n }\n\n /** Gets the level of the tree node. Note that this gets the aria-level and is 1 indexed. */\n async getLevel(): Promise<number> {\n return coerceNumberProperty(await (await this.host()).getAttribute('aria-level'));\n }\n\n /** Gets the tree node's text. */\n async getText(): Promise<string> {\n return (await this.host()).text({exclude: '.mat-tree-node, .mat-nested-tree-node, button'});\n }\n\n /** Toggles node between expanded/collapsed. Only works when node is not disabled. */\n async toggle(): Promise<void> {\n const toggle = await this._toggle();\n if (toggle) {\n return toggle.click();\n }\n }\n\n /** Expands the node if it is collapsed. Only works when node is not disabled. */\n async expand(): Promise<void> {\n if (!(await this.isExpanded())) {\n await this.toggle();\n }\n }\n\n /** Collapses the node if it is expanded. Only works when node is not disabled. */\n async collapse(): Promise<void> {\n if (await this.isExpanded()) {\n await this.toggle();\n }\n }\n}\n\nfunction getNodePredicate<T extends MatTreeNodeHarness>(\n type: ComponentHarnessConstructor<T>,\n options: TreeNodeHarnessFilters,\n): HarnessPredicate<T> {\n return new HarnessPredicate(type, options)\n .addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n )\n .addOption(\n 'disabled',\n options.disabled,\n async (harness, disabled) => (await harness.isDisabled()) === disabled,\n )\n .addOption(\n 'expanded',\n options.expanded,\n async (harness, expanded) => (await harness.isExpanded()) === expanded,\n )\n .addOption(\n 'level',\n options.level,\n async (harness, level) => (await harness.getLevel()) === level,\n );\n}\n","/**\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 {ComponentHarness, HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {MatTreeNodeHarness} from './node-harness';\nimport {TreeHarnessFilters, TreeNodeHarnessFilters} from './tree-harness-filters';\n\nexport type TextTree = {\n text?: string;\n children?: TextTree[];\n};\n\n/** Harness for interacting with a standard mat-tree in tests. */\nexport class MatTreeHarness extends ComponentHarness {\n /** The selector for the host element of a `MatTableHarness` instance. */\n static hostSelector = '.mat-tree';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tree with specific attributes.\n * @param options Options for narrowing the search\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: TreeHarnessFilters = {}): HarnessPredicate<MatTreeHarness> {\n return new HarnessPredicate(MatTreeHarness, options);\n }\n\n /** Gets all of the nodes in the tree. */\n async getNodes(filter: TreeNodeHarnessFilters = {}): Promise<MatTreeNodeHarness[]> {\n return this.locatorForAll(MatTreeNodeHarness.with(filter))();\n }\n\n /**\n * Gets an object representation for the visible tree structure\n * If a node is under an unexpanded node it will not be included.\n * Eg.\n * Tree (all nodes expanded):\n * `\n * <mat-tree>\n * <mat-tree-node>Node 1<mat-tree-node>\n * <mat-nested-tree-node>\n * Node 2\n * <mat-nested-tree-node>\n * Node 2.1\n * <mat-tree-node>\n * Node 2.1.1\n * <mat-tree-node>\n * <mat-nested-tree-node>\n * <mat-tree-node>\n * Node 2.2\n * <mat-tree-node>\n * <mat-nested-tree-node>\n * </mat-tree>`\n *\n * Tree structure:\n * {\n * children: [\n * {\n * text: 'Node 1',\n * children: [\n * {\n * text: 'Node 2',\n * children: [\n * {\n * text: 'Node 2.1',\n * children: [{text: 'Node 2.1.1'}]\n * },\n * {text: 'Node 2.2'}\n * ]\n * }\n * ]\n * }\n * ]\n * };\n */\n async getTreeStructure(): Promise<TextTree> {\n const nodes = await this.getNodes();\n const nodeInformation = await parallel(() =>\n nodes.map(node => {\n return parallel(() => [node.getLevel(), node.getText(), node.isExpanded()]);\n }),\n );\n return this._getTreeStructure(nodeInformation, 1, true);\n }\n\n /**\n * Recursively collect the structured text of the tree nodes.\n * @param nodes A list of tree nodes\n * @param level The level of nodes that are being accounted for during this iteration\n * @param parentExpanded Whether the parent of the first node in param nodes is expanded\n */\n private _getTreeStructure(\n nodes: [number, string, boolean][],\n level: number,\n parentExpanded: boolean,\n ): TextTree {\n const result: TextTree = {};\n for (let i = 0; i < nodes.length; i++) {\n const [nodeLevel, text, expanded] = nodes[i];\n const nextNodeLevel = nodes[i + 1]?.[0] ?? -1;\n\n // Return the accumulated value for the current level once we reach a shallower level node\n if (nodeLevel < level) {\n return result;\n }\n // Skip deeper level nodes during this iteration, they will be picked up in a later iteration\n if (nodeLevel > level) {\n continue;\n }\n // Only add to representation if it is visible (parent is expanded)\n if (parentExpanded) {\n // Collect the data under this node according to the following rules:\n // 1. If the next node in the list is a sibling of the current node add it to the child list\n // 2. If the next node is a child of the current node, get the sub-tree structure for the\n // child and add it under this node\n // 3. If the next node has a shallower level, we've reached the end of the child nodes for\n // the current parent.\n if (nextNodeLevel === level) {\n this._addChildToNode(result, {text});\n } else if (nextNodeLevel > level) {\n let children = this._getTreeStructure(\n nodes.slice(i + 1),\n nextNodeLevel,\n expanded,\n )?.children;\n let child = children ? {text, children} : {text};\n this._addChildToNode(result, child);\n } else {\n this._addChildToNode(result, {text});\n return result;\n }\n }\n }\n return result;\n }\n\n private _addChildToNode(result: TextTree, child: TextTree) {\n result.children ? result.children.push(child) : (result.children = [child]);\n }\n}\n"],"names":["MatTreeNodeHarness","ContentContainerComponentHarness","hostSelector","_toggle","locatorForOptional","with","options","getNodePredicate","isExpanded","coerceBooleanProperty","host","getAttribute","isExpandable","isDisabled","getProperty","getLevel","coerceNumberProperty","getText","text","exclude","toggle","click","expand","collapse","type","HarnessPredicate","addOption","harness","stringMatches","disabled","expanded","level","MatTreeHarness","ComponentHarness","getNodes","filter","locatorForAll","getTreeStructure","nodes","nodeInformation","parallel","map","node","_getTreeStructure","parentExpanded","result","i","length","nodeLevel","nextNodeLevel","_addChildToNode","children","slice","child","push"],"mappings":";;;AAiBM,MAAOA,kBAAmB,SAAQC,gCAAwC,CAAA;EAE9E,OAAOC,YAAY,GAAG,uCAAuC;AAE7DC,EAAAA,OAAO,GAAG,IAAI,CAACC,kBAAkB,CAAC,qBAAqB,CAAC;AAOxD,EAAA,OAAOC,IAAIA,CAACC,OAAA,GAAkC,EAAE,EAAA;AAC9C,IAAA,OAAOC,gBAAgB,CAACP,kBAAkB,EAAEM,OAAO,CAAC;AACtD;EAGA,MAAME,UAAUA,GAAA;AACd,IAAA,OAAOC,qBAAqB,CAAC,MAAM,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEC,YAAY,CAAC,eAAe,CAAC,CAAC;AACvF;EAGA,MAAMC,YAAYA,GAAA;AAChB,IAAA,OAAO,CAAC,MAAM,CAAC,MAAM,IAAI,CAACF,IAAI,EAAE,EAAEC,YAAY,CAAC,eAAe,CAAC,MAAM,IAAI;AAC3E;EAGA,MAAME,UAAUA,GAAA;AACd,IAAA,OAAOJ,qBAAqB,CAAC,MAAM,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEI,WAAW,CAAC,eAAe,CAAC,CAAC;AACtF;EAGA,MAAMC,QAAQA,GAAA;AACZ,IAAA,OAAOC,oBAAoB,CAAC,MAAM,CAAC,MAAM,IAAI,CAACN,IAAI,EAAE,EAAEC,YAAY,CAAC,YAAY,CAAC,CAAC;AACnF;EAGA,MAAMM,OAAOA,GAAA;IACX,OAAO,CAAC,MAAM,IAAI,CAACP,IAAI,EAAE,EAAEQ,IAAI,CAAC;AAACC,MAAAA,OAAO,EAAE;AAA+C,KAAC,CAAC;AAC7F;EAGA,MAAMC,MAAMA,GAAA;AACV,IAAA,MAAMA,MAAM,GAAG,MAAM,IAAI,CAACjB,OAAO,EAAE;AACnC,IAAA,IAAIiB,MAAM,EAAE;AACV,MA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KlB,KAAK,EAAE;AAC3B,UAAA,IAAI,CAACmB,eAAe,CAACL,MAAM,EAAE;AAAC3B,YAAAA;AAAK,WAAA,CAAC;AACtC,SAAA,MAAO,IAAI+B,aAAa,GAAGlB,KAAK,EAAE;UAChC,IAAIoB,QAAQ,GAAG,IAAI,CAACR,iBAAiB,CACnCL,KAAK,CAACc,KAAK,CAACN,CAAC,GAAG,CAAC,CAAC,EAClBG,aAAa,EACbnB,QAAQ,CACT,EAAEqB,QAAQ;UACX,IAAIE,KAAK,GAAGF,QAAQ,GAAG;YAACjC,IAAI;AAAEiC,YAAAA;WAAS,GAAG;AAACjC,YAAAA;WAAK;AAChD,UAAA,IAAI,CAACgC,eAAe,CAACL,MAAM,EAAEQ,KAAK,CAAC;AACrC,SAAA,MAAO;AACL,UAAA,IAAI,CAACH,eAAe,CAACL,MAAM,EAAE;AAAC3B,YAAAA;AAAK,WAAA,CAAC;AACpC,UAAA,OAAO2B,MAAM;AACf;AACF;AACF;AACA,IAAA,OAAOA,MAAM;AACf;AAEQK,EAAAA,eAAeA,CAACL,MAAgB,EAAEQ,KAAe,EAAA;AACvDR,IAAAA,MAAM,CAACM,QAAQ,GAAGN,MAAM,CAACM,QAAQ,CAACG,IAAI,CAACD,KAAK,CAAC,GAAIR,MAAM,CAACM,QAAQ,GAAG,CAACE,KAAK,CAAE;AAC7E;;;;;"}
1
+ {"version":3,"file":"tree-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/tree/testing/node-harness.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/tree/testing/tree-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 {\n ComponentHarnessConstructor,\n ContentContainerComponentHarness,\n HarnessPredicate,\n} from '@angular/cdk/testing';\nimport {TreeNodeHarnessFilters} from './tree-harness-filters';\nimport {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion';\n\n/** Harness for interacting with a standard Angular Material tree node. */\nexport class MatTreeNodeHarness extends ContentContainerComponentHarness<string> {\n /** The selector of the host element of a `MatTreeNode` instance. */\n static hostSelector = '.mat-tree-node, .mat-nested-tree-node';\n\n _toggle = this.locatorForOptional('[matTreeNodeToggle]');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tree node with specific attributes.\n * @param options Options for narrowing the search\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: TreeNodeHarnessFilters = {}): HarnessPredicate<MatTreeNodeHarness> {\n return getNodePredicate(MatTreeNodeHarness, options);\n }\n\n /** Whether the tree node is expanded. */\n async isExpanded(): Promise<boolean> {\n return coerceBooleanProperty(await (await this.host()).getAttribute('aria-expanded'));\n }\n\n /** Whether the tree node is expandable. */\n async isExpandable(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-expanded')) !== null;\n }\n\n /** Whether the tree node is disabled. */\n async isDisabled(): Promise<boolean> {\n return coerceBooleanProperty(await (await this.host()).getProperty('aria-disabled'));\n }\n\n /** Gets the level of the tree node. Note that this gets the aria-level and is 1 indexed. */\n async getLevel(): Promise<number> {\n return coerceNumberProperty(await (await this.host()).getAttribute('aria-level'));\n }\n\n /** Gets the tree node's text. */\n async getText(): Promise<string> {\n return (await this.host()).text({exclude: '.mat-tree-node, .mat-nested-tree-node, button'});\n }\n\n /** Toggles node between expanded/collapsed. Only works when node is not disabled. */\n async toggle(): Promise<void> {\n const toggle = await this._toggle();\n if (toggle) {\n return toggle.click();\n }\n }\n\n /** Expands the node if it is collapsed. Only works when node is not disabled. */\n async expand(): Promise<void> {\n if (!(await this.isExpanded())) {\n await this.toggle();\n }\n }\n\n /** Collapses the node if it is expanded. Only works when node is not disabled. */\n async collapse(): Promise<void> {\n if (await this.isExpanded()) {\n await this.toggle();\n }\n }\n}\n\nfunction getNodePredicate<T extends MatTreeNodeHarness>(\n type: ComponentHarnessConstructor<T>,\n options: TreeNodeHarnessFilters,\n): HarnessPredicate<T> {\n return new HarnessPredicate(type, options)\n .addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n )\n .addOption(\n 'disabled',\n options.disabled,\n async (harness, disabled) => (await harness.isDisabled()) === disabled,\n )\n .addOption(\n 'expanded',\n options.expanded,\n async (harness, expanded) => (await harness.isExpanded()) === expanded,\n )\n .addOption(\n 'level',\n options.level,\n async (harness, level) => (await harness.getLevel()) === level,\n );\n}\n","/**\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 {ComponentHarness, HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {MatTreeNodeHarness} from './node-harness';\nimport {TreeHarnessFilters, TreeNodeHarnessFilters} from './tree-harness-filters';\n\nexport type TextTree = {\n text?: string;\n children?: TextTree[];\n};\n\n/** Harness for interacting with a standard mat-tree in tests. */\nexport class MatTreeHarness extends ComponentHarness {\n /** The selector for the host element of a `MatTableHarness` instance. */\n static hostSelector = '.mat-tree';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tree with specific attributes.\n * @param options Options for narrowing the search\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: TreeHarnessFilters = {}): HarnessPredicate<MatTreeHarness> {\n return new HarnessPredicate(MatTreeHarness, options);\n }\n\n /** Gets all of the nodes in the tree. */\n async getNodes(filter: TreeNodeHarnessFilters = {}): Promise<MatTreeNodeHarness[]> {\n return this.locatorForAll(MatTreeNodeHarness.with(filter))();\n }\n\n /**\n * Gets an object representation for the visible tree structure\n * If a node is under an unexpanded node it will not be included.\n * Eg.\n * Tree (all nodes expanded):\n * `\n * <mat-tree>\n * <mat-tree-node>Node 1<mat-tree-node>\n * <mat-nested-tree-node>\n * Node 2\n * <mat-nested-tree-node>\n * Node 2.1\n * <mat-tree-node>\n * Node 2.1.1\n * <mat-tree-node>\n * <mat-nested-tree-node>\n * <mat-tree-node>\n * Node 2.2\n * <mat-tree-node>\n * <mat-nested-tree-node>\n * </mat-tree>`\n *\n * Tree structure:\n * {\n * children: [\n * {\n * text: 'Node 1',\n * children: [\n * {\n * text: 'Node 2',\n * children: [\n * {\n * text: 'Node 2.1',\n * children: [{text: 'Node 2.1.1'}]\n * },\n * {text: 'Node 2.2'}\n * ]\n * }\n * ]\n * }\n * ]\n * };\n */\n async getTreeStructure(): Promise<TextTree> {\n const nodes = await this.getNodes();\n const nodeInformation = await parallel(() =>\n nodes.map(node => {\n return parallel(() => [node.getLevel(), node.getText(), node.isExpanded()]);\n }),\n );\n return this._getTreeStructure(nodeInformation, 1, true);\n }\n\n /**\n * Recursively collect the structured text of the tree nodes.\n * @param nodes A list of tree nodes\n * @param level The level of nodes that are being accounted for during this iteration\n * @param parentExpanded Whether the parent of the first node in param nodes is expanded\n */\n private _getTreeStructure(\n nodes: [number, string, boolean][],\n level: number,\n parentExpanded: boolean,\n ): TextTree {\n const result: TextTree = {};\n for (let i = 0; i < nodes.length; i++) {\n const [nodeLevel, text, expanded] = nodes[i];\n const nextNodeLevel = nodes[i + 1]?.[0] ?? -1;\n\n // Return the accumulated value for the current level once we reach a shallower level node\n if (nodeLevel < level) {\n return result;\n }\n // Skip deeper level nodes during this iteration, they will be picked up in a later iteration\n if (nodeLevel > level) {\n continue;\n }\n // Only add to representation if it is visible (parent is expanded)\n if (parentExpanded) {\n // Collect the data under this node according to the following rules:\n // 1. If the next node in the list is a sibling of the current node add it to the child list\n // 2. If the next node is a child of the current node, get the sub-tree structure for the\n // child and add it under this node\n // 3. If the next node has a shallower level, we've reached the end of the child nodes for\n // the current parent.\n if (nextNodeLevel === level) {\n this._addChildToNode(result, {text});\n } else if (nextNodeLevel > level) {\n let children = this._getTreeStructure(\n nodes.slice(i + 1),\n nextNodeLevel,\n expanded,\n )?.children;\n let child = children ? {text, children} : {text};\n this._addChildToNode(result, child);\n } else {\n this._addChildToNode(result, {text});\n return result;\n }\n }\n }\n return result;\n }\n\n private _addChildToNode(result: TextTree, child: TextTree) {\n result.children ? result.children.push(child) : (result.children = [child]);\n }\n}\n"],"names":["MatTreeNodeHarness","ContentContainerComponentHarness","hostSelector","_toggle","locatorForOptional","with","options","getNodePredicate","isExpanded","coerceBooleanProperty","host","getAttribute","isExpandable","isDisabled","getProperty","getLevel","coerceNumberProperty","getText","text","exclude","toggle","click","expand","collapse","type","HarnessPredicate","addOption","harness","stringMatches","disabled","expanded","level","MatTreeHarness","ComponentHarness","getNodes","filter","locatorForAll","getTreeStructure","nodes","nodeInformation","parallel","map","node","_getTreeStructure","parentExpanded","result","i","length","nodeLevel","nextNodeLevel","_addChildToNode","children","slice","child","push"],"mappings":";;;AAiBM,MAAOA,kBAAmB,SAAQC,gCAAwC,CAAA;EAE9E,OAAOC,YAAY,GAAG,uCAAuC;AAE7DC,EAAAA,OAAO,GAAG,IAAI,CAACC,kBAAkB,CAAC,qBAAqB,CAAC;AAOxD,EAAA,OAAOC,IAAIA,CAACC,OAAA,GAAkC,EAAE,EAAA;AAC9C,IAAA,OAAOC,gBAAgB,CAACP,kBAAkB,EAAEM,OAAO,CAAC;AACtD,EAAA;EAGA,MAAME,UAAUA,GAAA;AACd,IAAA,OAAOC,qBAAqB,CAAC,MAAM,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEC,YAAY,CAAC,eAAe,CAAC,CAAC;AACvF,EAAA;EAGA,MAAMC,YAAYA,GAAA;AAChB,IAAA,OAAO,CAAC,MAAM,CAAC,MAAM,IAAI,CAACF,IAAI,EAAE,EAAEC,YAAY,CAAC,eAAe,CAAC,MAAM,IAAI;AAC3E,EAAA;EAGA,MAAME,UAAUA,GAAA;AACd,IAAA,OAAOJ,qBAAqB,CAAC,MAAM,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEI,WAAW,CAAC,eAAe,CAAC,CAAC;AACtF,EAAA;EAGA,MAAMC,QAAQA,GAAA;AACZ,IAAA,OAAOC,oBAAoB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,CAACG,IAAI,CAACD,KAAK,CAAC,GAAIR,MAAM,CAACM,QAAQ,GAAG,CAACE,KAAK,CAAE;AAC7E,EAAA;;;;;"}
package/fesm2022/tree.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { CdkTreeNode, CdkTreeNodeDef, CdkNestedTreeNode, CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodePadding, CdkTreeNodeOutlet, CdkTree, CdkTreeNodeToggle, CdkTreeModule } from '@angular/cdk/tree';
1
+ import { CdkNestedTreeNode, CdkTreeNode, CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodeDef, CdkTreeNodePadding, CdkTreeNodeOutlet, CdkTree, CdkTreeNodeToggle, CdkTreeModule } from '@angular/cdk/tree';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, HostAttributeToken, numberAttribute, booleanAttribute, Directive, Input, ViewContainerRef, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
4
- import { BidiModule } from '@angular/cdk/bidi';
3
+ import { booleanAttribute, numberAttribute, inject, HostAttributeToken, Input, Directive, ViewContainerRef, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
5
4
  import { DataSource } from '@angular/cdk/collections';
6
5
  import { BehaviorSubject, merge } from 'rxjs';
7
- import { take, map } from 'rxjs/operators';
6
+ import { map, take } from 'rxjs/operators';
7
+ import { BidiModule } from '@angular/cdk/bidi';
8
8
 
9
9
  function isNoopTreeKeyManager(keyManager) {
10
10
  return !!keyManager._isNoopTreeKeyManager;
@@ -45,7 +45,7 @@ class MatTreeNode extends CdkTreeNode {
45
45
  }
46
46
  static ɵfac = i0.ɵɵngDeclareFactory({
47
47
  minVersion: "12.0.0",
48
- version: "22.0.0-next.1",
48
+ version: "22.0.0-next.5",
49
49
  ngImport: i0,
50
50
  type: MatTreeNode,
51
51
  deps: [],
@@ -53,7 +53,7 @@ class MatTreeNode extends CdkTreeNode {
53
53
  });
54
54
  static ɵdir = i0.ɵɵngDeclareDirective({
55
55
  minVersion: "16.1.0",
56
- version: "22.0.0-next.1",
56
+ version: "22.0.0-next.5",
57
57
  type: MatTreeNode,
58
58
  isStandalone: true,
59
59
  selector: "mat-tree-node",
@@ -89,7 +89,7 @@ class MatTreeNode extends CdkTreeNode {
89
89
  }
90
90
  i0.ɵɵngDeclareClassMetadata({
91
91
  minVersion: "12.0.0",
92
- version: "22.0.0-next.1",
92
+ version: "22.0.0-next.5",
93
93
  ngImport: i0,
94
94
  type: MatTreeNode,
95
95
  decorators: [{
@@ -134,7 +134,7 @@ class MatTreeNodeDef extends CdkTreeNodeDef {
134
134
  data;
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.5",
138
138
  ngImport: i0,
139
139
  type: MatTreeNodeDef,
140
140
  deps: null,
@@ -142,7 +142,7 @@ class MatTreeNodeDef extends CdkTreeNodeDef {
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.5",
146
146
  type: MatTreeNodeDef,
147
147
  isStandalone: true,
148
148
  selector: "[matTreeNodeDef]",
@@ -160,7 +160,7 @@ class MatTreeNodeDef extends CdkTreeNodeDef {
160
160
  }
161
161
  i0.ɵɵngDeclareClassMetadata({
162
162
  minVersion: "12.0.0",
163
- version: "22.0.0-next.1",
163
+ version: "22.0.0-next.5",
164
164
  ngImport: i0,
165
165
  type: MatTreeNodeDef,
166
166
  decorators: [{
@@ -210,7 +210,7 @@ class MatNestedTreeNode extends CdkNestedTreeNode {
210
210
  }
211
211
  static ɵfac = i0.ɵɵngDeclareFactory({
212
212
  minVersion: "12.0.0",
213
- version: "22.0.0-next.1",
213
+ version: "22.0.0-next.5",
214
214
  ngImport: i0,
215
215
  type: MatNestedTreeNode,
216
216
  deps: null,
@@ -218,7 +218,7 @@ class MatNestedTreeNode extends CdkNestedTreeNode {
218
218
  });
219
219
  static ɵdir = i0.ɵɵngDeclareDirective({
220
220
  minVersion: "16.1.0",
221
- version: "22.0.0-next.1",
221
+ version: "22.0.0-next.5",
222
222
  type: MatNestedTreeNode,
223
223
  isStandalone: true,
224
224
  selector: "mat-nested-tree-node",
@@ -251,7 +251,7 @@ class MatNestedTreeNode extends CdkNestedTreeNode {
251
251
  }
252
252
  i0.ɵɵngDeclareClassMetadata({
253
253
  minVersion: "12.0.0",
254
- version: "22.0.0-next.1",
254
+ version: "22.0.0-next.5",
255
255
  ngImport: i0,
256
256
  type: MatNestedTreeNode,
257
257
  decorators: [{
@@ -310,7 +310,7 @@ class MatTreeNodePadding extends CdkTreeNodePadding {
310
310
  }
311
311
  static ɵfac = i0.ɵɵngDeclareFactory({
312
312
  minVersion: "12.0.0",
313
- version: "22.0.0-next.1",
313
+ version: "22.0.0-next.5",
314
314
  ngImport: i0,
315
315
  type: MatTreeNodePadding,
316
316
  deps: null,
@@ -318,7 +318,7 @@ class MatTreeNodePadding extends CdkTreeNodePadding {
318
318
  });
319
319
  static ɵdir = i0.ɵɵngDeclareDirective({
320
320
  minVersion: "16.1.0",
321
- version: "22.0.0-next.1",
321
+ version: "22.0.0-next.5",
322
322
  type: MatTreeNodePadding,
323
323
  isStandalone: true,
324
324
  selector: "[matTreeNodePadding]",
@@ -336,7 +336,7 @@ class MatTreeNodePadding extends CdkTreeNodePadding {
336
336
  }
337
337
  i0.ɵɵngDeclareClassMetadata({
338
338
  minVersion: "12.0.0",
339
- version: "22.0.0-next.1",
339
+ version: "22.0.0-next.5",
340
340
  ngImport: i0,
341
341
  type: MatTreeNodePadding,
342
342
  decorators: [{
@@ -371,7 +371,7 @@ class MatTreeNodeOutlet {
371
371
  });
372
372
  static ɵfac = i0.ɵɵngDeclareFactory({
373
373
  minVersion: "12.0.0",
374
- version: "22.0.0-next.1",
374
+ version: "22.0.0-next.5",
375
375
  ngImport: i0,
376
376
  type: MatTreeNodeOutlet,
377
377
  deps: [],
@@ -379,7 +379,7 @@ class MatTreeNodeOutlet {
379
379
  });
380
380
  static ɵdir = i0.ɵɵngDeclareDirective({
381
381
  minVersion: "14.0.0",
382
- version: "22.0.0-next.1",
382
+ version: "22.0.0-next.5",
383
383
  type: MatTreeNodeOutlet,
384
384
  isStandalone: true,
385
385
  selector: "[matTreeNodeOutlet]",
@@ -392,7 +392,7 @@ class MatTreeNodeOutlet {
392
392
  }
393
393
  i0.ɵɵngDeclareClassMetadata({
394
394
  minVersion: "12.0.0",
395
- version: "22.0.0-next.1",
395
+ version: "22.0.0-next.5",
396
396
  ngImport: i0,
397
397
  type: MatTreeNodeOutlet,
398
398
  decorators: [{
@@ -411,7 +411,7 @@ class MatTree extends CdkTree {
411
411
  _nodeOutlet = undefined;
412
412
  static ɵfac = i0.ɵɵngDeclareFactory({
413
413
  minVersion: "12.0.0",
414
- version: "22.0.0-next.1",
414
+ version: "22.0.0-next.5",
415
415
  ngImport: i0,
416
416
  type: MatTree,
417
417
  deps: null,
@@ -419,7 +419,7 @@ class MatTree extends CdkTree {
419
419
  });
420
420
  static ɵcmp = i0.ɵɵngDeclareComponent({
421
421
  minVersion: "14.0.0",
422
- version: "22.0.0-next.1",
422
+ version: "22.0.0-next.5",
423
423
  type: MatTree,
424
424
  isStandalone: true,
425
425
  selector: "mat-tree",
@@ -442,7 +442,7 @@ class MatTree extends CdkTree {
442
442
  ngImport: i0,
443
443
  template: `<ng-container matTreeNodeOutlet></ng-container>`,
444
444
  isInline: true,
445
- styles: [".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}\n"],
445
+ styles: [".mat-tree {\n display: block;\n background-color: var(--mat-tree-container-background-color, var(--mat-sys-surface));\n}\n\n.mat-tree-node,\n.mat-nested-tree-node {\n color: var(--mat-tree-node-text-color, var(--mat-sys-on-surface));\n font-family: var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));\n font-size: var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));\n font-weight: var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight));\n}\n\n.mat-tree-node {\n display: flex;\n align-items: center;\n flex: 1;\n word-wrap: break-word;\n min-height: var(--mat-tree-node-min-height, 48px);\n}\n\n.mat-nested-tree-node {\n border-bottom-width: 0;\n}\n"],
446
446
  dependencies: [{
447
447
  kind: "directive",
448
448
  type: MatTreeNodeOutlet,
@@ -454,7 +454,7 @@ class MatTree extends CdkTree {
454
454
  }
455
455
  i0.ɵɵngDeclareClassMetadata({
456
456
  minVersion: "12.0.0",
457
- version: "22.0.0-next.1",
457
+ version: "22.0.0-next.5",
458
458
  ngImport: i0,
459
459
  type: MatTree,
460
460
  decorators: [{
@@ -473,7 +473,7 @@ i0.ɵɵngDeclareClassMetadata({
473
473
  useExisting: MatTree
474
474
  }],
475
475
  imports: [MatTreeNodeOutlet],
476
- styles: [".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}\n"]
476
+ styles: [".mat-tree {\n display: block;\n background-color: var(--mat-tree-container-background-color, var(--mat-sys-surface));\n}\n\n.mat-tree-node,\n.mat-nested-tree-node {\n color: var(--mat-tree-node-text-color, var(--mat-sys-on-surface));\n font-family: var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));\n font-size: var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));\n font-weight: var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight));\n}\n\n.mat-tree-node {\n display: flex;\n align-items: center;\n flex: 1;\n word-wrap: break-word;\n min-height: var(--mat-tree-node-min-height, 48px);\n}\n\n.mat-nested-tree-node {\n border-bottom-width: 0;\n}\n"]
477
477
  }]
478
478
  }],
479
479
  propDecorators: {
@@ -489,7 +489,7 @@ i0.ɵɵngDeclareClassMetadata({
489
489
  class MatTreeNodeToggle extends CdkTreeNodeToggle {
490
490
  static ɵfac = i0.ɵɵngDeclareFactory({
491
491
  minVersion: "12.0.0",
492
- version: "22.0.0-next.1",
492
+ version: "22.0.0-next.5",
493
493
  ngImport: i0,
494
494
  type: MatTreeNodeToggle,
495
495
  deps: null,
@@ -497,7 +497,7 @@ class MatTreeNodeToggle extends CdkTreeNodeToggle {
497
497
  });
498
498
  static ɵdir = i0.ɵɵngDeclareDirective({
499
499
  minVersion: "14.0.0",
500
- version: "22.0.0-next.1",
500
+ version: "22.0.0-next.5",
501
501
  type: MatTreeNodeToggle,
502
502
  isStandalone: true,
503
503
  selector: "[matTreeNodeToggle]",
@@ -514,7 +514,7 @@ class MatTreeNodeToggle extends CdkTreeNodeToggle {
514
514
  }
515
515
  i0.ɵɵngDeclareClassMetadata({
516
516
  minVersion: "12.0.0",
517
- version: "22.0.0-next.1",
517
+ version: "22.0.0-next.5",
518
518
  ngImport: i0,
519
519
  type: MatTreeNodeToggle,
520
520
  decorators: [{
@@ -537,7 +537,7 @@ const MAT_TREE_DIRECTIVES = [MatNestedTreeNode, MatTreeNodeDef, MatTreeNodePaddi
537
537
  class MatTreeModule {
538
538
  static ɵfac = i0.ɵɵngDeclareFactory({
539
539
  minVersion: "12.0.0",
540
- version: "22.0.0-next.1",
540
+ version: "22.0.0-next.5",
541
541
  ngImport: i0,
542
542
  type: MatTreeModule,
543
543
  deps: [],
@@ -545,7 +545,7 @@ class MatTreeModule {
545
545
  });
546
546
  static ɵmod = i0.ɵɵngDeclareNgModule({
547
547
  minVersion: "14.0.0",
548
- version: "22.0.0-next.1",
548
+ version: "22.0.0-next.5",
549
549
  ngImport: i0,
550
550
  type: MatTreeModule,
551
551
  imports: [CdkTreeModule, MatNestedTreeNode, MatTreeNodeDef, MatTreeNodePadding, MatTreeNodeToggle, MatTree, MatTreeNode, MatTreeNodeOutlet],
@@ -553,7 +553,7 @@ class MatTreeModule {
553
553
  });
554
554
  static ɵinj = i0.ɵɵngDeclareInjector({
555
555
  minVersion: "12.0.0",
556
- version: "22.0.0-next.1",
556
+ version: "22.0.0-next.5",
557
557
  ngImport: i0,
558
558
  type: MatTreeModule,
559
559
  imports: [CdkTreeModule, BidiModule]
@@ -561,7 +561,7 @@ class MatTreeModule {
561
561
  }
562
562
  i0.ɵɵngDeclareClassMetadata({
563
563
  minVersion: "12.0.0",
564
- version: "22.0.0-next.1",
564
+ version: "22.0.0-next.5",
565
565
  ngImport: i0,
566
566
  type: MatTreeModule,
567
567
  decorators: [{