@angular/cdk 22.1.0-next.1 → 22.1.0-next.2

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 (89) hide show
  1. package/fesm2022/_a11y-module-chunk.mjs +22 -22
  2. package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
  3. package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
  4. package/fesm2022/_array-chunk.mjs.map +1 -1
  5. package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
  6. package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
  7. package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
  8. package/fesm2022/_data-source-chunk.mjs.map +1 -1
  9. package/fesm2022/_directionality-chunk.mjs +3 -3
  10. package/fesm2022/_directionality-chunk.mjs.map +1 -1
  11. package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
  12. package/fesm2022/_element-chunk.mjs.map +1 -1
  13. package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
  14. package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
  15. package/fesm2022/_focus-monitor-chunk.mjs +9 -9
  16. package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
  17. package/fesm2022/_id-generator-chunk.mjs +3 -3
  18. package/fesm2022/_id-generator-chunk.mjs.map +1 -1
  19. package/fesm2022/_keycodes-chunk.mjs.map +1 -1
  20. package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
  21. package/fesm2022/_overlay-module-chunk.mjs +34 -34
  22. package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
  23. package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
  24. package/fesm2022/_platform-chunk.mjs +3 -3
  25. package/fesm2022/_platform-chunk.mjs.map +1 -1
  26. package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
  27. package/fesm2022/_scrolling-chunk.mjs.map +1 -1
  28. package/fesm2022/_selection-model-chunk.mjs +32 -18
  29. package/fesm2022/_selection-model-chunk.mjs.map +1 -1
  30. package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
  31. package/fesm2022/_style-loader-chunk.mjs +3 -3
  32. package/fesm2022/_style-loader-chunk.mjs.map +1 -1
  33. package/fesm2022/_test-environment-chunk.mjs.map +1 -1
  34. package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
  35. package/fesm2022/_typeahead-chunk.mjs.map +1 -1
  36. package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
  37. package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
  38. package/fesm2022/a11y.mjs +9 -9
  39. package/fesm2022/a11y.mjs.map +1 -1
  40. package/fesm2022/accordion.mjs +10 -10
  41. package/fesm2022/accordion.mjs.map +1 -1
  42. package/fesm2022/bidi.mjs +7 -7
  43. package/fesm2022/bidi.mjs.map +1 -1
  44. package/fesm2022/cdk.mjs +1 -1
  45. package/fesm2022/cdk.mjs.map +1 -1
  46. package/fesm2022/clipboard.mjs +10 -10
  47. package/fesm2022/clipboard.mjs.map +1 -1
  48. package/fesm2022/coercion-private.mjs.map +1 -1
  49. package/fesm2022/coercion.mjs.map +1 -1
  50. package/fesm2022/dialog.mjs +10 -10
  51. package/fesm2022/dialog.mjs.map +1 -1
  52. package/fesm2022/drag-drop.mjs +31 -31
  53. package/fesm2022/drag-drop.mjs.map +1 -1
  54. package/fesm2022/keycodes.mjs.map +1 -1
  55. package/fesm2022/layout.mjs +4 -4
  56. package/fesm2022/layout.mjs.map +1 -1
  57. package/fesm2022/listbox.mjs +10 -10
  58. package/fesm2022/listbox.mjs.map +1 -1
  59. package/fesm2022/menu.mjs +49 -49
  60. package/fesm2022/menu.mjs.map +1 -1
  61. package/fesm2022/observers-private.mjs +3 -3
  62. package/fesm2022/observers-private.mjs.map +1 -1
  63. package/fesm2022/observers.mjs +13 -13
  64. package/fesm2022/observers.mjs.map +1 -1
  65. package/fesm2022/overlay.mjs +3 -3
  66. package/fesm2022/overlay.mjs.map +1 -1
  67. package/fesm2022/platform.mjs +4 -4
  68. package/fesm2022/platform.mjs.map +1 -1
  69. package/fesm2022/portal.mjs +10 -10
  70. package/fesm2022/portal.mjs.map +1 -1
  71. package/fesm2022/private.mjs +3 -3
  72. package/fesm2022/private.mjs.map +1 -1
  73. package/fesm2022/scrolling.mjs +37 -37
  74. package/fesm2022/scrolling.mjs.map +1 -1
  75. package/fesm2022/stepper.mjs +22 -22
  76. package/fesm2022/stepper.mjs.map +1 -1
  77. package/fesm2022/table.mjs +73 -73
  78. package/fesm2022/table.mjs.map +1 -1
  79. package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
  80. package/fesm2022/testing-testbed.mjs.map +1 -1
  81. package/fesm2022/testing.mjs.map +1 -1
  82. package/fesm2022/text-field.mjs +16 -16
  83. package/fesm2022/text-field.mjs.map +1 -1
  84. package/fesm2022/tree.mjs +25 -25
  85. package/fesm2022/tree.mjs.map +1 -1
  86. package/package.json +1 -1
  87. package/schematics/ng-add/index.js +1 -1
  88. package/types/_selection-model-chunk.d.ts +16 -0
  89. package/types/overlay.d.ts +1 -0
@@ -74,7 +74,7 @@ class SharedResizeObserver {
74
74
  }
75
75
  static ɵfac = i0.ɵɵngDeclareFactory({
76
76
  minVersion: "12.0.0",
77
- version: "22.1.0-next.0",
77
+ version: "22.1.0-next.3",
78
78
  ngImport: i0,
79
79
  type: SharedResizeObserver,
80
80
  deps: [],
@@ -82,14 +82,14 @@ class SharedResizeObserver {
82
82
  });
83
83
  static ɵprov = i0.ɵɵngDeclareService({
84
84
  minVersion: "22.0.0",
85
- version: "22.1.0-next.0",
85
+ version: "22.1.0-next.3",
86
86
  ngImport: i0,
87
87
  type: SharedResizeObserver
88
88
  });
89
89
  }
90
90
  i0.ɵɵngDeclareClassMetadata({
91
91
  minVersion: "12.0.0",
92
- version: "22.1.0-next.0",
92
+ version: "22.1.0-next.3",
93
93
  ngImport: i0,
94
94
  type: SharedResizeObserver,
95
95
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"observers-private.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/observers/private/shared-resize-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 {inject, Service, NgZone, OnDestroy, RendererFactory2} from '@angular/core';\nimport {Observable, Subject} from 'rxjs';\nimport {filter, shareReplay, takeUntil} from 'rxjs/operators';\n\n/**\n * Handler that logs \"ResizeObserver loop limit exceeded\" errors.\n * These errors are not shown in the Chrome console, so we log them to ensure developers are aware.\n * @param e The error\n */\nconst loopLimitExceededErrorHandler = (e: unknown) => {\n if (e instanceof ErrorEvent && e.message === 'ResizeObserver loop limit exceeded') {\n console.error(\n `${e.message}. This could indicate a performance issue with your app. See https://github.com/WICG/resize-observer/blob/master/explainer.md#error-handling`,\n );\n }\n};\n\n/**\n * A shared ResizeObserver to be used for a particular box type (content-box, border-box, or\n * device-pixel-content-box)\n */\nclass SingleBoxSharedResizeObserver {\n /** Stream that emits when the shared observer is destroyed. */\n private _destroyed = new Subject<void>();\n /** Stream of all events from the ResizeObserver. */\n private _resizeSubject = new Subject<ResizeObserverEntry[]>();\n /** ResizeObserver used to observe element resize events. */\n private _resizeObserver?: ResizeObserver;\n /** A map of elements to streams of their resize events. */\n private _elementObservables = new Map<Element, Observable<ResizeObserverEntry[]>>();\n\n constructor(\n /** The box type to observe for resizes. */\n private _box: ResizeObserverBoxOptions,\n ) {\n if (typeof ResizeObserver !== 'undefined') {\n this._resizeObserver = new ResizeObserver(entries => this._resizeSubject.next(entries));\n }\n }\n\n /**\n * Gets a stream of resize events for the given element.\n * @param target The element to observe.\n * @return The stream of resize events for the element.\n */\n observe(target: Element): Observable<ResizeObserverEntry[]> {\n if (!this._elementObservables.has(target)) {\n this._elementObservables.set(\n target,\n new Observable<ResizeObserverEntry[]>(observer => {\n const subscription = this._resizeSubject.subscribe(observer);\n this._resizeObserver?.observe(target, {box: this._box});\n return () => {\n this._resizeObserver?.unobserve(target);\n subscription.unsubscribe();\n this._elementObservables.delete(target);\n };\n }).pipe(\n filter(entries => entries.some(entry => entry.target === target)),\n // Share a replay of the last event so that subsequent calls to observe the same element\n // receive initial sizing info like the first one. Also enable ref counting so the\n // element will be automatically unobserved when there are no more subscriptions.\n shareReplay({bufferSize: 1, refCount: true}),\n takeUntil(this._destroyed),\n ),\n );\n }\n return this._elementObservables.get(target)!;\n }\n\n /** Destroys this instance. */\n destroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this._resizeSubject.complete();\n this._elementObservables.clear();\n }\n}\n\n/**\n * Allows observing resize events on multiple elements using a shared set of ResizeObserver.\n * Sharing a ResizeObserver instance is recommended for better performance (see\n * https://github.com/WICG/resize-observer/issues/59).\n *\n * Rather than share a single `ResizeObserver`, this class creates one `ResizeObserver` per type\n * of observed box ('content-box', 'border-box', and 'device-pixel-content-box'). This avoids\n * later calls to `observe` with a different box type from influencing the events dispatched to\n * earlier calls.\n */\n@Service()\nexport class SharedResizeObserver implements OnDestroy {\n private _cleanupErrorListener: (() => void) | undefined;\n\n /** Map of box type to shared resize observer. */\n private _observers = new Map<ResizeObserverBoxOptions, SingleBoxSharedResizeObserver>();\n\n /** The Angular zone. */\n private _ngZone = inject(NgZone);\n\n constructor() {\n if (typeof ResizeObserver !== 'undefined' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n this._ngZone.runOutsideAngular(() => {\n const renderer = inject(RendererFactory2).createRenderer(null, null);\n this._cleanupErrorListener = renderer.listen(\n 'window',\n 'error',\n loopLimitExceededErrorHandler,\n );\n });\n }\n }\n\n ngOnDestroy() {\n for (const [, observer] of this._observers) {\n observer.destroy();\n }\n this._observers.clear();\n this._cleanupErrorListener?.();\n }\n\n /**\n * Gets a stream of resize events for the given target element and box type.\n * @param target The element to observe for resizes.\n * @param options Options to pass to the `ResizeObserver`\n * @return The stream of resize events for the element.\n */\n observe(target: Element, options?: ResizeObserverOptions): Observable<ResizeObserverEntry[]> {\n const box = options?.box || 'content-box';\n if (!this._observers.has(box)) {\n this._observers.set(box, new SingleBoxSharedResizeObserver(box));\n }\n return this._observers.get(box)!.observe(target);\n }\n}\n"],"names":["loopLimitExceededErrorHandler","e","ErrorEvent","message","console","error","SingleBoxSharedResizeObserver","_box","_destroyed","Subject","_resizeSubject","_resizeObserver","_elementObservables","Map","constructor","ResizeObserver","entries","next","observe","target","has","set","Observable","observer","subscription","subscribe","box","unobserve","unsubscribe","delete","pipe","filter","some","entry","shareReplay","bufferSize","refCount","takeUntil","get","destroy","complete","clear","SharedResizeObserver","_cleanupErrorListener","_observers","_ngZone","inject","NgZone","ngDevMode","runOutsideAngular","renderer","RendererFactory2","createRenderer","listen","ngOnDestroy","options","deps","i0","ɵɵFactoryTarget","Service","decorators"],"mappings":";;;;;AAgBA,MAAMA,6BAA6B,GAAIC,CAAU,IAAI;EACnD,IAAIA,CAAC,YAAYC,UAAU,IAAID,CAAC,CAACE,OAAO,KAAK,oCAAoC,EAAE;IACjFC,OAAO,CAACC,KAAK,CACX,CAAA,EAAGJ,CAAC,CAACE,OAAO,8IAA8I,CAC3J;AACH,EAAA;AACF,CAAC;AAMD,MAAMG,6BAA6B,CAAA;EAYvBC,IAAA;AAVFC,EAAAA,UAAU,GAAG,IAAIC,OAAO,EAAQ;AAEhCC,EAAAA,cAAc,GAAG,IAAID,OAAO,EAAyB;EAErDE,eAAe;AAEfC,EAAAA,mBAAmB,GAAG,IAAIC,GAAG,EAA8C;EAEnFC,WAAAA,CAEUP,IAA8B,EAAA;IAA9B,IAAA,CAAAA,IAAI,GAAJA,IAAI;AAEZ,IAAA,IAAI,OAAOQ,cAAc,KAAK,WAAW,EAAE;AACzC,MAAA,IAAI,CAACJ,eAAe,GAAG,IAAII,cAAc,CAACC,OAAO,IAAI,IAAI,CAACN,cAAc,CAACO,IAAI,CAACD,OAAO,CAAC,CAAC;AACzF,IAAA;AACF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AM,CAAC;AAClD,EAAA;;;;;UA1CWuB,oBAAoB;AAAAc,IAAAA,IAAA,EAAA,EAAA;AAAArC,IAAAA,MAAA,EAAAsC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAApBjB;AAAoB,GAAA,CAAA;;;;;;QAApBA,oBAAoB;AAAAkB,EAAAA,UAAA,EAAA,CAAA;UADhCD;;;;;;;"}
1
+ {"version":3,"file":"observers-private.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/observers/private/shared-resize-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 {inject, Service, NgZone, OnDestroy, RendererFactory2} from '@angular/core';\nimport {Observable, Subject} from 'rxjs';\nimport {filter, shareReplay, takeUntil} from 'rxjs/operators';\n\n/**\n * Handler that logs \"ResizeObserver loop limit exceeded\" errors.\n * These errors are not shown in the Chrome console, so we log them to ensure developers are aware.\n * @param e The error\n */\nconst loopLimitExceededErrorHandler = (e: unknown) => {\n if (e instanceof ErrorEvent && e.message === 'ResizeObserver loop limit exceeded') {\n console.error(\n `${e.message}. This could indicate a performance issue with your app. See https://github.com/WICG/resize-observer/blob/master/explainer.md#error-handling`,\n );\n }\n};\n\n/**\n * A shared ResizeObserver to be used for a particular box type (content-box, border-box, or\n * device-pixel-content-box)\n */\nclass SingleBoxSharedResizeObserver {\n /** Stream that emits when the shared observer is destroyed. */\n private _destroyed = new Subject<void>();\n /** Stream of all events from the ResizeObserver. */\n private _resizeSubject = new Subject<ResizeObserverEntry[]>();\n /** ResizeObserver used to observe element resize events. */\n private _resizeObserver?: ResizeObserver;\n /** A map of elements to streams of their resize events. */\n private _elementObservables = new Map<Element, Observable<ResizeObserverEntry[]>>();\n\n constructor(\n /** The box type to observe for resizes. */\n private _box: ResizeObserverBoxOptions,\n ) {\n if (typeof ResizeObserver !== 'undefined') {\n this._resizeObserver = new ResizeObserver(entries => this._resizeSubject.next(entries));\n }\n }\n\n /**\n * Gets a stream of resize events for the given element.\n * @param target The element to observe.\n * @return The stream of resize events for the element.\n */\n observe(target: Element): Observable<ResizeObserverEntry[]> {\n if (!this._elementObservables.has(target)) {\n this._elementObservables.set(\n target,\n new Observable<ResizeObserverEntry[]>(observer => {\n const subscription = this._resizeSubject.subscribe(observer);\n this._resizeObserver?.observe(target, {box: this._box});\n return () => {\n this._resizeObserver?.unobserve(target);\n subscription.unsubscribe();\n this._elementObservables.delete(target);\n };\n }).pipe(\n filter(entries => entries.some(entry => entry.target === target)),\n // Share a replay of the last event so that subsequent calls to observe the same element\n // receive initial sizing info like the first one. Also enable ref counting so the\n // element will be automatically unobserved when there are no more subscriptions.\n shareReplay({bufferSize: 1, refCount: true}),\n takeUntil(this._destroyed),\n ),\n );\n }\n return this._elementObservables.get(target)!;\n }\n\n /** Destroys this instance. */\n destroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this._resizeSubject.complete();\n this._elementObservables.clear();\n }\n}\n\n/**\n * Allows observing resize events on multiple elements using a shared set of ResizeObserver.\n * Sharing a ResizeObserver instance is recommended for better performance (see\n * https://github.com/WICG/resize-observer/issues/59).\n *\n * Rather than share a single `ResizeObserver`, this class creates one `ResizeObserver` per type\n * of observed box ('content-box', 'border-box', and 'device-pixel-content-box'). This avoids\n * later calls to `observe` with a different box type from influencing the events dispatched to\n * earlier calls.\n */\n@Service()\nexport class SharedResizeObserver implements OnDestroy {\n private _cleanupErrorListener: (() => void) | undefined;\n\n /** Map of box type to shared resize observer. */\n private _observers = new Map<ResizeObserverBoxOptions, SingleBoxSharedResizeObserver>();\n\n /** The Angular zone. */\n private _ngZone = inject(NgZone);\n\n constructor() {\n if (typeof ResizeObserver !== 'undefined' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n this._ngZone.runOutsideAngular(() => {\n const renderer = inject(RendererFactory2).createRenderer(null, null);\n this._cleanupErrorListener = renderer.listen(\n 'window',\n 'error',\n loopLimitExceededErrorHandler,\n );\n });\n }\n }\n\n ngOnDestroy() {\n for (const [, observer] of this._observers) {\n observer.destroy();\n }\n this._observers.clear();\n this._cleanupErrorListener?.();\n }\n\n /**\n * Gets a stream of resize events for the given target element and box type.\n * @param target The element to observe for resizes.\n * @param options Options to pass to the `ResizeObserver`\n * @return The stream of resize events for the element.\n */\n observe(target: Element, options?: ResizeObserverOptions): Observable<ResizeObserverEntry[]> {\n const box = options?.box || 'content-box';\n if (!this._observers.has(box)) {\n this._observers.set(box, new SingleBoxSharedResizeObserver(box));\n }\n return this._observers.get(box)!.observe(target);\n }\n}\n"],"names":["loopLimitExceededErrorHandler","e","ErrorEvent","message","console","error","SingleBoxSharedResizeObserver","_box","_destroyed","Subject","_resizeSubject","_resizeObserver","_elementObservables","Map","constructor","ResizeObserver","entries","next","observe","target","has","set","Observable","observer","subscription","subscribe","box","unobserve","unsubscribe","delete","pipe","filter","some","entry","shareReplay","bufferSize","refCount","takeUntil","get","destroy","complete","clear","SharedResizeObserver","_cleanupErrorListener","_observers","_ngZone","inject","NgZone","ngDevMode","runOutsideAngular","renderer","RendererFactory2","createRenderer","listen","ngOnDestroy","options","deps","i0","ɵɵFactoryTarget","Service","decorators"],"mappings":";;;;;AAgBA,MAAMA,6BAA6B,GAAIC,CAAU,IAAI;EACnD,IAAIA,CAAC,YAAYC,UAAU,IAAID,CAAC,CAACE,OAAO,KAAK,oCAAoC,EAAE;IACjFC,OAAO,CAACC,KAAK,CACX,CAAA,EAAGJ,CAAC,CAACE,OAAO,8IAA8I,CAC3J;AACH,EAAA;AACF,CAAC;AAMD,MAAMG,6BAA6B,CAAA;EAYvBC,IAAA;AAVFC,EAAAA,UAAU,GAAG,IAAIC,OAAO,EAAQ;AAEhCC,EAAAA,cAAc,GAAG,IAAID,OAAO,EAAyB;EAErDE,eAAe;AAEfC,EAAAA,mBAAmB,GAAG,IAAIC,GAAG,EAA8C;EAEnFC,WAAAA,CAEUP,IAA8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,GAAG,CAACM,GAAG,CAAC,EAAE;AAC7B,MAAA,IAAI,CAACkB,UAAU,CAACvB,GAAG,CAACK,GAAG,EAAE,IAAIpB,6BAA6B,CAACoB,GAAG,CAAC,CAAC;AAClE,IAAA;AACA,IAAA,OAAO,IAAI,CAACkB,UAAU,CAACN,GAAG,CAACZ,GAAG,CAAE,CAACR,OAAO,CAACC,MAAM,CAAC;AAClD,EAAA;;;;;UA1CWuB,oBAAoB;AAAAc,IAAAA,IAAA,EAAA,EAAA;AAAArC,IAAAA,MAAA,EAAAsC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAApBjB;AAAoB,GAAA,CAAA;;;;;;QAApBA,oBAAoB;AAAAkB,EAAAA,UAAA,EAAA,CAAA;UADhCD;;;;;;;"}
@@ -29,7 +29,7 @@ class MutationObserverFactory {
29
29
  }
30
30
  static ɵfac = i0.ɵɵngDeclareFactory({
31
31
  minVersion: "12.0.0",
32
- version: "22.1.0-next.0",
32
+ version: "22.1.0-next.3",
33
33
  ngImport: i0,
34
34
  type: MutationObserverFactory,
35
35
  deps: [],
@@ -37,14 +37,14 @@ class MutationObserverFactory {
37
37
  });
38
38
  static ɵprov = i0.ɵɵngDeclareService({
39
39
  minVersion: "22.0.0",
40
- version: "22.1.0-next.0",
40
+ version: "22.1.0-next.3",
41
41
  ngImport: i0,
42
42
  type: MutationObserverFactory
43
43
  });
44
44
  }
45
45
  i0.ɵɵngDeclareClassMetadata({
46
46
  minVersion: "12.0.0",
47
- version: "22.1.0-next.0",
47
+ version: "22.1.0-next.3",
48
48
  ngImport: i0,
49
49
  type: MutationObserverFactory,
50
50
  decorators: [{
@@ -119,7 +119,7 @@ class ContentObserver {
119
119
  }
120
120
  static ɵfac = i0.ɵɵngDeclareFactory({
121
121
  minVersion: "12.0.0",
122
- version: "22.1.0-next.0",
122
+ version: "22.1.0-next.3",
123
123
  ngImport: i0,
124
124
  type: ContentObserver,
125
125
  deps: [],
@@ -127,14 +127,14 @@ class ContentObserver {
127
127
  });
128
128
  static ɵprov = i0.ɵɵngDeclareService({
129
129
  minVersion: "22.0.0",
130
- version: "22.1.0-next.0",
130
+ version: "22.1.0-next.3",
131
131
  ngImport: i0,
132
132
  type: ContentObserver
133
133
  });
134
134
  }
135
135
  i0.ɵɵngDeclareClassMetadata({
136
136
  minVersion: "12.0.0",
137
- version: "22.1.0-next.0",
137
+ version: "22.1.0-next.3",
138
138
  ngImport: i0,
139
139
  type: ContentObserver,
140
140
  decorators: [{
@@ -180,7 +180,7 @@ class CdkObserveContent {
180
180
  }
181
181
  static ɵfac = i0.ɵɵngDeclareFactory({
182
182
  minVersion: "12.0.0",
183
- version: "22.1.0-next.0",
183
+ version: "22.1.0-next.3",
184
184
  ngImport: i0,
185
185
  type: CdkObserveContent,
186
186
  deps: [],
@@ -188,7 +188,7 @@ class CdkObserveContent {
188
188
  });
189
189
  static ɵdir = i0.ɵɵngDeclareDirective({
190
190
  minVersion: "16.1.0",
191
- version: "22.1.0-next.0",
191
+ version: "22.1.0-next.3",
192
192
  type: CdkObserveContent,
193
193
  isStandalone: true,
194
194
  selector: "[cdkObserveContent]",
@@ -205,7 +205,7 @@ class CdkObserveContent {
205
205
  }
206
206
  i0.ɵɵngDeclareClassMetadata({
207
207
  minVersion: "12.0.0",
208
- version: "22.1.0-next.0",
208
+ version: "22.1.0-next.3",
209
209
  ngImport: i0,
210
210
  type: CdkObserveContent,
211
211
  decorators: [{
@@ -235,7 +235,7 @@ i0.ɵɵngDeclareClassMetadata({
235
235
  class ObserversModule {
236
236
  static ɵfac = i0.ɵɵngDeclareFactory({
237
237
  minVersion: "12.0.0",
238
- version: "22.1.0-next.0",
238
+ version: "22.1.0-next.3",
239
239
  ngImport: i0,
240
240
  type: ObserversModule,
241
241
  deps: [],
@@ -243,7 +243,7 @@ class ObserversModule {
243
243
  });
244
244
  static ɵmod = i0.ɵɵngDeclareNgModule({
245
245
  minVersion: "14.0.0",
246
- version: "22.1.0-next.0",
246
+ version: "22.1.0-next.3",
247
247
  ngImport: i0,
248
248
  type: ObserversModule,
249
249
  imports: [CdkObserveContent],
@@ -251,7 +251,7 @@ class ObserversModule {
251
251
  });
252
252
  static ɵinj = i0.ɵɵngDeclareInjector({
253
253
  minVersion: "12.0.0",
254
- version: "22.1.0-next.0",
254
+ version: "22.1.0-next.3",
255
255
  ngImport: i0,
256
256
  type: ObserversModule,
257
257
  providers: [MutationObserverFactory]
@@ -259,7 +259,7 @@ class ObserversModule {
259
259
  }
260
260
  i0.ɵɵngDeclareClassMetadata({
261
261
  minVersion: "12.0.0",
262
- version: "22.1.0-next.0",
262
+ version: "22.1.0-next.3",
263
263
  ngImport: i0,
264
264
  type: ObserversModule,
265
265
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"observers.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/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 Service,\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@Service()\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@Service()\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 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 | undefined;\n\n private _currentSubscription: Subscription | null = null;\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":["shouldIgnoreRecord","record","type","target","Comment","i","addedNodes","length","removedNodes","MutationObserverFactory","create","callback","MutationObserver","deps","i0","ɵɵFactoryTarget","Service","decorators","ContentObserver","_mutationObserverFactory","inject","_observedElements","Map","_ngZone","NgZone","ngOnDestroy","forEach","_","element","_cleanupObserver","observe","elementOrRef","coerceElement","Observable","observer","stream","_observeElement","subscription","pipe","map","records","filter","subscribe","run","next","unsubscribe","_unobserveElement","runOutsideAngular","has","Subject","mutations","characterData","childList","subtree","set","count","get","disconnect","complete","delete","CdkObserveContent","_contentObserver","_elementRef","ElementRef","event","EventEmitter","disabled","_disabled","value","_unsubscribe","_subscribe","debounce","_debounce","coerceNumberProperty","_currentSubscription","ngAfterContentInit","debounceTime","Directive","ɵdir","ɵɵngDeclareDirective","minVersion","version","booleanAttribute","outputs","exportAs","ngImport","args","selector","Output","Input","alias","transform","ObserversModule","NgModule","imports","exports","providers"],"mappings":";;;;;;AA8BA,SAASA,kBAAkBA,CAACC,MAAsB,EAAA;EAEhD,IAAIA,MAAM,CAACC,IAAI,KAAK,eAAe,IAAID,MAAM,CAACE,MAAM,YAAYC,OAAO,EAAE;AACvE,IAAA,OAAO,IAAI;AACb,EAAA;AAEA,EAAA,IAAIH,MAAM,CAACC,IAAI,KAAK,WAAW,EAAE;AAC/B,IAAA,KAAK,IAAIG,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,MAAM,CAACK,UAAU,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;MACjD,IAAI,EAAEJ,MAAM,CAACK,UAAU,CAACD,CAAC,CA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A,EAAA,EAAA;AAAAV,IAAAA,MAAA,EAAAW,EAAA,CAAAC,eAAA,CAAA8E;AAAA,GAAA,CAAA;;;;;UAAfD,eAAe;IAAAE,OAAA,EAAA,CA/DflC,iBAAiB,CAAA;IAAAmC,OAAA,EAAA,CAAjBnC,iBAAiB;AAAA,GAAA,CAAA;;;;;UA+DjBgC,eAAe;IAAAI,SAAA,EAFf,CAACvF,uBAAuB;AAAC,GAAA,CAAA;;;;;;QAEzBmF,eAAe;AAAA3E,EAAAA,UAAA,EAAA,CAAA;UAL3B4E,QAAQ;AAACP,IAAAA,IAAA,EAAA,CAAA;MACRQ,OAAO,EAAE,CAAClC,iBAAiB,CAAC;MAC5BmC,OAAO,EAAE,CAACnC,iBAAiB,CAAC;MAC5BoC,SAAS,EAAE,CAACvF,uBAAuB;KACpC;;;;;;"}
1
+ {"version":3,"file":"observers.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/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 Service,\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@Service()\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@Service()\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 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 | undefined;\n\n private _currentSubscription: Subscription | null = null;\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":["shouldIgnoreRecord","record","type","target","Comment","i","addedNodes","length","removedNodes","MutationObserverFactory","create","callback","MutationObserver","deps","i0","ɵɵFactoryTarget","Service","decorators","ContentObserver","_mutationObserverFactory","inject","_observedElements","Map","_ngZone","NgZone","ngOnDestroy","forEach","_","element","_cleanupObserver","observe","elementOrRef","coerceElement","Observable","observer","stream","_observeElement","subscription","pipe","map","records","filter","subscribe","run","next","unsubscribe","_unobserveElement","runOutsideAngular","has","Subject","mutations","characterData","childList","subtree","set","count","get","disconnect","complete","delete","CdkObserveContent","_contentObserver","_elementRef","ElementRef","event","EventEmitter","disabled","_disabled","value","_unsubscribe","_subscribe","debounce","_debounce","coerceNumberProperty","_currentSubscription","ngAfterContentInit","debounceTime","Directive","ɵdir","ɵɵngDeclareDirective","minVersion","version","booleanAttribute","outputs","exportAs","ngImport","args","selector","Output","Input","alias","transform","ObserversModule","NgModule","imports","exports","providers"],"mappings":";;;;;;AA8BA,SAASA,kBAAkBA,CAACC,MAAsB,EAAA;EAEhD,IAAIA,MAAM,CAACC,IAAI,KAAK,eAAe,IAAID,MAAM,CAACE,MAAM,YAAYC,OAAO,EAAE;AACvE,IAAA,OAAO,IAAI;AACb,EAAA;AAEA,EAAA,IAAIH,MAAM,CAACC,IAAI,KAAK,WAAW,EAAE;AAC/B,IAAA,KAAK,IAAIG,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,MAAM,CAACK,UAAU,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;MACj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eAAe,CAAA;;;;;UAAfA,eAAe;AAAA/E,IAAAA,IAAA,EAAA,EAAA;AAAAV,IAAAA,MAAA,EAAAW,EAAA,CAAAC,eAAA,CAAA8E;AAAA,GAAA,CAAA;;;;;UAAfD,eAAe;IAAAE,OAAA,EAAA,CA/DflC,iBAAiB,CAAA;IAAAmC,OAAA,EAAA,CAAjBnC,iBAAiB;AAAA,GAAA,CAAA;;;;;UA+DjBgC,eAAe;IAAAI,SAAA,EAFf,CAACvF,uBAAuB;AAAC,GAAA,CAAA;;;;;;QAEzBmF,eAAe;AAAA3E,EAAAA,UAAA,EAAA,CAAA;UAL3B4E,QAAQ;AAACP,IAAAA,IAAA,EAAA,CAAA;MACRQ,OAAO,EAAE,CAAClC,iBAAiB,CAAC;MAC5BmC,OAAO,EAAE,CAACnC,iBAAiB,CAAC;MAC5BoC,SAAS,EAAE,CAACvF,uBAAuB;KACpC;;;;;;"}
@@ -70,7 +70,7 @@ class FullscreenOverlayContainer extends OverlayContainer {
70
70
  }
71
71
  static ɵfac = i0.ɵɵngDeclareFactory({
72
72
  minVersion: "12.0.0",
73
- version: "22.1.0-next.0",
73
+ version: "22.1.0-next.3",
74
74
  ngImport: i0,
75
75
  type: FullscreenOverlayContainer,
76
76
  deps: [],
@@ -78,14 +78,14 @@ class FullscreenOverlayContainer extends OverlayContainer {
78
78
  });
79
79
  static ɵprov = i0.ɵɵngDeclareService({
80
80
  minVersion: "22.0.0",
81
- version: "22.1.0-next.0",
81
+ version: "22.1.0-next.3",
82
82
  ngImport: i0,
83
83
  type: FullscreenOverlayContainer
84
84
  });
85
85
  }
86
86
  i0.ɵɵngDeclareClassMetadata({
87
87
  minVersion: "12.0.0",
88
- version: "22.1.0-next.0",
88
+ version: "22.1.0-next.3",
89
89
  ngImport: i0,
90
90
  type: FullscreenOverlayContainer,
91
91
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/overlay/fullscreen-overlay-container.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 {inject, Service, OnDestroy, RendererFactory2} from '@angular/core';\nimport {OverlayContainer} from './overlay-container';\n\n/**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\n@Service()\nexport class FullscreenOverlayContainer extends OverlayContainer implements OnDestroy {\n private _renderer = inject(RendererFactory2).createRenderer(null, null);\n private _fullScreenEventName: string | undefined;\n private _cleanupFullScreenListener: (() => void) | undefined;\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this._cleanupFullScreenListener?.();\n }\n\n protected override _createContainer(): void {\n const eventName = this._getEventName();\n super._createContainer();\n this._adjustParentForFullscreenChange();\n\n if (eventName) {\n this._cleanupFullScreenListener?.();\n this._cleanupFullScreenListener = this._renderer.listen('document', eventName, () => {\n this._adjustParentForFullscreenChange();\n });\n }\n }\n\n private _adjustParentForFullscreenChange(): void {\n if (this._containerElement) {\n const fullscreenElement = this.getFullscreenElement();\n const parent = fullscreenElement || this._document.body;\n parent.appendChild(this._containerElement);\n }\n }\n\n private _getEventName(): string | undefined {\n if (!this._fullScreenEventName) {\n const _document = this._document as any;\n\n if (_document.fullscreenEnabled) {\n this._fullScreenEventName = 'fullscreenchange';\n } else if (_document.webkitFullscreenEnabled) {\n this._fullScreenEventName = 'webkitfullscreenchange';\n } else if (_document.mozFullScreenEnabled) {\n this._fullScreenEventName = 'mozfullscreenchange';\n } else if (_document.msFullscreenEnabled) {\n this._fullScreenEventName = 'MSFullscreenChange';\n }\n }\n\n return this._fullScreenEventName;\n }\n\n /**\n * When the page is put into fullscreen mode, a specific element is specified.\n * Only that element and its children are visible when in fullscreen mode.\n */\n getFullscreenElement(): Element {\n const _document = this._document as any;\n\n return (\n _document.fullscreenElement ||\n _document.webkitFullscreenElement ||\n _document.mozFullScreenElement ||\n _document.msFullscreenElement ||\n null\n );\n }\n}\n"],"names":["FullscreenOverlayContainer","OverlayContainer","_renderer","inject","RendererFactory2","createRenderer","_fullScreenEventName","_cleanupFullScreenListener","ngOnDestroy","_createContainer","eventName","_getEventName","_adjustParentForFullscreenChange","listen","_containerElement","fullscreenElement","getFullscreenElement","parent","_document","body","appendChild","fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement","deps","target","i0","ɵɵFactoryTarget","Service","decorators"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAmBM,MAAOA,0BAA2B,SAAQC,gBAAgB,CAAA;EACtDC,SAAS,GAAGC,MAAM,CAACC,gBAAgB,CAAC,CAACC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;EAC/DC,oBAAoB;EACpBC,0BAA0B;AAEzBC,EAAAA,WAAWA,GAAA;IAClB,KAAK,CAACA,WAAW,EAAE;IACnB,IAAI,CAACD,0BAA0B,IAAI;AACrC,EAAA;AAEmBE,EAAAA,gBAAgBA,GAAA;AACjC,IAAA,MAAMC,SAAS,GAAG,IAAI,CAACC,aAAa,EAAE;IACtC,KAAK,CAACF,gBAAgB,EAAE;IACxB,IAAI,CAACG,gCAAgC,EAAE;AAEvC,IAAA,IAAIF,SAAS,EAAE;MACb,IAAI,CAACH,0BAA0B,IAAI;AACnC,MAAA,IAAI,CAACA,0BAA0B,GAAG,IAAI,CAACL,SAAS,CAACW,MAAM,CAAC,UAAU,EAAEH,SAAS,EAAE,MAAK;QAClF,IAAI,CAACE,gCAAgC,EAAE;AACzC,MAAA,CAAC,CAAC;AACJ,IAAA;AACF,EAAA;AAEQA,EAAAA,gCAAgCA,GAAA;IACtC,IAAI,IAAI,CAACE,iBAAiB,EAAE;AAC1B,MAAA,MAAMC,iBAAiB,GAAG,IAAI,CAACC,oB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file":"overlay.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/overlay/fullscreen-overlay-container.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 {inject, Service, OnDestroy, RendererFactory2} from '@angular/core';\nimport {OverlayContainer} from './overlay-container';\n\n/**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\n@Service()\nexport class FullscreenOverlayContainer extends OverlayContainer implements OnDestroy {\n private _renderer = inject(RendererFactory2).createRenderer(null, null);\n private _fullScreenEventName: string | undefined;\n private _cleanupFullScreenListener: (() => void) | undefined;\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this._cleanupFullScreenListener?.();\n }\n\n protected override _createContainer(): void {\n const eventName = this._getEventName();\n super._createContainer();\n this._adjustParentForFullscreenChange();\n\n if (eventName) {\n this._cleanupFullScreenListener?.();\n this._cleanupFullScreenListener = this._renderer.listen('document', eventName, () => {\n this._adjustParentForFullscreenChange();\n });\n }\n }\n\n private _adjustParentForFullscreenChange(): void {\n if (this._containerElement) {\n const fullscreenElement = this.getFullscreenElement();\n const parent = fullscreenElement || this._document.body;\n parent.appendChild(this._containerElement);\n }\n }\n\n private _getEventName(): string | undefined {\n if (!this._fullScreenEventName) {\n const _document = this._document as any;\n\n if (_document.fullscreenEnabled) {\n this._fullScreenEventName = 'fullscreenchange';\n } else if (_document.webkitFullscreenEnabled) {\n this._fullScreenEventName = 'webkitfullscreenchange';\n } else if (_document.mozFullScreenEnabled) {\n this._fullScreenEventName = 'mozfullscreenchange';\n } else if (_document.msFullscreenEnabled) {\n this._fullScreenEventName = 'MSFullscreenChange';\n }\n }\n\n return this._fullScreenEventName;\n }\n\n /**\n * When the page is put into fullscreen mode, a specific element is specified.\n * Only that element and its children are visible when in fullscreen mode.\n */\n getFullscreenElement(): Element {\n const _document = this._document as any;\n\n return (\n _document.fullscreenElement ||\n _document.webkitFullscreenElement ||\n _document.mozFullScreenElement ||\n _document.msFullscreenElement ||\n null\n );\n }\n}\n"],"names":["FullscreenOverlayContainer","OverlayContainer","_renderer","inject","RendererFactory2","createRenderer","_fullScreenEventName","_cleanupFullScreenListener","ngOnDestroy","_createContainer","eventName","_getEventName","_adjustParentForFullscreenChange","listen","_containerElement","fullscreenElement","getFullscreenElement","parent","_document","body","appendChild","fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement","deps","target","i0","ɵɵFactoryTarget","Service","decorators"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAmBM,MAAOA,0BAA2B,SAAQC,gBAAgB,CAAA;EACtDC,SAAS,GAAGC,MAAM,CAACC,gBAAgB,CAAC,CAACC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;EAC/DC,oBAAoB;EACpBC,0BAA0B;AAEzBC,EAAAA,WAAWA,GAAA;IAClB,KAAK,CAACA,WAAW,EAAE;IACnB,IAAI,CAACD,0BAA0B,IAAI;AACrC,EAAA;AAEmBE,EAAAA,gBAAgBA,GAAA;AACjC,IAAA,MAAMC,SAAS,GAAG,IAAI,CAACC,aAAa,EAAE;IACtC,KAAK,CAACF,gBAAgB,EAAE;IACxB,IAAI,CAACG,gCAAgC,EAAE;AAEvC,IAAA,IAAIF,SAAS,EAAE;MACb,IAAI,CAACH,0BAA0B,IAAI;AACnC,MAAA,IAAI,CAACA,0BAA0B,GAAG,IAAI,CAACL,SAAS,CAACW,MAAM,CAAC,UAAU,EAAEH,SAAS,EAAE,MAAK;QAClF,IAAI,CAACE,gCAAgC,EAAE;AACzC,MAAA,CAAC,CAAC;AACJ,IAAA;AACF,EAAA;AAEQA,EAAAA,gCAAgCA,GAAA;IACtC,IAAI,IAAI,CAACE,iBAAiB,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EAAAA,UAAA,EAAA,CAAA;UADtCD;;;;;;"}
@@ -10,7 +10,7 @@ import '@angular/common';
10
10
  class PlatformModule {
11
11
  static ɵfac = i0.ɵɵngDeclareFactory({
12
12
  minVersion: "12.0.0",
13
- version: "22.1.0-next.0",
13
+ version: "22.1.0-next.3",
14
14
  ngImport: i0,
15
15
  type: PlatformModule,
16
16
  deps: [],
@@ -18,20 +18,20 @@ class PlatformModule {
18
18
  });
19
19
  static ɵmod = i0.ɵɵngDeclareNgModule({
20
20
  minVersion: "14.0.0",
21
- version: "22.1.0-next.0",
21
+ version: "22.1.0-next.3",
22
22
  ngImport: i0,
23
23
  type: PlatformModule
24
24
  });
25
25
  static ɵinj = i0.ɵɵngDeclareInjector({
26
26
  minVersion: "12.0.0",
27
- version: "22.1.0-next.0",
27
+ version: "22.1.0-next.3",
28
28
  ngImport: i0,
29
29
  type: PlatformModule
30
30
  });
31
31
  }
32
32
  i0.ɵɵngDeclareClassMetadata({
33
33
  minVersion: "12.0.0",
34
- version: "22.1.0-next.0",
34
+ version: "22.1.0-next.3",
35
35
  ngImport: i0,
36
36
  type: PlatformModule,
37
37
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"platform.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/platform/platform-module.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/platform/features/input-types.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule({})\nexport class PlatformModule {}\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/** Cached result Set of input types support by the current browser. */\nlet supportedInputTypes: Set<string>;\n\n/** Types of `<input>` that *might* be supported. */\nconst candidateInputTypes = [\n // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after\n // first changing it to something else:\n // The specified value \"\" does not conform to the required format.\n // The format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal numbers.\n 'color',\n 'button',\n 'checkbox',\n 'date',\n 'datetime-local',\n 'email',\n 'file',\n 'hidden',\n 'image',\n 'month',\n 'number',\n 'password',\n 'radio',\n 'range',\n 'reset',\n 'search',\n 'submit',\n 'tel',\n 'text',\n 'time',\n 'url',\n 'week',\n];\n\n/** @returns The input types supported by this browser. */\nexport function getSupportedInputTypes(): Set<string> {\n // Result is cached.\n if (supportedInputTypes) {\n return supportedInputTypes;\n }\n\n // We can't check if an input type is not supported until we're on the browser, so say that\n // everything is supported when not on the browser. We don't use `Platform` here since it's\n // just a helper function and can't inject it.\n if (typeof document !== 'object' || !document) {\n supportedInputTypes = new Set(candidateInputTypes);\n return supportedInputTypes;\n }\n\n let featureTestInput = document.createElement('input');\n supportedInputTypes = new Set(\n candidateInputTypes.filter(value => {\n featureTestInput.setAttribute('type', value);\n return featureTestInput.type === value;\n }),\n );\n\n return supportedInputTypes;\n}\n"],"names":["PlatformModule","deps","target","i0","ɵɵFactoryTarget","NgModule","decorators","supportedInputTypes","candidateInputTypes","getSupportedInputTypes","document","Set","featureTestInput","createElement","filter","value","setAttribute","type"],"mappings":";;;;;;;;;MAWaA,cAAc,CAAA;;;;;UAAdA,cAAc;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAAdL;AAAc,GAAA,CAAA;;;;;UAAdA;AAAc,GAAA,CAAA;;;;;;QAAdA,cAAc;AAAAM,EAAAA,UAAA,EAAA,CAAA;UAD1BD,QAAQ;WAAC,EAAE;;;;ACDZ,IAAIE,mBAAgC;AAGpC,MAAMC,mBAAmB,GAAG,CAK1B,OAAO,EACP,QAAQ,EACR,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,UAAU,EACV,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,CACP;SAGeC,sBAAsBA,GAAA;AAEpC,EAAA,IAAIF,mBAAmB,EAAE;AACvB,IAAA,OAAOA,mBAAmB;AAC5B,EAAA;AAKA,EAAA,IAAI,OAAOG,QAAQ,KAAK,QAAQ,IAAI,CAACA,QAAQ,EAAE;AAC7CH,IAAAA,mBAAmB,GAAG,IAAII,GAAG,CAACH,mBAAmB,CAAC;AAClD,IAAA,OAAOD,mBAAmB;AAC5B,EAAA;AAEA,EAAA,IAAIK,gBAAgB,GAAGF,QAAQ,CAACG,aAAa,CAAC,OAAO,CAAC;EACtDN,mBAAmB,GAAG,IAAII,GAAG,CAC3BH,mBAAmB,CAACM,MAAM,CAACC,KAAK,IAAG;AACjCH,IAAAA,gBAAgB,CAACI,YAAY,CAAC,MAAM,EAAED,KAAK,CAAC;AAC5C,IAAA,OAAOH,gBAAgB,CAACK,IAAI,KAAKF,KAAK;AACxC,EAAA,CAAC,CAAC,CACH;AAED,EAAA,OAAOR,mBAAmB;AAC5B;;;;"}
1
+ {"version":3,"file":"platform.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/platform/platform-module.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/platform/features/input-types.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule({})\nexport class PlatformModule {}\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/** Cached result Set of input types support by the current browser. */\nlet supportedInputTypes: Set<string>;\n\n/** Types of `<input>` that *might* be supported. */\nconst candidateInputTypes = [\n // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after\n // first changing it to something else:\n // The specified value \"\" does not conform to the required format.\n // The format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal numbers.\n 'color',\n 'button',\n 'checkbox',\n 'date',\n 'datetime-local',\n 'email',\n 'file',\n 'hidden',\n 'image',\n 'month',\n 'number',\n 'password',\n 'radio',\n 'range',\n 'reset',\n 'search',\n 'submit',\n 'tel',\n 'text',\n 'time',\n 'url',\n 'week',\n];\n\n/** @returns The input types supported by this browser. */\nexport function getSupportedInputTypes(): Set<string> {\n // Result is cached.\n if (supportedInputTypes) {\n return supportedInputTypes;\n }\n\n // We can't check if an input type is not supported until we're on the browser, so say that\n // everything is supported when not on the browser. We don't use `Platform` here since it's\n // just a helper function and can't inject it.\n if (typeof document !== 'object' || !document) {\n supportedInputTypes = new Set(candidateInputTypes);\n return supportedInputTypes;\n }\n\n let featureTestInput = document.createElement('input');\n supportedInputTypes = new Set(\n candidateInputTypes.filter(value => {\n featureTestInput.setAttribute('type', value);\n return featureTestInput.type === value;\n }),\n );\n\n return supportedInputTypes;\n}\n"],"names":["PlatformModule","deps","target","i0","ɵɵFactoryTarget","NgModule","decorators","supportedInputTypes","candidateInputTypes","getSupportedInputTypes","document","Set","featureTestInput","createElement","filter","value","setAttribute","type"],"mappings":";;;;;;;;;MAWaA,cAAc,CAAA;;;;;UAAdA,cAAc;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAAdL;AAAc,GAAA,CAAA;;;;;UAAdA;AAAc,GAAA,CAAA;;;;;;QAAdA,cAAc;AAAAM,EAAAA,UAAA,EAAA,CAAA;UAD1BD,QAAQ;WAAC,EAAE;;;;ACDZ,IAAIE,mBAAgC;AAGpC,MAAMC,mBAAmB,GAAG,CAK1B,OAAO,EACP,QAAQ,EACR,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,UAAU,EACV,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,CACP;SAGeC,sBAAsBA,GAAA;AAEpC,EAAA,IAAIF,mBAAmB,EAAE;AACvB,IAAA,OAAOA,mBAAmB;AAC5B,EAAA;AAKA,EAAA,IAAI,OAAOG,QAAQ,KAAK,QAAQ,IAAI,CAACA,QAAQ,EAAE;AAC7CH,IAAAA,mBAAmB,GAAG,IAAII,GAAG,CAACH,mBAAmB,CAAC;AAClD,IAAA,OAAOD,mBAAmB;AAC5B,EAAA;AAEA,EAAA,IAAIK,gBAAgB,GAAGF,QAAQ,CAACG,aAAa,CAAC,OAAO,CAAC;EACtDN,mBAAmB,GAAG,IAAII,GAAG,CAC3BH,mBAAmB,CAACM,MAAM,CAACC,KAAK,IAAG;AACjCH,IAAAA,gBAAgB,CAACI,YAAY,CAAC,MAAM,EAAED,KAAK,CAAC;AAC5C,IAAA,OAAOH,gBAAgB,CAACK,IAAI,KAAKF,KAAK;AACxC,EAAA,CAAC,CAAC,CACH;AAED,EAAA,OAAOR,mBAAmB;AAC5B;;;;"}
@@ -257,7 +257,7 @@ class CdkPortal extends TemplatePortal {
257
257
  }
258
258
  static ɵfac = i0.ɵɵngDeclareFactory({
259
259
  minVersion: "12.0.0",
260
- version: "22.1.0-next.0",
260
+ version: "22.1.0-next.3",
261
261
  ngImport: i0,
262
262
  type: CdkPortal,
263
263
  deps: [],
@@ -265,7 +265,7 @@ class CdkPortal extends TemplatePortal {
265
265
  });
266
266
  static ɵdir = i0.ɵɵngDeclareDirective({
267
267
  minVersion: "14.0.0",
268
- version: "22.1.0-next.0",
268
+ version: "22.1.0-next.3",
269
269
  type: CdkPortal,
270
270
  isStandalone: true,
271
271
  selector: "[cdkPortal]",
@@ -276,7 +276,7 @@ class CdkPortal extends TemplatePortal {
276
276
  }
277
277
  i0.ɵɵngDeclareClassMetadata({
278
278
  minVersion: "12.0.0",
279
- version: "22.1.0-next.0",
279
+ version: "22.1.0-next.3",
280
280
  ngImport: i0,
281
281
  type: CdkPortal,
282
282
  decorators: [{
@@ -375,7 +375,7 @@ class CdkPortalOutlet extends BasePortalOutlet {
375
375
  }
376
376
  static ɵfac = i0.ɵɵngDeclareFactory({
377
377
  minVersion: "12.0.0",
378
- version: "22.1.0-next.0",
378
+ version: "22.1.0-next.3",
379
379
  ngImport: i0,
380
380
  type: CdkPortalOutlet,
381
381
  deps: null,
@@ -383,7 +383,7 @@ class CdkPortalOutlet extends BasePortalOutlet {
383
383
  });
384
384
  static ɵdir = i0.ɵɵngDeclareDirective({
385
385
  minVersion: "14.0.0",
386
- version: "22.1.0-next.0",
386
+ version: "22.1.0-next.3",
387
387
  type: CdkPortalOutlet,
388
388
  isStandalone: true,
389
389
  selector: "[cdkPortalOutlet]",
@@ -400,7 +400,7 @@ class CdkPortalOutlet extends BasePortalOutlet {
400
400
  }
401
401
  i0.ɵɵngDeclareClassMetadata({
402
402
  minVersion: "12.0.0",
403
- version: "22.1.0-next.0",
403
+ version: "22.1.0-next.3",
404
404
  ngImport: i0,
405
405
  type: CdkPortalOutlet,
406
406
  decorators: [{
@@ -423,7 +423,7 @@ i0.ɵɵngDeclareClassMetadata({
423
423
  class PortalModule {
424
424
  static ɵfac = i0.ɵɵngDeclareFactory({
425
425
  minVersion: "12.0.0",
426
- version: "22.1.0-next.0",
426
+ version: "22.1.0-next.3",
427
427
  ngImport: i0,
428
428
  type: PortalModule,
429
429
  deps: [],
@@ -431,7 +431,7 @@ class PortalModule {
431
431
  });
432
432
  static ɵmod = i0.ɵɵngDeclareNgModule({
433
433
  minVersion: "14.0.0",
434
- version: "22.1.0-next.0",
434
+ version: "22.1.0-next.3",
435
435
  ngImport: i0,
436
436
  type: PortalModule,
437
437
  imports: [CdkPortal, CdkPortalOutlet],
@@ -439,14 +439,14 @@ class PortalModule {
439
439
  });
440
440
  static ɵinj = i0.ɵɵngDeclareInjector({
441
441
  minVersion: "12.0.0",
442
- version: "22.1.0-next.0",
442
+ version: "22.1.0-next.3",
443
443
  ngImport: i0,
444
444
  type: PortalModule
445
445
  });
446
446
  }
447
447
  i0.ɵɵngDeclareClassMetadata({
448
448
  minVersion: "12.0.0",
449
- version: "22.1.0-next.0",
449
+ version: "22.1.0-next.3",
450
450
  ngImport: i0,
451
451
  type: PortalModule,
452
452
  decorators: [{