@angular/cdk 22.0.0-next.2 → 22.0.0-next.4
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-prebuilt.css +19 -1
- package/fesm2022/_a11y-module-chunk.mjs +24 -26
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs +7 -9
- package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
- package/fesm2022/_css-pixel-value-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 +10 -12
- 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/_list-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_overlay-module-chunk.mjs +44 -56
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +4 -6
- package/fesm2022/_platform-chunk.mjs.map +1 -1
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_scrolling-chunk.mjs.map +1 -1
- package/fesm2022/_selection-model-chunk.mjs.map +1 -1
- package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
- package/fesm2022/_style-loader-chunk.mjs +3 -3
- package/fesm2022/_style-loader-chunk.mjs.map +1 -1
- package/fesm2022/_tree-key-manager-chunk.mjs +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 +16 -16
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +11 -13
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +9 -9
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +12 -14
- 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/dialog.mjs +17 -19
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +40 -44
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +5 -5
- package/fesm2022/listbox.mjs +13 -13
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +55 -55
- 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 +16 -20
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +7 -11
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +5 -5
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +12 -16
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +7 -7
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +47 -59
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +34 -36
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +88 -112
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing-testbed.mjs +1 -1
- package/fesm2022/testing-testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +20 -24
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +33 -45
- package/fesm2022/tree.mjs.map +1 -1
- package/overlay-prebuilt.css +117 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/text-field-prebuilt.css +26 -1
- package/types/_a11y-module-chunk.d.ts +5 -6
- package/types/_activedescendant-key-manager-chunk.d.ts +1 -1
- package/types/_bidi-module-chunk.d.ts +1 -1
- package/types/_focus-key-manager-chunk.d.ts +1 -1
- package/types/_focus-monitor-chunk.d.ts +2 -3
- package/types/_overlay-module-chunk.d.ts +2 -5
- package/types/_platform-chunk.d.ts +0 -2
- package/types/_portal-directives-chunk.d.ts +1 -2
- package/types/_scrolling-module-chunk.d.ts +5 -9
- package/types/_view-repeater-chunk.d.ts +1 -1
- package/types/a11y.d.ts +6 -6
- package/types/accordion.d.ts +0 -1
- package/types/clipboard.d.ts +1 -2
- package/types/dialog.d.ts +1 -2
- package/types/drag-drop.d.ts +7 -9
- package/types/layout.d.ts +1 -2
- package/types/listbox.d.ts +1 -1
- package/types/observers.d.ts +1 -3
- package/types/overlay.d.ts +1 -5
- package/types/scrolling.d.ts +1 -1
- package/types/stepper.d.ts +5 -8
- package/types/table.d.ts +11 -20
- package/types/testing-selenium-webdriver.d.ts +0 -19
- package/types/text-field.d.ts +1 -3
- package/types/tree.d.ts +4 -9
package/fesm2022/scrolling.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, forwardRef,
|
|
2
|
+
import { InjectionToken, forwardRef, Input, Directive, inject, NgZone, RendererFactory2, Injectable, ElementRef, Renderer2, DOCUMENT, ChangeDetectorRef, signal, Injector, effect, ApplicationRef, DestroyRef, untracked, afterNextRender, booleanAttribute, ViewChild, Output, ChangeDetectionStrategy, ViewEncapsulation, Component, ViewContainerRef, TemplateRef, IterableDiffers, NgModule } from '@angular/core';
|
|
3
3
|
import { Subject, of, Observable, Subscription, animationFrameScheduler, asapScheduler, isObservable } from 'rxjs';
|
|
4
4
|
import { distinctUntilChanged, auditTime, filter, startWith, takeUntil, pairwise, switchMap, shareReplay } from 'rxjs/operators';
|
|
5
|
-
import { coerceNumberProperty, coerceElement } from './_element-chunk.mjs';
|
|
6
5
|
import { Platform } from './_platform-chunk.mjs';
|
|
6
|
+
import { coerceNumberProperty, coerceElement } from './_element-chunk.mjs';
|
|
7
7
|
import { Directionality } from './_directionality-chunk.mjs';
|
|
8
8
|
import { getRtlScrollAxisType, RtlScrollAxisType, supportsScrollBehavior } from './_scrolling-chunk.mjs';
|
|
9
|
-
import { BidiModule } from './bidi.mjs';
|
|
10
|
-
export { Dir as ɵɵDir } from './bidi.mjs';
|
|
11
9
|
import { _RecycleViewRepeaterStrategy, ArrayDataSource } from './_recycle-view-repeater-strategy-chunk.mjs';
|
|
12
10
|
import { isDataSource } from './_data-source-chunk.mjs';
|
|
11
|
+
import { BidiModule } from './bidi.mjs';
|
|
12
|
+
export { Dir as ɵɵDir } from './bidi.mjs';
|
|
13
13
|
import '@angular/common';
|
|
14
14
|
|
|
15
15
|
const VIRTUAL_SCROLL_STRATEGY = new InjectionToken('VIRTUAL_SCROLL_STRATEGY');
|
|
@@ -139,7 +139,7 @@ class CdkFixedSizeVirtualScroll {
|
|
|
139
139
|
}
|
|
140
140
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
141
141
|
minVersion: "12.0.0",
|
|
142
|
-
version: "22.0.0-next.
|
|
142
|
+
version: "22.0.0-next.6",
|
|
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: "22.0.0-next.
|
|
150
|
+
version: "22.0.0-next.6",
|
|
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: "22.0.0-next.
|
|
170
|
+
version: "22.0.0-next.6",
|
|
171
171
|
ngImport: i0,
|
|
172
172
|
type: CdkFixedSizeVirtualScroll,
|
|
173
173
|
decorators: [{
|
|
@@ -200,7 +200,6 @@ class ScrollDispatcher {
|
|
|
200
200
|
_platform = inject(Platform);
|
|
201
201
|
_renderer = inject(RendererFactory2).createRenderer(null, null);
|
|
202
202
|
_cleanupGlobalListener;
|
|
203
|
-
constructor() {}
|
|
204
203
|
_scrolled = new Subject();
|
|
205
204
|
_scrolledCount = 0;
|
|
206
205
|
scrollContainers = new Map();
|
|
@@ -267,7 +266,7 @@ class ScrollDispatcher {
|
|
|
267
266
|
}
|
|
268
267
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
269
268
|
minVersion: "12.0.0",
|
|
270
|
-
version: "22.0.0-next.
|
|
269
|
+
version: "22.0.0-next.6",
|
|
271
270
|
ngImport: i0,
|
|
272
271
|
type: ScrollDispatcher,
|
|
273
272
|
deps: [],
|
|
@@ -275,7 +274,7 @@ class ScrollDispatcher {
|
|
|
275
274
|
});
|
|
276
275
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
277
276
|
minVersion: "12.0.0",
|
|
278
|
-
version: "22.0.0-next.
|
|
277
|
+
version: "22.0.0-next.6",
|
|
279
278
|
ngImport: i0,
|
|
280
279
|
type: ScrollDispatcher,
|
|
281
280
|
providedIn: 'root'
|
|
@@ -283,7 +282,7 @@ class ScrollDispatcher {
|
|
|
283
282
|
}
|
|
284
283
|
i0.ɵɵngDeclareClassMetadata({
|
|
285
284
|
minVersion: "12.0.0",
|
|
286
|
-
version: "22.0.0-next.
|
|
285
|
+
version: "22.0.0-next.6",
|
|
287
286
|
ngImport: i0,
|
|
288
287
|
type: ScrollDispatcher,
|
|
289
288
|
decorators: [{
|
|
@@ -291,8 +290,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
291
290
|
args: [{
|
|
292
291
|
providedIn: 'root'
|
|
293
292
|
}]
|
|
294
|
-
}]
|
|
295
|
-
ctorParameters: () => []
|
|
293
|
+
}]
|
|
296
294
|
});
|
|
297
295
|
|
|
298
296
|
class CdkScrollable {
|
|
@@ -307,7 +305,6 @@ class CdkScrollable {
|
|
|
307
305
|
_renderer = inject(Renderer2);
|
|
308
306
|
_cleanupScroll;
|
|
309
307
|
_elementScrolled = new Subject();
|
|
310
|
-
constructor() {}
|
|
311
308
|
ngOnInit() {
|
|
312
309
|
this._cleanupScroll = this.ngZone.runOutsideAngular(() => this._renderer.listen(this._scrollElement, 'scroll', event => this._elementScrolled.next(event)));
|
|
313
310
|
this.scrollDispatcher.register(this);
|
|
@@ -404,7 +401,7 @@ class CdkScrollable {
|
|
|
404
401
|
}
|
|
405
402
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
406
403
|
minVersion: "12.0.0",
|
|
407
|
-
version: "22.0.0-next.
|
|
404
|
+
version: "22.0.0-next.6",
|
|
408
405
|
ngImport: i0,
|
|
409
406
|
type: CdkScrollable,
|
|
410
407
|
deps: [],
|
|
@@ -412,7 +409,7 @@ class CdkScrollable {
|
|
|
412
409
|
});
|
|
413
410
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
414
411
|
minVersion: "14.0.0",
|
|
415
|
-
version: "22.0.0-next.
|
|
412
|
+
version: "22.0.0-next.6",
|
|
416
413
|
type: CdkScrollable,
|
|
417
414
|
isStandalone: true,
|
|
418
415
|
selector: "[cdk-scrollable], [cdkScrollable]",
|
|
@@ -421,7 +418,7 @@ class CdkScrollable {
|
|
|
421
418
|
}
|
|
422
419
|
i0.ɵɵngDeclareClassMetadata({
|
|
423
420
|
minVersion: "12.0.0",
|
|
424
|
-
version: "22.0.0-next.
|
|
421
|
+
version: "22.0.0-next.6",
|
|
425
422
|
ngImport: i0,
|
|
426
423
|
type: CdkScrollable,
|
|
427
424
|
decorators: [{
|
|
@@ -429,8 +426,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
429
426
|
args: [{
|
|
430
427
|
selector: '[cdk-scrollable], [cdkScrollable]'
|
|
431
428
|
}]
|
|
432
|
-
}]
|
|
433
|
-
ctorParameters: () => []
|
|
429
|
+
}]
|
|
434
430
|
});
|
|
435
431
|
|
|
436
432
|
const DEFAULT_RESIZE_TIME = 20;
|
|
@@ -519,7 +515,7 @@ class ViewportRuler {
|
|
|
519
515
|
}
|
|
520
516
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
521
517
|
minVersion: "12.0.0",
|
|
522
|
-
version: "22.0.0-next.
|
|
518
|
+
version: "22.0.0-next.6",
|
|
523
519
|
ngImport: i0,
|
|
524
520
|
type: ViewportRuler,
|
|
525
521
|
deps: [],
|
|
@@ -527,7 +523,7 @@ class ViewportRuler {
|
|
|
527
523
|
});
|
|
528
524
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
529
525
|
minVersion: "12.0.0",
|
|
530
|
-
version: "22.0.0-next.
|
|
526
|
+
version: "22.0.0-next.6",
|
|
531
527
|
ngImport: i0,
|
|
532
528
|
type: ViewportRuler,
|
|
533
529
|
providedIn: 'root'
|
|
@@ -535,7 +531,7 @@ class ViewportRuler {
|
|
|
535
531
|
}
|
|
536
532
|
i0.ɵɵngDeclareClassMetadata({
|
|
537
533
|
minVersion: "12.0.0",
|
|
538
|
-
version: "22.0.0-next.
|
|
534
|
+
version: "22.0.0-next.6",
|
|
539
535
|
ngImport: i0,
|
|
540
536
|
type: ViewportRuler,
|
|
541
537
|
decorators: [{
|
|
@@ -549,24 +545,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
549
545
|
|
|
550
546
|
const VIRTUAL_SCROLLABLE = new InjectionToken('VIRTUAL_SCROLLABLE');
|
|
551
547
|
class CdkVirtualScrollable extends CdkScrollable {
|
|
552
|
-
constructor() {
|
|
553
|
-
super();
|
|
554
|
-
}
|
|
555
548
|
measureViewportSize(orientation) {
|
|
556
549
|
const viewportEl = this.elementRef.nativeElement;
|
|
557
550
|
return orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;
|
|
558
551
|
}
|
|
559
552
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
560
553
|
minVersion: "12.0.0",
|
|
561
|
-
version: "22.0.0-next.
|
|
554
|
+
version: "22.0.0-next.6",
|
|
562
555
|
ngImport: i0,
|
|
563
556
|
type: CdkVirtualScrollable,
|
|
564
|
-
deps:
|
|
557
|
+
deps: null,
|
|
565
558
|
target: i0.ɵɵFactoryTarget.Directive
|
|
566
559
|
});
|
|
567
560
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
568
561
|
minVersion: "14.0.0",
|
|
569
|
-
version: "22.0.0-next.
|
|
562
|
+
version: "22.0.0-next.6",
|
|
570
563
|
type: CdkVirtualScrollable,
|
|
571
564
|
isStandalone: true,
|
|
572
565
|
usesInheritance: true,
|
|
@@ -575,13 +568,12 @@ class CdkVirtualScrollable extends CdkScrollable {
|
|
|
575
568
|
}
|
|
576
569
|
i0.ɵɵngDeclareClassMetadata({
|
|
577
570
|
minVersion: "12.0.0",
|
|
578
|
-
version: "22.0.0-next.
|
|
571
|
+
version: "22.0.0-next.6",
|
|
579
572
|
ngImport: i0,
|
|
580
573
|
type: CdkVirtualScrollable,
|
|
581
574
|
decorators: [{
|
|
582
575
|
type: Directive
|
|
583
|
-
}]
|
|
584
|
-
ctorParameters: () => []
|
|
576
|
+
}]
|
|
585
577
|
});
|
|
586
578
|
|
|
587
579
|
function rangesEqual(r1, r2) {
|
|
@@ -867,7 +859,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
867
859
|
}
|
|
868
860
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
869
861
|
minVersion: "12.0.0",
|
|
870
|
-
version: "22.0.0-next.
|
|
862
|
+
version: "22.0.0-next.6",
|
|
871
863
|
ngImport: i0,
|
|
872
864
|
type: CdkVirtualScrollViewport,
|
|
873
865
|
deps: [],
|
|
@@ -875,7 +867,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
875
867
|
});
|
|
876
868
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
877
869
|
minVersion: "16.1.0",
|
|
878
|
-
version: "22.0.0-next.
|
|
870
|
+
version: "22.0.0-next.6",
|
|
879
871
|
type: CdkVirtualScrollViewport,
|
|
880
872
|
isStandalone: true,
|
|
881
873
|
selector: "cdk-virtual-scroll-viewport",
|
|
@@ -912,14 +904,14 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
|
|
|
912
904
|
usesInheritance: true,
|
|
913
905
|
ngImport: i0,
|
|
914
906
|
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",
|
|
915
|
-
styles: ["cdk-virtual-scroll-viewport{display:block
|
|
907
|
+
styles: ["cdk-virtual-scroll-viewport {\n display: block;\n position: relative;\n transform: translateZ(0);\n}\n\n.cdk-virtual-scrollable {\n overflow: auto;\n will-change: scroll-position;\n contain: strict;\n}\n\n.cdk-virtual-scroll-content-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n}\n[dir=rtl] .cdk-virtual-scroll-content-wrapper {\n right: 0;\n left: auto;\n}\n\n.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper {\n min-height: 100%;\n}\n.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]) {\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n border-left-width: 0;\n border-right-width: 0;\n outline: none;\n}\n\n.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper {\n min-width: 100%;\n}\n.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]) {\n padding-top: 0;\n padding-bottom: 0;\n margin-top: 0;\n margin-bottom: 0;\n border-top-width: 0;\n border-bottom-width: 0;\n outline: none;\n}\n\n.cdk-virtual-scroll-spacer {\n height: 1px;\n transform-origin: 0 0;\n flex: 0 0 auto;\n}\n[dir=rtl] .cdk-virtual-scroll-spacer {\n transform-origin: 100% 0;\n}\n"],
|
|
916
908
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
917
909
|
encapsulation: i0.ViewEncapsulation.None
|
|
918
910
|
});
|
|
919
911
|
}
|
|
920
912
|
i0.ɵɵngDeclareClassMetadata({
|
|
921
913
|
minVersion: "12.0.0",
|
|
922
|
-
version: "22.0.0-next.
|
|
914
|
+
version: "22.0.0-next.6",
|
|
923
915
|
ngImport: i0,
|
|
924
916
|
type: CdkVirtualScrollViewport,
|
|
925
917
|
decorators: [{
|
|
@@ -943,7 +935,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
943
935
|
useExisting: CdkVirtualScrollViewport
|
|
944
936
|
}],
|
|
945
937
|
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",
|
|
946
|
-
styles: ["cdk-virtual-scroll-viewport{display:block
|
|
938
|
+
styles: ["cdk-virtual-scroll-viewport {\n display: block;\n position: relative;\n transform: translateZ(0);\n}\n\n.cdk-virtual-scrollable {\n overflow: auto;\n will-change: scroll-position;\n contain: strict;\n}\n\n.cdk-virtual-scroll-content-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n}\n[dir=rtl] .cdk-virtual-scroll-content-wrapper {\n right: 0;\n left: auto;\n}\n\n.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper {\n min-height: 100%;\n}\n.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]) {\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n border-left-width: 0;\n border-right-width: 0;\n outline: none;\n}\n\n.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper {\n min-width: 100%;\n}\n.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]) {\n padding-top: 0;\n padding-bottom: 0;\n margin-top: 0;\n margin-bottom: 0;\n border-top-width: 0;\n border-bottom-width: 0;\n outline: none;\n}\n\n.cdk-virtual-scroll-spacer {\n height: 1px;\n transform-origin: 0 0;\n flex: 0 0 auto;\n}\n[dir=rtl] .cdk-virtual-scroll-spacer {\n transform-origin: 100% 0;\n}\n"]
|
|
947
939
|
}]
|
|
948
940
|
}],
|
|
949
941
|
ctorParameters: () => [],
|
|
@@ -1166,7 +1158,7 @@ class CdkVirtualForOf {
|
|
|
1166
1158
|
}
|
|
1167
1159
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1168
1160
|
minVersion: "12.0.0",
|
|
1169
|
-
version: "22.0.0-next.
|
|
1161
|
+
version: "22.0.0-next.6",
|
|
1170
1162
|
ngImport: i0,
|
|
1171
1163
|
type: CdkVirtualForOf,
|
|
1172
1164
|
deps: [],
|
|
@@ -1174,7 +1166,7 @@ class CdkVirtualForOf {
|
|
|
1174
1166
|
});
|
|
1175
1167
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1176
1168
|
minVersion: "14.0.0",
|
|
1177
|
-
version: "22.0.0-next.
|
|
1169
|
+
version: "22.0.0-next.6",
|
|
1178
1170
|
type: CdkVirtualForOf,
|
|
1179
1171
|
isStandalone: true,
|
|
1180
1172
|
selector: "[cdkVirtualFor][cdkVirtualForOf]",
|
|
@@ -1189,7 +1181,7 @@ class CdkVirtualForOf {
|
|
|
1189
1181
|
}
|
|
1190
1182
|
i0.ɵɵngDeclareClassMetadata({
|
|
1191
1183
|
minVersion: "12.0.0",
|
|
1192
|
-
version: "22.0.0-next.
|
|
1184
|
+
version: "22.0.0-next.6",
|
|
1193
1185
|
ngImport: i0,
|
|
1194
1186
|
type: CdkVirtualForOf,
|
|
1195
1187
|
decorators: [{
|
|
@@ -1216,23 +1208,20 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1216
1208
|
});
|
|
1217
1209
|
|
|
1218
1210
|
class CdkVirtualScrollableElement extends CdkVirtualScrollable {
|
|
1219
|
-
constructor() {
|
|
1220
|
-
super();
|
|
1221
|
-
}
|
|
1222
1211
|
measureBoundingClientRectWithScrollOffset(from) {
|
|
1223
1212
|
return this.getElementRef().nativeElement.getBoundingClientRect()[from] - this.measureScrollOffset(from);
|
|
1224
1213
|
}
|
|
1225
1214
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1226
1215
|
minVersion: "12.0.0",
|
|
1227
|
-
version: "22.0.0-next.
|
|
1216
|
+
version: "22.0.0-next.6",
|
|
1228
1217
|
ngImport: i0,
|
|
1229
1218
|
type: CdkVirtualScrollableElement,
|
|
1230
|
-
deps:
|
|
1219
|
+
deps: null,
|
|
1231
1220
|
target: i0.ɵɵFactoryTarget.Directive
|
|
1232
1221
|
});
|
|
1233
1222
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1234
1223
|
minVersion: "14.0.0",
|
|
1235
|
-
version: "22.0.0-next.
|
|
1224
|
+
version: "22.0.0-next.6",
|
|
1236
1225
|
type: CdkVirtualScrollableElement,
|
|
1237
1226
|
isStandalone: true,
|
|
1238
1227
|
selector: "[cdkVirtualScrollingElement]",
|
|
@@ -1249,7 +1238,7 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
|
|
|
1249
1238
|
}
|
|
1250
1239
|
i0.ɵɵngDeclareClassMetadata({
|
|
1251
1240
|
minVersion: "12.0.0",
|
|
1252
|
-
version: "22.0.0-next.
|
|
1241
|
+
version: "22.0.0-next.6",
|
|
1253
1242
|
ngImport: i0,
|
|
1254
1243
|
type: CdkVirtualScrollableElement,
|
|
1255
1244
|
decorators: [{
|
|
@@ -1264,8 +1253,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1264
1253
|
'class': 'cdk-virtual-scrollable'
|
|
1265
1254
|
}
|
|
1266
1255
|
}]
|
|
1267
|
-
}]
|
|
1268
|
-
ctorParameters: () => []
|
|
1256
|
+
}]
|
|
1269
1257
|
});
|
|
1270
1258
|
|
|
1271
1259
|
class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
@@ -1280,7 +1268,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
|
1280
1268
|
}
|
|
1281
1269
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1282
1270
|
minVersion: "12.0.0",
|
|
1283
|
-
version: "22.0.0-next.
|
|
1271
|
+
version: "22.0.0-next.6",
|
|
1284
1272
|
ngImport: i0,
|
|
1285
1273
|
type: CdkVirtualScrollableWindow,
|
|
1286
1274
|
deps: [],
|
|
@@ -1288,7 +1276,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
|
1288
1276
|
});
|
|
1289
1277
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1290
1278
|
minVersion: "14.0.0",
|
|
1291
|
-
version: "22.0.0-next.
|
|
1279
|
+
version: "22.0.0-next.6",
|
|
1292
1280
|
type: CdkVirtualScrollableWindow,
|
|
1293
1281
|
isStandalone: true,
|
|
1294
1282
|
selector: "cdk-virtual-scroll-viewport[scrollWindow]",
|
|
@@ -1302,7 +1290,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
|
1302
1290
|
}
|
|
1303
1291
|
i0.ɵɵngDeclareClassMetadata({
|
|
1304
1292
|
minVersion: "12.0.0",
|
|
1305
|
-
version: "22.0.0-next.
|
|
1293
|
+
version: "22.0.0-next.6",
|
|
1306
1294
|
ngImport: i0,
|
|
1307
1295
|
type: CdkVirtualScrollableWindow,
|
|
1308
1296
|
decorators: [{
|
|
@@ -1321,7 +1309,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1321
1309
|
class CdkScrollableModule {
|
|
1322
1310
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1323
1311
|
minVersion: "12.0.0",
|
|
1324
|
-
version: "22.0.0-next.
|
|
1312
|
+
version: "22.0.0-next.6",
|
|
1325
1313
|
ngImport: i0,
|
|
1326
1314
|
type: CdkScrollableModule,
|
|
1327
1315
|
deps: [],
|
|
@@ -1329,7 +1317,7 @@ class CdkScrollableModule {
|
|
|
1329
1317
|
});
|
|
1330
1318
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1331
1319
|
minVersion: "14.0.0",
|
|
1332
|
-
version: "22.0.0-next.
|
|
1320
|
+
version: "22.0.0-next.6",
|
|
1333
1321
|
ngImport: i0,
|
|
1334
1322
|
type: CdkScrollableModule,
|
|
1335
1323
|
imports: [CdkScrollable],
|
|
@@ -1337,14 +1325,14 @@ class CdkScrollableModule {
|
|
|
1337
1325
|
});
|
|
1338
1326
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1339
1327
|
minVersion: "12.0.0",
|
|
1340
|
-
version: "22.0.0-next.
|
|
1328
|
+
version: "22.0.0-next.6",
|
|
1341
1329
|
ngImport: i0,
|
|
1342
1330
|
type: CdkScrollableModule
|
|
1343
1331
|
});
|
|
1344
1332
|
}
|
|
1345
1333
|
i0.ɵɵngDeclareClassMetadata({
|
|
1346
1334
|
minVersion: "12.0.0",
|
|
1347
|
-
version: "22.0.0-next.
|
|
1335
|
+
version: "22.0.0-next.6",
|
|
1348
1336
|
ngImport: i0,
|
|
1349
1337
|
type: CdkScrollableModule,
|
|
1350
1338
|
decorators: [{
|
|
@@ -1358,7 +1346,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1358
1346
|
class ScrollingModule {
|
|
1359
1347
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1360
1348
|
minVersion: "12.0.0",
|
|
1361
|
-
version: "22.0.0-next.
|
|
1349
|
+
version: "22.0.0-next.6",
|
|
1362
1350
|
ngImport: i0,
|
|
1363
1351
|
type: ScrollingModule,
|
|
1364
1352
|
deps: [],
|
|
@@ -1366,7 +1354,7 @@ class ScrollingModule {
|
|
|
1366
1354
|
});
|
|
1367
1355
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1368
1356
|
minVersion: "14.0.0",
|
|
1369
|
-
version: "22.0.0-next.
|
|
1357
|
+
version: "22.0.0-next.6",
|
|
1370
1358
|
ngImport: i0,
|
|
1371
1359
|
type: ScrollingModule,
|
|
1372
1360
|
imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport, CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollableWindow, CdkVirtualScrollableElement],
|
|
@@ -1374,7 +1362,7 @@ class ScrollingModule {
|
|
|
1374
1362
|
});
|
|
1375
1363
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1376
1364
|
minVersion: "12.0.0",
|
|
1377
|
-
version: "22.0.0-next.
|
|
1365
|
+
version: "22.0.0-next.6",
|
|
1378
1366
|
ngImport: i0,
|
|
1379
1367
|
type: ScrollingModule,
|
|
1380
1368
|
imports: [BidiModule, CdkScrollableModule, BidiModule, CdkScrollableModule]
|
|
@@ -1382,7 +1370,7 @@ class ScrollingModule {
|
|
|
1382
1370
|
}
|
|
1383
1371
|
i0.ɵɵngDeclareClassMetadata({
|
|
1384
1372
|
minVersion: "12.0.0",
|
|
1385
|
-
version: "22.0.0-next.
|
|
1373
|
+
version: "22.0.0-next.6",
|
|
1386
1374
|
ngImport: i0,
|
|
1387
1375
|
type: ScrollingModule,
|
|
1388
1376
|
decorators: [{
|