@angular/cdk 16.0.0-next.4 → 16.0.0-next.5
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/a11y/index.d.ts +2 -2
- package/accordion/index.d.ts +2 -2
- package/bidi/index.d.ts +1 -1
- package/clipboard/index.d.ts +1 -1
- package/drag-drop/index.d.ts +6 -6
- package/esm2020/a11y/a11y-module.mjs +4 -4
- package/esm2020/a11y/aria-describer/aria-describer.mjs +3 -3
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +6 -6
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap.mjs +6 -6
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +3 -3
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
- package/esm2020/a11y/live-announcer/live-announcer.mjs +6 -6
- package/esm2020/accordion/accordion-item.mjs +3 -3
- package/esm2020/accordion/accordion-module.mjs +4 -4
- package/esm2020/accordion/accordion.mjs +3 -3
- package/esm2020/bidi/bidi-module.mjs +4 -4
- package/esm2020/bidi/dir.mjs +3 -3
- package/esm2020/bidi/directionality.mjs +3 -3
- package/esm2020/clipboard/clipboard-module.mjs +4 -4
- package/esm2020/clipboard/clipboard.mjs +3 -3
- package/esm2020/clipboard/copy-to-clipboard.mjs +3 -3
- package/esm2020/collections/unique-selection-dispatcher.mjs +3 -3
- package/esm2020/dialog/dialog-container.mjs +3 -3
- package/esm2020/dialog/dialog-module.mjs +4 -4
- package/esm2020/dialog/dialog.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-handle.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-preview.mjs +3 -3
- package/esm2020/drag-drop/directives/drag.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list-group.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list.mjs +3 -3
- package/esm2020/drag-drop/drag-drop-module.mjs +4 -4
- package/esm2020/drag-drop/drag-drop-registry.mjs +3 -3
- package/esm2020/drag-drop/drag-drop.mjs +3 -3
- package/esm2020/layout/breakpoints-observer.mjs +3 -3
- package/esm2020/layout/layout-module.mjs +4 -4
- package/esm2020/layout/media-matcher.mjs +3 -3
- package/esm2020/listbox/listbox-module.mjs +4 -4
- package/esm2020/listbox/listbox.mjs +6 -6
- package/esm2020/menu/context-menu-trigger.mjs +6 -6
- package/esm2020/menu/menu-aim.mjs +6 -6
- package/esm2020/menu/menu-bar.mjs +3 -3
- package/esm2020/menu/menu-base.mjs +3 -3
- package/esm2020/menu/menu-group.mjs +3 -3
- package/esm2020/menu/menu-item-checkbox.mjs +3 -3
- package/esm2020/menu/menu-item-radio.mjs +3 -3
- package/esm2020/menu/menu-item-selectable.mjs +3 -3
- package/esm2020/menu/menu-item.mjs +3 -3
- package/esm2020/menu/menu-module.mjs +4 -4
- package/esm2020/menu/menu-stack.mjs +3 -3
- package/esm2020/menu/menu-trigger-base.mjs +3 -3
- package/esm2020/menu/menu-trigger.mjs +5 -4
- package/esm2020/menu/menu.mjs +3 -3
- package/esm2020/observers/observe-content.mjs +13 -13
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +3 -3
- package/esm2020/overlay/fullscreen-overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-directives.mjs +6 -6
- package/esm2020/overlay/overlay-module.mjs +4 -4
- package/esm2020/overlay/overlay.mjs +3 -3
- package/esm2020/overlay/position/overlay-position-builder.mjs +3 -3
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +3 -3
- package/esm2020/platform/platform-module.mjs +4 -4
- package/esm2020/platform/platform.mjs +3 -3
- package/esm2020/portal/portal-directives.mjs +16 -16
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +3 -3
- package/esm2020/scrolling/scroll-dispatcher.mjs +3 -3
- package/esm2020/scrolling/scrollable.mjs +3 -3
- package/esm2020/scrolling/scrolling-module.mjs +8 -8
- package/esm2020/scrolling/viewport-ruler.mjs +3 -3
- package/esm2020/scrolling/virtual-for-of.mjs +3 -3
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +3 -3
- package/esm2020/scrolling/virtual-scrollable-element.mjs +3 -3
- package/esm2020/scrolling/virtual-scrollable-window.mjs +3 -3
- package/esm2020/scrolling/virtual-scrollable.mjs +3 -3
- package/esm2020/stepper/step-header.mjs +3 -3
- package/esm2020/stepper/step-label.mjs +3 -3
- package/esm2020/stepper/stepper-button.mjs +6 -6
- package/esm2020/stepper/stepper-module.mjs +4 -4
- package/esm2020/stepper/stepper.mjs +6 -6
- package/esm2020/table/cell.mjs +21 -21
- package/esm2020/table/coalesced-style-scheduler.mjs +3 -3
- package/esm2020/table/row.mjs +27 -27
- package/esm2020/table/table-module.mjs +4 -4
- package/esm2020/table/table.mjs +18 -18
- package/esm2020/table/text-column.mjs +3 -3
- package/esm2020/text-field/autofill.mjs +6 -6
- package/esm2020/text-field/autosize.mjs +3 -3
- package/esm2020/text-field/text-field-module.mjs +4 -4
- package/esm2020/tree/nested-node.mjs +3 -3
- package/esm2020/tree/node.mjs +3 -3
- package/esm2020/tree/outlet.mjs +3 -3
- package/esm2020/tree/padding.mjs +3 -3
- package/esm2020/tree/toggle.mjs +3 -3
- package/esm2020/tree/tree-module.mjs +4 -4
- package/esm2020/tree/tree.mjs +6 -6
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +40 -175
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -47
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +10 -54
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -24
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -54
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/coercion.mjs +0 -58
- package/fesm2015/coercion.mjs.map +1 -1
- package/fesm2015/collections.mjs +3 -68
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/dialog.mjs +10 -61
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +28 -184
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/keycodes.mjs +0 -30
- package/fesm2015/keycodes.mjs.map +1 -1
- package/fesm2015/layout.mjs +10 -54
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/listbox.mjs +10 -40
- package/fesm2015/listbox.mjs.map +1 -1
- package/fesm2015/menu.mjs +51 -184
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/observers.mjs +13 -36
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +34 -178
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -72
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +16 -67
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +35 -86
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -73
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +76 -162
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs +0 -23
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +1 -58
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs +0 -37
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +13 -50
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -104
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +40 -197
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -47
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +10 -54
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -24
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -54
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/coercion.mjs +0 -58
- package/fesm2020/coercion.mjs.map +1 -1
- package/fesm2020/collections.mjs +3 -84
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/dialog.mjs +10 -68
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +28 -199
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/keycodes.mjs +0 -30
- package/fesm2020/keycodes.mjs.map +1 -1
- package/fesm2020/layout.mjs +10 -54
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/listbox.mjs +10 -40
- package/fesm2020/listbox.mjs.map +1 -1
- package/fesm2020/menu.mjs +50 -184
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/observers.mjs +13 -36
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +34 -206
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -72
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +16 -67
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +35 -136
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -73
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +76 -169
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs +0 -37
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +1 -72
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs +0 -66
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +13 -50
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -111
- package/fesm2020/tree.mjs.map +1 -1
- package/listbox/index.d.ts +2 -2
- package/menu/index.d.ts +5 -5
- package/observers/index.d.ts +1 -1
- package/overlay/index.d.ts +1 -1
- package/package.json +1 -1
- package/portal/index.d.ts +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/scrolling/index.d.ts +3 -3
- package/stepper/index.d.ts +4 -4
- package/table/index.d.ts +6 -6
- package/text-field/index.d.ts +1 -1
- package/tree/index.d.ts +6 -6
package/fesm2020/observers.mjs
CHANGED
|
@@ -4,13 +4,6 @@ import { Injectable, EventEmitter, Directive, Output, Input, NgModule } from '@a
|
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { debounceTime } from 'rxjs/operators';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright Google LLC All Rights Reserved.
|
|
10
|
-
*
|
|
11
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
12
|
-
* found in the LICENSE file at https://angular.io/license
|
|
13
|
-
*/
|
|
14
7
|
/**
|
|
15
8
|
* Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
|
|
16
9
|
* @docs-private
|
|
@@ -20,9 +13,9 @@ class MutationObserverFactory {
|
|
|
20
13
|
return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
|
|
21
14
|
}
|
|
22
15
|
}
|
|
23
|
-
MutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
24
|
-
MutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
16
|
+
MutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
+
MutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MutationObserverFactory, decorators: [{
|
|
26
19
|
type: Injectable,
|
|
27
20
|
args: [{ providedIn: 'root' }]
|
|
28
21
|
}] });
|
|
@@ -93,9 +86,9 @@ class ContentObserver {
|
|
|
93
86
|
}
|
|
94
87
|
}
|
|
95
88
|
}
|
|
96
|
-
ContentObserver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
97
|
-
ContentObserver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
89
|
+
ContentObserver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ContentObserver, deps: [{ token: MutationObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
90
|
+
ContentObserver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ContentObserver, providedIn: 'root' });
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ContentObserver, decorators: [{
|
|
99
92
|
type: Injectable,
|
|
100
93
|
args: [{ providedIn: 'root' }]
|
|
101
94
|
}], ctorParameters: function () { return [{ type: MutationObserverFactory }]; } });
|
|
@@ -155,9 +148,9 @@ class CdkObserveContent {
|
|
|
155
148
|
this._currentSubscription?.unsubscribe();
|
|
156
149
|
}
|
|
157
150
|
}
|
|
158
|
-
CdkObserveContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
159
|
-
CdkObserveContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
151
|
+
CdkObserveContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkObserveContent, deps: [{ token: ContentObserver }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
152
|
+
CdkObserveContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkObserveContent, selector: "[cdkObserveContent]", inputs: { disabled: ["cdkObserveContentDisabled", "disabled"], debounce: "debounce" }, outputs: { event: "cdkObserveContent" }, exportAs: ["cdkObserveContent"], ngImport: i0 });
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkObserveContent, decorators: [{
|
|
161
154
|
type: Directive,
|
|
162
155
|
args: [{
|
|
163
156
|
selector: '[cdkObserveContent]',
|
|
@@ -174,10 +167,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
174
167
|
}] } });
|
|
175
168
|
class ObserversModule {
|
|
176
169
|
}
|
|
177
|
-
ObserversModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
178
|
-
ObserversModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
179
|
-
ObserversModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
170
|
+
ObserversModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ObserversModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
171
|
+
ObserversModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: ObserversModule, declarations: [CdkObserveContent], exports: [CdkObserveContent] });
|
|
172
|
+
ObserversModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ObserversModule, providers: [MutationObserverFactory] });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ObserversModule, decorators: [{
|
|
181
174
|
type: NgModule,
|
|
182
175
|
args: [{
|
|
183
176
|
exports: [CdkObserveContent],
|
|
@@ -186,22 +179,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
186
179
|
}]
|
|
187
180
|
}] });
|
|
188
181
|
|
|
189
|
-
/**
|
|
190
|
-
* @license
|
|
191
|
-
* Copyright Google LLC All Rights Reserved.
|
|
192
|
-
*
|
|
193
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
194
|
-
* found in the LICENSE file at https://angular.io/license
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @license
|
|
199
|
-
* Copyright Google LLC All Rights Reserved.
|
|
200
|
-
*
|
|
201
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
202
|
-
* found in the LICENSE file at https://angular.io/license
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
182
|
/**
|
|
206
183
|
* Generated bundle index. Do not edit.
|
|
207
184
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observers.mjs","sources":["../../../../../../src/cdk/observers/observe-content.ts","../../../../../../src/cdk/observers/public-api.ts","../../../../../../src/cdk/observers/index.ts","../../../../../../src/cdk/observers/observers_public_index.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.io/license\n */\n\nimport {\n coerceBooleanProperty,\n coerceNumberProperty,\n coerceElement,\n BooleanInput,\n NumberInput,\n} from '@angular/cdk/coercion';\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Injectable,\n Input,\n NgModule,\n NgZone,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {Observable, Subject, Subscription, Observer} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\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 /** 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 constructor(private _mutationObserverFactory: MutationObserverFactory) {}\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.subscribe(observer);\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 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 * 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 /** 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('cdkObserveContentDisabled')\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: BooleanInput) {\n this._disabled = coerceBooleanProperty(value);\n this._disabled ? this._unsubscribe() : this._subscribe();\n }\n private _disabled = false;\n\n /** Debounce interval for emitting the changes. */\n @Input()\n get debounce(): number {\n return this._debounce;\n }\n set debounce(value: NumberInput) {\n this._debounce = coerceNumberProperty(value);\n this._subscribe();\n }\n private _debounce: number;\n\n private _currentSubscription: Subscription | null = null;\n\n constructor(\n private _contentObserver: ContentObserver,\n private _elementRef: ElementRef<HTMLElement>,\n private _ngZone: NgZone,\n ) {}\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 // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.\n // Consider brining it back inside the zone next time we're making breaking changes.\n // Bringing it back inside can cause things like infinite change detection loops and changed\n // after checked errors if people's code isn't handling it properly.\n this._ngZone.runOutsideAngular(() => {\n this._currentSubscription = (\n this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream\n ).subscribe(this.event);\n });\n }\n\n private _unsubscribe() {\n this._currentSubscription?.unsubscribe();\n }\n}\n\n@NgModule({\n exports: [CdkObserveContent],\n declarations: [CdkObserveContent],\n providers: [MutationObserverFactory],\n})\nexport class ObserversModule {}\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.io/license\n */\n\nexport * from './observe-content';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;AAMG;AAwBH;;;AAGG;AACH,MACa,uBAAuB,CAAA;AAClC,IAAA,MAAM,CAAC,QAA0B,EAAA;AAC/B,QAAA,OAAO,OAAO,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KACxF;;2HAH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CAAA;oBACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,SAAS,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA,CAAA;;;ACrND;;;;;;AAMG;;ACNH;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"observers.mjs","sources":["../../../../../../src/cdk/observers/observe-content.ts","../../../../../../src/cdk/observers/observers_public_index.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.io/license\n */\n\nimport {\n coerceBooleanProperty,\n coerceNumberProperty,\n coerceElement,\n BooleanInput,\n NumberInput,\n} from '@angular/cdk/coercion';\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Injectable,\n Input,\n NgModule,\n NgZone,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {Observable, Subject, Subscription, Observer} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\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 /** 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 constructor(private _mutationObserverFactory: MutationObserverFactory) {}\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.subscribe(observer);\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 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 * 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 /** 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('cdkObserveContentDisabled')\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: BooleanInput) {\n this._disabled = coerceBooleanProperty(value);\n this._disabled ? this._unsubscribe() : this._subscribe();\n }\n private _disabled = false;\n\n /** Debounce interval for emitting the changes. */\n @Input()\n get debounce(): number {\n return this._debounce;\n }\n set debounce(value: NumberInput) {\n this._debounce = coerceNumberProperty(value);\n this._subscribe();\n }\n private _debounce: number;\n\n private _currentSubscription: Subscription | null = null;\n\n constructor(\n private _contentObserver: ContentObserver,\n private _elementRef: ElementRef<HTMLElement>,\n private _ngZone: NgZone,\n ) {}\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 // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.\n // Consider brining it back inside the zone next time we're making breaking changes.\n // Bringing it back inside can cause things like infinite change detection loops and changed\n // after checked errors if people's code isn't handling it properly.\n this._ngZone.runOutsideAngular(() => {\n this._currentSubscription = (\n this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream\n ).subscribe(this.event);\n });\n }\n\n private _unsubscribe() {\n this._currentSubscription?.unsubscribe();\n }\n}\n\n@NgModule({\n exports: [CdkObserveContent],\n declarations: [CdkObserveContent],\n providers: [MutationObserverFactory],\n})\nexport class ObserversModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AA8BA;;;AAGG;AACH,MACa,uBAAuB,CAAA;AAClC,IAAA,MAAM,CAAC,QAA0B,EAAA;AAC/B,QAAA,OAAO,OAAO,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KACxF;;2HAHU,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,uBAAA,CAAA,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AC;AACrC,iBAAA,CAAA;;;ACrND;;AAEG;;;;"}
|
package/fesm2020/overlay.mjs
CHANGED
|
@@ -15,13 +15,6 @@ import { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/port
|
|
|
15
15
|
import { Subject, Subscription, merge } from 'rxjs';
|
|
16
16
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright Google LLC All Rights Reserved.
|
|
21
|
-
*
|
|
22
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
23
|
-
* found in the LICENSE file at https://angular.io/license
|
|
24
|
-
*/
|
|
25
18
|
const scrollBehaviorSupported = supportsScrollBehavior();
|
|
26
19
|
/**
|
|
27
20
|
* Strategy that will prevent the user from scrolling while the overlay is visible.
|
|
@@ -93,13 +86,6 @@ class BlockScrollStrategy {
|
|
|
93
86
|
}
|
|
94
87
|
}
|
|
95
88
|
|
|
96
|
-
/**
|
|
97
|
-
* @license
|
|
98
|
-
* Copyright Google LLC All Rights Reserved.
|
|
99
|
-
*
|
|
100
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
101
|
-
* found in the LICENSE file at https://angular.io/license
|
|
102
|
-
*/
|
|
103
89
|
/**
|
|
104
90
|
* Returns an error to be thrown when attempting to attach an already-attached scroll strategy.
|
|
105
91
|
*/
|
|
@@ -170,13 +156,6 @@ class CloseScrollStrategy {
|
|
|
170
156
|
}
|
|
171
157
|
}
|
|
172
158
|
|
|
173
|
-
/**
|
|
174
|
-
* @license
|
|
175
|
-
* Copyright Google LLC All Rights Reserved.
|
|
176
|
-
*
|
|
177
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
178
|
-
* found in the LICENSE file at https://angular.io/license
|
|
179
|
-
*/
|
|
180
159
|
/** Scroll strategy that doesn't do anything. */
|
|
181
160
|
class NoopScrollStrategy {
|
|
182
161
|
/** Does nothing, as this scroll strategy is a no-op. */
|
|
@@ -187,13 +166,6 @@ class NoopScrollStrategy {
|
|
|
187
166
|
attach() { }
|
|
188
167
|
}
|
|
189
168
|
|
|
190
|
-
/**
|
|
191
|
-
* @license
|
|
192
|
-
* Copyright Google LLC All Rights Reserved.
|
|
193
|
-
*
|
|
194
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
195
|
-
* found in the LICENSE file at https://angular.io/license
|
|
196
|
-
*/
|
|
197
169
|
/**
|
|
198
170
|
* Gets whether an element is scrolled outside of view by any of its parent scrolling containers.
|
|
199
171
|
* @param element Dimensions of the element (from getBoundingClientRect)
|
|
@@ -227,13 +199,6 @@ function isElementClippedByScrolling(element, scrollContainers) {
|
|
|
227
199
|
});
|
|
228
200
|
}
|
|
229
201
|
|
|
230
|
-
/**
|
|
231
|
-
* @license
|
|
232
|
-
* Copyright Google LLC All Rights Reserved.
|
|
233
|
-
*
|
|
234
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
235
|
-
* found in the LICENSE file at https://angular.io/license
|
|
236
|
-
*/
|
|
237
202
|
/**
|
|
238
203
|
* Strategy that will update the element position as the user is scrolling.
|
|
239
204
|
*/
|
|
@@ -286,13 +251,6 @@ class RepositionScrollStrategy {
|
|
|
286
251
|
}
|
|
287
252
|
}
|
|
288
253
|
|
|
289
|
-
/**
|
|
290
|
-
* @license
|
|
291
|
-
* Copyright Google LLC All Rights Reserved.
|
|
292
|
-
*
|
|
293
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
294
|
-
* found in the LICENSE file at https://angular.io/license
|
|
295
|
-
*/
|
|
296
254
|
/**
|
|
297
255
|
* Options for how an overlay will handle scrolling.
|
|
298
256
|
*
|
|
@@ -322,9 +280,9 @@ class ScrollStrategyOptions {
|
|
|
322
280
|
this._document = document;
|
|
323
281
|
}
|
|
324
282
|
}
|
|
325
|
-
ScrollStrategyOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
326
|
-
ScrollStrategyOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
283
|
+
ScrollStrategyOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ScrollStrategyOptions, deps: [{ token: i1.ScrollDispatcher }, { token: i1.ViewportRuler }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
284
|
+
ScrollStrategyOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ScrollStrategyOptions, providedIn: 'root' });
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ScrollStrategyOptions, decorators: [{
|
|
328
286
|
type: Injectable,
|
|
329
287
|
args: [{ providedIn: 'root' }]
|
|
330
288
|
}], ctorParameters: function () { return [{ type: i1.ScrollDispatcher }, { type: i1.ViewportRuler }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -332,21 +290,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
332
290
|
args: [DOCUMENT]
|
|
333
291
|
}] }]; } });
|
|
334
292
|
|
|
335
|
-
/**
|
|
336
|
-
* @license
|
|
337
|
-
* Copyright Google LLC All Rights Reserved.
|
|
338
|
-
*
|
|
339
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
340
|
-
* found in the LICENSE file at https://angular.io/license
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @license
|
|
345
|
-
* Copyright Google LLC All Rights Reserved.
|
|
346
|
-
*
|
|
347
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
348
|
-
* found in the LICENSE file at https://angular.io/license
|
|
349
|
-
*/
|
|
350
293
|
/** Initial configuration used when creating an overlay. */
|
|
351
294
|
class OverlayConfig {
|
|
352
295
|
constructor(config) {
|
|
@@ -384,13 +327,6 @@ class OverlayConfig {
|
|
|
384
327
|
}
|
|
385
328
|
}
|
|
386
329
|
|
|
387
|
-
/**
|
|
388
|
-
* @license
|
|
389
|
-
* Copyright Google LLC All Rights Reserved.
|
|
390
|
-
*
|
|
391
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
392
|
-
* found in the LICENSE file at https://angular.io/license
|
|
393
|
-
*/
|
|
394
330
|
/** The points of the origin element and the overlay element to connect. */
|
|
395
331
|
class ConnectionPositionPair {
|
|
396
332
|
constructor(origin, overlay,
|
|
@@ -472,13 +408,6 @@ function validateHorizontalPosition(property, value) {
|
|
|
472
408
|
}
|
|
473
409
|
}
|
|
474
410
|
|
|
475
|
-
/**
|
|
476
|
-
* @license
|
|
477
|
-
* Copyright Google LLC All Rights Reserved.
|
|
478
|
-
*
|
|
479
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
480
|
-
* found in the LICENSE file at https://angular.io/license
|
|
481
|
-
*/
|
|
482
411
|
/**
|
|
483
412
|
* Service for dispatching events that land on the body to appropriate overlay ref,
|
|
484
413
|
* if any. It maintains a list of attached overlays to determine best suited overlay based
|
|
@@ -511,9 +440,9 @@ class BaseOverlayDispatcher {
|
|
|
511
440
|
}
|
|
512
441
|
}
|
|
513
442
|
}
|
|
514
|
-
BaseOverlayDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
515
|
-
BaseOverlayDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
443
|
+
BaseOverlayDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: BaseOverlayDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
444
|
+
BaseOverlayDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: BaseOverlayDispatcher, providedIn: 'root' });
|
|
445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: BaseOverlayDispatcher, decorators: [{
|
|
517
446
|
type: Injectable,
|
|
518
447
|
args: [{ providedIn: 'root' }]
|
|
519
448
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -521,13 +450,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
521
450
|
args: [DOCUMENT]
|
|
522
451
|
}] }]; } });
|
|
523
452
|
|
|
524
|
-
/**
|
|
525
|
-
* @license
|
|
526
|
-
* Copyright Google LLC All Rights Reserved.
|
|
527
|
-
*
|
|
528
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
529
|
-
* found in the LICENSE file at https://angular.io/license
|
|
530
|
-
*/
|
|
531
453
|
/**
|
|
532
454
|
* Service for dispatching keyboard events that land on the body to appropriate overlay ref,
|
|
533
455
|
* if any. It maintains a list of attached overlays to determine best suited overlay based
|
|
@@ -586,9 +508,9 @@ class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
|
|
|
586
508
|
}
|
|
587
509
|
}
|
|
588
510
|
}
|
|
589
|
-
OverlayKeyboardDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
590
|
-
OverlayKeyboardDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
511
|
+
OverlayKeyboardDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayKeyboardDispatcher, deps: [{ token: DOCUMENT }, { token: i0.NgZone, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
512
|
+
OverlayKeyboardDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayKeyboardDispatcher, providedIn: 'root' });
|
|
513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayKeyboardDispatcher, decorators: [{
|
|
592
514
|
type: Injectable,
|
|
593
515
|
args: [{ providedIn: 'root' }]
|
|
594
516
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -598,13 +520,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
598
520
|
type: Optional
|
|
599
521
|
}] }]; } });
|
|
600
522
|
|
|
601
|
-
/**
|
|
602
|
-
* @license
|
|
603
|
-
* Copyright Google LLC All Rights Reserved.
|
|
604
|
-
*
|
|
605
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
606
|
-
* found in the LICENSE file at https://angular.io/license
|
|
607
|
-
*/
|
|
608
523
|
/**
|
|
609
524
|
* Service for dispatching mouse click events that land on the body to appropriate overlay ref,
|
|
610
525
|
* if any. It maintains a list of attached overlays to determine best suited overlay based
|
|
@@ -718,9 +633,9 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
718
633
|
body.addEventListener('contextmenu', this._clickListener, true);
|
|
719
634
|
}
|
|
720
635
|
}
|
|
721
|
-
OverlayOutsideClickDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
722
|
-
OverlayOutsideClickDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
636
|
+
OverlayOutsideClickDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayOutsideClickDispatcher, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }, { token: i0.NgZone, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
637
|
+
OverlayOutsideClickDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayOutsideClickDispatcher, providedIn: 'root' });
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayOutsideClickDispatcher, decorators: [{
|
|
724
639
|
type: Injectable,
|
|
725
640
|
args: [{ providedIn: 'root' }]
|
|
726
641
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -730,13 +645,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
730
645
|
type: Optional
|
|
731
646
|
}] }]; } });
|
|
732
647
|
|
|
733
|
-
/**
|
|
734
|
-
* @license
|
|
735
|
-
* Copyright Google LLC All Rights Reserved.
|
|
736
|
-
*
|
|
737
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
738
|
-
* found in the LICENSE file at https://angular.io/license
|
|
739
|
-
*/
|
|
740
648
|
/** Container inside which all overlays will render. */
|
|
741
649
|
class OverlayContainer {
|
|
742
650
|
constructor(document, _platform) {
|
|
@@ -796,9 +704,9 @@ class OverlayContainer {
|
|
|
796
704
|
this._containerElement = container;
|
|
797
705
|
}
|
|
798
706
|
}
|
|
799
|
-
OverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
800
|
-
OverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
707
|
+
OverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
708
|
+
OverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayContainer, providedIn: 'root' });
|
|
709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayContainer, decorators: [{
|
|
802
710
|
type: Injectable,
|
|
803
711
|
args: [{ providedIn: 'root' }]
|
|
804
712
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -806,13 +714,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
806
714
|
args: [DOCUMENT]
|
|
807
715
|
}] }, { type: i1$1.Platform }]; } });
|
|
808
716
|
|
|
809
|
-
/**
|
|
810
|
-
* @license
|
|
811
|
-
* Copyright Google LLC All Rights Reserved.
|
|
812
|
-
*
|
|
813
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
814
|
-
* found in the LICENSE file at https://angular.io/license
|
|
815
|
-
*/
|
|
816
717
|
/**
|
|
817
718
|
* Reference to an overlay that has been created with the Overlay service.
|
|
818
719
|
* Used to manipulate or dispose of said overlay.
|
|
@@ -1230,13 +1131,6 @@ class OverlayRef {
|
|
|
1230
1131
|
}
|
|
1231
1132
|
}
|
|
1232
1133
|
|
|
1233
|
-
/**
|
|
1234
|
-
* @license
|
|
1235
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1236
|
-
*
|
|
1237
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1238
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1239
|
-
*/
|
|
1240
1134
|
// TODO: refactor clipping detection into a separate thing (part of scrolling module)
|
|
1241
1135
|
// TODO: doesn't handle both flexible width and height when it has to scroll along both axis.
|
|
1242
1136
|
/** Class to be added to the overlay bounding box. */
|
|
@@ -2210,13 +2104,6 @@ const STANDARD_DROPDOWN_ADJACENT_POSITIONS = [
|
|
|
2210
2104
|
{ originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom' },
|
|
2211
2105
|
];
|
|
2212
2106
|
|
|
2213
|
-
/**
|
|
2214
|
-
* @license
|
|
2215
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2216
|
-
*
|
|
2217
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2218
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2219
|
-
*/
|
|
2220
2107
|
/** Class to be added to the overlay pane wrapper. */
|
|
2221
2108
|
const wrapperClass = 'cdk-global-overlay-wrapper';
|
|
2222
2109
|
/**
|
|
@@ -2447,13 +2334,6 @@ class GlobalPositionStrategy {
|
|
|
2447
2334
|
}
|
|
2448
2335
|
}
|
|
2449
2336
|
|
|
2450
|
-
/**
|
|
2451
|
-
* @license
|
|
2452
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2453
|
-
*
|
|
2454
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2455
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2456
|
-
*/
|
|
2457
2337
|
/** Builder for overlay position strategy. */
|
|
2458
2338
|
class OverlayPositionBuilder {
|
|
2459
2339
|
constructor(_viewportRuler, _document, _platform, _overlayContainer) {
|
|
@@ -2476,9 +2356,9 @@ class OverlayPositionBuilder {
|
|
|
2476
2356
|
return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);
|
|
2477
2357
|
}
|
|
2478
2358
|
}
|
|
2479
|
-
OverlayPositionBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2480
|
-
OverlayPositionBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2359
|
+
OverlayPositionBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayPositionBuilder, deps: [{ token: i1.ViewportRuler }, { token: DOCUMENT }, { token: i1$1.Platform }, { token: OverlayContainer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2360
|
+
OverlayPositionBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayPositionBuilder, providedIn: 'root' });
|
|
2361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayPositionBuilder, decorators: [{
|
|
2482
2362
|
type: Injectable,
|
|
2483
2363
|
args: [{ providedIn: 'root' }]
|
|
2484
2364
|
}], ctorParameters: function () { return [{ type: i1.ViewportRuler }, { type: undefined, decorators: [{
|
|
@@ -2486,13 +2366,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
2486
2366
|
args: [DOCUMENT]
|
|
2487
2367
|
}] }, { type: i1$1.Platform }, { type: OverlayContainer }]; } });
|
|
2488
2368
|
|
|
2489
|
-
/**
|
|
2490
|
-
* @license
|
|
2491
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2492
|
-
*
|
|
2493
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2494
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2495
|
-
*/
|
|
2496
2369
|
/** Next overlay unique ID. */
|
|
2497
2370
|
let nextUniqueId = 0;
|
|
2498
2371
|
// Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver
|
|
@@ -2578,9 +2451,9 @@ class Overlay {
|
|
|
2578
2451
|
return new DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);
|
|
2579
2452
|
}
|
|
2580
2453
|
}
|
|
2581
|
-
Overlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2582
|
-
Overlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2454
|
+
Overlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: Overlay, deps: [{ token: ScrollStrategyOptions }, { token: OverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: OverlayPositionBuilder }, { token: OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i5.Directionality }, { token: i6.Location }, { token: OverlayOutsideClickDispatcher }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2455
|
+
Overlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: Overlay, providedIn: 'root' });
|
|
2456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: Overlay, decorators: [{
|
|
2584
2457
|
type: Injectable,
|
|
2585
2458
|
args: [{ providedIn: 'root' }]
|
|
2586
2459
|
}], ctorParameters: function () { return [{ type: ScrollStrategyOptions }, { type: OverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: OverlayPositionBuilder }, { type: OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -2593,13 +2466,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
2593
2466
|
type: Optional
|
|
2594
2467
|
}] }]; } });
|
|
2595
2468
|
|
|
2596
|
-
/**
|
|
2597
|
-
* @license
|
|
2598
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2599
|
-
*
|
|
2600
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2601
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2602
|
-
*/
|
|
2603
2469
|
/** Default set of positions for the overlay. Follows the behavior of a dropdown. */
|
|
2604
2470
|
const defaultPositionList = [
|
|
2605
2471
|
{
|
|
@@ -2640,9 +2506,9 @@ class CdkOverlayOrigin {
|
|
|
2640
2506
|
this.elementRef = elementRef;
|
|
2641
2507
|
}
|
|
2642
2508
|
}
|
|
2643
|
-
CdkOverlayOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2644
|
-
CdkOverlayOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
2645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2509
|
+
CdkOverlayOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkOverlayOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2510
|
+
CdkOverlayOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkOverlayOrigin, isStandalone: true, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"], ngImport: i0 });
|
|
2511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkOverlayOrigin, decorators: [{
|
|
2646
2512
|
type: Directive,
|
|
2647
2513
|
args: [{
|
|
2648
2514
|
selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',
|
|
@@ -2908,9 +2774,9 @@ class CdkConnectedOverlay {
|
|
|
2908
2774
|
this._positionSubscription.unsubscribe();
|
|
2909
2775
|
}
|
|
2910
2776
|
}
|
|
2911
|
-
CdkConnectedOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2912
|
-
CdkConnectedOverlay.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
2913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2777
|
+
CdkConnectedOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkConnectedOverlay, deps: [{ token: Overlay }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY }, { token: i5.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2778
|
+
CdkConnectedOverlay.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkConnectedOverlay, isStandalone: true, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: { origin: ["cdkConnectedOverlayOrigin", "origin"], positions: ["cdkConnectedOverlayPositions", "positions"], positionStrategy: ["cdkConnectedOverlayPositionStrategy", "positionStrategy"], offsetX: ["cdkConnectedOverlayOffsetX", "offsetX"], offsetY: ["cdkConnectedOverlayOffsetY", "offsetY"], width: ["cdkConnectedOverlayWidth", "width"], height: ["cdkConnectedOverlayHeight", "height"], minWidth: ["cdkConnectedOverlayMinWidth", "minWidth"], minHeight: ["cdkConnectedOverlayMinHeight", "minHeight"], backdropClass: ["cdkConnectedOverlayBackdropClass", "backdropClass"], panelClass: ["cdkConnectedOverlayPanelClass", "panelClass"], viewportMargin: ["cdkConnectedOverlayViewportMargin", "viewportMargin"], scrollStrategy: ["cdkConnectedOverlayScrollStrategy", "scrollStrategy"], open: ["cdkConnectedOverlayOpen", "open"], disableClose: ["cdkConnectedOverlayDisableClose", "disableClose"], transformOriginSelector: ["cdkConnectedOverlayTransformOriginOn", "transformOriginSelector"], hasBackdrop: ["cdkConnectedOverlayHasBackdrop", "hasBackdrop"], lockPosition: ["cdkConnectedOverlayLockPosition", "lockPosition"], flexibleDimensions: ["cdkConnectedOverlayFlexibleDimensions", "flexibleDimensions"], growAfterOpen: ["cdkConnectedOverlayGrowAfterOpen", "growAfterOpen"], push: ["cdkConnectedOverlayPush", "push"] }, outputs: { backdropClick: "backdropClick", positionChange: "positionChange", attach: "attach", detach: "detach", overlayKeydown: "overlayKeydown", overlayOutsideClick: "overlayOutsideClick" }, exportAs: ["cdkConnectedOverlay"], usesOnChanges: true, ngImport: i0 });
|
|
2779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkConnectedOverlay, decorators: [{
|
|
2914
2780
|
type: Directive,
|
|
2915
2781
|
args: [{
|
|
2916
2782
|
selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',
|
|
@@ -3009,19 +2875,12 @@ const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {
|
|
|
3009
2875
|
useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY,
|
|
3010
2876
|
};
|
|
3011
2877
|
|
|
3012
|
-
/**
|
|
3013
|
-
* @license
|
|
3014
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3015
|
-
*
|
|
3016
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3017
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3018
|
-
*/
|
|
3019
2878
|
class OverlayModule {
|
|
3020
2879
|
}
|
|
3021
|
-
OverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
3022
|
-
OverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
3023
|
-
OverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
3024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2880
|
+
OverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2881
|
+
OverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayModule, imports: [BidiModule, PortalModule, ScrollingModule, CdkConnectedOverlay, CdkOverlayOrigin], exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule] });
|
|
2882
|
+
OverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayModule, providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER], imports: [BidiModule, PortalModule, ScrollingModule, ScrollingModule] });
|
|
2883
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: OverlayModule, decorators: [{
|
|
3025
2884
|
type: NgModule,
|
|
3026
2885
|
args: [{
|
|
3027
2886
|
imports: [BidiModule, PortalModule, ScrollingModule, CdkConnectedOverlay, CdkOverlayOrigin],
|
|
@@ -3030,21 +2889,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
3030
2889
|
}]
|
|
3031
2890
|
}] });
|
|
3032
2891
|
|
|
3033
|
-
/**
|
|
3034
|
-
* @license
|
|
3035
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3036
|
-
*
|
|
3037
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3038
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3039
|
-
*/
|
|
3040
|
-
|
|
3041
|
-
/**
|
|
3042
|
-
* @license
|
|
3043
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3044
|
-
*
|
|
3045
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3046
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3047
|
-
*/
|
|
3048
2892
|
/**
|
|
3049
2893
|
* Alternative to OverlayContainer that supports correct displaying of overlay elements in
|
|
3050
2894
|
* Fullscreen mode
|
|
@@ -3116,9 +2960,9 @@ class FullscreenOverlayContainer extends OverlayContainer {
|
|
|
3116
2960
|
null);
|
|
3117
2961
|
}
|
|
3118
2962
|
}
|
|
3119
|
-
FullscreenOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
3120
|
-
FullscreenOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
3121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2963
|
+
FullscreenOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: FullscreenOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2964
|
+
FullscreenOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: FullscreenOverlayContainer, providedIn: 'root' });
|
|
2965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: FullscreenOverlayContainer, decorators: [{
|
|
3122
2966
|
type: Injectable,
|
|
3123
2967
|
args: [{ providedIn: 'root' }]
|
|
3124
2968
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -3126,22 +2970,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
3126
2970
|
args: [DOCUMENT]
|
|
3127
2971
|
}] }, { type: i1$1.Platform }]; } });
|
|
3128
2972
|
|
|
3129
|
-
/**
|
|
3130
|
-
* @license
|
|
3131
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3132
|
-
*
|
|
3133
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3134
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3135
|
-
*/
|
|
3136
|
-
|
|
3137
|
-
/**
|
|
3138
|
-
* @license
|
|
3139
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3140
|
-
*
|
|
3141
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3142
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3143
|
-
*/
|
|
3144
|
-
|
|
3145
2973
|
/**
|
|
3146
2974
|
* Generated bundle index. Do not edit.
|
|
3147
2975
|
*/
|