@angular/cdk 20.0.0-next.6 → 20.0.0-next.7

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 (173) hide show
  1. package/a11y/index.d.ts +10 -11
  2. package/{a11y-module.d-9e4162d8.d.ts → a11y-module.d-DrV0SO0k.d.ts} +4 -4
  3. package/a11y-prebuilt.css +1 -1
  4. package/accordion/index.d.ts +2 -2
  5. package/{activedescendant-key-manager.d-8f004111.d.ts → activedescendant-key-manager.d-DSYvyoT0.d.ts} +3 -3
  6. package/bidi/index.d.ts +1 -1
  7. package/{bidi-module.d-e02fd94c.d.ts → bidi-module.d-bsVYOt0R.d.ts} +2 -2
  8. package/clipboard/index.d.ts +1 -1
  9. package/coercion/index.d.ts +1 -1
  10. package/collections/index.d.ts +8 -8
  11. package/{data-source.d-7eda4d9a.d.ts → data-source.d-DAIyaEMO.d.ts} +2 -2
  12. package/dialog/index.d.ts +16 -16
  13. package/drag-drop/index.d.ts +6 -6
  14. package/fesm2022/{a11y-module-3f18e5c2.mjs → a11y-module-tRUj0Pog.mjs} +10 -10
  15. package/fesm2022/{a11y-module-3f18e5c2.mjs.map → a11y-module-tRUj0Pog.mjs.map} +1 -1
  16. package/fesm2022/a11y.mjs +24 -24
  17. package/fesm2022/a11y.mjs.map +1 -1
  18. package/fesm2022/accordion.mjs +3 -3
  19. package/fesm2022/accordion.mjs.map +1 -1
  20. package/fesm2022/{activedescendant-key-manager-ca3e95bd.mjs → activedescendant-key-manager-BYiHZAZc.mjs} +3 -3
  21. package/fesm2022/{activedescendant-key-manager-ca3e95bd.mjs.map → activedescendant-key-manager-BYiHZAZc.mjs.map} +1 -1
  22. package/fesm2022/{array-88204b72.mjs → array-Hg8isvLj.mjs} +2 -2
  23. package/fesm2022/{array-88204b72.mjs.map → array-Hg8isvLj.mjs.map} +1 -1
  24. package/fesm2022/bidi.mjs +77 -3
  25. package/fesm2022/bidi.mjs.map +1 -1
  26. package/fesm2022/{breakpoints-observer-9d296976.mjs → breakpoints-observer-CsCzbYlX.mjs} +4 -4
  27. package/fesm2022/{breakpoints-observer-9d296976.mjs.map → breakpoints-observer-CsCzbYlX.mjs.map} +1 -1
  28. package/fesm2022/cdk.mjs +1 -1
  29. package/fesm2022/cdk.mjs.map +1 -1
  30. package/fesm2022/clipboard.mjs +1 -1
  31. package/fesm2022/clipboard.mjs.map +1 -1
  32. package/fesm2022/coercion/private.mjs +14 -2
  33. package/fesm2022/coercion/private.mjs.map +1 -1
  34. package/fesm2022/coercion.mjs +3 -3
  35. package/fesm2022/coercion.mjs.map +1 -1
  36. package/fesm2022/collections.mjs +5 -5
  37. package/fesm2022/{css-pixel-value-5ab12b77.mjs → css-pixel-value-C1yoKJ7R.mjs} +2 -2
  38. package/fesm2022/{css-pixel-value-5ab12b77.mjs.map → css-pixel-value-C1yoKJ7R.mjs.map} +1 -1
  39. package/fesm2022/{data-source-a3a3a257.mjs → data-source-CL6Fasig.mjs} +2 -2
  40. package/fesm2022/{data-source-a3a3a257.mjs.map → data-source-CL6Fasig.mjs.map} +1 -1
  41. package/fesm2022/dialog.mjs +38 -38
  42. package/fesm2022/dialog.mjs.map +1 -1
  43. package/fesm2022/{directionality-25132624.mjs → directionality-6lVHj23y.mjs} +2 -2
  44. package/fesm2022/{directionality-25132624.mjs.map → directionality-6lVHj23y.mjs.map} +1 -1
  45. package/fesm2022/{dispose-view-repeater-strategy-0bf96031.mjs → dispose-view-repeater-strategy-BLw1RSwm.mjs} +3 -3
  46. package/fesm2022/{dispose-view-repeater-strategy-0bf96031.mjs.map → dispose-view-repeater-strategy-BLw1RSwm.mjs.map} +1 -1
  47. package/fesm2022/drag-drop.mjs +17 -17
  48. package/fesm2022/drag-drop.mjs.map +1 -1
  49. package/fesm2022/{element-bed495ef.mjs → element-CpqV8p-X.mjs} +2 -2
  50. package/fesm2022/{element-bed495ef.mjs.map → element-CpqV8p-X.mjs.map} +1 -1
  51. package/fesm2022/{fake-event-detection-61bf2988.mjs → fake-event-detection-D0_6qVp2.mjs} +2 -2
  52. package/fesm2022/{fake-event-detection-61bf2988.mjs.map → fake-event-detection-D0_6qVp2.mjs.map} +1 -1
  53. package/fesm2022/{focus-key-manager-f4cf48e1.mjs → focus-key-manager-DgyxYbV2.mjs} +3 -3
  54. package/fesm2022/{focus-key-manager-f4cf48e1.mjs.map → focus-key-manager-DgyxYbV2.mjs.map} +1 -1
  55. package/fesm2022/{focus-monitor-4af46fa6.mjs → focus-monitor-BZnK-7fT.mjs} +9 -9
  56. package/fesm2022/{focus-monitor-4af46fa6.mjs.map → focus-monitor-BZnK-7fT.mjs.map} +1 -1
  57. package/fesm2022/{id-generator-dd03740e.mjs → id-generator-B33AfkWd.mjs} +2 -2
  58. package/fesm2022/{id-generator-dd03740e.mjs.map → id-generator-B33AfkWd.mjs.map} +1 -1
  59. package/fesm2022/{keycodes-fbdb6e67.mjs → keycodes-DPWmI2Ix.mjs} +2 -2
  60. package/fesm2022/{keycodes-fbdb6e67.mjs.map → keycodes-DPWmI2Ix.mjs.map} +1 -1
  61. package/fesm2022/keycodes.mjs +14 -2
  62. package/fesm2022/keycodes.mjs.map +1 -1
  63. package/fesm2022/layout.mjs +3 -3
  64. package/fesm2022/layout.mjs.map +1 -1
  65. package/fesm2022/{list-key-manager-0ce9d5be.mjs → list-key-manager-CYBoL_nN.mjs} +5 -5
  66. package/fesm2022/{list-key-manager-0ce9d5be.mjs.map → list-key-manager-CYBoL_nN.mjs.map} +1 -1
  67. package/fesm2022/listbox.mjs +11 -11
  68. package/fesm2022/listbox.mjs.map +1 -1
  69. package/fesm2022/menu.mjs +26 -26
  70. package/fesm2022/menu.mjs.map +1 -1
  71. package/fesm2022/observers/private.mjs.map +1 -1
  72. package/fesm2022/observers.mjs +209 -5
  73. package/fesm2022/observers.mjs.map +1 -1
  74. package/fesm2022/{overlay-module-a2bddb9f.mjs → overlay-module-UgjfuiDh.mjs} +19 -19
  75. package/fesm2022/{overlay-module-a2bddb9f.mjs.map → overlay-module-UgjfuiDh.mjs.map} +1 -1
  76. package/fesm2022/overlay.mjs +20 -20
  77. package/fesm2022/overlay.mjs.map +1 -1
  78. package/fesm2022/{passive-listeners-1189a3bc.mjs → passive-listeners-ZmZRMx8D.mjs} +2 -2
  79. package/fesm2022/{passive-listeners-1189a3bc.mjs.map → passive-listeners-ZmZRMx8D.mjs.map} +1 -1
  80. package/fesm2022/{platform-3b280dd2.mjs → platform-BInyKIh1.mjs} +2 -2
  81. package/fesm2022/{platform-3b280dd2.mjs.map → platform-BInyKIh1.mjs.map} +1 -1
  82. package/fesm2022/platform.mjs +5 -5
  83. package/fesm2022/platform.mjs.map +1 -1
  84. package/fesm2022/portal.mjs +614 -3
  85. package/fesm2022/portal.mjs.map +1 -1
  86. package/fesm2022/private.mjs +18 -3
  87. package/fesm2022/private.mjs.map +1 -1
  88. package/fesm2022/{recycle-view-repeater-strategy-7fe34ce5.mjs → recycle-view-repeater-strategy-Ce0p4WhD.mjs} +4 -4
  89. package/fesm2022/{recycle-view-repeater-strategy-7fe34ce5.mjs.map → recycle-view-repeater-strategy-Ce0p4WhD.mjs.map} +1 -1
  90. package/fesm2022/{scrolling-4b9e82b7.mjs → scrolling-BXVcIfjZ.mjs} +2 -2
  91. package/fesm2022/{scrolling-4b9e82b7.mjs.map → scrolling-BXVcIfjZ.mjs.map} +1 -1
  92. package/fesm2022/scrolling.mjs +1463 -12
  93. package/fesm2022/scrolling.mjs.map +1 -1
  94. package/fesm2022/{selection-model-7800ff2c.mjs → selection-model-88BErm4w.mjs} +2 -2
  95. package/fesm2022/{selection-model-7800ff2c.mjs.map → selection-model-88BErm4w.mjs.map} +1 -1
  96. package/fesm2022/{shadow-dom-09da63d7.mjs → shadow-dom-DFvX9W95.mjs} +2 -2
  97. package/fesm2022/{shadow-dom-09da63d7.mjs.map → shadow-dom-DFvX9W95.mjs.map} +1 -1
  98. package/fesm2022/stepper.mjs +10 -10
  99. package/fesm2022/stepper.mjs.map +1 -1
  100. package/fesm2022/{style-loader-f70e1cd6.mjs → style-loader-DpEDdstc.mjs} +2 -2
  101. package/fesm2022/{style-loader-f70e1cd6.mjs.map → style-loader-DpEDdstc.mjs.map} +1 -1
  102. package/fesm2022/table.mjs +13 -13
  103. package/fesm2022/table.mjs.map +1 -1
  104. package/fesm2022/{test-environment-75e095b5.mjs → test-environment-BgaaXvCA.mjs} +2 -2
  105. package/fesm2022/{test-environment-75e095b5.mjs.map → test-environment-BgaaXvCA.mjs.map} +1 -1
  106. package/fesm2022/testing/selenium-webdriver.mjs +1 -1
  107. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  108. package/fesm2022/testing/testbed.mjs +2 -2
  109. package/fesm2022/testing/testbed.mjs.map +1 -1
  110. package/fesm2022/testing.mjs +697 -2
  111. package/fesm2022/testing.mjs.map +1 -1
  112. package/fesm2022/text-field.mjs +6 -6
  113. package/fesm2022/text-field.mjs.map +1 -1
  114. package/fesm2022/{tree-key-manager-fb779925.mjs → tree-key-manager-DIhQ-v4R.mjs} +5 -5
  115. package/fesm2022/{tree-key-manager-fb779925.mjs.map → tree-key-manager-DIhQ-v4R.mjs.map} +1 -1
  116. package/fesm2022/tree.mjs +8 -8
  117. package/fesm2022/tree.mjs.map +1 -1
  118. package/fesm2022/{typeahead-5b1c5e41.mjs → typeahead-BAa3HZoh.mjs} +3 -3
  119. package/fesm2022/{typeahead-5b1c5e41.mjs.map → typeahead-BAa3HZoh.mjs.map} +1 -1
  120. package/fesm2022/{unique-selection-dispatcher-95d71775.mjs → unique-selection-dispatcher-SqPM2COI.mjs} +2 -2
  121. package/fesm2022/{unique-selection-dispatcher-95d71775.mjs.map → unique-selection-dispatcher-SqPM2COI.mjs.map} +1 -1
  122. package/{focus-key-manager.d-808a8cfc.d.ts → focus-key-manager.d-DCiEwxN7.d.ts} +4 -4
  123. package/{focus-monitor.d-463f4526.d.ts → focus-monitor.d-BBkiOKUH.d.ts} +2 -2
  124. package/{harness-environment.d-ccca6bee.d.ts → harness-environment.d-ByFLvxZh.d.ts} +2 -2
  125. package/{list-key-manager.d-6b8e8454.d.ts → list-key-manager.d-CylnKWfo.d.ts} +2 -2
  126. package/listbox/index.d.ts +3 -3
  127. package/menu/index.d.ts +12 -12
  128. package/{number-property.d-1067cb21.d.ts → number-property.d-BzBQchZ2.d.ts} +2 -2
  129. package/observers/index.d.ts +84 -4
  130. package/overlay/_index.scss +4 -1
  131. package/overlay/index.d.ts +12 -13
  132. package/{overlay-module.d-bb9fd227.d.ts → overlay-module.d-24bhgNtF.d.ts} +8 -8
  133. package/overlay-prebuilt.css +1 -1
  134. package/package.json +1 -1
  135. package/platform/index.d.ts +1 -1
  136. package/{platform.d-54a48c5c.d.ts → platform.d-cnFZCLss.d.ts} +1 -1
  137. package/portal/index.d.ts +3 -3
  138. package/{portal-directives.d-7048496c.d.ts → portal-directives.d-D9c4J36c.d.ts} +2 -2
  139. package/private/index.d.ts +1 -1
  140. package/schematics/ng-add/index.js +1 -1
  141. package/scrolling/index.d.ts +62 -7
  142. package/{scrolling-module.d-a309d6c8.d.ts → scrolling-module.d-CuNwYGVM.d.ts} +6 -6
  143. package/{selection-model.d-8f93f170.d.ts → selection-model.d-CHuTS0tw.d.ts} +2 -2
  144. package/stepper/index.d.ts +5 -5
  145. package/{style-loader.d-a4916e34.d.ts → style-loader.d-DbvWk0ty.d.ts} +1 -1
  146. package/table/index.d.ts +6 -7
  147. package/testing/index.d.ts +1 -1
  148. package/testing/selenium-webdriver/index.d.ts +1 -1
  149. package/testing/testbed/index.d.ts +1 -1
  150. package/text-field/index.d.ts +1 -1
  151. package/text-field-prebuilt.css +1 -1
  152. package/tree/index.d.ts +4 -4
  153. package/{tree-key-manager-strategy.d-e1a4bb7c.d.ts → tree-key-manager-strategy.d-DipnXoCr.d.ts} +1 -1
  154. package/{unique-selection-dispatcher.d-49e3cd5f.d.ts → unique-selection-dispatcher.d-BgWACqWn.d.ts} +2 -2
  155. package/{view-repeater.d-bf5e36f0.d.ts → view-repeater.d-CJ9e48MX.d.ts} +3 -3
  156. package/fesm2022/bidi-module-93941905.mjs +0 -77
  157. package/fesm2022/bidi-module-93941905.mjs.map +0 -1
  158. package/fesm2022/modifiers-68a3bc3a.mjs +0 -13
  159. package/fesm2022/modifiers-68a3bc3a.mjs.map +0 -1
  160. package/fesm2022/observable-36bb5527.mjs +0 -15
  161. package/fesm2022/observable-36bb5527.mjs.map +0 -1
  162. package/fesm2022/observe-content-85983868.mjs +0 -210
  163. package/fesm2022/observe-content-85983868.mjs.map +0 -1
  164. package/fesm2022/portal-directives-4da94e82.mjs +0 -615
  165. package/fesm2022/portal-directives-4da94e82.mjs.map +0 -1
  166. package/fesm2022/scrolling-module-2ed090a6.mjs +0 -1463
  167. package/fesm2022/scrolling-module-2ed090a6.mjs.map +0 -1
  168. package/fesm2022/text-filtering-682c2e05.mjs +0 -698
  169. package/fesm2022/text-filtering-682c2e05.mjs.map +0 -1
  170. package/fesm2022/visually-hidden-912d0ccc.mjs +0 -18
  171. package/fesm2022/visually-hidden-912d0ccc.mjs.map +0 -1
  172. package/observe-content.d-406532a1.d.ts +0 -84
  173. package/viewport-ruler.d-5b507354.d.ts +0 -58
@@ -1,4 +1,4 @@
1
- export { A as AsyncFactoryFn, b as AsyncOptionPredicate, a as AsyncPredicate, B as BaseHarnessFilters, C as ComponentHarness, f as ComponentHarnessConstructor, e as ContentContainerComponentHarness, k as ElementDimensions, E as EventData, h as HarnessEnvironment, c as HarnessLoader, g as HarnessPredicate, H as HarnessQuery, d as LocatorFactory, L as LocatorFnResult, M as ModifierKeys, i as TestElement, T as TestKey, j as TextOptions } from '../harness-environment.d-ccca6bee.js';
1
+ export { AsyncFactoryFn, AsyncOptionPredicate, AsyncPredicate, BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, ContentContainerComponentHarness, ElementDimensions, EventData, HarnessEnvironment, HarnessLoader, HarnessPredicate, HarnessQuery, LocatorFactory, LocatorFnResult, ModifierKeys, TestElement, TestKey, TextOptions } from '../harness-environment.d-ByFLvxZh.js';
2
2
 
3
3
  /**
4
4
  * Returns an error which reports that no keys have been specified.
@@ -1,5 +1,5 @@
1
1
  import * as webdriver from 'selenium-webdriver';
2
- import { i as TestElement, M as ModifierKeys, T as TestKey, j as TextOptions, k as ElementDimensions, E as EventData, h as HarnessEnvironment, c as HarnessLoader } from '../../harness-environment.d-ccca6bee.js';
2
+ import { TestElement, ModifierKeys, TestKey, TextOptions, ElementDimensions, EventData, HarnessEnvironment, HarnessLoader } from '../../harness-environment.d-ByFLvxZh.js';
3
3
 
4
4
  /** A `TestElement` implementation for WebDriver. */
5
5
  declare class SeleniumWebDriverElement implements TestElement {
@@ -1,4 +1,4 @@
1
- import { h as HarnessEnvironment, c as HarnessLoader, i as TestElement, C as ComponentHarness, f as ComponentHarnessConstructor, M as ModifierKeys, T as TestKey, j as TextOptions, k as ElementDimensions, E as EventData } from '../../harness-environment.d-ccca6bee.js';
1
+ import { HarnessEnvironment, HarnessLoader, TestElement, ComponentHarness, ComponentHarnessConstructor, ModifierKeys, TestKey, TextOptions, ElementDimensions, EventData } from '../../harness-environment.d-ByFLvxZh.js';
2
2
  import { ComponentFixture } from '@angular/core/testing';
3
3
 
4
4
  /** Options to configure the environment. */
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnDestroy, ElementRef, OnInit, EventEmitter, AfterViewInit, DoCheck } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
- import { N as NumberInput } from '../number-property.d-1067cb21.js';
4
+ import { NumberInput } from '../number-property.d-BzBQchZ2.js';
5
5
 
6
6
  /** An event that is emitted when the autofill state of an input changes. */
7
7
  type AutofillEvent = {
@@ -1 +1 @@
1
- textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}
1
+ textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}
package/tree/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Observable, BehaviorSubject, Subject } from 'rxjs';
2
- import { S as SelectionModel } from '../selection-model.d-8f93f170.js';
2
+ import { SelectionModel } from '../selection-model.d-CHuTS0tw.js';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, ViewContainerRef, TemplateRef, AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy, OnInit, TrackByFunction, QueryList, IterableDiffer, ElementRef, EventEmitter, IterableDiffers } from '@angular/core';
5
- import { a as TreeKeyManagerStrategy, T as TreeKeyManagerItem } from '../tree-key-manager-strategy.d-e1a4bb7c.js';
6
- import { C as CollectionViewer, D as DataSource } from '../data-source.d-7eda4d9a.js';
4
+ import { ViewContainerRef, InjectionToken, TemplateRef, OnDestroy, OnInit, ElementRef, AfterContentChecked, AfterContentInit, AfterViewInit, TrackByFunction, QueryList, IterableDiffer, EventEmitter, IterableDiffers } from '@angular/core';
5
+ import { TreeKeyManagerItem, TreeKeyManagerStrategy } from '../tree-key-manager-strategy.d-DipnXoCr.js';
6
+ import { CollectionViewer, DataSource } from '../data-source.d-DAIyaEMO.js';
7
7
 
8
8
  /**
9
9
  * Tree control interface. User can implement TreeControl to expand/collapse dataNodes in the tree.
@@ -113,4 +113,4 @@ interface TreeKeyManagerStrategy<T extends TreeKeyManagerItem> {
113
113
  }
114
114
  type TreeKeyManagerFactory<T extends TreeKeyManagerItem> = (items: Observable<T[]> | QueryList<T> | T[], options: TreeKeyManagerOptions<T>) => TreeKeyManagerStrategy<T>;
115
115
 
116
- export type { TreeKeyManagerItem as T, TreeKeyManagerStrategy as a, TreeKeyManagerFactory as b, TreeKeyManagerOptions as c };
116
+ export type { TreeKeyManagerFactory, TreeKeyManagerItem, TreeKeyManagerOptions, TreeKeyManagerStrategy };
@@ -29,5 +29,5 @@ declare class UniqueSelectionDispatcher implements OnDestroy {
29
29
  static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
30
30
  }
31
31
 
32
- export { UniqueSelectionDispatcher as U };
33
- export type { UniqueSelectionDispatcherListener as a };
32
+ export { UniqueSelectionDispatcher };
33
+ export type { UniqueSelectionDispatcherListener };
@@ -1,4 +1,4 @@
1
- import { TemplateRef, IterableChangeRecord, IterableChanges, ViewContainerRef, InjectionToken } from '@angular/core';
1
+ import { IterableChanges, ViewContainerRef, IterableChangeRecord, TemplateRef, InjectionToken } from '@angular/core';
2
2
 
3
3
  /**
4
4
  * The context for an embedded view in the repeater's view container.
@@ -85,5 +85,5 @@ interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
85
85
  */
86
86
  declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
87
87
 
88
- export { _ViewRepeaterOperation as f, _VIEW_REPEATER_STRATEGY as h };
89
- export type { _ViewRepeaterItemContext as _, _ViewRepeater as a, _ViewRepeaterItemContextFactory as b, _ViewRepeaterItemValueResolver as c, _ViewRepeaterItemChanged as d, _ViewRepeaterItemInsertArgs as e, _ViewRepeaterItemChange as g };
88
+ export { _VIEW_REPEATER_STRATEGY, _ViewRepeaterOperation };
89
+ export type { _ViewRepeater, _ViewRepeaterItemChange, _ViewRepeaterItemChanged, _ViewRepeaterItemContext, _ViewRepeaterItemContextFactory, _ViewRepeaterItemInsertArgs, _ViewRepeaterItemValueResolver };
@@ -1,77 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, signal, Directive, Output, Input, NgModule } from '@angular/core';
3
- import { _ as _resolveDirectionality, D as Directionality } from './directionality-25132624.mjs';
4
-
5
- /**
6
- * Directive to listen for changes of direction of part of the DOM.
7
- *
8
- * Provides itself as Directionality such that descendant directives only need to ever inject
9
- * Directionality to get the closest direction.
10
- */
11
- class Dir {
12
- /** Whether the `value` has been set to its initial value. */
13
- _isInitialized = false;
14
- /** Direction as passed in by the consumer. */
15
- _rawDir;
16
- /** Event emitted when the direction changes. */
17
- change = new EventEmitter();
18
- /** @docs-private */
19
- get dir() {
20
- return this.valueSignal();
21
- }
22
- set dir(value) {
23
- const previousValue = this.valueSignal();
24
- // Note: `_resolveDirectionality` resolves the language based on the browser's language,
25
- // whereas the browser does it based on the content of the element. Since doing so based
26
- // on the content can be expensive, for now we're doing the simpler matching.
27
- this.valueSignal.set(_resolveDirectionality(value));
28
- this._rawDir = value;
29
- if (previousValue !== this.valueSignal() && this._isInitialized) {
30
- this.change.emit(this.valueSignal());
31
- }
32
- }
33
- /** Current layout direction of the element. */
34
- get value() {
35
- return this.dir;
36
- }
37
- valueSignal = signal('ltr');
38
- /** Initialize once default value has been set. */
39
- ngAfterContentInit() {
40
- this._isInitialized = true;
41
- }
42
- ngOnDestroy() {
43
- this.change.complete();
44
- }
45
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Dir, deps: [], target: i0.ɵɵFactoryTarget.Directive });
46
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: Dir, isStandalone: true, selector: "[dir]", inputs: { dir: "dir" }, outputs: { change: "dirChange" }, host: { properties: { "attr.dir": "_rawDir" } }, providers: [{ provide: Directionality, useExisting: Dir }], exportAs: ["dir"], ngImport: i0 });
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Dir, decorators: [{
49
- type: Directive,
50
- args: [{
51
- selector: '[dir]',
52
- providers: [{ provide: Directionality, useExisting: Dir }],
53
- host: { '[attr.dir]': '_rawDir' },
54
- exportAs: 'dir',
55
- }]
56
- }], propDecorators: { change: [{
57
- type: Output,
58
- args: ['dirChange']
59
- }], dir: [{
60
- type: Input
61
- }] } });
62
-
63
- class BidiModule {
64
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: BidiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
65
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: BidiModule, imports: [Dir], exports: [Dir] });
66
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: BidiModule });
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: BidiModule, decorators: [{
69
- type: NgModule,
70
- args: [{
71
- imports: [Dir],
72
- exports: [Dir],
73
- }]
74
- }] });
75
-
76
- export { BidiModule as B, Dir as D };
77
- //# sourceMappingURL=bidi-module-93941905.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bidi-module-93941905.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/bidi/dir.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/bidi/bidi-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 {\n AfterContentInit,\n Directive,\n EventEmitter,\n Input,\n OnDestroy,\n Output,\n signal,\n} from '@angular/core';\n\nimport {Direction, Directionality, _resolveDirectionality} from './directionality';\n\n/**\n * Directive to listen for changes of direction of part of the DOM.\n *\n * Provides itself as Directionality such that descendant directives only need to ever inject\n * Directionality to get the closest direction.\n */\n@Directive({\n selector: '[dir]',\n providers: [{provide: Directionality, useExisting: Dir}],\n host: {'[attr.dir]': '_rawDir'},\n exportAs: 'dir',\n})\nexport class Dir implements Directionality, AfterContentInit, OnDestroy {\n /** Whether the `value` has been set to its initial value. */\n private _isInitialized: boolean = false;\n\n /** Direction as passed in by the consumer. */\n _rawDir: string;\n\n /** Event emitted when the direction changes. */\n @Output('dirChange') readonly change = new EventEmitter<Direction>();\n\n /** @docs-private */\n @Input()\n get dir(): Direction {\n return this.valueSignal();\n }\n set dir(value: Direction | 'auto') {\n const previousValue = this.valueSignal();\n\n // Note: `_resolveDirectionality` resolves the language based on the browser's language,\n // whereas the browser does it based on the content of the element. Since doing so based\n // on the content can be expensive, for now we're doing the simpler matching.\n this.valueSignal.set(_resolveDirectionality(value));\n this._rawDir = value;\n\n if (previousValue !== this.valueSignal() && this._isInitialized) {\n this.change.emit(this.valueSignal());\n }\n }\n\n /** Current layout direction of the element. */\n get value(): Direction {\n return this.dir;\n }\n\n readonly valueSignal = signal<Direction>('ltr');\n\n /** Initialize once default value has been set. */\n ngAfterContentInit() {\n this._isInitialized = true;\n }\n\n ngOnDestroy() {\n this.change.complete();\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 {NgModule} from '@angular/core';\nimport {Dir} from './dir';\n\n@NgModule({\n imports: [Dir],\n exports: [Dir],\n})\nexport class BidiModule {}\n"],"names":[],"mappings":";;;;AAoBA;;;;;AAKG;MAOU,GAAG,CAAA;;IAEN,cAAc,GAAY,KAAK,CAAA;;AAGvC,IAAA,OAAO,CAAA;;AAGuB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AA,QAAA,EAAA,CAAA,KAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;kGAI7C,GAAG,EAAA,UAAA,EAAA,CAAA;kBANf,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,OAAO;oBACjB,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAK,GAAA,EAAC,CAAC;AACxD,oBAAA,IAAI,EAAE,EAAC,YAAY,EAAE,SAAS,EAAC;AAC/B,oBAAA,QAAQ,EAAE,KAAK;AAChB,iBAAA,CAAA;8BAS+B,MAAM,EAAA,CAAA;sBAAnC,MAAM;uBAAC,WAAW,CAAA;gBAIf,GAAG,EAAA,CAAA;sBADN,KAAK;;;MC5BK,UAAU,CAAA;8GAAV,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAV,UAAU,EAAA,OAAA,EAAA,CAHX,GAAG,CAAA,EAAA,OAAA,EAAA,CACH,GAAG,CAAA,EAAA,CAAA,CAAA;+GAEF,UAAU,EAAA,CAAA,CAAA;;kGAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,GAAG,CAAC;oBACd,OAAO,EAAE,CAAC,GAAG,CAAC;AACf,iBAAA,CAAA;;;;;"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Checks whether a modifier key is pressed.
3
- * @param event Event to be checked.
4
- */
5
- function hasModifierKey(event, ...modifiers) {
6
- if (modifiers.length) {
7
- return modifiers.some(modifier => event[modifier]);
8
- }
9
- return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;
10
- }
11
-
12
- export { hasModifierKey as h };
13
- //# sourceMappingURL=modifiers-68a3bc3a.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modifiers-68a3bc3a.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/keycodes/modifiers.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\nexport type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';\n\n/**\n * Checks whether a modifier key is pressed.\n * @param event Event to be checked.\n */\nexport function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean {\n if (modifiers.length) {\n return modifiers.some(modifier => event[modifier]);\n }\n\n return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;\n}\n"],"names":[],"mappings":"AAUA;;;AAGG;SACa,cAAc,CAAC,KAAoB,EAAE,GAAG,SAAwB,EAAA;AAC9E,IAAA,IAAI,SAAS,CAAC,MAAM,EAAE;AACpB,QAAA,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;KACpD;AAEA,IAAA,OAAO,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAA;AACzE;;;;"}
@@ -1,15 +0,0 @@
1
- import { isObservable, of } from 'rxjs';
2
-
3
- /**
4
- * Given either an Observable or non-Observable value, returns either the original
5
- * Observable, or wraps it in an Observable that emits the non-Observable value.
6
- */
7
- function coerceObservable(data) {
8
- if (!isObservable(data)) {
9
- return of(data);
10
- }
11
- return data;
12
- }
13
-
14
- export { coerceObservable as c };
15
- //# sourceMappingURL=observable-36bb5527.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"observable-36bb5527.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/coercion/private/observable.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 */\nimport {Observable, isObservable, of as observableOf} from 'rxjs';\n\n/**\n * Given either an Observable or non-Observable value, returns either the original\n * Observable, or wraps it in an Observable that emits the non-Observable value.\n */\nexport function coerceObservable<T>(data: T | Observable<T>): Observable<T> {\n if (!isObservable(data)) {\n return observableOf(data);\n }\n return data;\n}\n"],"names":["observableOf"],"mappings":";;AASA;;;AAGG;AACG,SAAU,gBAAgB,CAAI,IAAuB,EAAA;AACzD,IAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;AACvB,QAAA,OAAOA,EAAY,CAAC,IAAI,CAAC,CAAA;KAC3B;AACA,IAAA,OAAO,IAAI,CAAA;AACb;;;;"}
@@ -1,210 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, inject, NgZone, ElementRef, EventEmitter, booleanAttribute, Directive, Output, Input, NgModule } from '@angular/core';
3
- import { Observable, Subject } from 'rxjs';
4
- import { map, filter, debounceTime } from 'rxjs/operators';
5
- import { a as coerceNumberProperty, c as coerceElement } from './element-bed495ef.mjs';
6
-
7
- // Angular may add, remove, or edit comment nodes during change detection. We don't care about
8
- // these changes because they don't affect the user-preceived content, and worse it can cause
9
- // infinite change detection cycles where the change detection updates a comment, triggering the
10
- // MutationObserver, triggering another change detection and kicking the cycle off again.
11
- function shouldIgnoreRecord(record) {
12
- // Ignore changes to comment text.
13
- if (record.type === 'characterData' && record.target instanceof Comment) {
14
- return true;
15
- }
16
- // Ignore addition / removal of comments.
17
- if (record.type === 'childList') {
18
- for (let i = 0; i < record.addedNodes.length; i++) {
19
- if (!(record.addedNodes[i] instanceof Comment)) {
20
- return false;
21
- }
22
- }
23
- for (let i = 0; i < record.removedNodes.length; i++) {
24
- if (!(record.removedNodes[i] instanceof Comment)) {
25
- return false;
26
- }
27
- }
28
- return true;
29
- }
30
- // Observe everything else.
31
- return false;
32
- }
33
- /**
34
- * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
35
- * @docs-private
36
- */
37
- class MutationObserverFactory {
38
- create(callback) {
39
- return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
40
- }
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
42
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' });
43
- }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MutationObserverFactory, decorators: [{
45
- type: Injectable,
46
- args: [{ providedIn: 'root' }]
47
- }] });
48
- /** An injectable service that allows watching elements for changes to their content. */
49
- class ContentObserver {
50
- _mutationObserverFactory = inject(MutationObserverFactory);
51
- /** Keeps track of the existing MutationObservers so they can be reused. */
52
- _observedElements = new Map();
53
- _ngZone = inject(NgZone);
54
- constructor() { }
55
- ngOnDestroy() {
56
- this._observedElements.forEach((_, element) => this._cleanupObserver(element));
57
- }
58
- observe(elementOrRef) {
59
- const element = coerceElement(elementOrRef);
60
- return new Observable((observer) => {
61
- const stream = this._observeElement(element);
62
- const subscription = stream
63
- .pipe(map(records => records.filter(record => !shouldIgnoreRecord(record))), filter(records => !!records.length))
64
- .subscribe(records => {
65
- this._ngZone.run(() => {
66
- observer.next(records);
67
- });
68
- });
69
- return () => {
70
- subscription.unsubscribe();
71
- this._unobserveElement(element);
72
- };
73
- });
74
- }
75
- /**
76
- * Observes the given element by using the existing MutationObserver if available, or creating a
77
- * new one if not.
78
- */
79
- _observeElement(element) {
80
- return this._ngZone.runOutsideAngular(() => {
81
- if (!this._observedElements.has(element)) {
82
- const stream = new Subject();
83
- const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));
84
- if (observer) {
85
- observer.observe(element, {
86
- characterData: true,
87
- childList: true,
88
- subtree: true,
89
- });
90
- }
91
- this._observedElements.set(element, { observer, stream, count: 1 });
92
- }
93
- else {
94
- this._observedElements.get(element).count++;
95
- }
96
- return this._observedElements.get(element).stream;
97
- });
98
- }
99
- /**
100
- * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is
101
- * observing this element.
102
- */
103
- _unobserveElement(element) {
104
- if (this._observedElements.has(element)) {
105
- this._observedElements.get(element).count--;
106
- if (!this._observedElements.get(element).count) {
107
- this._cleanupObserver(element);
108
- }
109
- }
110
- }
111
- /** Clean up the underlying MutationObserver for the specified element. */
112
- _cleanupObserver(element) {
113
- if (this._observedElements.has(element)) {
114
- const { observer, stream } = this._observedElements.get(element);
115
- if (observer) {
116
- observer.disconnect();
117
- }
118
- stream.complete();
119
- this._observedElements.delete(element);
120
- }
121
- }
122
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ContentObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
123
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ContentObserver, providedIn: 'root' });
124
- }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ContentObserver, decorators: [{
126
- type: Injectable,
127
- args: [{ providedIn: 'root' }]
128
- }], ctorParameters: () => [] });
129
- /**
130
- * Directive that triggers a callback whenever the content of
131
- * its associated element has changed.
132
- */
133
- class CdkObserveContent {
134
- _contentObserver = inject(ContentObserver);
135
- _elementRef = inject(ElementRef);
136
- /** Event emitted for each change in the element's content. */
137
- event = new EventEmitter();
138
- /**
139
- * Whether observing content is disabled. This option can be used
140
- * to disconnect the underlying MutationObserver until it is needed.
141
- */
142
- get disabled() {
143
- return this._disabled;
144
- }
145
- set disabled(value) {
146
- this._disabled = value;
147
- this._disabled ? this._unsubscribe() : this._subscribe();
148
- }
149
- _disabled = false;
150
- /** Debounce interval for emitting the changes. */
151
- get debounce() {
152
- return this._debounce;
153
- }
154
- set debounce(value) {
155
- this._debounce = coerceNumberProperty(value);
156
- this._subscribe();
157
- }
158
- _debounce;
159
- _currentSubscription = null;
160
- constructor() { }
161
- ngAfterContentInit() {
162
- if (!this._currentSubscription && !this.disabled) {
163
- this._subscribe();
164
- }
165
- }
166
- ngOnDestroy() {
167
- this._unsubscribe();
168
- }
169
- _subscribe() {
170
- this._unsubscribe();
171
- const stream = this._contentObserver.observe(this._elementRef);
172
- this._currentSubscription = (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.event);
173
- }
174
- _unsubscribe() {
175
- this._currentSubscription?.unsubscribe();
176
- }
177
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkObserveContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
178
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkObserveContent, isStandalone: true, selector: "[cdkObserveContent]", inputs: { disabled: ["cdkObserveContentDisabled", "disabled", booleanAttribute], debounce: "debounce" }, outputs: { event: "cdkObserveContent" }, exportAs: ["cdkObserveContent"], ngImport: i0 });
179
- }
180
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkObserveContent, decorators: [{
181
- type: Directive,
182
- args: [{
183
- selector: '[cdkObserveContent]',
184
- exportAs: 'cdkObserveContent',
185
- }]
186
- }], ctorParameters: () => [], propDecorators: { event: [{
187
- type: Output,
188
- args: ['cdkObserveContent']
189
- }], disabled: [{
190
- type: Input,
191
- args: [{ alias: 'cdkObserveContentDisabled', transform: booleanAttribute }]
192
- }], debounce: [{
193
- type: Input
194
- }] } });
195
- class ObserversModule {
196
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ObserversModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
197
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: ObserversModule, imports: [CdkObserveContent], exports: [CdkObserveContent] });
198
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ObserversModule, providers: [MutationObserverFactory] });
199
- }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ObserversModule, decorators: [{
201
- type: NgModule,
202
- args: [{
203
- imports: [CdkObserveContent],
204
- exports: [CdkObserveContent],
205
- providers: [MutationObserverFactory],
206
- }]
207
- }] });
208
-
209
- export { ContentObserver as C, MutationObserverFactory as M, ObserversModule as O, CdkObserveContent as a };
210
- //# sourceMappingURL=observe-content-85983868.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"observe-content-85983868.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/observers/observe-content.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 {NumberInput, coerceElement, coerceNumberProperty} from '../coercion';\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Injectable,\n Input,\n NgModule,\n NgZone,\n OnDestroy,\n Output,\n booleanAttribute,\n inject,\n} from '@angular/core';\nimport {Observable, Observer, Subject, Subscription} from 'rxjs';\nimport {debounceTime, filter, map} from 'rxjs/operators';\n\n// Angular may add, remove, or edit comment nodes during change detection. We don't care about\n// these changes because they don't affect the user-preceived content, and worse it can cause\n// infinite change detection cycles where the change detection updates a comment, triggering the\n// MutationObserver, triggering another change detection and kicking the cycle off again.\nfunction shouldIgnoreRecord(record: MutationRecord) {\n // Ignore changes to comment text.\n if (record.type === 'characterData' && record.target instanceof Comment) {\n return true;\n }\n // Ignore addition / removal of comments.\n if (record.type === 'childList') {\n for (let i = 0; i < record.addedNodes.length; i++) {\n if (!(record.addedNodes[i] instanceof Comment)) {\n return false;\n }\n }\n for (let i = 0; i < record.removedNodes.length; i++) {\n if (!(record.removedNodes[i] instanceof Comment)) {\n return false;\n }\n }\n return true;\n }\n // Observe everything else.\n return false;\n}\n\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\n@Injectable({providedIn: 'root'})\nexport class MutationObserverFactory {\n create(callback: MutationCallback): MutationObserver | null {\n return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n }\n}\n\n/** An injectable service that allows watching elements for changes to their content. */\n@Injectable({providedIn: 'root'})\nexport class ContentObserver implements OnDestroy {\n private _mutationObserverFactory = inject(MutationObserverFactory);\n\n /** Keeps track of the existing MutationObservers so they can be reused. */\n private _observedElements = new Map<\n Element,\n {\n observer: MutationObserver | null;\n readonly stream: Subject<MutationRecord[]>;\n count: number;\n }\n >();\n\n private _ngZone = inject(NgZone);\n\n constructor(...args: unknown[]);\n constructor() {}\n\n ngOnDestroy() {\n this._observedElements.forEach((_, element) => this._cleanupObserver(element));\n }\n\n /**\n * Observe content changes on an element.\n * @param element The element to observe for content changes.\n */\n observe(element: Element): Observable<MutationRecord[]>;\n\n /**\n * Observe content changes on an element.\n * @param element The element to observe for content changes.\n */\n observe(element: ElementRef<Element>): Observable<MutationRecord[]>;\n\n observe(elementOrRef: Element | ElementRef<Element>): Observable<MutationRecord[]> {\n const element = coerceElement(elementOrRef);\n\n return new Observable((observer: Observer<MutationRecord[]>) => {\n const stream = this._observeElement(element);\n const subscription = stream\n .pipe(\n map(records => records.filter(record => !shouldIgnoreRecord(record))),\n filter(records => !!records.length),\n )\n .subscribe(records => {\n this._ngZone.run(() => {\n observer.next(records);\n });\n });\n\n return () => {\n subscription.unsubscribe();\n this._unobserveElement(element);\n };\n });\n }\n\n /**\n * Observes the given element by using the existing MutationObserver if available, or creating a\n * new one if not.\n */\n private _observeElement(element: Element): Subject<MutationRecord[]> {\n return this._ngZone.runOutsideAngular(() => {\n if (!this._observedElements.has(element)) {\n const stream = new Subject<MutationRecord[]>();\n const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));\n if (observer) {\n observer.observe(element, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n }\n this._observedElements.set(element, {observer, stream, count: 1});\n } else {\n this._observedElements.get(element)!.count++;\n }\n return this._observedElements.get(element)!.stream;\n });\n }\n\n /**\n * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is\n * observing this element.\n */\n private _unobserveElement(element: Element) {\n if (this._observedElements.has(element)) {\n this._observedElements.get(element)!.count--;\n if (!this._observedElements.get(element)!.count) {\n this._cleanupObserver(element);\n }\n }\n }\n\n /** Clean up the underlying MutationObserver for the specified element. */\n private _cleanupObserver(element: Element) {\n if (this._observedElements.has(element)) {\n const {observer, stream} = this._observedElements.get(element)!;\n if (observer) {\n observer.disconnect();\n }\n stream.complete();\n this._observedElements.delete(element);\n }\n }\n}\n\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\n@Directive({\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent',\n})\nexport class CdkObserveContent implements AfterContentInit, OnDestroy {\n private _contentObserver = inject(ContentObserver);\n private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Event emitted for each change in the element's content. */\n @Output('cdkObserveContent') readonly event = new EventEmitter<MutationRecord[]>();\n\n /**\n * Whether observing content is disabled. This option can be used\n * to disconnect the underlying MutationObserver until it is needed.\n */\n @Input({alias: 'cdkObserveContentDisabled', transform: booleanAttribute})\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: boolean) {\n this._disabled = value;\n this._disabled ? this._unsubscribe() : this._subscribe();\n }\n private _disabled = false;\n\n /** Debounce interval for emitting the changes. */\n @Input()\n get debounce(): number {\n return this._debounce;\n }\n set debounce(value: NumberInput) {\n this._debounce = coerceNumberProperty(value);\n this._subscribe();\n }\n private _debounce: number;\n\n private _currentSubscription: Subscription | null = null;\n\n constructor(...args: unknown[]);\n constructor() {}\n\n ngAfterContentInit() {\n if (!this._currentSubscription && !this.disabled) {\n this._subscribe();\n }\n }\n\n ngOnDestroy() {\n this._unsubscribe();\n }\n\n private _subscribe() {\n this._unsubscribe();\n const stream = this._contentObserver.observe(this._elementRef);\n\n this._currentSubscription = (\n this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream\n ).subscribe(this.event);\n }\n\n private _unsubscribe() {\n this._currentSubscription?.unsubscribe();\n }\n}\n\n@NgModule({\n imports: [CdkObserveContent],\n exports: [CdkObserveContent],\n providers: [MutationObserverFactory],\n})\nexport class ObserversModule {}\n"],"names":[],"mappings":";;;;;;AA0BA;AACA;AACA;AACA;AACA,SAAS,kBAAkB,CAAC,MAAsB,EAAA;;AAEhD,IAAA,IAAI,MAAM,CAAC,IAAI,KAAK,eAAe,IAAI,MAAM,CAAC,MAAM,YAAY,OAAO,EAAE;AACvE,QAAA,OAAO,IAAI,CAAA;KACb;;AAEA,IAAA,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,EAAE;AAC/B,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACjD,YAAA,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,OAAO,CAAC,EAAE;AAC9C,gBAAA,OAAO,KAAK,CAAA;aACd;SACF;AACA,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACnD,YAAA,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,OAAO,CAAC,EAAE;AAChD,gBAAA,OAAO,KAAK,CAAA;aACd;SACF;AACA,QAAA,OAAO,IAAI,CAAA;KACb;;AAEA,IAAA,OAAO,KAAK,CAAA;AACd,CAAA;AAEA;;;AAGG;MAEU,uBAAuB,CAAA;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