@angular/cdk 22.0.0-next.6 → 22.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.
- package/fesm2022/_a11y-module-chunk.mjs +43 -59
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_array-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs +17 -25
- package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
- package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
- package/fesm2022/_data-source-chunk.mjs.map +1 -1
- package/fesm2022/_directionality-chunk.mjs +9 -13
- package/fesm2022/_directionality-chunk.mjs.map +1 -1
- package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_element-chunk.mjs.map +1 -1
- package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
- package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_focus-monitor-chunk.mjs +20 -28
- package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
- package/fesm2022/_id-generator-chunk.mjs +9 -13
- package/fesm2022/_id-generator-chunk.mjs.map +1 -1
- package/fesm2022/_keycodes-chunk.mjs.map +1 -1
- package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_overlay-module-chunk.mjs +72 -100
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +9 -13
- package/fesm2022/_platform-chunk.mjs.map +1 -1
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_scrolling-chunk.mjs.map +1 -1
- package/fesm2022/_selection-model-chunk.mjs.map +1 -1
- package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
- package/fesm2022/_style-loader-chunk.mjs +9 -13
- package/fesm2022/_style-loader-chunk.mjs.map +1 -1
- package/fesm2022/_test-environment-chunk.mjs.map +1 -1
- package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_typeahead-chunk.mjs.map +1 -1
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs +9 -13
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
- package/fesm2022/a11y.mjs +25 -37
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +7 -7
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +16 -20
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion-private.mjs.map +1 -1
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/dialog.mjs +18 -21
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +42 -50
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +4 -4
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +10 -10
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +73 -69
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers-private.mjs +9 -13
- package/fesm2022/observers-private.mjs.map +1 -1
- package/fesm2022/observers.mjs +24 -32
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +10 -14
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +4 -4
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +10 -10
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +46 -54
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +22 -22
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +73 -73
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing-testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +22 -26
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +33 -32
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/index.js +23 -1
- package/schematics/index.js.map +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/devkit-file-system.js +34 -1
- package/schematics/ng-update/devkit-file-system.js.map +1 -1
- package/schematics/ng-update/migrations/attribute-selectors.js +34 -1
- package/schematics/ng-update/migrations/attribute-selectors.js.map +1 -1
- package/schematics/ng-update/migrations/class-inheritance.js +34 -1
- package/schematics/ng-update/migrations/class-inheritance.js.map +1 -1
- package/schematics/ng-update/migrations/class-names.js +34 -1
- package/schematics/ng-update/migrations/class-names.js.map +1 -1
- package/schematics/ng-update/migrations/constructor-signature.js +34 -1
- package/schematics/ng-update/migrations/constructor-signature.js.map +1 -1
- package/schematics/ng-update/migrations/css-selectors.js +34 -1
- package/schematics/ng-update/migrations/css-selectors.js.map +1 -1
- package/schematics/ng-update/migrations/css-tokens.js +34 -1
- package/schematics/ng-update/migrations/css-tokens.js.map +1 -1
- package/schematics/ng-update/migrations/element-selectors.js +34 -1
- package/schematics/ng-update/migrations/element-selectors.js.map +1 -1
- package/schematics/ng-update/migrations/method-call-arguments.js +34 -1
- package/schematics/ng-update/migrations/method-call-arguments.js.map +1 -1
- package/schematics/ng-update/migrations/property-names.js +34 -1
- package/schematics/ng-update/migrations/property-names.js.map +1 -1
- package/schematics/ng-update/migrations/symbol-removal.js +34 -1
- package/schematics/ng-update/migrations/symbol-removal.js.map +1 -1
- package/schematics/ng-update/typescript/base-types.js +34 -1
- package/schematics/ng-update/typescript/base-types.js.map +1 -1
- package/schematics/ng-update/typescript/imports.js +34 -1
- package/schematics/ng-update/typescript/imports.js.map +1 -1
- package/schematics/ng-update/typescript/literal.js +34 -1
- package/schematics/ng-update/typescript/literal.js.map +1 -1
- package/schematics/update-tool/component-resource-collector.js +34 -1
- package/schematics/update-tool/component-resource-collector.js.map +1 -1
- package/schematics/update-tool/index.js +34 -1
- package/schematics/update-tool/index.js.map +1 -1
- package/schematics/update-tool/migration.js +34 -1
- package/schematics/update-tool/migration.js.map +1 -1
- package/schematics/update-tool/utils/decorators.js +34 -1
- package/schematics/update-tool/utils/decorators.js.map +1 -1
- package/schematics/update-tool/utils/diagnostics.js +34 -1
- package/schematics/update-tool/utils/diagnostics.js.map +1 -1
- package/schematics/update-tool/utils/functions.js +34 -1
- package/schematics/update-tool/utils/functions.js.map +1 -1
- package/schematics/update-tool/utils/imports.js +34 -1
- package/schematics/update-tool/utils/imports.js.map +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +34 -1
- package/schematics/update-tool/utils/parse-tsconfig.js.map +1 -1
- package/schematics/update-tool/utils/property-name.js +34 -1
- package/schematics/update-tool/utils/property-name.js.map +1 -1
- package/schematics/update-tool/utils/virtual-host.js +34 -1
- package/schematics/update-tool/utils/virtual-host.js.map +1 -1
- package/schematics/utils/ast/ng-module-imports.js +34 -1
- package/schematics/utils/ast/ng-module-imports.js.map +1 -1
- package/schematics/utils/ast.js +34 -1
- package/schematics/utils/ast.js.map +1 -1
- package/schematics/utils/build-component.js +34 -1
- package/schematics/utils/build-component.js.map +1 -1
- package/types/dialog.d.ts +6 -1
- package/types/tree.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, NgZone, RendererFactory2,
|
|
2
|
+
import { inject, NgZone, RendererFactory2, Service } from '@angular/core';
|
|
3
3
|
import { Subject, Observable } from 'rxjs';
|
|
4
4
|
import { filter, shareReplay, takeUntil } from 'rxjs/operators';
|
|
5
5
|
|
|
@@ -74,30 +74,26 @@ class SharedResizeObserver {
|
|
|
74
74
|
}
|
|
75
75
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
76
76
|
minVersion: "12.0.0",
|
|
77
|
-
version: "22.0.0-next.
|
|
77
|
+
version: "22.0.0-next.9",
|
|
78
78
|
ngImport: i0,
|
|
79
79
|
type: SharedResizeObserver,
|
|
80
80
|
deps: [],
|
|
81
|
-
target: i0.ɵɵFactoryTarget.
|
|
81
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
82
82
|
});
|
|
83
|
-
static ɵprov = i0.ɵɵ
|
|
84
|
-
minVersion: "
|
|
85
|
-
version: "22.0.0-next.
|
|
83
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
84
|
+
minVersion: "22.0.0",
|
|
85
|
+
version: "22.0.0-next.9",
|
|
86
86
|
ngImport: i0,
|
|
87
|
-
type: SharedResizeObserver
|
|
88
|
-
providedIn: 'root'
|
|
87
|
+
type: SharedResizeObserver
|
|
89
88
|
});
|
|
90
89
|
}
|
|
91
90
|
i0.ɵɵngDeclareClassMetadata({
|
|
92
91
|
minVersion: "12.0.0",
|
|
93
|
-
version: "22.0.0-next.
|
|
92
|
+
version: "22.0.0-next.9",
|
|
94
93
|
ngImport: i0,
|
|
95
94
|
type: SharedResizeObserver,
|
|
96
95
|
decorators: [{
|
|
97
|
-
type:
|
|
98
|
-
args: [{
|
|
99
|
-
providedIn: 'root'
|
|
100
|
-
}]
|
|
96
|
+
type: Service
|
|
101
97
|
}],
|
|
102
98
|
ctorParameters: () => []
|
|
103
99
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observers-private.mjs","sources":["../../../../../
|
|
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,EAAA;EAOAE,OAAOA,CAACC,MAAe,EAAA;IACrB,IAAI,CAAC,IAAI,CAACP,mBAAmB,CAACQ,GAAG,CAACD,MAAM,CAAC,EAAE;MACzC,IAAI,CAACP,mBAAmB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AA,CAAA;;;;;UAApBjB;AAAoB,GAAA,CAAA;;;;;;QAApBA,oBAAoB;AAAAkB,EAAAA,UAAA,EAAA,CAAA;UADhCD;;;;;;;"}
|
package/fesm2022/observers.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, EventEmitter, booleanAttribute, NgZone,
|
|
2
|
+
import { inject, ElementRef, EventEmitter, booleanAttribute, NgZone, Service, Input, Output, Directive, NgModule } from '@angular/core';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { debounceTime, map, filter } from 'rxjs/operators';
|
|
5
5
|
import { coerceNumberProperty, coerceElement } from './_element-chunk.mjs';
|
|
@@ -29,30 +29,26 @@ class MutationObserverFactory {
|
|
|
29
29
|
}
|
|
30
30
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
31
31
|
minVersion: "12.0.0",
|
|
32
|
-
version: "22.0.0-next.
|
|
32
|
+
version: "22.0.0-next.9",
|
|
33
33
|
ngImport: i0,
|
|
34
34
|
type: MutationObserverFactory,
|
|
35
35
|
deps: [],
|
|
36
|
-
target: i0.ɵɵFactoryTarget.
|
|
36
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
37
37
|
});
|
|
38
|
-
static ɵprov = i0.ɵɵ
|
|
39
|
-
minVersion: "
|
|
40
|
-
version: "22.0.0-next.
|
|
38
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
39
|
+
minVersion: "22.0.0",
|
|
40
|
+
version: "22.0.0-next.9",
|
|
41
41
|
ngImport: i0,
|
|
42
|
-
type: MutationObserverFactory
|
|
43
|
-
providedIn: 'root'
|
|
42
|
+
type: MutationObserverFactory
|
|
44
43
|
});
|
|
45
44
|
}
|
|
46
45
|
i0.ɵɵngDeclareClassMetadata({
|
|
47
46
|
minVersion: "12.0.0",
|
|
48
|
-
version: "22.0.0-next.
|
|
47
|
+
version: "22.0.0-next.9",
|
|
49
48
|
ngImport: i0,
|
|
50
49
|
type: MutationObserverFactory,
|
|
51
50
|
decorators: [{
|
|
52
|
-
type:
|
|
53
|
-
args: [{
|
|
54
|
-
providedIn: 'root'
|
|
55
|
-
}]
|
|
51
|
+
type: Service
|
|
56
52
|
}]
|
|
57
53
|
});
|
|
58
54
|
class ContentObserver {
|
|
@@ -123,30 +119,26 @@ class ContentObserver {
|
|
|
123
119
|
}
|
|
124
120
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
125
121
|
minVersion: "12.0.0",
|
|
126
|
-
version: "22.0.0-next.
|
|
122
|
+
version: "22.0.0-next.9",
|
|
127
123
|
ngImport: i0,
|
|
128
124
|
type: ContentObserver,
|
|
129
125
|
deps: [],
|
|
130
|
-
target: i0.ɵɵFactoryTarget.
|
|
126
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
131
127
|
});
|
|
132
|
-
static ɵprov = i0.ɵɵ
|
|
133
|
-
minVersion: "
|
|
134
|
-
version: "22.0.0-next.
|
|
128
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
129
|
+
minVersion: "22.0.0",
|
|
130
|
+
version: "22.0.0-next.9",
|
|
135
131
|
ngImport: i0,
|
|
136
|
-
type: ContentObserver
|
|
137
|
-
providedIn: 'root'
|
|
132
|
+
type: ContentObserver
|
|
138
133
|
});
|
|
139
134
|
}
|
|
140
135
|
i0.ɵɵngDeclareClassMetadata({
|
|
141
136
|
minVersion: "12.0.0",
|
|
142
|
-
version: "22.0.0-next.
|
|
137
|
+
version: "22.0.0-next.9",
|
|
143
138
|
ngImport: i0,
|
|
144
139
|
type: ContentObserver,
|
|
145
140
|
decorators: [{
|
|
146
|
-
type:
|
|
147
|
-
args: [{
|
|
148
|
-
providedIn: 'root'
|
|
149
|
-
}]
|
|
141
|
+
type: Service
|
|
150
142
|
}]
|
|
151
143
|
});
|
|
152
144
|
class CdkObserveContent {
|
|
@@ -188,7 +180,7 @@ class CdkObserveContent {
|
|
|
188
180
|
}
|
|
189
181
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
190
182
|
minVersion: "12.0.0",
|
|
191
|
-
version: "22.0.0-next.
|
|
183
|
+
version: "22.0.0-next.9",
|
|
192
184
|
ngImport: i0,
|
|
193
185
|
type: CdkObserveContent,
|
|
194
186
|
deps: [],
|
|
@@ -196,7 +188,7 @@ class CdkObserveContent {
|
|
|
196
188
|
});
|
|
197
189
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
198
190
|
minVersion: "16.1.0",
|
|
199
|
-
version: "22.0.0-next.
|
|
191
|
+
version: "22.0.0-next.9",
|
|
200
192
|
type: CdkObserveContent,
|
|
201
193
|
isStandalone: true,
|
|
202
194
|
selector: "[cdkObserveContent]",
|
|
@@ -213,7 +205,7 @@ class CdkObserveContent {
|
|
|
213
205
|
}
|
|
214
206
|
i0.ɵɵngDeclareClassMetadata({
|
|
215
207
|
minVersion: "12.0.0",
|
|
216
|
-
version: "22.0.0-next.
|
|
208
|
+
version: "22.0.0-next.9",
|
|
217
209
|
ngImport: i0,
|
|
218
210
|
type: CdkObserveContent,
|
|
219
211
|
decorators: [{
|
|
@@ -243,7 +235,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
243
235
|
class ObserversModule {
|
|
244
236
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
245
237
|
minVersion: "12.0.0",
|
|
246
|
-
version: "22.0.0-next.
|
|
238
|
+
version: "22.0.0-next.9",
|
|
247
239
|
ngImport: i0,
|
|
248
240
|
type: ObserversModule,
|
|
249
241
|
deps: [],
|
|
@@ -251,7 +243,7 @@ class ObserversModule {
|
|
|
251
243
|
});
|
|
252
244
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
253
245
|
minVersion: "14.0.0",
|
|
254
|
-
version: "22.0.0-next.
|
|
246
|
+
version: "22.0.0-next.9",
|
|
255
247
|
ngImport: i0,
|
|
256
248
|
type: ObserversModule,
|
|
257
249
|
imports: [CdkObserveContent],
|
|
@@ -259,7 +251,7 @@ class ObserversModule {
|
|
|
259
251
|
});
|
|
260
252
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
261
253
|
minVersion: "12.0.0",
|
|
262
|
-
version: "22.0.0-next.
|
|
254
|
+
version: "22.0.0-next.9",
|
|
263
255
|
ngImport: i0,
|
|
264
256
|
type: ObserversModule,
|
|
265
257
|
providers: [MutationObserverFactory]
|
|
@@ -267,7 +259,7 @@ class ObserversModule {
|
|
|
267
259
|
}
|
|
268
260
|
i0.ɵɵngDeclareClassMetadata({
|
|
269
261
|
minVersion: "12.0.0",
|
|
270
|
-
version: "22.0.0-next.
|
|
262
|
+
version: "22.0.0-next.9",
|
|
271
263
|
ngImport: i0,
|
|
272
264
|
type: ObserversModule,
|
|
273
265
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
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 Injectable,\n Input,\n NgModule,\n NgZone,\n OnDestroy,\n Output,\n booleanAttribute,\n inject,\n} from '@angular/core';\nimport {Observable, Observer, Subject, Subscription} from 'rxjs';\nimport {debounceTime, filter, map} from 'rxjs/operators';\n\n// Angular may add, remove, or edit comment nodes during change detection. We don't care about\n// these changes because they don't affect the user-preceived content, and worse it can cause\n// infinite change detection cycles where the change detection updates a comment, triggering the\n// MutationObserver, triggering another change detection and kicking the cycle off again.\nfunction shouldIgnoreRecord(record: MutationRecord) {\n // Ignore changes to comment text.\n if (record.type === 'characterData' && record.target instanceof Comment) {\n return true;\n }\n // Ignore addition / removal of comments.\n if (record.type === 'childList') {\n for (let i = 0; i < record.addedNodes.length; i++) {\n if (!(record.addedNodes[i] instanceof Comment)) {\n return false;\n }\n }\n for (let i = 0; i < record.removedNodes.length; i++) {\n if (!(record.removedNodes[i] instanceof Comment)) {\n return false;\n }\n }\n return true;\n }\n // Observe everything else.\n return false;\n}\n\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\n@Injectable({providedIn: 'root'})\nexport class MutationObserverFactory {\n create(callback: MutationCallback): MutationObserver | null {\n return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n }\n}\n\n/** An injectable service that allows watching elements for changes to their content. */\n@Injectable({providedIn: 'root'})\nexport class ContentObserver implements OnDestroy {\n private _mutationObserverFactory = inject(MutationObserverFactory);\n\n /** Keeps track of the existing MutationObservers so they can be reused. */\n private _observedElements = new Map<\n Element,\n {\n observer: MutationObserver | null;\n readonly stream: Subject<MutationRecord[]>;\n count: number;\n }\n >();\n\n private _ngZone = inject(NgZone);\n\n 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","Injectable","ɵprov","ɵɵngDeclareInjectable","minVersion","version","ngImport","decorators","providedIn","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","booleanAttribute","outputs","exportAs","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,CA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A,EAAA;KAAA;AAAAU,IAAAA,OAAA,EAAA;AAAAjB,MAAAA,KAAA,EAAA;KAAA;IAAAkB,QAAA,EAAA,CAAA,mBAAA,CAAA;AAAAnE,IAAAA,QAAA,EAAAP;AAAA,GAAA,CAAA;;;;;;QAX5DoD,iBAAiB;AAAA5C,EAAAA,UAAA,EAAA,CAAA;UAJ7B6D,SAAS;AAACM,IAAAA,IAAA,EAAA,CAAA;AACTC,MAAAA,QAAQ,EAAE,qBAAqB;AAC/BF,MAAAA,QAAQ,EAAE;KACX;;;;YAMEG,MAAM;aAAC,mBAAmB;;;YAM1BC,KAAK;AAACH,MAAAA,IAAA,EAAA,CAAA;AAACI,QAAAA,KAAK,EAAE,2BAA2B;AAAEC,QAAAA,SAAS,EAAER;OAAiB;;;YAWvEM;;;;MAyCUG,eAAe,CAAA;;;;;UAAfA,eAAe;AAAAlF,IAAAA,IAAA,EAAA,EAAA;AAAAV,IAAAA,MAAA,EAAAW,EAAA,CAAAC,eAAA,CAAAiF;AAAA,GAAA,CAAA;;;;;UAAfD,eAAe;IAAAE,OAAA,EAAA,CA/Df/B,iBAAiB,CAAA;IAAAgC,OAAA,EAAA,CAAjBhC,iBAAiB;AAAA,GAAA,CAAA;;;;;UA+DjB6B,eAAe;IAAAI,SAAA,EAFf,CAAC1F,uBAAuB;AAAC,GAAA,CAAA;;;;;;QAEzBsF,eAAe;AAAAzE,EAAAA,UAAA,EAAA,CAAA;UAL3B0E,QAAQ;AAACP,IAAAA,IAAA,EAAA,CAAA;MACRQ,OAAO,EAAE,CAAC/B,iBAAiB,CAAC;MAC5BgC,OAAO,EAAE,CAAChC,iBAAiB,CAAC;MAC5BiC,SAAS,EAAE,CAAC1F,uBAAuB;KACpC;;;;;;"}
|
|
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,CAAC,YAAYD,OAAO,CAAC,EAAE;AAC9C,QAAA,OAAO,KAAK;AACd,MAAA;AACF,IAAA;AACA,IAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,MAAM,CAACO,YAAY,CAACD,MAAM,EAAEF,CAAC,EAAE,EAAE;MACnD,IAAI,EAAEJ,MAAM,CAACO,YAAY,CAACH,CAAC,CAAC,YAAYD,OAAO,CAAC,EAAE;AAChD,QAAA,OAAO,KAAK;AACd,MAAA;AACF,IAAA;AACA,IAAA,OAAO,IAAI;AACb,EAAA;AAEA,EAAA,OAAO,KAAK;AACd;MAOaK,uBAAuB,CAAA;EAClCC,MAAMA,CAACC,QAA0B,EAAA;IAC/B,OAAO,OAAOC,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,IAAIA,gBAAgB,CAACD,QAAQ,CAAC;AACxF,EAAA;;;;;UAHWF,uBAAuB;AAAAI,IAAAA,IAAA,EAAA,EAAA;AAAAV,IAA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
2
2
|
export { BlockScrollStrategy, CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, GlobalPositionStrategy, NoopScrollStrategy, OVERLAY_DEFAULT_CONFIG, Overlay, OverlayConfig, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollStrategyOptions, ScrollingVisibility, createBlockScrollStrategy, createCloseScrollStrategy, createFlexibleConnectedPositionStrategy, createGlobalPositionStrategy, createNoopScrollStrategy, createOverlayRef, createRepositionScrollStrategy, validateHorizontalPosition, validateVerticalPosition } from './_overlay-module-chunk.mjs';
|
|
3
3
|
export { CdkScrollable, ScrollDispatcher, ViewportRuler, CdkFixedSizeVirtualScroll as ɵɵCdkFixedSizeVirtualScroll, CdkScrollableModule as ɵɵCdkScrollableModule, CdkVirtualForOf as ɵɵCdkVirtualForOf, CdkVirtualScrollViewport as ɵɵCdkVirtualScrollViewport, CdkVirtualScrollableElement as ɵɵCdkVirtualScrollableElement, CdkVirtualScrollableWindow as ɵɵCdkVirtualScrollableWindow } from './scrolling.mjs';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { inject, RendererFactory2,
|
|
5
|
+
import { inject, RendererFactory2, Service } from '@angular/core';
|
|
6
6
|
export { Dir as ɵɵDir } from './bidi.mjs';
|
|
7
7
|
import '@angular/common';
|
|
8
8
|
import './_platform-chunk.mjs';
|
|
@@ -70,30 +70,26 @@ class FullscreenOverlayContainer extends OverlayContainer {
|
|
|
70
70
|
}
|
|
71
71
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
72
72
|
minVersion: "12.0.0",
|
|
73
|
-
version: "22.0.0-next.
|
|
73
|
+
version: "22.0.0-next.9",
|
|
74
74
|
ngImport: i0,
|
|
75
75
|
type: FullscreenOverlayContainer,
|
|
76
|
-
deps:
|
|
77
|
-
target: i0.ɵɵFactoryTarget.
|
|
76
|
+
deps: [],
|
|
77
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
78
78
|
});
|
|
79
|
-
static ɵprov = i0.ɵɵ
|
|
80
|
-
minVersion: "
|
|
81
|
-
version: "22.0.0-next.
|
|
79
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
80
|
+
minVersion: "22.0.0",
|
|
81
|
+
version: "22.0.0-next.9",
|
|
82
82
|
ngImport: i0,
|
|
83
|
-
type: FullscreenOverlayContainer
|
|
84
|
-
providedIn: 'root'
|
|
83
|
+
type: FullscreenOverlayContainer
|
|
85
84
|
});
|
|
86
85
|
}
|
|
87
86
|
i0.ɵɵngDeclareClassMetadata({
|
|
88
87
|
minVersion: "12.0.0",
|
|
89
|
-
version: "22.0.0-next.
|
|
88
|
+
version: "22.0.0-next.9",
|
|
90
89
|
ngImport: i0,
|
|
91
90
|
type: FullscreenOverlayContainer,
|
|
92
91
|
decorators: [{
|
|
93
|
-
type:
|
|
94
|
-
args: [{
|
|
95
|
-
providedIn: 'root'
|
|
96
|
-
}]
|
|
92
|
+
type: Service
|
|
97
93
|
}]
|
|
98
94
|
});
|
|
99
95
|
|
package/fesm2022/overlay.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.mjs","sources":["../../../../../
|
|
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,oBAAoB,EAAE;MACrD,MAAMC,MAAM,GAAGF,iBAAiB,IAAI,IAAI,CAACG,SAAS,CAACC,IAAI;AACvDF,MAAAA,MAAM,CAACG,WAAW,CAAC,IAAI,CAACN,iBAAiB,CAAC;AAC5C,IAAA;AACF,EAAA;AAEQH,EAAAA,aAAaA,GAAA;AACnB,IAAA,IAAI,CAAC,IAAI,CAACL,oBAAoB,EAAE;AAC9B,MAAA,MAAMY,SAAS,GAAG,IAAI,CAACA,SAAgB;MAEvC,IAAIA,SAAS,CAACG,iBAAiB,EAAE;QAC/B,IAAI,CAACf,oBAAoB,GAAG,kBAAkB;AAChD,MAAA,CAAA,MAAO,IAAIY,SAAS,CAACI,uBAAuB,EAAE;QAC5C,IAAI,CAAChB,oBAAoB,GAAG,wBAAwB;AACtD,MAAA,CAAA,MAAO,IAAIY,SAAS,CAACK,oBAAoB,EAAE;QACzC,IAAI,CAACjB,oBAAoB,GAAG,qBAAqB;AACnD,MAAA,CAAA,MAAO,IAAIY,SAAS,CAACM,mBAAmB,EAAE;QACxC,IAAI,CAAClB,oBAAoB,GAAG,oBAAoB;AAClD,MAAA;AACF,IAAA;IAEA,OAAO,IAAI,CAACA,oBAAoB;AAClC,EAAA;AAMAU,EAAAA,oBAAoBA,GAAA;AAClB,IAAA,MAAME,SAAS,GAAG,IAAI,CAACA,SAAgB;AAEvC,IAAA,OACEA,SAAS,CAACH,iBAAiB,IAC3BG,SAAS,CAACO,uBAAuB,IACjCP,SAAS,CAACQ,oBAAoB,IAC9BR,SAAS,CAACS,mBAAmB,IAC7B,IAAI;AAER,EAAA;;;;;UA/DW3B,0BAA0B;AAAA4B,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAA1BhC;AAA0B,GAAA,CAAA;;;;;;QAA1BA,0BAA0B;AAAAiC,EAAAA,UAAA,EAAA,CAAA;UADtCD;;;;;;"}
|
package/fesm2022/platform.mjs
CHANGED
|
@@ -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.0.0-next.
|
|
13
|
+
version: "22.0.0-next.9",
|
|
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.0.0-next.
|
|
21
|
+
version: "22.0.0-next.9",
|
|
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.0.0-next.
|
|
27
|
+
version: "22.0.0-next.9",
|
|
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.0.0-next.
|
|
34
|
+
version: "22.0.0-next.9",
|
|
35
35
|
ngImport: i0,
|
|
36
36
|
type: PlatformModule,
|
|
37
37
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.mjs","sources":["../../../../../
|
|
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;;;;"}
|
package/fesm2022/portal.mjs
CHANGED
|
@@ -253,7 +253,7 @@ class CdkPortal extends TemplatePortal {
|
|
|
253
253
|
}
|
|
254
254
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
255
255
|
minVersion: "12.0.0",
|
|
256
|
-
version: "22.0.0-next.
|
|
256
|
+
version: "22.0.0-next.9",
|
|
257
257
|
ngImport: i0,
|
|
258
258
|
type: CdkPortal,
|
|
259
259
|
deps: [],
|
|
@@ -261,7 +261,7 @@ class CdkPortal extends TemplatePortal {
|
|
|
261
261
|
});
|
|
262
262
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
263
263
|
minVersion: "14.0.0",
|
|
264
|
-
version: "22.0.0-next.
|
|
264
|
+
version: "22.0.0-next.9",
|
|
265
265
|
type: CdkPortal,
|
|
266
266
|
isStandalone: true,
|
|
267
267
|
selector: "[cdkPortal]",
|
|
@@ -272,7 +272,7 @@ class CdkPortal extends TemplatePortal {
|
|
|
272
272
|
}
|
|
273
273
|
i0.ɵɵngDeclareClassMetadata({
|
|
274
274
|
minVersion: "12.0.0",
|
|
275
|
-
version: "22.0.0-next.
|
|
275
|
+
version: "22.0.0-next.9",
|
|
276
276
|
ngImport: i0,
|
|
277
277
|
type: CdkPortal,
|
|
278
278
|
decorators: [{
|
|
@@ -370,7 +370,7 @@ class CdkPortalOutlet extends BasePortalOutlet {
|
|
|
370
370
|
}
|
|
371
371
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
372
372
|
minVersion: "12.0.0",
|
|
373
|
-
version: "22.0.0-next.
|
|
373
|
+
version: "22.0.0-next.9",
|
|
374
374
|
ngImport: i0,
|
|
375
375
|
type: CdkPortalOutlet,
|
|
376
376
|
deps: null,
|
|
@@ -378,7 +378,7 @@ class CdkPortalOutlet extends BasePortalOutlet {
|
|
|
378
378
|
});
|
|
379
379
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
380
380
|
minVersion: "14.0.0",
|
|
381
|
-
version: "22.0.0-next.
|
|
381
|
+
version: "22.0.0-next.9",
|
|
382
382
|
type: CdkPortalOutlet,
|
|
383
383
|
isStandalone: true,
|
|
384
384
|
selector: "[cdkPortalOutlet]",
|
|
@@ -395,7 +395,7 @@ class CdkPortalOutlet extends BasePortalOutlet {
|
|
|
395
395
|
}
|
|
396
396
|
i0.ɵɵngDeclareClassMetadata({
|
|
397
397
|
minVersion: "12.0.0",
|
|
398
|
-
version: "22.0.0-next.
|
|
398
|
+
version: "22.0.0-next.9",
|
|
399
399
|
ngImport: i0,
|
|
400
400
|
type: CdkPortalOutlet,
|
|
401
401
|
decorators: [{
|
|
@@ -418,7 +418,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
418
418
|
class PortalModule {
|
|
419
419
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
420
420
|
minVersion: "12.0.0",
|
|
421
|
-
version: "22.0.0-next.
|
|
421
|
+
version: "22.0.0-next.9",
|
|
422
422
|
ngImport: i0,
|
|
423
423
|
type: PortalModule,
|
|
424
424
|
deps: [],
|
|
@@ -426,7 +426,7 @@ class PortalModule {
|
|
|
426
426
|
});
|
|
427
427
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
428
428
|
minVersion: "14.0.0",
|
|
429
|
-
version: "22.0.0-next.
|
|
429
|
+
version: "22.0.0-next.9",
|
|
430
430
|
ngImport: i0,
|
|
431
431
|
type: PortalModule,
|
|
432
432
|
imports: [CdkPortal, CdkPortalOutlet],
|
|
@@ -434,14 +434,14 @@ class PortalModule {
|
|
|
434
434
|
});
|
|
435
435
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
436
436
|
minVersion: "12.0.0",
|
|
437
|
-
version: "22.0.0-next.
|
|
437
|
+
version: "22.0.0-next.9",
|
|
438
438
|
ngImport: i0,
|
|
439
439
|
type: PortalModule
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
i0.ɵɵngDeclareClassMetadata({
|
|
443
443
|
minVersion: "12.0.0",
|
|
444
|
-
version: "22.0.0-next.
|
|
444
|
+
version: "22.0.0-next.9",
|
|
445
445
|
ngImport: i0,
|
|
446
446
|
type: PortalModule,
|
|
447
447
|
decorators: [{
|