@angular/cdk 20.0.0-next.5 → 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 (203) hide show
  1. package/a11y/index.d.ts +11 -11
  2. package/{a11y-module.d-9287508d.d.ts → a11y-module.d-DrV0SO0k.d.ts} +4 -3
  3. package/a11y-prebuilt.css +1 -1
  4. package/accordion/index.d.ts +2 -2
  5. package/{activedescendant-key-manager.d-24783633.d.ts → activedescendant-key-manager.d-DSYvyoT0.d.ts} +3 -2
  6. package/bidi/index.d.ts +1 -1
  7. package/{bidi-module.d-e045bff7.d.ts → bidi-module.d-bsVYOt0R.d.ts} +2 -1
  8. package/clipboard/index.d.ts +3 -2
  9. package/coercion/index.d.ts +3 -2
  10. package/collections/index.d.ts +9 -8
  11. package/{data-source.d-cd31f292.d.ts → data-source.d-DAIyaEMO.d.ts} +2 -1
  12. package/dialog/index.d.ts +17 -16
  13. package/drag-drop/index.d.ts +8 -7
  14. package/fesm2022/{a11y-module-f780e811.mjs → a11y-module-tRUj0Pog.mjs} +32 -32
  15. package/fesm2022/a11y-module-tRUj0Pog.mjs.map +1 -0
  16. package/fesm2022/a11y.mjs +33 -33
  17. package/fesm2022/a11y.mjs.map +1 -1
  18. package/fesm2022/accordion.mjs +13 -13
  19. package/fesm2022/accordion.mjs.map +1 -1
  20. package/fesm2022/{activedescendant-key-manager-f0c079ca.mjs → activedescendant-key-manager-BYiHZAZc.mjs} +3 -3
  21. package/fesm2022/activedescendant-key-manager-BYiHZAZc.mjs.map +1 -0
  22. package/fesm2022/{array-6239d2f8.mjs → array-Hg8isvLj.mjs} +2 -2
  23. package/fesm2022/array-Hg8isvLj.mjs.map +1 -0
  24. package/fesm2022/bidi.mjs +77 -3
  25. package/fesm2022/bidi.mjs.map +1 -1
  26. package/fesm2022/{breakpoints-observer-af989fcc.mjs → breakpoints-observer-CsCzbYlX.mjs} +10 -10
  27. package/fesm2022/breakpoints-observer-CsCzbYlX.mjs.map +1 -0
  28. package/fesm2022/cdk.mjs +1 -1
  29. package/fesm2022/cdk.mjs.map +1 -1
  30. package/fesm2022/clipboard.mjs +11 -11
  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-5d0cae55.mjs → css-pixel-value-C1yoKJ7R.mjs} +2 -2
  38. package/fesm2022/css-pixel-value-C1yoKJ7R.mjs.map +1 -0
  39. package/fesm2022/{data-source-d79c6e09.mjs → data-source-CL6Fasig.mjs} +2 -2
  40. package/fesm2022/data-source-CL6Fasig.mjs.map +1 -0
  41. package/fesm2022/dialog.mjs +47 -47
  42. package/fesm2022/dialog.mjs.map +1 -1
  43. package/fesm2022/{directionality-d3343e21.mjs → directionality-6lVHj23y.mjs} +5 -5
  44. package/fesm2022/directionality-6lVHj23y.mjs.map +1 -0
  45. package/fesm2022/{dispose-view-repeater-strategy-4c6df00e.mjs → dispose-view-repeater-strategy-BLw1RSwm.mjs} +3 -3
  46. package/fesm2022/dispose-view-repeater-strategy-BLw1RSwm.mjs.map +1 -0
  47. package/fesm2022/drag-drop.mjs +47 -47
  48. package/fesm2022/drag-drop.mjs.map +1 -1
  49. package/fesm2022/{element-15999318.mjs → element-CpqV8p-X.mjs} +2 -2
  50. package/fesm2022/element-CpqV8p-X.mjs.map +1 -0
  51. package/fesm2022/{fake-event-detection-84590b88.mjs → fake-event-detection-D0_6qVp2.mjs} +2 -2
  52. package/fesm2022/fake-event-detection-D0_6qVp2.mjs.map +1 -0
  53. package/fesm2022/{focus-key-manager-ff488563.mjs → focus-key-manager-DgyxYbV2.mjs} +3 -3
  54. package/fesm2022/focus-key-manager-DgyxYbV2.mjs.map +1 -0
  55. package/fesm2022/{focus-monitor-3464a8c8.mjs → focus-monitor-BZnK-7fT.mjs} +18 -18
  56. package/fesm2022/focus-monitor-BZnK-7fT.mjs.map +1 -0
  57. package/fesm2022/{id-generator-c0f67d1b.mjs → id-generator-B33AfkWd.mjs} +5 -5
  58. package/fesm2022/id-generator-B33AfkWd.mjs.map +1 -0
  59. package/fesm2022/{keycodes-0e4398c6.mjs → keycodes-DPWmI2Ix.mjs} +2 -2
  60. package/fesm2022/keycodes-DPWmI2Ix.mjs.map +1 -0
  61. package/fesm2022/keycodes.mjs +14 -2
  62. package/fesm2022/keycodes.mjs.map +1 -1
  63. package/fesm2022/layout.mjs +7 -7
  64. package/fesm2022/layout.mjs.map +1 -1
  65. package/fesm2022/{list-key-manager-f9c3e90c.mjs → list-key-manager-CYBoL_nN.mjs} +5 -5
  66. package/fesm2022/list-key-manager-CYBoL_nN.mjs.map +1 -0
  67. package/fesm2022/listbox.mjs +21 -21
  68. package/fesm2022/listbox.mjs.map +1 -1
  69. package/fesm2022/menu.mjs +75 -75
  70. package/fesm2022/menu.mjs.map +1 -1
  71. package/fesm2022/observers/private.mjs +3 -3
  72. package/fesm2022/observers/private.mjs.map +1 -1
  73. package/fesm2022/observers.mjs +209 -5
  74. package/fesm2022/observers.mjs.map +1 -1
  75. package/fesm2022/{overlay-module-778cde6a.mjs → overlay-module-UgjfuiDh.mjs} +52 -52
  76. package/fesm2022/overlay-module-UgjfuiDh.mjs.map +1 -0
  77. package/fesm2022/overlay.mjs +23 -23
  78. package/fesm2022/overlay.mjs.map +1 -1
  79. package/fesm2022/{passive-listeners-93cf8be8.mjs → passive-listeners-ZmZRMx8D.mjs} +2 -2
  80. package/fesm2022/passive-listeners-ZmZRMx8D.mjs.map +1 -0
  81. package/fesm2022/{platform-fd50034d.mjs → platform-BInyKIh1.mjs} +5 -5
  82. package/fesm2022/platform-BInyKIh1.mjs.map +1 -0
  83. package/fesm2022/platform.mjs +9 -9
  84. package/fesm2022/platform.mjs.map +1 -1
  85. package/fesm2022/portal.mjs +614 -3
  86. package/fesm2022/portal.mjs.map +1 -1
  87. package/fesm2022/private.mjs +18 -3
  88. package/fesm2022/private.mjs.map +1 -1
  89. package/fesm2022/{recycle-view-repeater-strategy-0f32b0a8.mjs → recycle-view-repeater-strategy-Ce0p4WhD.mjs} +4 -4
  90. package/fesm2022/recycle-view-repeater-strategy-Ce0p4WhD.mjs.map +1 -0
  91. package/fesm2022/{scrolling-59340c46.mjs → scrolling-BXVcIfjZ.mjs} +2 -2
  92. package/fesm2022/scrolling-BXVcIfjZ.mjs.map +1 -0
  93. package/fesm2022/scrolling.mjs +1463 -12
  94. package/fesm2022/scrolling.mjs.map +1 -1
  95. package/fesm2022/{selection-model-4044ace7.mjs → selection-model-88BErm4w.mjs} +2 -2
  96. package/fesm2022/selection-model-88BErm4w.mjs.map +1 -0
  97. package/fesm2022/{shadow-dom-318658ae.mjs → shadow-dom-DFvX9W95.mjs} +2 -2
  98. package/fesm2022/shadow-dom-DFvX9W95.mjs.map +1 -0
  99. package/fesm2022/stepper.mjs +32 -32
  100. package/fesm2022/stepper.mjs.map +1 -1
  101. package/fesm2022/{style-loader-902ffada.mjs → style-loader-DpEDdstc.mjs} +5 -5
  102. package/fesm2022/style-loader-DpEDdstc.mjs.map +1 -0
  103. package/fesm2022/table.mjs +95 -92
  104. package/fesm2022/table.mjs.map +1 -1
  105. package/fesm2022/{test-environment-f6f8bc13.mjs → test-environment-BgaaXvCA.mjs} +2 -2
  106. package/fesm2022/test-environment-BgaaXvCA.mjs.map +1 -0
  107. package/fesm2022/testing/selenium-webdriver.mjs +1 -1
  108. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  109. package/fesm2022/testing/testbed.mjs +2 -2
  110. package/fesm2022/testing/testbed.mjs.map +1 -1
  111. package/fesm2022/testing.mjs +697 -2
  112. package/fesm2022/testing.mjs.map +1 -1
  113. package/fesm2022/text-field.mjs +21 -21
  114. package/fesm2022/text-field.mjs.map +1 -1
  115. package/fesm2022/{tree-key-manager-1212bcbe.mjs → tree-key-manager-DIhQ-v4R.mjs} +5 -5
  116. package/fesm2022/tree-key-manager-DIhQ-v4R.mjs.map +1 -0
  117. package/fesm2022/tree.mjs +33 -33
  118. package/fesm2022/tree.mjs.map +1 -1
  119. package/fesm2022/{typeahead-0113d27c.mjs → typeahead-BAa3HZoh.mjs} +3 -3
  120. package/fesm2022/typeahead-BAa3HZoh.mjs.map +1 -0
  121. package/fesm2022/{unique-selection-dispatcher-b23237b2.mjs → unique-selection-dispatcher-SqPM2COI.mjs} +5 -5
  122. package/fesm2022/unique-selection-dispatcher-SqPM2COI.mjs.map +1 -0
  123. package/{focus-key-manager.d-639d8a5d.d.ts → focus-key-manager.d-DCiEwxN7.d.ts} +4 -3
  124. package/{focus-monitor.d-b42086db.d.ts → focus-monitor.d-BBkiOKUH.d.ts} +2 -1
  125. package/{harness-environment.d-300a0fdc.d.ts → harness-environment.d-ByFLvxZh.d.ts} +2 -1
  126. package/keycodes/index.d.ts +2 -1
  127. package/layout/index.d.ts +2 -1
  128. package/{list-key-manager.d-6fe81cb7.d.ts → list-key-manager.d-CylnKWfo.d.ts} +2 -1
  129. package/listbox/index.d.ts +5 -4
  130. package/menu/index.d.ts +14 -13
  131. package/{number-property.d-5998850c.d.ts → number-property.d-BzBQchZ2.d.ts} +2 -1
  132. package/observers/index.d.ts +84 -4
  133. package/overlay/_index.scss +4 -1
  134. package/overlay/index.d.ts +13 -13
  135. package/{overlay-module.d-7674c06c.d.ts → overlay-module.d-24bhgNtF.d.ts} +8 -7
  136. package/overlay-prebuilt.css +1 -1
  137. package/package.json +1 -1
  138. package/platform/index.d.ts +1 -1
  139. package/{platform.d-4dc3e073.d.ts → platform.d-cnFZCLss.d.ts} +1 -1
  140. package/portal/index.d.ts +3 -3
  141. package/{portal-directives.d-cac5eb8d.d.ts → portal-directives.d-D9c4J36c.d.ts} +2 -1
  142. package/private/index.d.ts +1 -1
  143. package/schematics/ng-add/index.js +1 -1
  144. package/scrolling/index.d.ts +62 -7
  145. package/{scrolling-module.d-132f8fdb.d.ts → scrolling-module.d-CuNwYGVM.d.ts} +6 -5
  146. package/{selection-model.d-6137a548.d.ts → selection-model.d-CHuTS0tw.d.ts} +2 -1
  147. package/stepper/index.d.ts +7 -6
  148. package/{style-loader.d-972eab2d.d.ts → style-loader.d-DbvWk0ty.d.ts} +1 -1
  149. package/table/index.d.ts +8 -8
  150. package/testing/index.d.ts +3 -2
  151. package/testing/selenium-webdriver/index.d.ts +3 -2
  152. package/testing/testbed/index.d.ts +3 -2
  153. package/text-field/index.d.ts +3 -2
  154. package/text-field-prebuilt.css +1 -1
  155. package/tree/index.d.ts +6 -5
  156. package/{tree-key-manager-strategy.d-d824697d.d.ts → tree-key-manager-strategy.d-DipnXoCr.d.ts} +1 -1
  157. package/{unique-selection-dispatcher.d-c36427c5.d.ts → unique-selection-dispatcher.d-BgWACqWn.d.ts} +2 -1
  158. package/{view-repeater.d-8ca257d8.d.ts → view-repeater.d-CJ9e48MX.d.ts} +3 -2
  159. package/fesm2022/a11y-module-f780e811.mjs.map +0 -1
  160. package/fesm2022/activedescendant-key-manager-f0c079ca.mjs.map +0 -1
  161. package/fesm2022/array-6239d2f8.mjs.map +0 -1
  162. package/fesm2022/bidi-module-bd809f3d.mjs +0 -77
  163. package/fesm2022/bidi-module-bd809f3d.mjs.map +0 -1
  164. package/fesm2022/breakpoints-observer-af989fcc.mjs.map +0 -1
  165. package/fesm2022/css-pixel-value-5d0cae55.mjs.map +0 -1
  166. package/fesm2022/data-source-d79c6e09.mjs.map +0 -1
  167. package/fesm2022/directionality-d3343e21.mjs.map +0 -1
  168. package/fesm2022/dispose-view-repeater-strategy-4c6df00e.mjs.map +0 -1
  169. package/fesm2022/element-15999318.mjs.map +0 -1
  170. package/fesm2022/fake-event-detection-84590b88.mjs.map +0 -1
  171. package/fesm2022/focus-key-manager-ff488563.mjs.map +0 -1
  172. package/fesm2022/focus-monitor-3464a8c8.mjs.map +0 -1
  173. package/fesm2022/id-generator-c0f67d1b.mjs.map +0 -1
  174. package/fesm2022/keycodes-0e4398c6.mjs.map +0 -1
  175. package/fesm2022/list-key-manager-f9c3e90c.mjs.map +0 -1
  176. package/fesm2022/modifiers-3e8908bb.mjs +0 -13
  177. package/fesm2022/modifiers-3e8908bb.mjs.map +0 -1
  178. package/fesm2022/observable-3cba8a1c.mjs +0 -15
  179. package/fesm2022/observable-3cba8a1c.mjs.map +0 -1
  180. package/fesm2022/observe-content-f2aba0c9.mjs +0 -210
  181. package/fesm2022/observe-content-f2aba0c9.mjs.map +0 -1
  182. package/fesm2022/overlay-module-778cde6a.mjs.map +0 -1
  183. package/fesm2022/passive-listeners-93cf8be8.mjs.map +0 -1
  184. package/fesm2022/platform-fd50034d.mjs.map +0 -1
  185. package/fesm2022/portal-directives-26ab1686.mjs +0 -615
  186. package/fesm2022/portal-directives-26ab1686.mjs.map +0 -1
  187. package/fesm2022/recycle-view-repeater-strategy-0f32b0a8.mjs.map +0 -1
  188. package/fesm2022/scrolling-59340c46.mjs.map +0 -1
  189. package/fesm2022/scrolling-module-7394419e.mjs +0 -1463
  190. package/fesm2022/scrolling-module-7394419e.mjs.map +0 -1
  191. package/fesm2022/selection-model-4044ace7.mjs.map +0 -1
  192. package/fesm2022/shadow-dom-318658ae.mjs.map +0 -1
  193. package/fesm2022/style-loader-902ffada.mjs.map +0 -1
  194. package/fesm2022/test-environment-f6f8bc13.mjs.map +0 -1
  195. package/fesm2022/text-filtering-55cbd0d9.mjs +0 -698
  196. package/fesm2022/text-filtering-55cbd0d9.mjs.map +0 -1
  197. package/fesm2022/tree-key-manager-1212bcbe.mjs.map +0 -1
  198. package/fesm2022/typeahead-0113d27c.mjs.map +0 -1
  199. package/fesm2022/unique-selection-dispatcher-b23237b2.mjs.map +0 -1
  200. package/fesm2022/visually-hidden-cfa9d7fd.mjs +0 -18
  201. package/fesm2022/visually-hidden-cfa9d7fd.mjs.map +0 -1
  202. package/observe-content.d-8b3dea1d.d.ts +0 -84
  203. package/viewport-ruler.d-17d129ea.d.ts +0 -57
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
2
2
  import { inject, CSP_NONCE, Injectable, NgZone } from '@angular/core';
3
3
  import { Subject, combineLatest, concat, Observable } from 'rxjs';
4
4
  import { take, skip, debounceTime, map, startWith, takeUntil } from 'rxjs/operators';
5
- import { P as Platform } from './platform-fd50034d.mjs';
6
- import { c as coerceArray } from './array-6239d2f8.mjs';
5
+ import { Platform } from './platform-BInyKIh1.mjs';
6
+ import { coerceArray } from './array-Hg8isvLj.mjs';
7
7
 
8
8
  /** Global registry for all dynamically-created, injected media queries. */
9
9
  const mediaQueriesForWebkitCompatibility = new Set();
@@ -35,10 +35,10 @@ class MediaMatcher {
35
35
  }
36
36
  return this._matchMedia(query);
37
37
  }
38
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: MediaMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: MediaMatcher, providedIn: 'root' });
38
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MediaMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MediaMatcher, providedIn: 'root' });
40
40
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: MediaMatcher, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MediaMatcher, decorators: [{
42
42
  type: Injectable,
43
43
  args: [{ providedIn: 'root' }]
44
44
  }], ctorParameters: () => [] });
@@ -157,10 +157,10 @@ class BreakpointObserver {
157
157
  this._queries.set(query, output);
158
158
  return output;
159
159
  }
160
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: BreakpointObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
161
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: BreakpointObserver, providedIn: 'root' });
160
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: BreakpointObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
161
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: BreakpointObserver, providedIn: 'root' });
162
162
  }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: BreakpointObserver, decorators: [{
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: BreakpointObserver, decorators: [{
164
164
  type: Injectable,
165
165
  args: [{ providedIn: 'root' }]
166
166
  }], ctorParameters: () => [] });
@@ -175,5 +175,5 @@ function splitQueries(queries) {
175
175
  .map(query => query.trim());
176
176
  }
177
177
 
178
- export { BreakpointObserver as B, MediaMatcher as M };
179
- //# sourceMappingURL=breakpoints-observer-af989fcc.mjs.map
178
+ export { BreakpointObserver, MediaMatcher };
179
+ //# sourceMappingURL=breakpoints-observer-CsCzbYlX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints-observer-CsCzbYlX.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/layout/media-matcher.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/layout/breakpoints-observer.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 {Injectable, CSP_NONCE, inject} from '@angular/core';\nimport {Platform} from '../platform';\n\n/** Global registry for all dynamically-created, injected media queries. */\nconst mediaQueriesForWebkitCompatibility: Set<string> = new Set<string>();\n\n/** Style tag that holds all of the dynamically-created media queries. */\nlet mediaQueryStyleNode: HTMLStyleElement | undefined;\n\n/** A utility for calling matchMedia queries. */\n@Injectable({providedIn: 'root'})\nexport class MediaMatcher {\n private _platform = inject(Platform);\n private _nonce = inject(CSP_NONCE, {optional: true});\n\n /** The internal matchMedia method to return back a MediaQueryList like object. */\n private _matchMedia: (query: string) => MediaQueryList;\n\n constructor(...args: unknown[]);\n\n constructor() {\n this._matchMedia =\n this._platform.isBrowser && window.matchMedia\n ? // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window)\n : noopMatchMedia;\n }\n\n /**\n * Evaluates the given media query and returns the native MediaQueryList from which results\n * can be retrieved.\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n */\n matchMedia(query: string): MediaQueryList {\n if (this._platform.WEBKIT || this._platform.BLINK) {\n createEmptyStyleRule(query, this._nonce);\n }\n return this._matchMedia(query);\n }\n}\n\n/**\n * Creates an empty stylesheet that is used to work around browser inconsistencies related to\n * `matchMedia`. At the time of writing, it handles the following cases:\n * 1. On WebKit browsers, a media query has to have at least one rule in order for `matchMedia`\n * to fire. We work around it by declaring a dummy stylesheet with a `@media` declaration.\n * 2. In some cases Blink browsers will stop firing the `matchMedia` listener if none of the rules\n * inside the `@media` match existing elements on the page. We work around it by having one rule\n * targeting the `body`. See https://github.com/angular/components/issues/23546.\n */\nfunction createEmptyStyleRule(query: string, nonce: string | undefined | null) {\n if (mediaQueriesForWebkitCompatibility.has(query)) {\n return;\n }\n\n try {\n if (!mediaQueryStyleNode) {\n mediaQueryStyleNode = document.createElement('style');\n\n if (nonce) {\n mediaQueryStyleNode.setAttribute('nonce', nonce);\n }\n\n mediaQueryStyleNode.setAttribute('type', 'text/css');\n document.head!.appendChild(mediaQueryStyleNode);\n }\n\n if (mediaQueryStyleNode.sheet) {\n mediaQueryStyleNode.sheet.insertRule(`@media ${query} {body{ }}`, 0);\n mediaQueriesForWebkitCompatibility.add(query);\n }\n } catch (e) {\n console.error(e);\n }\n}\n\n/** No-op matchMedia replacement for non-browser platforms. */\nfunction noopMatchMedia(query: string): MediaQueryList {\n // Use `as any` here to avoid adding additional necessary properties for\n // the noop matcher.\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: () => {},\n removeListener: () => {},\n } as any;\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 {coerceArray} from '../coercion';\nimport {Injectable, NgZone, OnDestroy, inject} from '@angular/core';\nimport {combineLatest, concat, Observable, Observer, Subject} from 'rxjs';\nimport {debounceTime, map, skip, startWith, take, takeUntil} from 'rxjs/operators';\nimport {MediaMatcher} from './media-matcher';\n\n/** The current state of a layout breakpoint. */\nexport interface BreakpointState {\n /** Whether the breakpoint is currently matching. */\n matches: boolean;\n /**\n * A key boolean pair for each query provided to the observe method,\n * with its current matched state.\n */\n breakpoints: {\n [key: string]: boolean;\n };\n}\n\n/** The current state of a layout breakpoint. */\ninterface InternalBreakpointState {\n /** Whether the breakpoint is currently matching. */\n matches: boolean;\n /** The media query being to be matched */\n query: string;\n}\n\ninterface Query {\n observable: Observable<InternalBreakpointState>;\n mql: MediaQueryList;\n}\n\n/** Utility for checking the matching state of `@media` queries. */\n@Injectable({providedIn: 'root'})\nexport class BreakpointObserver implements OnDestroy {\n private _mediaMatcher = inject(MediaMatcher);\n private _zone = inject(NgZone);\n\n /** A map of all media queries currently being listened for. */\n private _queries = new Map<string, Query>();\n /** A subject for all other observables to takeUntil based on. */\n private readonly _destroySubject = new Subject<void>();\n\n constructor(...args: unknown[]);\n constructor() {}\n\n /** Completes the active subject, signalling to all other observables to complete. */\n ngOnDestroy() {\n this._destroySubject.next();\n this._destroySubject.complete();\n }\n\n /**\n * Whether one or more media queries match the current viewport size.\n * @param value One or more media queries to check.\n * @returns Whether any of the media queries match.\n */\n isMatched(value: string | readonly string[]): boolean {\n const queries = splitQueries(coerceArray(value));\n return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches);\n }\n\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param value One or more media queries to check.\n * @returns A stream of matches for the given queries.\n */\n observe(value: string | readonly string[]): Observable<BreakpointState> {\n const queries = splitQueries(coerceArray(value));\n const observables = queries.map(query => this._registerQuery(query).observable);\n\n let stateObservable = combineLatest(observables);\n // Emit the first state immediately, and then debounce the subsequent emissions.\n stateObservable = concat(\n stateObservable.pipe(take(1)),\n stateObservable.pipe(skip(1), debounceTime(0)),\n );\n return stateObservable.pipe(\n map(breakpointStates => {\n const response: BreakpointState = {\n matches: false,\n breakpoints: {},\n };\n breakpointStates.forEach(({matches, query}) => {\n response.matches = response.matches || matches;\n response.breakpoints[query] = matches;\n });\n return response;\n }),\n );\n }\n\n /** Registers a specific query to be listened for. */\n private _registerQuery(query: string): Query {\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query)!;\n }\n\n const mql = this._mediaMatcher.matchMedia(query);\n\n // Create callback for match changes and add it is as a listener.\n const queryObservable = new Observable((observer: Observer<MediaQueryListEvent>) => {\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n const handler = (e: MediaQueryListEvent): void => this._zone.run(() => observer.next(e));\n mql.addListener(handler);\n\n return () => {\n mql.removeListener(handler);\n };\n }).pipe(\n startWith(mql),\n map(({matches}) => ({query, matches})),\n takeUntil(this._destroySubject),\n );\n\n // Add the MediaQueryList to the set of queries.\n const output = {observable: queryObservable, mql};\n this._queries.set(query, output);\n return output;\n }\n}\n\n/**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\nfunction splitQueries(queries: readonly string[]): readonly string[] {\n return queries\n .map(query => query.split(','))\n .reduce((a1, a2) => a1.concat(a2))\n .map(query => query.trim());\n}\n"],"names":[],"mappings":";;;;;;;AAUA;AACA,MAAM,kCAAkC,GAAgB,IAAI,GAAG,EAAU;AAEzE;AACA,IAAI,mBAAiD;AAErD;MAEa,YAAY,CAAA;AACf,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC5B,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;AAG5C,IAAA,WAAW;AAInB,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,WAAW;AACd,YAAA,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,MAAM,CAAC;AACjC;;AAEE,oBAAA,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM;kBAC7B,cAAc;;AAGtB;;;;;AAKG;AACH,IAAA,UAAU,CAAC,KAAa,EAAA;AACtB,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;AACjD,YAAA,oBAAoB,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;;AAE1C,QAAA,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;;8GA5BrB,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADA,MAAM,EAAA,CAAA;;kGAClB,YAAY,EAAA,UAAA,EAAA,CAAA;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AAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cADN,MAAM,EAAA,CAAA;;kGAClB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;AA+FhC;;;AAGG;AACH,SAAS,YAAY,CAAC,OAA0B,EAAA;AAC9C,IAAA,OAAO;SACJ,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AAC7B,SAAA,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;SAChC,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;AAC/B;;;;"}
package/fesm2022/cdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
3
  /** Current version of the Angular Component Development Kit. */
4
- const VERSION = new Version('20.0.0-next.5');
4
+ const VERSION = new Version('20.0.0-next.7');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=cdk.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/version.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 {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('20.0.0-next.5');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"cdk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/version.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 {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('20.0.0-next.7');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Injectable, InjectionToken, NgZone, EventEmitter, Directive, Input, Output, NgModule } from '@angular/core';
3
+ import { inject, Injectable, InjectionToken, NgZone, EventEmitter, Output, Input, Directive, NgModule } from '@angular/core';
4
4
 
5
5
  /**
6
6
  * A pending copy-to-clipboard operation.
@@ -98,10 +98,10 @@ class Clipboard {
98
98
  beginCopy(text) {
99
99
  return new PendingCopy(text, this._document);
100
100
  }
101
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: Clipboard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
102
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: Clipboard, providedIn: 'root' });
101
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Clipboard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
102
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Clipboard, providedIn: 'root' });
103
103
  }
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: Clipboard, decorators: [{
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Clipboard, decorators: [{
105
105
  type: Injectable,
106
106
  args: [{ providedIn: 'root' }]
107
107
  }], ctorParameters: () => [] });
@@ -172,10 +172,10 @@ class CdkCopyToClipboard {
172
172
  this._pending.clear();
173
173
  this._destroyed = true;
174
174
  }
175
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: CdkCopyToClipboard, deps: [], target: i0.ɵɵFactoryTarget.Directive });
176
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.4", type: CdkCopyToClipboard, isStandalone: true, selector: "[cdkCopyToClipboard]", inputs: { text: ["cdkCopyToClipboard", "text"], attempts: ["cdkCopyToClipboardAttempts", "attempts"] }, outputs: { copied: "cdkCopyToClipboardCopied" }, host: { listeners: { "click": "copy()" } }, ngImport: i0 });
175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkCopyToClipboard, deps: [], target: i0.ɵɵFactoryTarget.Directive });
176
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: CdkCopyToClipboard, isStandalone: true, selector: "[cdkCopyToClipboard]", inputs: { text: ["cdkCopyToClipboard", "text"], attempts: ["cdkCopyToClipboardAttempts", "attempts"] }, outputs: { copied: "cdkCopyToClipboardCopied" }, host: { listeners: { "click": "copy()" } }, ngImport: i0 });
177
177
  }
178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: CdkCopyToClipboard, decorators: [{
178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkCopyToClipboard, decorators: [{
179
179
  type: Directive,
180
180
  args: [{
181
181
  selector: '[cdkCopyToClipboard]',
@@ -195,11 +195,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4",
195
195
  }] } });
196
196
 
197
197
  class ClipboardModule {
198
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: ClipboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
199
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.4", ngImport: i0, type: ClipboardModule, imports: [CdkCopyToClipboard], exports: [CdkCopyToClipboard] });
200
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: ClipboardModule });
198
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ClipboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
199
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: ClipboardModule, imports: [CdkCopyToClipboard], exports: [CdkCopyToClipboard] });
200
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ClipboardModule });
201
201
  }
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: ClipboardModule, decorators: [{
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: ClipboardModule, decorators: [{
203
203
  type: NgModule,
204
204
  args: [{
205
205
  imports: [CdkCopyToClipboard],
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/pending-copy.ts","../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/clipboard.ts","../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/copy-to-clipboard.ts","../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/clipboard-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\n/**\n * A pending copy-to-clipboard operation.\n *\n * The implementation of copying text to the clipboard modifies the DOM and\n * forces a re-layout. This re-layout can take too long if the string is large,\n * causing the execCommand('copy') to happen too long after the user clicked.\n * This results in the browser refusing to copy. This object lets the\n * re-layout happen in a separate tick from copying by providing a copy function\n * that can be called later.\n *\n * Destroy must be called when no longer in use, regardless of whether `copy` is\n * called.\n */\nexport class PendingCopy {\n private _textarea: HTMLTextAreaElement | undefined;\n\n constructor(\n text: string,\n private readonly _document: Document,\n ) {\n const textarea = (this._textarea = this._document.createElement('textarea'));\n const styles = textarea.style;\n\n // Hide the element for display and accessibility. Set a fixed position so the page layout\n // isn't affected. We use `fixed` with `top: 0`, because focus is moved into the textarea\n // for a split second and if it's off-screen, some browsers will attempt to scroll it into view.\n styles.position = 'fixed';\n styles.top = styles.opacity = '0';\n styles.left = '-999em';\n textarea.setAttribute('aria-hidden', 'true');\n textarea.value = text;\n // Making the textarea `readonly` prevents the screen from jumping on iOS Safari (see #25169).\n textarea.readOnly = true;\n // The element needs to be inserted into the fullscreen container, if the page\n // is in fullscreen mode, otherwise the browser won't execute the copy command.\n (this._document.fullscreenElement || this._document.body).appendChild(textarea);\n }\n\n /** Finishes copying the text. */\n copy(): boolean {\n const textarea = this._textarea;\n let successful = false;\n\n try {\n // Older browsers could throw if copy is not supported.\n if (textarea) {\n const currentFocus = this._document.activeElement as HTMLOrSVGElement | null;\n\n textarea.select();\n textarea.setSelectionRange(0, textarea.value.length);\n successful = this._document.execCommand('copy');\n\n if (currentFocus) {\n currentFocus.focus();\n }\n }\n } catch {\n // Discard error.\n // Initial setting of {@code successful} will represent failure here.\n }\n\n return successful;\n }\n\n /** Cleans up DOM changes used to perform the copy operation. */\n destroy() {\n const textarea = this._textarea;\n\n if (textarea) {\n textarea.remove();\n this._textarea = undefined;\n }\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 {DOCUMENT} from '@angular/common';\nimport {Injectable, inject} from '@angular/core';\nimport {PendingCopy} from './pending-copy';\n\n/**\n * A service for copying text to the clipboard.\n */\n@Injectable({providedIn: 'root'})\nexport class Clipboard {\n private readonly _document = inject(DOCUMENT);\n\n constructor(...args: unknown[]);\n constructor() {}\n\n /**\n * Copies the provided text into the user's clipboard.\n *\n * @param text The string to copy.\n * @returns Whether the operation was successful.\n */\n copy(text: string): boolean {\n const pendingCopy = this.beginCopy(text);\n const successful = pendingCopy.copy();\n pendingCopy.destroy();\n\n return successful;\n }\n\n /**\n * Prepares a string to be copied later. This is useful for large strings\n * which take too long to successfully render and be copied in the same tick.\n *\n * The caller must call `destroy` on the returned `PendingCopy`.\n *\n * @param text The string to copy.\n * @returns the pending copy operation.\n */\n beginCopy(text: string): PendingCopy {\n return new PendingCopy(text, this._document);\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 {\n Directive,\n EventEmitter,\n Input,\n Output,\n NgZone,\n InjectionToken,\n OnDestroy,\n inject,\n} from '@angular/core';\nimport {Clipboard} from './clipboard';\nimport {PendingCopy} from './pending-copy';\n\n/** Object that can be used to configure the default options for `CdkCopyToClipboard`. */\nexport interface CdkCopyToClipboardConfig {\n /** Default number of attempts to make when copying text to the clipboard. */\n attempts?: number;\n}\n\n/** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */\nexport const CDK_COPY_TO_CLIPBOARD_CONFIG = new InjectionToken<CdkCopyToClipboardConfig>(\n 'CDK_COPY_TO_CLIPBOARD_CONFIG',\n);\n\n/**\n * Provides behavior for a button that when clicked copies content into user's\n * clipboard.\n */\n@Directive({\n selector: '[cdkCopyToClipboard]',\n host: {\n '(click)': 'copy()',\n },\n})\nexport class CdkCopyToClipboard implements OnDestroy {\n private _clipboard = inject(Clipboard);\n private _ngZone = inject(NgZone);\n\n /** Content to be copied. */\n @Input('cdkCopyToClipboard') text: string = '';\n\n /**\n * How many times to attempt to copy the text. This may be necessary for longer text, because\n * the browser needs time to fill an intermediate textarea element and copy the content.\n */\n @Input('cdkCopyToClipboardAttempts') attempts: number = 1;\n\n /**\n * Emits when some text is copied to the clipboard. The\n * emitted value indicates whether copying was successful.\n */\n @Output('cdkCopyToClipboardCopied') readonly copied = new EventEmitter<boolean>();\n\n /** Copies that are currently being attempted. */\n private _pending = new Set<PendingCopy>();\n\n /** Whether the directive has been destroyed. */\n private _destroyed: boolean;\n\n /** Timeout for the current copy attempt. */\n private _currentTimeout: any;\n\n constructor(...args: unknown[]);\n\n constructor() {\n const config = inject(CDK_COPY_TO_CLIPBOARD_CONFIG, {optional: true});\n\n if (config && config.attempts != null) {\n this.attempts = config.attempts;\n }\n }\n\n /** Copies the current text to the clipboard. */\n copy(attempts: number = this.attempts): void {\n if (attempts > 1) {\n let remainingAttempts = attempts;\n const pending = this._clipboard.beginCopy(this.text);\n this._pending.add(pending);\n\n const attempt = () => {\n const successful = pending.copy();\n if (!successful && --remainingAttempts && !this._destroyed) {\n // We use 1 for the timeout since it's more predictable when flushing in unit tests.\n this._currentTimeout = this._ngZone.runOutsideAngular(() => setTimeout(attempt, 1));\n } else {\n this._currentTimeout = null;\n this._pending.delete(pending);\n pending.destroy();\n this.copied.emit(successful);\n }\n };\n attempt();\n } else {\n this.copied.emit(this._clipboard.copy(this.text));\n }\n }\n\n ngOnDestroy() {\n if (this._currentTimeout) {\n clearTimeout(this._currentTimeout);\n }\n\n this._pending.forEach(copy => copy.destroy());\n this._pending.clear();\n this._destroyed = true;\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';\n\nimport {CdkCopyToClipboard} from './copy-to-clipboard';\n\n@NgModule({\n imports: [CdkCopyToClipboard],\n exports: [CdkCopyToClipboard],\n})\nexport class ClipboardModule {}\n"],"names":[],"mappings":";;;;AAQA;;;;;;;;;;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AA,EAAA,OAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;kGAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,QAAQ;AACpB,qBAAA;AACF,iBAAA,CAAA;wDAM8B,IAAI,EAAA,CAAA;sBAAhC,KAAK;uBAAC,oBAAoB,CAAA;gBAMU,QAAQ,EAAA,CAAA;sBAA5C,KAAK;uBAAC,4BAA4B,CAAA;gBAMU,MAAM,EAAA,CAAA;sBAAlD,MAAM;uBAAC,0BAA0B,CAAA;;;MC3CvB,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAf,eAAe,EAAA,OAAA,EAAA,CAHhB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAClB,kBAAkB,CAAA,EAAA,CAAA,CAAA;+GAEjB,eAAe,EAAA,CAAA,CAAA;;kGAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"clipboard.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/pending-copy.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/clipboard.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/copy-to-clipboard.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/clipboard/clipboard-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\n/**\n * A pending copy-to-clipboard operation.\n *\n * The implementation of copying text to the clipboard modifies the DOM and\n * forces a re-layout. This re-layout can take too long if the string is large,\n * causing the execCommand('copy') to happen too long after the user clicked.\n * This results in the browser refusing to copy. This object lets the\n * re-layout happen in a separate tick from copying by providing a copy function\n * that can be called later.\n *\n * Destroy must be called when no longer in use, regardless of whether `copy` is\n * called.\n */\nexport class PendingCopy {\n private _textarea: HTMLTextAreaElement | undefined;\n\n constructor(\n text: string,\n private readonly _document: Document,\n ) {\n const textarea = (this._textarea = this._document.createElement('textarea'));\n const styles = textarea.style;\n\n // Hide the element for display and accessibility. Set a fixed position so the page layout\n // isn't affected. We use `fixed` with `top: 0`, because focus is moved into the textarea\n // for a split second and if it's off-screen, some browsers will attempt to scroll it into view.\n styles.position = 'fixed';\n styles.top = styles.opacity = '0';\n styles.left = '-999em';\n textarea.setAttribute('aria-hidden', 'true');\n textarea.value = text;\n // Making the textarea `readonly` prevents the screen from jumping on iOS Safari (see #25169).\n textarea.readOnly = true;\n // The element needs to be inserted into the fullscreen container, if the page\n // is in fullscreen mode, otherwise the browser won't execute the copy command.\n (this._document.fullscreenElement || this._document.body).appendChild(textarea);\n }\n\n /** Finishes copying the text. */\n copy(): boolean {\n const textarea = this._textarea;\n let successful = false;\n\n try {\n // Older browsers could throw if copy is not supported.\n if (textarea) {\n const currentFocus = this._document.activeElement as HTMLOrSVGElement | null;\n\n textarea.select();\n textarea.setSelectionRange(0, textarea.value.length);\n successful = this._document.execCommand('copy');\n\n if (currentFocus) {\n currentFocus.focus();\n }\n }\n } catch {\n // Discard error.\n // Initial setting of {@code successful} will represent failure here.\n }\n\n return successful;\n }\n\n /** Cleans up DOM changes used to perform the copy operation. */\n destroy() {\n const textarea = this._textarea;\n\n if (textarea) {\n textarea.remove();\n this._textarea = undefined;\n }\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 {DOCUMENT} from '@angular/common';\nimport {Injectable, inject} from '@angular/core';\nimport {PendingCopy} from './pending-copy';\n\n/**\n * A service for copying text to the clipboard.\n */\n@Injectable({providedIn: 'root'})\nexport class Clipboard {\n private readonly _document = inject(DOCUMENT);\n\n constructor(...args: unknown[]);\n constructor() {}\n\n /**\n * Copies the provided text into the user's clipboard.\n *\n * @param text The string to copy.\n * @returns Whether the operation was successful.\n */\n copy(text: string): boolean {\n const pendingCopy = this.beginCopy(text);\n const successful = pendingCopy.copy();\n pendingCopy.destroy();\n\n return successful;\n }\n\n /**\n * Prepares a string to be copied later. This is useful for large strings\n * which take too long to successfully render and be copied in the same tick.\n *\n * The caller must call `destroy` on the returned `PendingCopy`.\n *\n * @param text The string to copy.\n * @returns the pending copy operation.\n */\n beginCopy(text: string): PendingCopy {\n return new PendingCopy(text, this._document);\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 {\n Directive,\n EventEmitter,\n Input,\n Output,\n NgZone,\n InjectionToken,\n OnDestroy,\n inject,\n} from '@angular/core';\nimport {Clipboard} from './clipboard';\nimport {PendingCopy} from './pending-copy';\n\n/** Object that can be used to configure the default options for `CdkCopyToClipboard`. */\nexport interface CdkCopyToClipboardConfig {\n /** Default number of attempts to make when copying text to the clipboard. */\n attempts?: number;\n}\n\n/** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */\nexport const CDK_COPY_TO_CLIPBOARD_CONFIG = new InjectionToken<CdkCopyToClipboardConfig>(\n 'CDK_COPY_TO_CLIPBOARD_CONFIG',\n);\n\n/**\n * Provides behavior for a button that when clicked copies content into user's\n * clipboard.\n */\n@Directive({\n selector: '[cdkCopyToClipboard]',\n host: {\n '(click)': 'copy()',\n },\n})\nexport class CdkCopyToClipboard implements OnDestroy {\n private _clipboard = inject(Clipboard);\n private _ngZone = inject(NgZone);\n\n /** Content to be copied. */\n @Input('cdkCopyToClipboard') text: string = '';\n\n /**\n * How many times to attempt to copy the text. This may be necessary for longer text, because\n * the browser needs time to fill an intermediate textarea element and copy the content.\n */\n @Input('cdkCopyToClipboardAttempts') attempts: number = 1;\n\n /**\n * Emits when some text is copied to the clipboard. The\n * emitted value indicates whether copying was successful.\n */\n @Output('cdkCopyToClipboardCopied') readonly copied = new EventEmitter<boolean>();\n\n /** Copies that are currently being attempted. */\n private _pending = new Set<PendingCopy>();\n\n /** Whether the directive has been destroyed. */\n private _destroyed: boolean;\n\n /** Timeout for the current copy attempt. */\n private _currentTimeout: any;\n\n constructor(...args: unknown[]);\n\n constructor() {\n const config = inject(CDK_COPY_TO_CLIPBOARD_CONFIG, {optional: true});\n\n if (config && config.attempts != null) {\n this.attempts = config.attempts;\n }\n }\n\n /** Copies the current text to the clipboard. */\n copy(attempts: number = this.attempts): void {\n if (attempts > 1) {\n let remainingAttempts = attempts;\n const pending = this._clipboard.beginCopy(this.text);\n this._pending.add(pending);\n\n const attempt = () => {\n const successful = pending.copy();\n if (!successful && --remainingAttempts && !this._destroyed) {\n // We use 1 for the timeout since it's more predictable when flushing in unit tests.\n this._currentTimeout = this._ngZone.runOutsideAngular(() => setTimeout(attempt, 1));\n } else {\n this._currentTimeout = null;\n this._pending.delete(pending);\n pending.destroy();\n this.copied.emit(successful);\n }\n };\n attempt();\n } else {\n this.copied.emit(this._clipboard.copy(this.text));\n }\n }\n\n ngOnDestroy() {\n if (this._currentTimeout) {\n clearTimeout(this._currentTimeout);\n }\n\n this._pending.forEach(copy => copy.destroy());\n this._pending.clear();\n this._destroyed = true;\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';\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,EAAA,CAAA;sBAAhC,KAAK;uBAAC,oBAAoB;gBAMU,QAAQ,EAAA,CAAA;sBAA5C,KAAK;uBAAC,4BAA4B;gBAMU,MAAM,EAAA,CAAA;sBAAlD,MAAM;uBAAC,0BAA0B;;;MC3CvB,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;+GAAf,eAAe,EAAA,OAAA,EAAA,CAHhB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAClB,kBAAkB,CAAA,EAAA,CAAA;+GAEjB,eAAe,EAAA,CAAA;;kGAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA;;;;;"}
@@ -1,3 +1,15 @@
1
- export { c as coerceObservable } from '../observable-3cba8a1c.mjs';
2
- import 'rxjs';
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 };
3
15
  //# sourceMappingURL=private.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"private.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"private.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;;AAE3B,IAAA,OAAO,IAAI;AACb;;;;"}
@@ -1,6 +1,6 @@
1
- export { _ as _isNumberValue, c as coerceElement, a as coerceNumberProperty } from './element-15999318.mjs';
2
- export { c as coerceArray } from './array-6239d2f8.mjs';
3
- export { c as coerceCssPixelValue } from './css-pixel-value-5d0cae55.mjs';
1
+ export { _isNumberValue, coerceElement, coerceNumberProperty } from './element-CpqV8p-X.mjs';
2
+ export { coerceArray } from './array-Hg8isvLj.mjs';
3
+ export { coerceCssPixelValue } from './css-pixel-value-C1yoKJ7R.mjs';
4
4
  import '@angular/core';
5
5
 
6
6
  /** Coerces a data-bound value (typically a string) to a boolean. */
@@ -1 +1 @@
1
- {"version":3,"file":"coercion.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/coercion/boolean-property.ts","../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/coercion/string-array.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\n/**\n * Type describing the allowed values for a boolean input.\n * @docs-private\n */\nexport type BooleanInput = string | boolean | null | undefined;\n\n/** Coerces a data-bound value (typically a string) to a boolean. */\nexport function coerceBooleanProperty(value: any): boolean {\n return value != null && `${value}` !== 'false';\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\n/**\n * Coerces a value to an array of trimmed non-empty strings.\n * Any input that is not an array, `null` or `undefined` will be turned into a string\n * via `toString()` and subsequently split with the given separator.\n * `null` and `undefined` will result in an empty array.\n * This results in the following outcomes:\n * - `null` -&gt; `[]`\n * - `[null]` -&gt; `[\"null\"]`\n * - `[\"a\", \"b \", \" \"]` -&gt; `[\"a\", \"b\"]`\n * - `[1, [2, 3]]` -&gt; `[\"1\", \"2,3\"]`\n * - `[{ a: 0 }]` -&gt; `[\"[object Object]\"]`\n * - `{ a: 0 }` -&gt; `[\"[object\", \"Object]\"]`\n *\n * Useful for defining CSS classes or table columns.\n * @param value the value to coerce into an array of strings\n * @param separator split-separator if value isn't an array\n */\nexport function coerceStringArray(value: any, separator: string | RegExp = /\\s+/): string[] {\n const result = [];\n\n if (value != null) {\n const sourceValues = Array.isArray(value) ? value : `${value}`.split(separator);\n for (const sourceValue of sourceValues) {\n const trimmedString = `${sourceValue}`.trim();\n if (trimmedString) {\n result.push(trimmedString);\n }\n }\n }\n\n return result;\n}\n"],"names":[],"mappings":";;;;;AAcA;AACM,SAAU,qBAAqB,CAAC,KAAU,EAAA;IAC9C,OAAO,KAAK,IAAI,IAAI,IAAI,GAAG,KAAK,CAAA,CAAE,KAAK,OAAO,CAAA;AAChD;;ACTA;;;;;;;;;;;;;;;;AAgBG;SACa,iBAAiB,CAAC,KAAU,EAAE,YAA6B,KAAK,EAAA;IAC9E,MAAM,MAAM,GAAG,EAAE,CAAA;AAEjB,IAAA,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAA,EAAG,KAAK,CAAA,CAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;AAC/E,QAAA,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;YACtC,MAAM,aAAa,GAAG,CAAG,EAAA,WAAW,EAAE,CAAC,IAAI,EAAE,CAAA;YAC7C,IAAI,aAAa,EAAE;AACjB,gBAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;aAC5B;SACF;KACF;AAEA,IAAA,OAAO,MAAM,CAAA;AACf;;;;"}
1
+ {"version":3,"file":"coercion.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/coercion/boolean-property.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/coercion/string-array.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\n/**\n * Type describing the allowed values for a boolean input.\n * @docs-private\n */\nexport type BooleanInput = string | boolean | null | undefined;\n\n/** Coerces a data-bound value (typically a string) to a boolean. */\nexport function coerceBooleanProperty(value: any): boolean {\n return value != null && `${value}` !== 'false';\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\n/**\n * Coerces a value to an array of trimmed non-empty strings.\n * Any input that is not an array, `null` or `undefined` will be turned into a string\n * via `toString()` and subsequently split with the given separator.\n * `null` and `undefined` will result in an empty array.\n * This results in the following outcomes:\n * - `null` -&gt; `[]`\n * - `[null]` -&gt; `[\"null\"]`\n * - `[\"a\", \"b \", \" \"]` -&gt; `[\"a\", \"b\"]`\n * - `[1, [2, 3]]` -&gt; `[\"1\", \"2,3\"]`\n * - `[{ a: 0 }]` -&gt; `[\"[object Object]\"]`\n * - `{ a: 0 }` -&gt; `[\"[object\", \"Object]\"]`\n *\n * Useful for defining CSS classes or table columns.\n * @param value the value to coerce into an array of strings\n * @param separator split-separator if value isn't an array\n */\nexport function coerceStringArray(value: any, separator: string | RegExp = /\\s+/): string[] {\n const result = [];\n\n if (value != null) {\n const sourceValues = Array.isArray(value) ? value : `${value}`.split(separator);\n for (const sourceValue of sourceValues) {\n const trimmedString = `${sourceValue}`.trim();\n if (trimmedString) {\n result.push(trimmedString);\n }\n }\n }\n\n return result;\n}\n"],"names":[],"mappings":";;;;;AAcA;AACM,SAAU,qBAAqB,CAAC,KAAU,EAAA;IAC9C,OAAO,KAAK,IAAI,IAAI,IAAI,GAAG,KAAK,CAAA,CAAE,KAAK,OAAO;AAChD;;ACTA;;;;;;;;;;;;;;;;AAgBG;SACa,iBAAiB,CAAC,KAAU,EAAE,YAA6B,KAAK,EAAA;IAC9E,MAAM,MAAM,GAAG,EAAE;AAEjB,IAAA,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAA,EAAG,KAAK,CAAA,CAAE,CAAC,KAAK,CAAC,SAAS,CAAC;AAC/E,QAAA,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;YACtC,MAAM,aAAa,GAAG,CAAG,EAAA,WAAW,EAAE,CAAC,IAAI,EAAE;YAC7C,IAAI,aAAa,EAAE;AACjB,gBAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;;;;AAKhC,IAAA,OAAO,MAAM;AACf;;;;"}
@@ -1,8 +1,8 @@
1
- export { U as UniqueSelectionDispatcher } from './unique-selection-dispatcher-b23237b2.mjs';
2
- export { A as ArrayDataSource, _ as _RecycleViewRepeaterStrategy, b as _VIEW_REPEATER_STRATEGY, a as _ViewRepeaterOperation } from './recycle-view-repeater-strategy-0f32b0a8.mjs';
3
- export { D as DataSource, i as isDataSource } from './data-source-d79c6e09.mjs';
4
- export { _ as _DisposeViewRepeaterStrategy } from './dispose-view-repeater-strategy-4c6df00e.mjs';
5
- export { S as SelectionModel, g as getMultipleValuesInSingleSelectionError } from './selection-model-4044ace7.mjs';
1
+ export { UniqueSelectionDispatcher } from './unique-selection-dispatcher-SqPM2COI.mjs';
2
+ export { ArrayDataSource, _RecycleViewRepeaterStrategy, _VIEW_REPEATER_STRATEGY, _ViewRepeaterOperation } from './recycle-view-repeater-strategy-Ce0p4WhD.mjs';
3
+ export { DataSource, isDataSource } from './data-source-CL6Fasig.mjs';
4
+ export { _DisposeViewRepeaterStrategy } from './dispose-view-repeater-strategy-BLw1RSwm.mjs';
5
+ export { SelectionModel, getMultipleValuesInSingleSelectionError } from './selection-model-88BErm4w.mjs';
6
6
  import '@angular/core';
7
7
  import 'rxjs';
8
8
  //# sourceMappingURL=collections.mjs.map
@@ -6,5 +6,5 @@ function coerceCssPixelValue(value) {
6
6
  return typeof value === 'string' ? value : `${value}px`;
7
7
  }
8
8
 
9
- export { coerceCssPixelValue as c };
10
- //# sourceMappingURL=css-pixel-value-5d0cae55.mjs.map
9
+ export { coerceCssPixelValue };
10
+ //# sourceMappingURL=css-pixel-value-C1yoKJ7R.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-pixel-value-C1yoKJ7R.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/coercion/css-pixel-value.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\n/** Coerces a value to a CSS pixel value. */\nexport function coerceCssPixelValue(value: any): string {\n if (value == null) {\n return '';\n }\n\n return typeof value === 'string' ? value : `${value}px`;\n}\n"],"names":[],"mappings":"AAQA;AACM,SAAU,mBAAmB,CAAC,KAAU,EAAA;AAC5C,IAAA,IAAI,KAAK,IAAI,IAAI,EAAE;AACjB,QAAA,OAAO,EAAE;;AAGX,IAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,GAAG,CAAG,EAAA,KAAK,IAAI;AACzD;;;;"}
@@ -11,5 +11,5 @@ function isDataSource(value) {
11
11
  return value && typeof value.connect === 'function' && !(value instanceof ConnectableObservable);
12
12
  }
13
13
 
14
- export { DataSource as D, isDataSource as i };
15
- //# sourceMappingURL=data-source-d79c6e09.mjs.map
14
+ export { DataSource, isDataSource };
15
+ //# sourceMappingURL=data-source-CL6Fasig.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-source-CL6Fasig.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/collections/data-source.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 {ConnectableObservable, Observable} from 'rxjs';\nimport {CollectionViewer} from './collection-viewer';\n\nexport abstract class DataSource<T> {\n /**\n * Connects a collection viewer (such as a data-table) to this data source. Note that\n * the stream provided will be accessed during change detection and should not directly change\n * values that are bound in template views.\n * @param collectionViewer The component that exposes a view over the data provided by this\n * data source.\n * @returns Observable that emits a new value when the data changes.\n */\n abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;\n\n /**\n * Disconnects a collection viewer (such as a data-table) from this data source. Can be used\n * to perform any clean-up or tear-down operations when a view is being destroyed.\n *\n * @param collectionViewer The component that exposes a view over the data provided by this\n * data source.\n */\n abstract disconnect(collectionViewer: CollectionViewer): void;\n}\n\n/** Checks whether an object is a data source. */\nexport function isDataSource(value: any): value is DataSource<any> {\n // Check if the value is a DataSource by observing if it has a connect function. Cannot\n // be checked as an `instanceof DataSource` since people could create their own sources\n // that match the interface, but don't extend DataSource. We also can't use `isObservable`\n // here, because of some internal apps.\n return value && typeof value.connect === 'function' && !(value instanceof ConnectableObservable);\n}\n"],"names":[],"mappings":";;MAWsB,UAAU,CAAA;AAmB/B;AAED;AACM,SAAU,YAAY,CAAC,KAAU,EAAA;;;;;AAKrC,IAAA,OAAO,KAAK,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU,IAAI,EAAE,KAAK,YAAY,qBAAqB,CAAC;AAClG;;;;"}
@@ -1,34 +1,34 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, ElementRef, NgZone, Renderer2, ChangeDetectorRef, Injector, afterNextRender, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, InjectionToken, TemplateRef, Injectable, NgModule } from '@angular/core';
4
- import { B as BasePortalOutlet, C as CdkPortalOutlet, a as ComponentPortal, T as TemplatePortal, P as PortalModule } from './portal-directives-26ab1686.mjs';
5
- export { b as ɵɵCdkPortal, C as ɵɵCdkPortalOutlet, d as ɵɵPortalHostDirective, c as ɵɵTemplatePortalDirective } from './portal-directives-26ab1686.mjs';
6
- import { b as FocusTrapFactory, I as InteractivityChecker, A as A11yModule } from './a11y-module-f780e811.mjs';
7
- import { O as OverlayRef, a as Overlay, b as OverlayContainer, c as OverlayConfig, d as OverlayModule } from './overlay-module-778cde6a.mjs';
8
- import { d as FocusMonitor } from './focus-monitor-3464a8c8.mjs';
9
- import { P as Platform } from './platform-fd50034d.mjs';
10
- import { b as _getFocusedElementPierceShadowDom } from './shadow-dom-318658ae.mjs';
3
+ import { inject, ElementRef, NgZone, Renderer2, ChangeDetectorRef, Injector, afterNextRender, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, Component, InjectionToken, TemplateRef, Injectable, NgModule } from '@angular/core';
4
+ import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from './portal.mjs';
5
+ export { CdkPortal as ɵɵCdkPortal, PortalHostDirective as ɵɵPortalHostDirective, TemplatePortalDirective as ɵɵTemplatePortalDirective } from './portal.mjs';
6
+ import { FocusTrapFactory, InteractivityChecker, A11yModule } from './a11y-module-tRUj0Pog.mjs';
7
+ import { OverlayRef, Overlay, OverlayContainer, OverlayConfig, OverlayModule } from './overlay-module-UgjfuiDh.mjs';
8
+ import { FocusMonitor } from './focus-monitor-BZnK-7fT.mjs';
9
+ import { Platform } from './platform-BInyKIh1.mjs';
10
+ import { _getFocusedElementPierceShadowDom } from './shadow-dom-DFvX9W95.mjs';
11
11
  import { Subject, defer, of } from 'rxjs';
12
- import { e as ESCAPE } from './keycodes-0e4398c6.mjs';
13
- import { h as hasModifierKey } from './modifiers-3e8908bb.mjs';
12
+ import { ESCAPE } from './keycodes-DPWmI2Ix.mjs';
13
+ import { hasModifierKey } from './keycodes.mjs';
14
14
  import { startWith } from 'rxjs/operators';
15
- import { _ as _IdGenerator } from './id-generator-c0f67d1b.mjs';
16
- import { D as Directionality } from './directionality-d3343e21.mjs';
17
- import './style-loader-902ffada.mjs';
18
- import './visually-hidden-cfa9d7fd.mjs';
19
- import './breakpoints-observer-af989fcc.mjs';
20
- import './array-6239d2f8.mjs';
21
- import './observe-content-f2aba0c9.mjs';
22
- import './element-15999318.mjs';
23
- import './test-environment-f6f8bc13.mjs';
24
- import './css-pixel-value-5d0cae55.mjs';
25
- import './scrolling-module-7394419e.mjs';
26
- import './scrolling-59340c46.mjs';
27
- import './recycle-view-repeater-strategy-0f32b0a8.mjs';
28
- import './data-source-d79c6e09.mjs';
29
- import './bidi-module-bd809f3d.mjs';
30
- import './fake-event-detection-84590b88.mjs';
31
- import './passive-listeners-93cf8be8.mjs';
15
+ import { _IdGenerator } from './id-generator-B33AfkWd.mjs';
16
+ import { Directionality } from './directionality-6lVHj23y.mjs';
17
+ import './style-loader-DpEDdstc.mjs';
18
+ import './private.mjs';
19
+ import './breakpoints-observer-CsCzbYlX.mjs';
20
+ import './array-Hg8isvLj.mjs';
21
+ import './observers.mjs';
22
+ import './element-CpqV8p-X.mjs';
23
+ import './test-environment-BgaaXvCA.mjs';
24
+ import './css-pixel-value-C1yoKJ7R.mjs';
25
+ import './scrolling.mjs';
26
+ import './scrolling-BXVcIfjZ.mjs';
27
+ import './bidi.mjs';
28
+ import './recycle-view-repeater-strategy-Ce0p4WhD.mjs';
29
+ import './data-source-CL6Fasig.mjs';
30
+ import './fake-event-detection-D0_6qVp2.mjs';
31
+ import './passive-listeners-ZmZRMx8D.mjs';
32
32
 
33
33
  /** Configuration for opening a modal dialog. */
34
34
  class DialogConfig {
@@ -302,7 +302,7 @@ class CdkDialogContainer extends BasePortalOutlet {
302
302
  * Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
303
303
  * cannot be moved then focus will go to the dialog container.
304
304
  */
305
- _trapFocus() {
305
+ _trapFocus(options) {
306
306
  if (this._isDestroyed) {
307
307
  return;
308
308
  }
@@ -320,23 +320,23 @@ class CdkDialogContainer extends BasePortalOutlet {
320
320
  // if the focus isn't inside the dialog already, because it's possible that the consumer
321
321
  // turned off `autoFocus` in order to move focus themselves.
322
322
  if (!this._containsFocus()) {
323
- element.focus();
323
+ element.focus(options);
324
324
  }
325
325
  break;
326
326
  case true:
327
327
  case 'first-tabbable':
328
- const focusedSuccessfully = this._focusTrap?.focusInitialElement();
328
+ const focusedSuccessfully = this._focusTrap?.focusInitialElement(options);
329
329
  // If we weren't able to find a focusable element in the dialog, then focus the dialog
330
330
  // container instead.
331
331
  if (!focusedSuccessfully) {
332
- this._focusDialogContainer();
332
+ this._focusDialogContainer(options);
333
333
  }
334
334
  break;
335
335
  case 'first-heading':
336
- this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');
336
+ this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]', options);
337
337
  break;
338
338
  default:
339
- this._focusByCssSelector(this._config.autoFocus);
339
+ this._focusByCssSelector(this._config.autoFocus, options);
340
340
  break;
341
341
  }
342
342
  }, { injector: this._injector });
@@ -382,10 +382,10 @@ class CdkDialogContainer extends BasePortalOutlet {
382
382
  }
383
383
  }
384
384
  /** Focuses the dialog container. */
385
- _focusDialogContainer() {
385
+ _focusDialogContainer(options) {
386
386
  // Note that there is no focus method when rendering on the server.
387
387
  if (this._elementRef.nativeElement.focus) {
388
- this._elementRef.nativeElement.focus();
388
+ this._elementRef.nativeElement.focus(options);
389
389
  }
390
390
  }
391
391
  /** Returns whether focus is inside the dialog. */
@@ -415,10 +415,10 @@ class CdkDialogContainer extends BasePortalOutlet {
415
415
  }
416
416
  });
417
417
  }
418
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: CdkDialogContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
419
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.4", type: CdkDialogContainer, isStandalone: true, selector: "cdk-dialog-container", host: { attributes: { "tabindex": "-1" }, properties: { "attr.id": "_config.id || null", "attr.role": "_config.role", "attr.aria-modal": "_config.ariaModal", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledByQueue[0]", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null" }, classAttribute: "cdk-dialog-container" }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet />\n", styles: [".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
418
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDialogContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
419
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.5", type: CdkDialogContainer, isStandalone: true, selector: "cdk-dialog-container", host: { attributes: { "tabindex": "-1" }, properties: { "attr.id": "_config.id || null", "attr.role": "_config.role", "attr.aria-modal": "_config.ariaModal", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledByQueue[0]", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null" }, classAttribute: "cdk-dialog-container" }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet />\n", styles: [".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
420
420
  }
421
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: CdkDialogContainer, decorators: [{
421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDialogContainer, decorators: [{
422
422
  type: Component,
423
423
  args: [{ selector: 'cdk-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, imports: [CdkPortalOutlet], host: {
424
424
  'class': 'cdk-dialog-container',
@@ -429,7 +429,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4",
429
429
  '[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledByQueue[0]',
430
430
  '[attr.aria-label]': '_config.ariaLabel',
431
431
  '[attr.aria-describedby]': '_config.ariaDescribedBy || null',
432
- }, template: "<ng-template cdkPortalOutlet />\n", styles: [".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"] }]
432
+ }, template: "<ng-template cdkPortalOutlet />\n", styles: [".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"] }]
433
433
  }], ctorParameters: () => [], propDecorators: { _portalOutlet: [{
434
434
  type: ViewChild,
435
435
  args: [CdkPortalOutlet, { static: true }]
@@ -802,10 +802,10 @@ class Dialog {
802
802
  const parent = this._parentDialog;
803
803
  return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;
804
804
  }
805
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: Dialog, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
806
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: Dialog, providedIn: 'root' });
805
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Dialog, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
806
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Dialog, providedIn: 'root' });
807
807
  }
808
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: Dialog, decorators: [{
808
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: Dialog, decorators: [{
809
809
  type: Injectable,
810
810
  args: [{ providedIn: 'root' }]
811
811
  }], ctorParameters: () => [] });
@@ -821,18 +821,18 @@ function reverseForEach(items, callback) {
821
821
  }
822
822
 
823
823
  class DialogModule {
824
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
825
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.4", ngImport: i0, type: DialogModule, imports: [OverlayModule, PortalModule, A11yModule, CdkDialogContainer], exports: [
824
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
825
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: DialogModule, imports: [OverlayModule, PortalModule, A11yModule, CdkDialogContainer], exports: [
826
826
  // Re-export the PortalModule so that people extending the `CdkDialogContainer`
827
827
  // don't have to remember to import it or be faced with an unhelpful error.
828
828
  PortalModule,
829
829
  CdkDialogContainer] });
830
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: DialogModule, providers: [Dialog], imports: [OverlayModule, PortalModule, A11yModule,
830
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DialogModule, providers: [Dialog], imports: [OverlayModule, PortalModule, A11yModule,
831
831
  // Re-export the PortalModule so that people extending the `CdkDialogContainer`
832
832
  // don't have to remember to import it or be faced with an unhelpful error.
833
833
  PortalModule] });
834
834
  }
835
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: DialogModule, decorators: [{
835
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DialogModule, decorators: [{
836
836
  type: NgModule,
837
837
  args: [{
838
838
  imports: [OverlayModule, PortalModule, A11yModule, CdkDialogContainer],
@@ -846,5 +846,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4",
846
846
  }]
847
847
  }] });
848
848
 
849
- export { CdkDialogContainer, DEFAULT_DIALOG_CONFIG, DIALOG_DATA, DIALOG_SCROLL_STRATEGY, Dialog, DialogConfig, DialogModule, DialogRef, throwDialogContentAlreadyAttachedError };
849
+ export { CdkDialogContainer, DEFAULT_DIALOG_CONFIG, DIALOG_DATA, DIALOG_SCROLL_STRATEGY, Dialog, DialogConfig, DialogModule, DialogRef, throwDialogContentAlreadyAttachedError, CdkPortalOutlet as ɵɵCdkPortalOutlet };
850
850
  //# sourceMappingURL=dialog.mjs.map