@angular/cdk 21.1.0-next.1 → 21.1.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/_a11y-module-chunk.mjs +29 -31
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_array-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
- package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
- package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
- package/fesm2022/_data-source-chunk.mjs.map +1 -1
- package/fesm2022/_directionality-chunk.mjs +3 -3
- package/fesm2022/_directionality-chunk.mjs.map +1 -1
- package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_element-chunk.mjs.map +1 -1
- package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
- package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_focus-monitor-chunk.mjs +11 -13
- package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
- package/fesm2022/_id-generator-chunk.mjs +3 -3
- package/fesm2022/_id-generator-chunk.mjs.map +1 -1
- package/fesm2022/_keycodes-chunk.mjs.map +1 -1
- package/fesm2022/_list-key-manager-chunk.mjs +6 -6
- package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_overlay-module-chunk.mjs +54 -46
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +3 -3
- package/fesm2022/_platform-chunk.mjs.map +1 -1
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs +1 -3
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_scrolling-chunk.mjs.map +1 -1
- package/fesm2022/_selection-model-chunk.mjs +1 -1
- package/fesm2022/_selection-model-chunk.mjs.map +1 -1
- package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
- package/fesm2022/_style-loader-chunk.mjs +3 -3
- package/fesm2022/_style-loader-chunk.mjs.map +1 -1
- package/fesm2022/_test-environment-chunk.mjs.map +1 -1
- package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_typeahead-chunk.mjs.map +1 -1
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
- package/fesm2022/a11y.mjs +9 -9
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +8 -8
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +11 -11
- 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 +1 -1
- package/fesm2022/dialog.mjs +12 -12
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +48 -48
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +4 -4
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +11 -11
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +75 -61
- 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 +13 -13
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +3 -3
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +4 -4
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +14 -14
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +63 -58
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +22 -22
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +217 -112
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing-testbed.mjs +7 -1
- package/fesm2022/testing-testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -13
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +17 -17
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +33 -37
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -1
- package/schematics/ng-add/index.js +1 -1
- package/types/_harness-environment-chunk.d.ts +0 -2
- package/types/_overlay-module-chunk.d.ts +2 -1
- package/types/_scrolling-module-chunk.d.ts +11 -1
- package/types/_view-repeater-chunk.d.ts +2 -7
- package/types/collections.d.ts +1 -1
- package/types/menu.d.ts +8 -5
- package/types/scrolling.d.ts +1 -1
- package/types/table.d.ts +62 -11
- package/types/testing-testbed.d.ts +3 -0
- package/_adev_assets/cdk_drag_drop.json +0 -7221
- package/_adev_assets/cdk_testing.json +0 -7601
- package/_adev_assets/cdk_testing_protractor.json +0 -1747
- package/_adev_assets/cdk_testing_selenium_webdriver.json +0 -1801
- package/_adev_assets/cdk_testing_testbed.json +0 -1903
package/fesm2022/scrolling.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { Directionality } from './_directionality-chunk.mjs';
|
|
|
8
8
|
import { getRtlScrollAxisType, RtlScrollAxisType, supportsScrollBehavior } from './_scrolling-chunk.mjs';
|
|
9
9
|
import { BidiModule } from './bidi.mjs';
|
|
10
10
|
export { Dir as ɵɵDir } from './bidi.mjs';
|
|
11
|
-
import {
|
|
11
|
+
import { _RecycleViewRepeaterStrategy, ArrayDataSource } from './_recycle-view-repeater-strategy-chunk.mjs';
|
|
12
12
|
import { isDataSource } from './_data-source-chunk.mjs';
|
|
13
13
|
import '@angular/common';
|
|
14
14
|
|
|
@@ -139,7 +139,7 @@ class CdkFixedSizeVirtualScroll {
|
|
|
139
139
|
}
|
|
140
140
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
141
141
|
minVersion: "12.0.0",
|
|
142
|
-
version: "21.0.
|
|
142
|
+
version: "21.0.3",
|
|
143
143
|
ngImport: i0,
|
|
144
144
|
type: CdkFixedSizeVirtualScroll,
|
|
145
145
|
deps: [],
|
|
@@ -147,7 +147,7 @@ class CdkFixedSizeVirtualScroll {
|
|
|
147
147
|
});
|
|
148
148
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
149
149
|
minVersion: "14.0.0",
|
|
150
|
-
version: "21.0.
|
|
150
|
+
version: "21.0.3",
|
|
151
151
|
type: CdkFixedSizeVirtualScroll,
|
|
152
152
|
isStandalone: true,
|
|
153
153
|
selector: "cdk-virtual-scroll-viewport[itemSize]",
|
|
@@ -167,7 +167,7 @@ class CdkFixedSizeVirtualScroll {
|
|
|
167
167
|
}
|
|
168
168
|
i0.ɵɵngDeclareClassMetadata({
|
|
169
169
|
minVersion: "12.0.0",
|
|
170
|
-
version: "21.0.
|
|
170
|
+
version: "21.0.3",
|
|
171
171
|
ngImport: i0,
|
|
172
172
|
type: CdkFixedSizeVirtualScroll,
|
|
173
173
|
decorators: [{
|
|
@@ -267,7 +267,7 @@ class ScrollDispatcher {
|
|
|
267
267
|
}
|
|
268
268
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
269
269
|
minVersion: "12.0.0",
|
|
270
|
-
version: "21.0.
|
|
270
|
+
version: "21.0.3",
|
|
271
271
|
ngImport: i0,
|
|
272
272
|
type: ScrollDispatcher,
|
|
273
273
|
deps: [],
|
|
@@ -275,7 +275,7 @@ class ScrollDispatcher {
|
|
|
275
275
|
});
|
|
276
276
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
277
277
|
minVersion: "12.0.0",
|
|
278
|
-
version: "21.0.
|
|
278
|
+
version: "21.0.3",
|
|
279
279
|
ngImport: i0,
|
|
280
280
|
type: ScrollDispatcher,
|
|
281
281
|
providedIn: 'root'
|
|
@@ -283,7 +283,7 @@ class ScrollDispatcher {
|
|
|
283
283
|
}
|
|
284
284
|
i0.ɵɵngDeclareClassMetadata({
|
|
285
285
|
minVersion: "12.0.0",
|
|
286
|
-
version: "21.0.
|
|
286
|
+
version: "21.0.3",
|
|
287
287
|
ngImport: i0,
|
|
288
288
|
type: ScrollDispatcher,
|
|
289
289
|
decorators: [{
|
|
@@ -404,7 +404,7 @@ class CdkScrollable {
|
|
|
404
404
|
}
|
|
405
405
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
406
406
|
minVersion: "12.0.0",
|
|
407
|
-
version: "21.0.
|
|
407
|
+
version: "21.0.3",
|
|
408
408
|
ngImport: i0,
|
|
409
409
|
type: CdkScrollable,
|
|
410
410
|
deps: [],
|
|
@@ -412,7 +412,7 @@ class CdkScrollable {
|
|
|
412
412
|
});
|
|
413
413
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
414
414
|
minVersion: "14.0.0",
|
|
415
|
-
version: "21.0.
|
|
415
|
+
version: "21.0.3",
|
|
416
416
|
type: CdkScrollable,
|
|
417
417
|
isStandalone: true,
|
|
418
418
|
selector: "[cdk-scrollable], [cdkScrollable]",
|
|
@@ -421,7 +421,7 @@ class CdkScrollable {
|
|
|
421
421
|
}
|
|
422
422
|
i0.ɵɵngDeclareClassMetadata({
|
|
423
423
|
minVersion: "12.0.0",
|
|
424
|
-
version: "21.0.
|
|
424
|
+
version: "21.0.3",
|
|
425
425
|
ngImport: i0,
|
|
426
426
|
type: CdkScrollable,
|
|
427
427
|
decorators: [{
|
|
@@ -437,7 +437,7 @@ const DEFAULT_RESIZE_TIME = 20;
|
|
|
437
437
|
class ViewportRuler {
|
|
438
438
|
_platform = inject(Platform);
|
|
439
439
|
_listeners;
|
|
440
|
-
_viewportSize;
|
|
440
|
+
_viewportSize = null;
|
|
441
441
|
_change = new Subject();
|
|
442
442
|
_document = inject(DOCUMENT);
|
|
443
443
|
constructor() {
|
|
@@ -519,7 +519,7 @@ class ViewportRuler {
|
|
|
519
519
|
}
|
|
520
520
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
521
521
|
minVersion: "12.0.0",
|
|
522
|
-
version: "21.0.
|
|
522
|
+
version: "21.0.3",
|
|
523
523
|
ngImport: i0,
|
|
524
524
|
type: ViewportRuler,
|
|
525
525
|
deps: [],
|
|
@@ -527,7 +527,7 @@ class ViewportRuler {
|
|
|
527
527
|
});
|
|
528
528
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
529
529
|
minVersion: "12.0.0",
|
|
530
|
-
version: "21.0.
|
|
530
|
+
version: "21.0.3",
|
|
531
531
|
ngImport: i0,
|
|
532
532
|
type: ViewportRuler,
|
|
533
533
|
providedIn: 'root'
|
|
@@ -535,7 +535,7 @@ class ViewportRuler {
|
|
|
535
535
|
}
|
|
536
536
|
i0.ɵɵngDeclareClassMetadata({
|
|
537
537
|
minVersion: "12.0.0",
|
|
538
|
-
version: "21.0.
|
|
538
|
+
version: "21.0.3",
|
|
539
539
|
ngImport: i0,
|
|
540
540
|
type: ViewportRuler,
|
|
541
541
|
decorators: [{
|
|
@@ -558,7 +558,7 @@ class CdkVirtualScrollable extends CdkScrollable {
|
|
|
558
558
|
}
|
|
559
559
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
560
560
|
minVersion: "12.0.0",
|
|
561
|
-
version: "21.0.
|
|
561
|
+
version: "21.0.3",
|
|
562
562
|
ngImport: i0,
|
|
563
563
|
type: CdkVirtualScrollable,
|
|
564
564
|
deps: [],
|
|
@@ -566,7 +566,7 @@ class CdkVirtualScrollable extends CdkScrollable {
|
|
|
566
566
|
});
|
|
567
567
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
568
568
|
minVersion: "14.0.0",
|
|
569
|
-
version: "21.0.
|
|
569
|
+
version: "21.0.3",
|
|
570
570
|
type: CdkVirtualScrollable,
|
|
571
571
|
isStandalone: true,
|
|
572
572
|
usesInheritance: true,
|
|
@@ -575,7 +575,7 @@ class CdkVirtualScrollable extends CdkScrollable {
|
|
|
575
575
|
}
|
|
576
576
|
i0.ɵɵngDeclareClassMetadata({
|
|
577
577
|
minVersion: "12.0.0",
|
|
578
|
-
version: "21.0.
|
|
578
|
+
version: "21.0.3",
|
|
579
579
|
ngImport: i0,
|
|
580
580
|
type: CdkVirtualScrollable,
|
|
581
581
|
decorators: [{
|
|
@@ -588,6 +588,7 @@ function rangesEqual(r1, r2) {
|
|
|
588
588
|
return r1.start == r2.start && r1.end == r2.end;
|
|
589
589
|
}
|
|
590
590
|
const SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? animationFrameScheduler : asapScheduler;
|
|
591
|
+
const CDK_VIRTUAL_SCROLL_VIEWPORT = new InjectionToken('CDK_VIRTUAL_SCROLL_VIEWPORT');
|
|
591
592
|
class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
592
593
|
elementRef = inject(ElementRef);
|
|
593
594
|
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
@@ -600,6 +601,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
600
601
|
_platform = inject(Platform);
|
|
601
602
|
_detachedSubject = new Subject();
|
|
602
603
|
_renderedRangeSubject = new Subject();
|
|
604
|
+
_renderedContentOffsetSubject = new Subject();
|
|
603
605
|
get orientation() {
|
|
604
606
|
return this._orientation;
|
|
605
607
|
}
|
|
@@ -614,6 +616,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
614
616
|
scrolledIndexChange = new Observable(observer => this._scrollStrategy.scrolledIndexChange.subscribe(index => Promise.resolve().then(() => this.ngZone.run(() => observer.next(index)))));
|
|
615
617
|
_contentWrapper;
|
|
616
618
|
renderedRangeStream = this._renderedRangeSubject;
|
|
619
|
+
renderedContentOffset = this._renderedContentOffsetSubject.pipe(filter(offset => offset !== null), distinctUntilChanged());
|
|
617
620
|
_totalContentSize = 0;
|
|
618
621
|
_totalContentWidth = signal('', ...(ngDevMode ? [{
|
|
619
622
|
debugName: "_totalContentWidth"
|
|
@@ -628,7 +631,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
628
631
|
};
|
|
629
632
|
_dataLength = 0;
|
|
630
633
|
_viewportSize = 0;
|
|
631
|
-
_forOf;
|
|
634
|
+
_forOf = null;
|
|
632
635
|
_renderedContentOffset = 0;
|
|
633
636
|
_renderedContentOffsetNeedsRewrite = false;
|
|
634
637
|
_changeDetectionNeeded = signal(false, ...(ngDevMode ? [{
|
|
@@ -655,12 +658,12 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
655
658
|
if (this._changeDetectionNeeded()) {
|
|
656
659
|
this._doChangeDetection();
|
|
657
660
|
}
|
|
658
|
-
},
|
|
659
|
-
|
|
661
|
+
}, {
|
|
662
|
+
...(ngDevMode ? {
|
|
663
|
+
debugName: "ref"
|
|
664
|
+
} : {}),
|
|
660
665
|
injector: inject(ApplicationRef).injector
|
|
661
|
-
}
|
|
662
|
-
injector: inject(ApplicationRef).injector
|
|
663
|
-
}]));
|
|
666
|
+
});
|
|
664
667
|
inject(DestroyRef).onDestroy(() => void ref.destroy());
|
|
665
668
|
}
|
|
666
669
|
ngOnInit() {
|
|
@@ -845,6 +848,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
845
848
|
this.ngZone.run(() => {
|
|
846
849
|
this._changeDetectorRef.markForCheck();
|
|
847
850
|
this._contentWrapper.nativeElement.style.transform = this._renderedContentTransform;
|
|
851
|
+
this._renderedContentOffsetSubject.next(this.getOffsetToRenderedContentStart());
|
|
848
852
|
afterNextRender(() => {
|
|
849
853
|
this._changeDetectionNeeded.set(false);
|
|
850
854
|
const runAfterChangeDetection = this._runAfterChangeDetection;
|
|
@@ -863,7 +867,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
863
867
|
}
|
|
864
868
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
865
869
|
minVersion: "12.0.0",
|
|
866
|
-
version: "21.0.
|
|
870
|
+
version: "21.0.3",
|
|
867
871
|
ngImport: i0,
|
|
868
872
|
type: CdkVirtualScrollViewport,
|
|
869
873
|
deps: [],
|
|
@@ -871,7 +875,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
871
875
|
});
|
|
872
876
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
873
877
|
minVersion: "16.1.0",
|
|
874
|
-
version: "21.0.
|
|
878
|
+
version: "21.0.3",
|
|
875
879
|
type: CdkVirtualScrollViewport,
|
|
876
880
|
isStandalone: true,
|
|
877
881
|
selector: "cdk-virtual-scroll-viewport",
|
|
@@ -894,6 +898,9 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
894
898
|
useFactory: () => inject(VIRTUAL_SCROLLABLE, {
|
|
895
899
|
optional: true
|
|
896
900
|
}) || inject(CdkVirtualScrollViewport)
|
|
901
|
+
}, {
|
|
902
|
+
provide: CDK_VIRTUAL_SCROLL_VIEWPORT,
|
|
903
|
+
useExisting: CdkVirtualScrollViewport
|
|
897
904
|
}],
|
|
898
905
|
viewQueries: [{
|
|
899
906
|
propertyName: "_contentWrapper",
|
|
@@ -912,7 +919,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
912
919
|
}
|
|
913
920
|
i0.ɵɵngDeclareClassMetadata({
|
|
914
921
|
minVersion: "12.0.0",
|
|
915
|
-
version: "21.0.
|
|
922
|
+
version: "21.0.3",
|
|
916
923
|
ngImport: i0,
|
|
917
924
|
type: CdkVirtualScrollViewport,
|
|
918
925
|
decorators: [{
|
|
@@ -931,6 +938,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
931
938
|
useFactory: () => inject(VIRTUAL_SCROLLABLE, {
|
|
932
939
|
optional: true
|
|
933
940
|
}) || inject(CdkVirtualScrollViewport)
|
|
941
|
+
}, {
|
|
942
|
+
provide: CDK_VIRTUAL_SCROLL_VIEWPORT,
|
|
943
|
+
useExisting: CdkVirtualScrollViewport
|
|
934
944
|
}],
|
|
935
945
|
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",
|
|
936
946
|
styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.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}\n"]
|
|
@@ -974,8 +984,8 @@ class CdkVirtualForOf {
|
|
|
974
984
|
_viewContainerRef = inject(ViewContainerRef);
|
|
975
985
|
_template = inject(TemplateRef);
|
|
976
986
|
_differs = inject(IterableDiffers);
|
|
977
|
-
_viewRepeater =
|
|
978
|
-
_viewport = inject(
|
|
987
|
+
_viewRepeater = new _RecycleViewRepeaterStrategy();
|
|
988
|
+
_viewport = inject(CDK_VIRTUAL_SCROLL_VIEWPORT, {
|
|
979
989
|
skipSelf: true
|
|
980
990
|
});
|
|
981
991
|
viewChange = new Subject();
|
|
@@ -1014,9 +1024,12 @@ class CdkVirtualForOf {
|
|
|
1014
1024
|
}
|
|
1015
1025
|
dataStream = this._dataSourceChanges.pipe(startWith(null), pairwise(), switchMap(([prev, cur]) => this._changeDataSource(prev, cur)), shareReplay(1));
|
|
1016
1026
|
_differ = null;
|
|
1017
|
-
_data;
|
|
1018
|
-
_renderedItems;
|
|
1019
|
-
_renderedRange
|
|
1027
|
+
_data = [];
|
|
1028
|
+
_renderedItems = [];
|
|
1029
|
+
_renderedRange = {
|
|
1030
|
+
start: 0,
|
|
1031
|
+
end: 0
|
|
1032
|
+
};
|
|
1020
1033
|
_needsUpdate = false;
|
|
1021
1034
|
_destroyed = new Subject();
|
|
1022
1035
|
constructor() {
|
|
@@ -1153,7 +1166,7 @@ class CdkVirtualForOf {
|
|
|
1153
1166
|
}
|
|
1154
1167
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1155
1168
|
minVersion: "12.0.0",
|
|
1156
|
-
version: "21.0.
|
|
1169
|
+
version: "21.0.3",
|
|
1157
1170
|
ngImport: i0,
|
|
1158
1171
|
type: CdkVirtualForOf,
|
|
1159
1172
|
deps: [],
|
|
@@ -1161,7 +1174,7 @@ class CdkVirtualForOf {
|
|
|
1161
1174
|
});
|
|
1162
1175
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1163
1176
|
minVersion: "14.0.0",
|
|
1164
|
-
version: "21.0.
|
|
1177
|
+
version: "21.0.3",
|
|
1165
1178
|
type: CdkVirtualForOf,
|
|
1166
1179
|
isStandalone: true,
|
|
1167
1180
|
selector: "[cdkVirtualFor][cdkVirtualForOf]",
|
|
@@ -1171,26 +1184,18 @@ class CdkVirtualForOf {
|
|
|
1171
1184
|
cdkVirtualForTemplate: "cdkVirtualForTemplate",
|
|
1172
1185
|
cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize"
|
|
1173
1186
|
},
|
|
1174
|
-
providers: [{
|
|
1175
|
-
provide: _VIEW_REPEATER_STRATEGY,
|
|
1176
|
-
useClass: _RecycleViewRepeaterStrategy
|
|
1177
|
-
}],
|
|
1178
1187
|
ngImport: i0
|
|
1179
1188
|
});
|
|
1180
1189
|
}
|
|
1181
1190
|
i0.ɵɵngDeclareClassMetadata({
|
|
1182
1191
|
minVersion: "12.0.0",
|
|
1183
|
-
version: "21.0.
|
|
1192
|
+
version: "21.0.3",
|
|
1184
1193
|
ngImport: i0,
|
|
1185
1194
|
type: CdkVirtualForOf,
|
|
1186
1195
|
decorators: [{
|
|
1187
1196
|
type: Directive,
|
|
1188
1197
|
args: [{
|
|
1189
|
-
selector: '[cdkVirtualFor][cdkVirtualForOf]'
|
|
1190
|
-
providers: [{
|
|
1191
|
-
provide: _VIEW_REPEATER_STRATEGY,
|
|
1192
|
-
useClass: _RecycleViewRepeaterStrategy
|
|
1193
|
-
}]
|
|
1198
|
+
selector: '[cdkVirtualFor][cdkVirtualForOf]'
|
|
1194
1199
|
}]
|
|
1195
1200
|
}],
|
|
1196
1201
|
ctorParameters: () => [],
|
|
@@ -1219,7 +1224,7 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
|
|
|
1219
1224
|
}
|
|
1220
1225
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1221
1226
|
minVersion: "12.0.0",
|
|
1222
|
-
version: "21.0.
|
|
1227
|
+
version: "21.0.3",
|
|
1223
1228
|
ngImport: i0,
|
|
1224
1229
|
type: CdkVirtualScrollableElement,
|
|
1225
1230
|
deps: [],
|
|
@@ -1227,7 +1232,7 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
|
|
|
1227
1232
|
});
|
|
1228
1233
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1229
1234
|
minVersion: "14.0.0",
|
|
1230
|
-
version: "21.0.
|
|
1235
|
+
version: "21.0.3",
|
|
1231
1236
|
type: CdkVirtualScrollableElement,
|
|
1232
1237
|
isStandalone: true,
|
|
1233
1238
|
selector: "[cdkVirtualScrollingElement]",
|
|
@@ -1244,7 +1249,7 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
|
|
|
1244
1249
|
}
|
|
1245
1250
|
i0.ɵɵngDeclareClassMetadata({
|
|
1246
1251
|
minVersion: "12.0.0",
|
|
1247
|
-
version: "21.0.
|
|
1252
|
+
version: "21.0.3",
|
|
1248
1253
|
ngImport: i0,
|
|
1249
1254
|
type: CdkVirtualScrollableElement,
|
|
1250
1255
|
decorators: [{
|
|
@@ -1275,7 +1280,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
|
1275
1280
|
}
|
|
1276
1281
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1277
1282
|
minVersion: "12.0.0",
|
|
1278
|
-
version: "21.0.
|
|
1283
|
+
version: "21.0.3",
|
|
1279
1284
|
ngImport: i0,
|
|
1280
1285
|
type: CdkVirtualScrollableWindow,
|
|
1281
1286
|
deps: [],
|
|
@@ -1283,7 +1288,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
|
1283
1288
|
});
|
|
1284
1289
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1285
1290
|
minVersion: "14.0.0",
|
|
1286
|
-
version: "21.0.
|
|
1291
|
+
version: "21.0.3",
|
|
1287
1292
|
type: CdkVirtualScrollableWindow,
|
|
1288
1293
|
isStandalone: true,
|
|
1289
1294
|
selector: "cdk-virtual-scroll-viewport[scrollWindow]",
|
|
@@ -1297,7 +1302,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
|
1297
1302
|
}
|
|
1298
1303
|
i0.ɵɵngDeclareClassMetadata({
|
|
1299
1304
|
minVersion: "12.0.0",
|
|
1300
|
-
version: "21.0.
|
|
1305
|
+
version: "21.0.3",
|
|
1301
1306
|
ngImport: i0,
|
|
1302
1307
|
type: CdkVirtualScrollableWindow,
|
|
1303
1308
|
decorators: [{
|
|
@@ -1316,7 +1321,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1316
1321
|
class CdkScrollableModule {
|
|
1317
1322
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1318
1323
|
minVersion: "12.0.0",
|
|
1319
|
-
version: "21.0.
|
|
1324
|
+
version: "21.0.3",
|
|
1320
1325
|
ngImport: i0,
|
|
1321
1326
|
type: CdkScrollableModule,
|
|
1322
1327
|
deps: [],
|
|
@@ -1324,7 +1329,7 @@ class CdkScrollableModule {
|
|
|
1324
1329
|
});
|
|
1325
1330
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1326
1331
|
minVersion: "14.0.0",
|
|
1327
|
-
version: "21.0.
|
|
1332
|
+
version: "21.0.3",
|
|
1328
1333
|
ngImport: i0,
|
|
1329
1334
|
type: CdkScrollableModule,
|
|
1330
1335
|
imports: [CdkScrollable],
|
|
@@ -1332,14 +1337,14 @@ class CdkScrollableModule {
|
|
|
1332
1337
|
});
|
|
1333
1338
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1334
1339
|
minVersion: "12.0.0",
|
|
1335
|
-
version: "21.0.
|
|
1340
|
+
version: "21.0.3",
|
|
1336
1341
|
ngImport: i0,
|
|
1337
1342
|
type: CdkScrollableModule
|
|
1338
1343
|
});
|
|
1339
1344
|
}
|
|
1340
1345
|
i0.ɵɵngDeclareClassMetadata({
|
|
1341
1346
|
minVersion: "12.0.0",
|
|
1342
|
-
version: "21.0.
|
|
1347
|
+
version: "21.0.3",
|
|
1343
1348
|
ngImport: i0,
|
|
1344
1349
|
type: CdkScrollableModule,
|
|
1345
1350
|
decorators: [{
|
|
@@ -1353,7 +1358,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1353
1358
|
class ScrollingModule {
|
|
1354
1359
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1355
1360
|
minVersion: "12.0.0",
|
|
1356
|
-
version: "21.0.
|
|
1361
|
+
version: "21.0.3",
|
|
1357
1362
|
ngImport: i0,
|
|
1358
1363
|
type: ScrollingModule,
|
|
1359
1364
|
deps: [],
|
|
@@ -1361,7 +1366,7 @@ class ScrollingModule {
|
|
|
1361
1366
|
});
|
|
1362
1367
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1363
1368
|
minVersion: "14.0.0",
|
|
1364
|
-
version: "21.0.
|
|
1369
|
+
version: "21.0.3",
|
|
1365
1370
|
ngImport: i0,
|
|
1366
1371
|
type: ScrollingModule,
|
|
1367
1372
|
imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport, CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollableWindow, CdkVirtualScrollableElement],
|
|
@@ -1369,7 +1374,7 @@ class ScrollingModule {
|
|
|
1369
1374
|
});
|
|
1370
1375
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1371
1376
|
minVersion: "12.0.0",
|
|
1372
|
-
version: "21.0.
|
|
1377
|
+
version: "21.0.3",
|
|
1373
1378
|
ngImport: i0,
|
|
1374
1379
|
type: ScrollingModule,
|
|
1375
1380
|
imports: [BidiModule, CdkScrollableModule, BidiModule, CdkScrollableModule]
|
|
@@ -1377,7 +1382,7 @@ class ScrollingModule {
|
|
|
1377
1382
|
}
|
|
1378
1383
|
i0.ɵɵngDeclareClassMetadata({
|
|
1379
1384
|
minVersion: "12.0.0",
|
|
1380
|
-
version: "21.0.
|
|
1385
|
+
version: "21.0.3",
|
|
1381
1386
|
ngImport: i0,
|
|
1382
1387
|
type: ScrollingModule,
|
|
1383
1388
|
decorators: [{
|
|
@@ -1389,5 +1394,5 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1389
1394
|
}]
|
|
1390
1395
|
});
|
|
1391
1396
|
|
|
1392
|
-
export { CdkFixedSizeVirtualScroll, CdkScrollable, CdkScrollableModule, CdkVirtualForOf, CdkVirtualScrollViewport, CdkVirtualScrollable, CdkVirtualScrollableElement, CdkVirtualScrollableWindow, DEFAULT_RESIZE_TIME, DEFAULT_SCROLL_TIME, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollingModule, VIRTUAL_SCROLLABLE, VIRTUAL_SCROLL_STRATEGY, ViewportRuler, _fixedSizeVirtualScrollStrategyFactory };
|
|
1397
|
+
export { CDK_VIRTUAL_SCROLL_VIEWPORT, CdkFixedSizeVirtualScroll, CdkScrollable, CdkScrollableModule, CdkVirtualForOf, CdkVirtualScrollViewport, CdkVirtualScrollable, CdkVirtualScrollableElement, CdkVirtualScrollableWindow, DEFAULT_RESIZE_TIME, DEFAULT_SCROLL_TIME, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollingModule, VIRTUAL_SCROLLABLE, VIRTUAL_SCROLL_STRATEGY, ViewportRuler, _fixedSizeVirtualScrollStrategyFactory };
|
|
1393
1398
|
//# sourceMappingURL=scrolling.mjs.map
|