@angular/cdk 19.0.0-next.3 → 19.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 +19 -37
- package/accordion/index.d.ts +5 -4
- package/bidi/index.d.ts +2 -2
- package/clipboard/index.d.ts +3 -4
- package/dialog/index.d.ts +6 -9
- package/drag-drop/index.d.ts +16 -33
- package/fesm2022/a11y.mjs +109 -167
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +20 -25
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +14 -18
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +19 -26
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +3 -3
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +33 -53
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +90 -149
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +21 -26
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +17 -11
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +49 -49
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +3 -3
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +21 -21
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +105 -148
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +7 -7
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +59 -58
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +86 -126
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +47 -56
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +170 -228
- 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 +33 -40
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +68 -71
- package/fesm2022/tree.mjs.map +1 -1
- package/layout/index.d.ts +5 -7
- package/observers/index.d.ts +2 -2
- package/overlay/_index.scss +44 -11
- package/overlay/index.d.ts +18 -34
- package/overlay-prebuilt.css +1 -1
- package/package.json +1 -1
- package/portal/index.d.ts +21 -18
- package/schematics/index.d.ts +1 -1
- package/schematics/index.js +2 -2
- package/schematics/index.mjs +2 -2
- package/schematics/ng-add/index.d.ts +1 -1
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- package/schematics/ng-add/package-config.d.ts +1 -1
- package/schematics/ng-add/package-config.js +2 -2
- package/schematics/ng-add/package-config.mjs +2 -2
- package/schematics/ng-add/schema.d.ts +1 -1
- package/schematics/ng-add/schema.js +2 -2
- package/schematics/ng-add/schema.mjs +2 -2
- package/schematics/ng-generate/drag-drop/index.d.ts +1 -1
- package/schematics/ng-generate/drag-drop/index.js +2 -2
- package/schematics/ng-generate/drag-drop/index.mjs +2 -2
- package/schematics/ng-generate/drag-drop/schema.d.ts +1 -1
- package/schematics/ng-generate/drag-drop/schema.js +2 -2
- package/schematics/ng-generate/drag-drop/schema.mjs +2 -2
- package/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
- package/schematics/ng-update/data/attribute-selectors.js +2 -2
- package/schematics/ng-update/data/attribute-selectors.mjs +2 -2
- package/schematics/ng-update/data/class-names.d.ts +1 -1
- package/schematics/ng-update/data/class-names.js +2 -2
- package/schematics/ng-update/data/class-names.mjs +2 -2
- package/schematics/ng-update/data/constructor-checks.d.ts +1 -1
- package/schematics/ng-update/data/constructor-checks.js +2 -2
- package/schematics/ng-update/data/constructor-checks.mjs +2 -2
- package/schematics/ng-update/data/css-selectors.d.ts +1 -1
- package/schematics/ng-update/data/css-selectors.js +2 -2
- package/schematics/ng-update/data/css-selectors.mjs +2 -2
- package/schematics/ng-update/data/css-tokens.d.ts +1 -1
- package/schematics/ng-update/data/css-tokens.js +2 -2
- package/schematics/ng-update/data/css-tokens.mjs +2 -2
- package/schematics/ng-update/data/element-selectors.d.ts +1 -1
- package/schematics/ng-update/data/element-selectors.js +2 -2
- package/schematics/ng-update/data/element-selectors.mjs +2 -2
- package/schematics/ng-update/data/index.d.ts +1 -1
- package/schematics/ng-update/data/index.js +2 -2
- package/schematics/ng-update/data/index.mjs +2 -2
- package/schematics/ng-update/data/input-names.d.ts +1 -1
- package/schematics/ng-update/data/input-names.js +2 -2
- package/schematics/ng-update/data/input-names.mjs +2 -2
- package/schematics/ng-update/data/method-call-checks.d.ts +1 -1
- package/schematics/ng-update/data/method-call-checks.js +2 -2
- package/schematics/ng-update/data/method-call-checks.mjs +2 -2
- package/schematics/ng-update/data/output-names.d.ts +1 -1
- package/schematics/ng-update/data/output-names.js +2 -2
- package/schematics/ng-update/data/output-names.mjs +2 -2
- package/schematics/ng-update/data/property-names.d.ts +1 -1
- package/schematics/ng-update/data/property-names.js +2 -2
- package/schematics/ng-update/data/property-names.mjs +2 -2
- package/schematics/ng-update/data/symbol-removal.d.ts +1 -1
- package/schematics/ng-update/data/symbol-removal.js +2 -2
- package/schematics/ng-update/data/symbol-removal.mjs +2 -2
- package/schematics/ng-update/devkit-file-system.d.ts +1 -1
- package/schematics/ng-update/devkit-file-system.js +2 -2
- package/schematics/ng-update/devkit-file-system.mjs +2 -2
- package/schematics/ng-update/devkit-migration-rule.d.ts +1 -1
- package/schematics/ng-update/devkit-migration-rule.js +2 -2
- package/schematics/ng-update/devkit-migration-rule.mjs +2 -2
- package/schematics/ng-update/devkit-migration.d.ts +1 -1
- package/schematics/ng-update/devkit-migration.js +2 -2
- package/schematics/ng-update/devkit-migration.mjs +2 -2
- package/schematics/ng-update/find-stylesheets.d.ts +1 -1
- package/schematics/ng-update/find-stylesheets.js +2 -2
- package/schematics/ng-update/find-stylesheets.mjs +2 -2
- package/schematics/ng-update/html-parsing/angular.d.ts +1 -1
- package/schematics/ng-update/html-parsing/angular.js +2 -2
- package/schematics/ng-update/html-parsing/angular.mjs +2 -2
- package/schematics/ng-update/html-parsing/elements.d.ts +1 -1
- package/schematics/ng-update/html-parsing/elements.js +2 -2
- package/schematics/ng-update/html-parsing/elements.mjs +2 -2
- package/schematics/ng-update/index.d.ts +1 -1
- package/schematics/ng-update/index.js +2 -2
- package/schematics/ng-update/index.mjs +2 -2
- package/schematics/ng-update/migrations/attribute-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/attribute-selectors.js +2 -2
- package/schematics/ng-update/migrations/attribute-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/class-inheritance.d.ts +1 -1
- package/schematics/ng-update/migrations/class-inheritance.js +2 -2
- package/schematics/ng-update/migrations/class-inheritance.mjs +2 -2
- package/schematics/ng-update/migrations/class-names.d.ts +1 -1
- package/schematics/ng-update/migrations/class-names.js +2 -2
- package/schematics/ng-update/migrations/class-names.mjs +2 -2
- package/schematics/ng-update/migrations/constructor-signature.d.ts +1 -1
- package/schematics/ng-update/migrations/constructor-signature.js +2 -2
- package/schematics/ng-update/migrations/constructor-signature.mjs +2 -2
- package/schematics/ng-update/migrations/css-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/css-selectors.js +2 -2
- package/schematics/ng-update/migrations/css-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/css-tokens.d.ts +1 -1
- package/schematics/ng-update/migrations/css-tokens.js +2 -2
- package/schematics/ng-update/migrations/css-tokens.mjs +2 -2
- package/schematics/ng-update/migrations/element-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/element-selectors.js +2 -2
- package/schematics/ng-update/migrations/element-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/input-names.d.ts +1 -1
- package/schematics/ng-update/migrations/input-names.js +2 -2
- package/schematics/ng-update/migrations/input-names.mjs +2 -2
- package/schematics/ng-update/migrations/method-call-arguments.d.ts +1 -1
- package/schematics/ng-update/migrations/method-call-arguments.js +2 -2
- package/schematics/ng-update/migrations/method-call-arguments.mjs +2 -2
- package/schematics/ng-update/migrations/misc-template.d.ts +1 -1
- package/schematics/ng-update/migrations/misc-template.js +2 -2
- package/schematics/ng-update/migrations/misc-template.mjs +2 -2
- package/schematics/ng-update/migrations/output-names.d.ts +1 -1
- package/schematics/ng-update/migrations/output-names.js +2 -2
- package/schematics/ng-update/migrations/output-names.mjs +2 -2
- package/schematics/ng-update/migrations/property-names.d.ts +1 -1
- package/schematics/ng-update/migrations/property-names.js +2 -2
- package/schematics/ng-update/migrations/property-names.mjs +2 -2
- package/schematics/ng-update/migrations/symbol-removal.d.ts +1 -1
- package/schematics/ng-update/migrations/symbol-removal.js +2 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
- package/schematics/ng-update/public-api.d.ts +1 -1
- package/schematics/ng-update/public-api.js +2 -2
- package/schematics/ng-update/public-api.mjs +2 -2
- package/schematics/ng-update/typescript/base-types.d.ts +1 -1
- package/schematics/ng-update/typescript/base-types.js +2 -2
- package/schematics/ng-update/typescript/base-types.mjs +2 -2
- package/schematics/ng-update/typescript/imports.d.ts +1 -1
- package/schematics/ng-update/typescript/imports.js +2 -2
- package/schematics/ng-update/typescript/imports.mjs +2 -2
- package/schematics/ng-update/typescript/literal.d.ts +1 -1
- package/schematics/ng-update/typescript/literal.js +2 -2
- package/schematics/ng-update/typescript/literal.mjs +2 -2
- package/schematics/ng-update/typescript/module-specifiers.d.ts +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js +2 -2
- package/schematics/ng-update/typescript/module-specifiers.mjs +2 -2
- package/schematics/ng-update/upgrade-data.d.ts +1 -1
- package/schematics/ng-update/upgrade-data.js +2 -2
- package/schematics/ng-update/upgrade-data.mjs +2 -2
- package/schematics/paths.d.ts +1 -1
- package/schematics/paths.js +2 -2
- package/schematics/paths.mjs +2 -2
- package/schematics/update-tool/component-resource-collector.d.ts +1 -1
- package/schematics/update-tool/component-resource-collector.js +2 -2
- package/schematics/update-tool/component-resource-collector.mjs +2 -2
- package/schematics/update-tool/file-system.d.ts +1 -1
- package/schematics/update-tool/file-system.js +2 -2
- package/schematics/update-tool/file-system.mjs +2 -2
- package/schematics/update-tool/index.d.ts +1 -1
- package/schematics/update-tool/index.js +2 -2
- package/schematics/update-tool/index.mjs +2 -2
- package/schematics/update-tool/logger.d.ts +1 -1
- package/schematics/update-tool/logger.js +2 -2
- package/schematics/update-tool/logger.mjs +2 -2
- package/schematics/update-tool/migration.d.ts +1 -1
- package/schematics/update-tool/migration.js +2 -2
- package/schematics/update-tool/migration.mjs +2 -2
- package/schematics/update-tool/public-api.d.ts +1 -1
- package/schematics/update-tool/public-api.js +2 -2
- package/schematics/update-tool/public-api.mjs +2 -2
- package/schematics/update-tool/target-version.d.ts +1 -1
- package/schematics/update-tool/target-version.js +2 -2
- package/schematics/update-tool/target-version.mjs +2 -2
- package/schematics/update-tool/update-recorder.d.ts +1 -1
- package/schematics/update-tool/update-recorder.js +2 -2
- package/schematics/update-tool/update-recorder.mjs +2 -2
- package/schematics/update-tool/utils/decorators.d.ts +1 -1
- package/schematics/update-tool/utils/decorators.js +2 -2
- package/schematics/update-tool/utils/decorators.mjs +2 -2
- package/schematics/update-tool/utils/diagnostics.d.ts +1 -1
- package/schematics/update-tool/utils/diagnostics.js +2 -2
- package/schematics/update-tool/utils/diagnostics.mjs +2 -2
- package/schematics/update-tool/utils/functions.d.ts +1 -1
- package/schematics/update-tool/utils/functions.js +2 -2
- package/schematics/update-tool/utils/functions.mjs +2 -2
- package/schematics/update-tool/utils/imports.d.ts +1 -1
- package/schematics/update-tool/utils/imports.js +2 -2
- package/schematics/update-tool/utils/imports.mjs +2 -2
- package/schematics/update-tool/utils/line-mappings.d.ts +1 -1
- package/schematics/update-tool/utils/line-mappings.js +2 -2
- package/schematics/update-tool/utils/line-mappings.mjs +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.d.ts +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
- package/schematics/update-tool/utils/property-name.d.ts +1 -1
- package/schematics/update-tool/utils/property-name.js +2 -2
- package/schematics/update-tool/utils/property-name.mjs +2 -2
- package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
- package/schematics/update-tool/utils/virtual-host.js +2 -2
- package/schematics/update-tool/utils/virtual-host.mjs +2 -2
- package/schematics/update-tool/version-changes.d.ts +1 -1
- package/schematics/update-tool/version-changes.js +2 -2
- package/schematics/update-tool/version-changes.mjs +2 -2
- package/schematics/utils/ast/ng-module-imports.d.ts +1 -1
- package/schematics/utils/ast/ng-module-imports.js +2 -2
- package/schematics/utils/ast/ng-module-imports.mjs +2 -2
- package/schematics/utils/ast.d.ts +1 -1
- package/schematics/utils/ast.js +2 -2
- package/schematics/utils/ast.mjs +2 -2
- package/schematics/utils/build-component.d.ts +1 -1
- package/schematics/utils/build-component.js +2 -2
- package/schematics/utils/build-component.mjs +2 -2
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +2 -2
- package/schematics/utils/get-project.mjs +2 -2
- package/schematics/utils/html-manipulation.d.ts +1 -1
- package/schematics/utils/html-manipulation.js +2 -2
- package/schematics/utils/html-manipulation.mjs +2 -2
- package/schematics/utils/index.d.ts +1 -1
- package/schematics/utils/index.js +2 -2
- package/schematics/utils/index.mjs +2 -2
- package/schematics/utils/parse5-element.d.ts +1 -1
- package/schematics/utils/parse5-element.js +2 -2
- package/schematics/utils/parse5-element.mjs +2 -2
- package/schematics/utils/project-index-file.d.ts +1 -1
- package/schematics/utils/project-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- package/schematics/utils/project-main-file.d.ts +1 -1
- package/schematics/utils/project-main-file.js +2 -2
- package/schematics/utils/project-main-file.mjs +2 -2
- package/schematics/utils/project-style-file.d.ts +1 -1
- package/schematics/utils/project-style-file.js +2 -2
- package/schematics/utils/project-style-file.mjs +2 -2
- package/schematics/utils/project-targets.d.ts +1 -1
- package/schematics/utils/project-targets.js +2 -2
- package/schematics/utils/project-targets.mjs +2 -2
- package/schematics/utils/project-tsconfig-paths.d.ts +1 -1
- package/schematics/utils/project-tsconfig-paths.js +2 -2
- package/schematics/utils/project-tsconfig-paths.mjs +2 -2
- package/schematics/utils/schematic-options.d.ts +1 -1
- package/schematics/utils/schematic-options.js +2 -2
- package/schematics/utils/schematic-options.mjs +2 -2
- package/scrolling/index.d.ts +17 -37
- package/stepper/index.d.ts +9 -11
- package/table/index.d.ts +36 -51
- package/text-field/index.d.ts +5 -9
- package/tree/index.d.ts +11 -13
package/fesm2022/scrolling.mjs
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { coerceNumberProperty, coerceElement } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, forwardRef, Directive, Input,
|
|
3
|
+
import { InjectionToken, forwardRef, Directive, Input, inject, NgZone, Injectable, ElementRef, ChangeDetectorRef, Injector, afterNextRender, booleanAttribute, Optional, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChild, ViewContainerRef, TemplateRef, IterableDiffers, NgModule } from '@angular/core';
|
|
4
4
|
import { Subject, of, Observable, fromEvent, animationFrameScheduler, asapScheduler, Subscription, isObservable } from 'rxjs';
|
|
5
5
|
import { distinctUntilChanged, auditTime, filter, takeUntil, startWith, pairwise, switchMap, shareReplay } from 'rxjs/operators';
|
|
6
|
-
import
|
|
7
|
-
import { getRtlScrollAxisType, RtlScrollAxisType, supportsScrollBehavior, Platform } from '@angular/cdk/platform';
|
|
6
|
+
import { Platform, getRtlScrollAxisType, RtlScrollAxisType, supportsScrollBehavior } from '@angular/cdk/platform';
|
|
8
7
|
import { DOCUMENT } from '@angular/common';
|
|
9
|
-
import
|
|
10
|
-
import { BidiModule } from '@angular/cdk/bidi';
|
|
11
|
-
import * as i2$1 from '@angular/cdk/collections';
|
|
8
|
+
import { Directionality, BidiModule } from '@angular/cdk/bidi';
|
|
12
9
|
import { isDataSource, ArrayDataSource, _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy } from '@angular/cdk/collections';
|
|
13
10
|
|
|
14
11
|
/** The injection token used to specify the virtual scrolling strategy. */
|
|
@@ -189,8 +186,8 @@ class CdkFixedSizeVirtualScroll {
|
|
|
189
186
|
ngOnChanges() {
|
|
190
187
|
this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
|
|
191
188
|
}
|
|
192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
193
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
190
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkFixedSizeVirtualScroll, isStandalone: true, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: { itemSize: "itemSize", minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, providers: [
|
|
194
191
|
{
|
|
195
192
|
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
196
193
|
useFactory: _fixedSizeVirtualScrollStrategyFactory,
|
|
@@ -198,7 +195,7 @@ class CdkFixedSizeVirtualScroll {
|
|
|
198
195
|
},
|
|
199
196
|
], usesOnChanges: true, ngImport: i0 }); }
|
|
200
197
|
}
|
|
201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{
|
|
202
199
|
type: Directive,
|
|
203
200
|
args: [{
|
|
204
201
|
selector: 'cdk-virtual-scroll-viewport[itemSize]',
|
|
@@ -226,9 +223,11 @@ const DEFAULT_SCROLL_TIME = 20;
|
|
|
226
223
|
* Scrollable references emit a scrolled event.
|
|
227
224
|
*/
|
|
228
225
|
class ScrollDispatcher {
|
|
229
|
-
constructor(
|
|
230
|
-
this._ngZone =
|
|
231
|
-
this._platform =
|
|
226
|
+
constructor() {
|
|
227
|
+
this._ngZone = inject(NgZone);
|
|
228
|
+
this._platform = inject(Platform);
|
|
229
|
+
/** Used to reference correct document/window */
|
|
230
|
+
this._document = inject(DOCUMENT, { optional: true });
|
|
232
231
|
/** Subject for notifying that a registered scrollable reference element has been scrolled. */
|
|
233
232
|
this._scrolled = new Subject();
|
|
234
233
|
/** Keeps track of the global `scroll` and `resize` subscriptions. */
|
|
@@ -240,7 +239,6 @@ class ScrollDispatcher {
|
|
|
240
239
|
* scroll event subscriptions.
|
|
241
240
|
*/
|
|
242
241
|
this.scrollContainers = new Map();
|
|
243
|
-
this._document = document;
|
|
244
242
|
}
|
|
245
243
|
/**
|
|
246
244
|
* Registers a scrollable instance with the service and listens for its scrolled events. When the
|
|
@@ -354,18 +352,13 @@ class ScrollDispatcher {
|
|
|
354
352
|
this._globalSubscription = null;
|
|
355
353
|
}
|
|
356
354
|
}
|
|
357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
358
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollDispatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
356
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' }); }
|
|
359
357
|
}
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollDispatcher, decorators: [{
|
|
361
359
|
type: Injectable,
|
|
362
360
|
args: [{ providedIn: 'root' }]
|
|
363
|
-
}], ctorParameters: () => [
|
|
364
|
-
type: Optional
|
|
365
|
-
}, {
|
|
366
|
-
type: Inject,
|
|
367
|
-
args: [DOCUMENT]
|
|
368
|
-
}] }] });
|
|
361
|
+
}], ctorParameters: () => [] });
|
|
369
362
|
|
|
370
363
|
/**
|
|
371
364
|
* Sends an event when the directive's element is scrolled. Registers itself with the
|
|
@@ -373,11 +366,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
373
366
|
* can be listened to through the service.
|
|
374
367
|
*/
|
|
375
368
|
class CdkScrollable {
|
|
376
|
-
constructor(
|
|
377
|
-
this.elementRef =
|
|
378
|
-
this.scrollDispatcher =
|
|
379
|
-
this.ngZone =
|
|
380
|
-
this.dir =
|
|
369
|
+
constructor() {
|
|
370
|
+
this.elementRef = inject(ElementRef);
|
|
371
|
+
this.scrollDispatcher = inject(ScrollDispatcher);
|
|
372
|
+
this.ngZone = inject(NgZone);
|
|
373
|
+
this.dir = inject(Directionality, { optional: true });
|
|
381
374
|
this._destroyed = new Subject();
|
|
382
375
|
this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(this.elementRef.nativeElement, 'scroll')
|
|
383
376
|
.pipe(takeUntil(this._destroyed))
|
|
@@ -515,18 +508,16 @@ class CdkScrollable {
|
|
|
515
508
|
}
|
|
516
509
|
}
|
|
517
510
|
}
|
|
518
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
519
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
511
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
512
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkScrollable, isStandalone: true, selector: "[cdk-scrollable], [cdkScrollable]", ngImport: i0 }); }
|
|
520
513
|
}
|
|
521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollable, decorators: [{
|
|
522
515
|
type: Directive,
|
|
523
516
|
args: [{
|
|
524
517
|
selector: '[cdk-scrollable], [cdkScrollable]',
|
|
525
518
|
standalone: true,
|
|
526
519
|
}]
|
|
527
|
-
}], ctorParameters: () => [
|
|
528
|
-
type: Optional
|
|
529
|
-
}] }] });
|
|
520
|
+
}], ctorParameters: () => [] });
|
|
530
521
|
|
|
531
522
|
/** Time in ms to throttle the resize events by default. */
|
|
532
523
|
const DEFAULT_RESIZE_TIME = 20;
|
|
@@ -535,17 +526,19 @@ const DEFAULT_RESIZE_TIME = 20;
|
|
|
535
526
|
* @docs-private
|
|
536
527
|
*/
|
|
537
528
|
class ViewportRuler {
|
|
538
|
-
constructor(
|
|
539
|
-
this._platform =
|
|
529
|
+
constructor() {
|
|
530
|
+
this._platform = inject(Platform);
|
|
540
531
|
/** Stream of viewport change events. */
|
|
541
532
|
this._change = new Subject();
|
|
542
533
|
/** Event listener that will be used to handle the viewport change events. */
|
|
543
534
|
this._changeListener = (event) => {
|
|
544
535
|
this._change.next(event);
|
|
545
536
|
};
|
|
546
|
-
|
|
537
|
+
/** Used to reference correct document/window */
|
|
538
|
+
this._document = inject(DOCUMENT, { optional: true });
|
|
539
|
+
const ngZone = inject(NgZone);
|
|
547
540
|
ngZone.runOutsideAngular(() => {
|
|
548
|
-
if (_platform.isBrowser) {
|
|
541
|
+
if (this._platform.isBrowser) {
|
|
549
542
|
const window = this._getWindow();
|
|
550
543
|
// Note that bind the events ourselves, rather than going through something like RxJS's
|
|
551
544
|
// `fromEvent` so that we can ensure that they're bound outside of the NgZone.
|
|
@@ -647,26 +640,21 @@ class ViewportRuler {
|
|
|
647
640
|
? { width: window.innerWidth, height: window.innerHeight }
|
|
648
641
|
: { width: 0, height: 0 };
|
|
649
642
|
}
|
|
650
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
651
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
643
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ViewportRuler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
644
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ViewportRuler, providedIn: 'root' }); }
|
|
652
645
|
}
|
|
653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ViewportRuler, decorators: [{
|
|
654
647
|
type: Injectable,
|
|
655
648
|
args: [{ providedIn: 'root' }]
|
|
656
|
-
}], ctorParameters: () => [
|
|
657
|
-
type: Optional
|
|
658
|
-
}, {
|
|
659
|
-
type: Inject,
|
|
660
|
-
args: [DOCUMENT]
|
|
661
|
-
}] }] });
|
|
649
|
+
}], ctorParameters: () => [] });
|
|
662
650
|
|
|
663
651
|
const VIRTUAL_SCROLLABLE = new InjectionToken('VIRTUAL_SCROLLABLE');
|
|
664
652
|
/**
|
|
665
653
|
* Extending the {@link CdkScrollable} to be used as scrolling container for virtual scrolling.
|
|
666
654
|
*/
|
|
667
655
|
class CdkVirtualScrollable extends CdkScrollable {
|
|
668
|
-
constructor(
|
|
669
|
-
super(
|
|
656
|
+
constructor() {
|
|
657
|
+
super();
|
|
670
658
|
}
|
|
671
659
|
/**
|
|
672
660
|
* Measure the viewport size for the provided orientation.
|
|
@@ -677,14 +665,12 @@ class CdkVirtualScrollable extends CdkScrollable {
|
|
|
677
665
|
const viewportEl = this.elementRef.nativeElement;
|
|
678
666
|
return orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;
|
|
679
667
|
}
|
|
680
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
681
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
668
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
669
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkVirtualScrollable, usesInheritance: true, ngImport: i0 }); }
|
|
682
670
|
}
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollable, decorators: [{
|
|
684
672
|
type: Directive
|
|
685
|
-
}], ctorParameters: () => [
|
|
686
|
-
type: Optional
|
|
687
|
-
}] }] });
|
|
673
|
+
}], ctorParameters: () => [] });
|
|
688
674
|
|
|
689
675
|
/** Checks if the given ranges are equal. */
|
|
690
676
|
function rangesEqual(r1, r2) {
|
|
@@ -708,12 +694,14 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
708
694
|
this._calculateSpacerSize();
|
|
709
695
|
}
|
|
710
696
|
}
|
|
711
|
-
constructor(
|
|
712
|
-
super(
|
|
713
|
-
this.elementRef =
|
|
714
|
-
this._changeDetectorRef =
|
|
715
|
-
this._scrollStrategy =
|
|
716
|
-
|
|
697
|
+
constructor() {
|
|
698
|
+
super();
|
|
699
|
+
this.elementRef = inject(ElementRef);
|
|
700
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
701
|
+
this._scrollStrategy = inject(VIRTUAL_SCROLL_STRATEGY, {
|
|
702
|
+
optional: true,
|
|
703
|
+
});
|
|
704
|
+
this.scrollable = inject(VIRTUAL_SCROLLABLE, { optional: true });
|
|
717
705
|
this._platform = inject(Platform);
|
|
718
706
|
/** Emits when the viewport is detached from a CdkVirtualForOf. */
|
|
719
707
|
this._detachedSubject = new Subject();
|
|
@@ -762,7 +750,8 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
762
750
|
this._viewportChanges = Subscription.EMPTY;
|
|
763
751
|
this._injector = inject(Injector);
|
|
764
752
|
this._isDestroyed = false;
|
|
765
|
-
|
|
753
|
+
const viewportRuler = inject(ViewportRuler);
|
|
754
|
+
if (!this._scrollStrategy && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
766
755
|
throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
|
|
767
756
|
}
|
|
768
757
|
this._viewportChanges = viewportRuler.change().subscribe(() => {
|
|
@@ -1063,8 +1052,8 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
1063
1052
|
this._totalContentWidth =
|
|
1064
1053
|
this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '';
|
|
1065
1054
|
}
|
|
1066
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1067
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
1055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollViewport, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1056
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.0-next.3", type: CdkVirtualScrollViewport, isStandalone: true, selector: "cdk-virtual-scroll-viewport", inputs: { orientation: "orientation", appendOnly: ["appendOnly", "appendOnly", booleanAttribute] }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.cdk-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.cdk-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "cdk-virtual-scroll-viewport" }, providers: [
|
|
1068
1057
|
{
|
|
1069
1058
|
provide: CdkScrollable,
|
|
1070
1059
|
useFactory: (virtualScrollable, viewport) => virtualScrollable || viewport,
|
|
@@ -1072,7 +1061,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
1072
1061
|
},
|
|
1073
1062
|
], viewQueries: [{ propertyName: "_contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!--\n Wrap the rendered content in an element that will be used to offset it based on the scroll\n position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n <ng-content></ng-content>\n</div>\n<!--\n Spacer used to force the scrolling container to the correct size for the *total* number of items\n so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\"></div>\n", styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1074
1063
|
}
|
|
1075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{
|
|
1076
1065
|
type: Component,
|
|
1077
1066
|
args: [{ selector: 'cdk-virtual-scroll-viewport', host: {
|
|
1078
1067
|
'class': 'cdk-virtual-scroll-viewport',
|
|
@@ -1085,19 +1074,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
1085
1074
|
deps: [[new Optional(), new Inject(VIRTUAL_SCROLLABLE)], CdkVirtualScrollViewport],
|
|
1086
1075
|
},
|
|
1087
1076
|
], template: "<!--\n Wrap the rendered content in an element that will be used to offset it based on the scroll\n position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n <ng-content></ng-content>\n</div>\n<!--\n Spacer used to force the scrolling container to the correct size for the *total* number of items\n so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\"></div>\n", styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"] }]
|
|
1088
|
-
}], ctorParameters: () => [
|
|
1089
|
-
type: Optional
|
|
1090
|
-
}, {
|
|
1091
|
-
type: Inject,
|
|
1092
|
-
args: [VIRTUAL_SCROLL_STRATEGY]
|
|
1093
|
-
}] }, { type: i2.Directionality, decorators: [{
|
|
1094
|
-
type: Optional
|
|
1095
|
-
}] }, { type: ScrollDispatcher }, { type: ViewportRuler }, { type: CdkVirtualScrollable, decorators: [{
|
|
1096
|
-
type: Optional
|
|
1097
|
-
}, {
|
|
1098
|
-
type: Inject,
|
|
1099
|
-
args: [VIRTUAL_SCROLLABLE]
|
|
1100
|
-
}] }], propDecorators: { orientation: [{
|
|
1077
|
+
}], ctorParameters: () => [], propDecorators: { orientation: [{
|
|
1101
1078
|
type: Input
|
|
1102
1079
|
}], appendOnly: [{
|
|
1103
1080
|
type: Input,
|
|
@@ -1170,22 +1147,12 @@ class CdkVirtualForOf {
|
|
|
1170
1147
|
set cdkVirtualForTemplateCacheSize(size) {
|
|
1171
1148
|
this._viewRepeater.viewCacheSize = coerceNumberProperty(size);
|
|
1172
1149
|
}
|
|
1173
|
-
constructor(
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
_differs,
|
|
1180
|
-
/** The strategy used to render items in the virtual scroll viewport. */
|
|
1181
|
-
_viewRepeater,
|
|
1182
|
-
/** The virtual scrolling viewport that these items are being rendered in. */
|
|
1183
|
-
_viewport, ngZone) {
|
|
1184
|
-
this._viewContainerRef = _viewContainerRef;
|
|
1185
|
-
this._template = _template;
|
|
1186
|
-
this._differs = _differs;
|
|
1187
|
-
this._viewRepeater = _viewRepeater;
|
|
1188
|
-
this._viewport = _viewport;
|
|
1150
|
+
constructor() {
|
|
1151
|
+
this._viewContainerRef = inject(ViewContainerRef);
|
|
1152
|
+
this._template = inject(TemplateRef);
|
|
1153
|
+
this._differs = inject(IterableDiffers);
|
|
1154
|
+
this._viewRepeater = inject(_VIEW_REPEATER_STRATEGY);
|
|
1155
|
+
this._viewport = inject(CdkVirtualScrollViewport, { skipSelf: true });
|
|
1189
1156
|
/** Emits when the rendered view of the data changes. */
|
|
1190
1157
|
this.viewChange = new Subject();
|
|
1191
1158
|
/** Subject that emits when a new DataSource instance is given. */
|
|
@@ -1207,6 +1174,7 @@ class CdkVirtualForOf {
|
|
|
1207
1174
|
/** Whether the rendered data should be updated during the next ngDoCheck cycle. */
|
|
1208
1175
|
this._needsUpdate = false;
|
|
1209
1176
|
this._destroyed = new Subject();
|
|
1177
|
+
const ngZone = inject(NgZone);
|
|
1210
1178
|
this.dataStream.subscribe(data => {
|
|
1211
1179
|
this._data = data;
|
|
1212
1180
|
this._onRenderedDataChange();
|
|
@@ -1370,22 +1338,17 @@ class CdkVirtualForOf {
|
|
|
1370
1338
|
static ngTemplateContextGuard(directive, context) {
|
|
1371
1339
|
return true;
|
|
1372
1340
|
}
|
|
1373
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1374
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
1341
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualForOf, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1342
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkVirtualForOf, isStandalone: true, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: { cdkVirtualForOf: "cdkVirtualForOf", cdkVirtualForTrackBy: "cdkVirtualForTrackBy", cdkVirtualForTemplate: "cdkVirtualForTemplate", cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize" }, providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 }); }
|
|
1375
1343
|
}
|
|
1376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualForOf, decorators: [{
|
|
1377
1345
|
type: Directive,
|
|
1378
1346
|
args: [{
|
|
1379
1347
|
selector: '[cdkVirtualFor][cdkVirtualForOf]',
|
|
1380
1348
|
providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],
|
|
1381
1349
|
standalone: true,
|
|
1382
1350
|
}]
|
|
1383
|
-
}], ctorParameters: () => [
|
|
1384
|
-
type: Inject,
|
|
1385
|
-
args: [_VIEW_REPEATER_STRATEGY]
|
|
1386
|
-
}] }, { type: CdkVirtualScrollViewport, decorators: [{
|
|
1387
|
-
type: SkipSelf
|
|
1388
|
-
}] }, { type: i0.NgZone }], propDecorators: { cdkVirtualForOf: [{
|
|
1351
|
+
}], ctorParameters: () => [], propDecorators: { cdkVirtualForOf: [{
|
|
1389
1352
|
type: Input
|
|
1390
1353
|
}], cdkVirtualForTrackBy: [{
|
|
1391
1354
|
type: Input
|
|
@@ -1399,17 +1362,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
1399
1362
|
* Provides a virtual scrollable for the element it is attached to.
|
|
1400
1363
|
*/
|
|
1401
1364
|
class CdkVirtualScrollableElement extends CdkVirtualScrollable {
|
|
1402
|
-
constructor(
|
|
1403
|
-
super(
|
|
1365
|
+
constructor() {
|
|
1366
|
+
super();
|
|
1404
1367
|
}
|
|
1405
1368
|
measureBoundingClientRectWithScrollOffset(from) {
|
|
1406
1369
|
return (this.getElementRef().nativeElement.getBoundingClientRect()[from] -
|
|
1407
1370
|
this.measureScrollOffset(from));
|
|
1408
1371
|
}
|
|
1409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1410
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
1372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableElement, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1373
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkVirtualScrollableElement, isStandalone: true, selector: "[cdkVirtualScrollingElement]", host: { classAttribute: "cdk-virtual-scrollable" }, providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableElement }], usesInheritance: true, ngImport: i0 }); }
|
|
1411
1374
|
}
|
|
1412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableElement, decorators: [{
|
|
1413
1376
|
type: Directive,
|
|
1414
1377
|
args: [{
|
|
1415
1378
|
selector: '[cdkVirtualScrollingElement]',
|
|
@@ -1419,41 +1382,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
1419
1382
|
'class': 'cdk-virtual-scrollable',
|
|
1420
1383
|
},
|
|
1421
1384
|
}]
|
|
1422
|
-
}], ctorParameters: () => [
|
|
1423
|
-
type: Optional
|
|
1424
|
-
}] }] });
|
|
1385
|
+
}], ctorParameters: () => [] });
|
|
1425
1386
|
|
|
1426
1387
|
/**
|
|
1427
1388
|
* Provides as virtual scrollable for the global / window scrollbar.
|
|
1428
1389
|
*/
|
|
1429
1390
|
class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
1430
|
-
constructor(
|
|
1431
|
-
super(
|
|
1391
|
+
constructor() {
|
|
1392
|
+
super();
|
|
1432
1393
|
this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(document, 'scroll').pipe(takeUntil(this._destroyed)).subscribe(observer)));
|
|
1394
|
+
this.elementRef = new ElementRef(document.documentElement);
|
|
1433
1395
|
}
|
|
1434
1396
|
measureBoundingClientRectWithScrollOffset(from) {
|
|
1435
1397
|
return this.getElementRef().nativeElement.getBoundingClientRect()[from];
|
|
1436
1398
|
}
|
|
1437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1438
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
1399
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableWindow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1400
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkVirtualScrollableWindow, isStandalone: true, selector: "cdk-virtual-scroll-viewport[scrollWindow]", providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }], usesInheritance: true, ngImport: i0 }); }
|
|
1439
1401
|
}
|
|
1440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableWindow, decorators: [{
|
|
1441
1403
|
type: Directive,
|
|
1442
1404
|
args: [{
|
|
1443
1405
|
selector: 'cdk-virtual-scroll-viewport[scrollWindow]',
|
|
1444
1406
|
providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }],
|
|
1445
1407
|
standalone: true,
|
|
1446
1408
|
}]
|
|
1447
|
-
}], ctorParameters: () => [
|
|
1448
|
-
type: Optional
|
|
1449
|
-
}] }] });
|
|
1409
|
+
}], ctorParameters: () => [] });
|
|
1450
1410
|
|
|
1451
1411
|
class CdkScrollableModule {
|
|
1452
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1453
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
1454
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1412
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1413
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule, imports: [CdkScrollable], exports: [CdkScrollable] }); }
|
|
1414
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule }); }
|
|
1455
1415
|
}
|
|
1456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule, decorators: [{
|
|
1457
1417
|
type: NgModule,
|
|
1458
1418
|
args: [{
|
|
1459
1419
|
exports: [CdkScrollable],
|
|
@@ -1464,8 +1424,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
1464
1424
|
* @docs-primary-export
|
|
1465
1425
|
*/
|
|
1466
1426
|
class ScrollingModule {
|
|
1467
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1468
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
1427
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1428
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport,
|
|
1469
1429
|
CdkFixedSizeVirtualScroll,
|
|
1470
1430
|
CdkVirtualForOf,
|
|
1471
1431
|
CdkVirtualScrollableWindow,
|
|
@@ -1474,10 +1434,10 @@ class ScrollingModule {
|
|
|
1474
1434
|
CdkVirtualScrollViewport,
|
|
1475
1435
|
CdkVirtualScrollableWindow,
|
|
1476
1436
|
CdkVirtualScrollableElement] }); }
|
|
1477
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1437
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, imports: [BidiModule,
|
|
1478
1438
|
CdkScrollableModule, BidiModule, CdkScrollableModule] }); }
|
|
1479
1439
|
}
|
|
1480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, decorators: [{
|
|
1481
1441
|
type: NgModule,
|
|
1482
1442
|
args: [{
|
|
1483
1443
|
imports: [
|