@angular/cdk 20.0.3 → 20.1.0-next.0
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/_adev_assets/cdk_drag_drop.json +100 -8
- package/_adev_assets/cdk_testing.json +634 -61
- package/collections/index.d.ts +4 -4
- package/dialog/index.d.ts +18 -14
- package/drag-drop/index.d.ts +32 -4
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/collections.mjs +2 -2
- package/fesm2022/dialog.mjs +22 -10
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/{dispose-view-repeater-strategy-Cvpav0PR.mjs → dispose-view-repeater-strategy-D_JReLI1.mjs} +3 -3
- package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +1 -0
- package/fesm2022/drag-drop.mjs +99 -25
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/menu.mjs +1 -1
- package/fesm2022/overlay.mjs +1 -1
- package/fesm2022/{recycle-view-repeater-strategy-SfuyU210.mjs → recycle-view-repeater-strategy-DoWdPqVw.mjs} +4 -4
- package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +1 -0
- package/fesm2022/scrolling.mjs +2 -2
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/table.mjs +3 -3
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing.mjs +50 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/{harness-environment.d-BbFzIFDE.d.ts → harness-environment.d-C-TBj7IN.d.ts} +52 -1
- package/menu/index.d.ts +2 -2
- package/overlay/index.d.ts +4 -4
- package/{overlay-module.d-C2CxnwqT.d.ts → overlay-module.d-CVO-IcaN.d.ts} +1 -1
- package/package.json +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/schematics/utils/build-component.js +1 -2
- package/schematics/utils/build-component.js.map +1 -1
- package/scrolling/index.d.ts +1 -1
- package/{scrolling-module.d-C_w4tIrZ.d.ts → scrolling-module.d-BvCGMKMo.d.ts} +1 -1
- package/table/index.d.ts +3 -3
- package/testing/index.d.ts +1 -1
- package/testing/selenium-webdriver/index.d.ts +1 -1
- package/testing/testbed/index.d.ts +1 -1
- package/{view-repeater.d-DUdkOYhk.d.ts → view-repeater.d-BKljR8u8.d.ts} +6 -5
- package/fesm2022/dispose-view-repeater-strategy-Cvpav0PR.mjs.map +0 -1
- package/fesm2022/recycle-view-repeater-strategy-SfuyU210.mjs.map +0 -1
|
@@ -242,6 +242,16 @@ interface HarnessLoader {
|
|
|
242
242
|
* @return An instance of the given harness type (or null if not found).
|
|
243
243
|
*/
|
|
244
244
|
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
245
|
+
/**
|
|
246
|
+
* Searches for an instance of the component corresponding to the given harness type under the
|
|
247
|
+
* `HarnessLoader`'s root element, and returns a `ComponentHarness` for the instance on the page
|
|
248
|
+
* at the given index. If no matching component exists at that index, an error is thrown.
|
|
249
|
+
* @param query A query for a harness to create
|
|
250
|
+
* @param index The zero-indexed offset of the matching component instance to return
|
|
251
|
+
* @return An instance of the given harness type.
|
|
252
|
+
* @throws If a matching component instance can't be found at the given index.
|
|
253
|
+
*/
|
|
254
|
+
getHarnessAtIndex<T extends ComponentHarness>(query: HarnessQuery<T>, index: number): Promise<T>;
|
|
245
255
|
/**
|
|
246
256
|
* Searches for all instances of the component corresponding to the given harness type under the
|
|
247
257
|
* `HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.
|
|
@@ -249,6 +259,13 @@ interface HarnessLoader {
|
|
|
249
259
|
* @return A list instances of the given harness type.
|
|
250
260
|
*/
|
|
251
261
|
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
262
|
+
/**
|
|
263
|
+
* Searches for all instances of the component corresponding to the given harness type under the
|
|
264
|
+
* `HarnessLoader`'s root element, and returns the total count of all matching components.
|
|
265
|
+
* @param query A query for a harness to create
|
|
266
|
+
* @return An integer indicating the number of instances that were found.
|
|
267
|
+
*/
|
|
268
|
+
countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number>;
|
|
252
269
|
/**
|
|
253
270
|
* Searches for an instance of the component corresponding to the given harness type under the
|
|
254
271
|
* `HarnessLoader`'s root element, and returns a boolean indicating if any were found.
|
|
@@ -562,18 +579,34 @@ declare abstract class ContentContainerComponentHarness<S extends string = strin
|
|
|
562
579
|
* @returns The first harness matching the given query, or null if none is found.
|
|
563
580
|
*/
|
|
564
581
|
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
582
|
+
/**
|
|
583
|
+
* Gets a matching harness for the given query and index within the current harness's content.
|
|
584
|
+
* @param query The harness query to search for.
|
|
585
|
+
* @param index The zero-indexed offset of the component to find.
|
|
586
|
+
* @returns The first harness matching the given query.
|
|
587
|
+
* @throws If no matching harness is found.
|
|
588
|
+
*/
|
|
589
|
+
getHarnessAtIndex<T extends ComponentHarness>(query: HarnessQuery<T>, index: number): Promise<T>;
|
|
565
590
|
/**
|
|
566
591
|
* Gets all matching harnesses for the given query within the current harness's content.
|
|
567
592
|
* @param query The harness query to search for.
|
|
568
593
|
* @returns The list of harness matching the given query.
|
|
569
594
|
*/
|
|
570
595
|
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
596
|
+
/**
|
|
597
|
+
* Returns the number of matching harnesses for the given query within the current harness's
|
|
598
|
+
* content.
|
|
599
|
+
*
|
|
600
|
+
* @param query The harness query to search for.
|
|
601
|
+
* @returns The number of matching harnesses for the given query.
|
|
602
|
+
*/
|
|
603
|
+
countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number>;
|
|
571
604
|
/**
|
|
572
605
|
* Checks whether there is a matching harnesses for the given query within the current harness's
|
|
573
606
|
* content.
|
|
574
607
|
*
|
|
575
608
|
* @param query The harness query to search for.
|
|
576
|
-
* @returns
|
|
609
|
+
* @returns Whether there is matching harnesses for the given query.
|
|
577
610
|
*/
|
|
578
611
|
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
579
612
|
/**
|
|
@@ -819,6 +852,17 @@ declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFa
|
|
|
819
852
|
* @return An instance of the given harness type (or null if not found).
|
|
820
853
|
*/
|
|
821
854
|
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
855
|
+
/**
|
|
856
|
+
* Searches for an instance of the component corresponding to the given harness type and index
|
|
857
|
+
* under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that
|
|
858
|
+
* instance. The index specifies the offset of the component to find. If no matching
|
|
859
|
+
* component is found at that index, an error is thrown.
|
|
860
|
+
* @param query A query for a harness to create
|
|
861
|
+
* @param index The zero-indexed offset of the component to find
|
|
862
|
+
* @return An instance of the given harness type
|
|
863
|
+
* @throws If a matching component instance can't be found.
|
|
864
|
+
*/
|
|
865
|
+
getHarnessAtIndex<T extends ComponentHarness>(query: HarnessQuery<T>, offset: number): Promise<T>;
|
|
822
866
|
/**
|
|
823
867
|
* Searches for all instances of the component corresponding to the given harness type under the
|
|
824
868
|
* `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.
|
|
@@ -826,6 +870,13 @@ declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFa
|
|
|
826
870
|
* @return A list instances of the given harness type.
|
|
827
871
|
*/
|
|
828
872
|
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
873
|
+
/**
|
|
874
|
+
* Searches for all instance of the component corresponding to the given harness type under the
|
|
875
|
+
* `HarnessEnvironment`'s root element, and returns the number that were found.
|
|
876
|
+
* @param query A query for a harness to create
|
|
877
|
+
* @return The number of instances that were found.
|
|
878
|
+
*/
|
|
879
|
+
countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number>;
|
|
829
880
|
/**
|
|
830
881
|
* Searches for an instance of the component corresponding to the given harness type under the
|
|
831
882
|
* `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.
|
package/menu/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ElementRef, Renderer2, QueryList, InjectionToken, Optional, OnDestroy, Injector, ViewContainerRef, EventEmitter, TemplateRef, OnChanges, SimpleChanges, NgZone, AfterContentInit } from '@angular/core';
|
|
3
|
-
import { S as ScrollStrategy, g as ConnectedPosition, O as OverlayRef, a as OverlayModule } from '../overlay-module.d-
|
|
3
|
+
import { S as ScrollStrategy, g as ConnectedPosition, O as OverlayRef, a as OverlayModule } from '../overlay-module.d-CVO-IcaN.js';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { F as FocusOrigin } from '../focus-monitor.d-CvvJeQRc.js';
|
|
7
7
|
import { F as FocusableOption, a as FocusKeyManager } from '../focus-key-manager.d-BIKDy8oD.js';
|
|
8
8
|
import { D as Directionality } from '../bidi-module.d-IN1Vp56w.js';
|
|
9
9
|
import { T as TemplatePortal } from '../portal-directives.d-DbeNrI5D.js';
|
|
10
|
-
import '../scrolling-module.d-
|
|
10
|
+
import '../scrolling-module.d-BvCGMKMo.js';
|
|
11
11
|
import '../data-source.d-Bblv7Zvh.js';
|
|
12
12
|
import '../number-property.d-CJVxXUcb.js';
|
|
13
13
|
import '@angular/common';
|
package/overlay/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as ScrollStrategy, O as OverlayRef, P as PositionStrategy, F as FlexibleConnectedPositionStrategyOrigin, b as FlexibleConnectedPositionStrategy, c as OverlayConfig, d as OverlayContainer } from '../overlay-module.d-
|
|
2
|
-
export { e as CdkConnectedOverlay, C as CdkOverlayOrigin, o as ConnectedOverlayPositionChange, g as ConnectedPosition, m as ConnectionPositionPair, H as HorizontalConnectionPos, k as OriginConnectionPosition, l as OverlayConnectionPosition, r as OverlayKeyboardDispatcher, a as OverlayModule, q as OverlayOutsideClickDispatcher, f as OverlaySizeConfig, h as STANDARD_DROPDOWN_ADJACENT_POSITIONS, i as STANDARD_DROPDOWN_BELOW_POSITIONS, n as ScrollingVisibility, V as VerticalConnectionPos, j as createFlexibleConnectedPositionStrategy, p as validateHorizontalPosition, v as validateVerticalPosition } from '../overlay-module.d-
|
|
3
|
-
import { a as ScrollDispatcher } from '../scrolling-module.d-
|
|
4
|
-
export { C as CdkScrollable, c as ɵɵCdkFixedSizeVirtualScroll, b as ɵɵCdkScrollableModule, d as ɵɵCdkVirtualForOf, e as ɵɵCdkVirtualScrollViewport, g as ɵɵCdkVirtualScrollableElement, f as ɵɵCdkVirtualScrollableWindow } from '../scrolling-module.d-
|
|
1
|
+
import { S as ScrollStrategy, O as OverlayRef, P as PositionStrategy, F as FlexibleConnectedPositionStrategyOrigin, b as FlexibleConnectedPositionStrategy, c as OverlayConfig, d as OverlayContainer } from '../overlay-module.d-CVO-IcaN.js';
|
|
2
|
+
export { e as CdkConnectedOverlay, C as CdkOverlayOrigin, o as ConnectedOverlayPositionChange, g as ConnectedPosition, m as ConnectionPositionPair, H as HorizontalConnectionPos, k as OriginConnectionPosition, l as OverlayConnectionPosition, r as OverlayKeyboardDispatcher, a as OverlayModule, q as OverlayOutsideClickDispatcher, f as OverlaySizeConfig, h as STANDARD_DROPDOWN_ADJACENT_POSITIONS, i as STANDARD_DROPDOWN_BELOW_POSITIONS, n as ScrollingVisibility, V as VerticalConnectionPos, j as createFlexibleConnectedPositionStrategy, p as validateHorizontalPosition, v as validateVerticalPosition } from '../overlay-module.d-CVO-IcaN.js';
|
|
3
|
+
import { a as ScrollDispatcher } from '../scrolling-module.d-BvCGMKMo.js';
|
|
4
|
+
export { C as CdkScrollable, c as ɵɵCdkFixedSizeVirtualScroll, b as ɵɵCdkScrollableModule, d as ɵɵCdkVirtualForOf, e as ɵɵCdkVirtualScrollViewport, g as ɵɵCdkVirtualScrollableElement, f as ɵɵCdkVirtualScrollableWindow } from '../scrolling-module.d-BvCGMKMo.js';
|
|
5
5
|
import { ViewportRuler } from '../scrolling/index.js';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { Injector, NgZone, OnDestroy } from '@angular/core';
|
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnDestroy, NgZone, EnvironmentInjector, Renderer2, ComponentRef, EmbeddedViewRef, ElementRef, Injector, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { a as Direction, D as Directionality, B as BidiModule } from './bidi-module.d-IN1Vp56w.js';
|
|
4
4
|
import { b as PortalOutlet, C as ComponentPortal, T as TemplatePortal, h as PortalModule } from './portal-directives.d-DbeNrI5D.js';
|
|
5
|
-
import { C as CdkScrollable, S as ScrollingModule } from './scrolling-module.d-
|
|
5
|
+
import { C as CdkScrollable, S as ScrollingModule } from './scrolling-module.d-BvCGMKMo.js';
|
|
6
6
|
import { Location } from '@angular/common';
|
|
7
7
|
import { Subject, Observable } from 'rxjs';
|
|
8
8
|
import { ViewportRuler } from './scrolling/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cdk",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.1.0-next.0",
|
|
4
4
|
"description": "Angular Material Component Development Kit",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -158,8 +158,8 @@
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
"peerDependencies": {
|
|
161
|
-
"@angular/core": "^20.0.0 || ^21.0.0",
|
|
162
|
-
"@angular/common": "^20.0.0 || ^21.0.0",
|
|
161
|
+
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
|
|
162
|
+
"@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
|
|
163
163
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
164
164
|
},
|
|
165
165
|
"dependencies": {
|
|
@@ -26,6 +26,6 @@ function default_1() {
|
|
|
26
26
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
27
27
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
28
28
|
// dependencies in new CLI projects.
|
|
29
|
-
return (0, utility_1.addDependency)('@angular/cdk', `~20.0.
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~20.1.0-next.0`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -143,8 +143,7 @@ function buildComponent(options, additionalFiles = {}) {
|
|
|
143
143
|
}
|
|
144
144
|
options.standalone = yield (0, schematic_options_1.isStandaloneSchematic)(host, options);
|
|
145
145
|
if (!options.standalone) {
|
|
146
|
-
|
|
147
|
-
options.module = (0, find_module_1.findModuleFromOptions)(host, Object.assign(Object.assign({}, options), { moduleExt: 'module.ts' }));
|
|
146
|
+
options.module = (0, find_module_1.findModuleFromOptions)(host, options);
|
|
148
147
|
}
|
|
149
148
|
const parsedPath = (0, parse_name_1.parseName)(options.path, options.name);
|
|
150
149
|
options.name = parsedPath.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-component.js","sourceRoot":"","sources":["build-component.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAmJH,
|
|
1
|
+
{"version":3,"file":"build-component.js","sourceRoot":"","sources":["build-component.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAmJH,wCAmGC;AApPD,+CAAqE;AACrE,2DAcoC;AAEpC,iEAAuF;AACvF,+DAAgE;AAChE,yDAA6E;AAC7E,yEAAiG;AACjG,uEAAiE;AACjE,uEAA4E;AAC5E,mFAAyE;AACzE,q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AAA,gBAAG,EAAC,iBAAiB,CAAC,EAAE;YACnD,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,mBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE;YAChF,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAA,mBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE;YACpF,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,IAAA,mBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE;YAClF,0FAA0F;YAC1F,wFAAwF;YACxF,IAAA,2BAAc,EAAC,gBAAC,iBAAiB,EAAE,aAAa,IAAK,mBAAmB,CAAQ,CAAC;YACjF,6EAA6E;YAC7E,0EAA0E;YAC1E,IAAA,iBAAI,EAAC,IAAW,EAAE,UAAU,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE,CACV,IAAA,kBAAK,EAAC;YACJ,IAAA,2BAAc,EAAC,IAAA,kBAAK,EAAC,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,IAAA,sBAAS,EAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SACtF,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACtB,CAAC,CAAA,CAAC;AACJ,CAAC"}
|
package/scrolling/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as CdkFixedSizeVirtualScroll, C as CdkScrollable, b as CdkScrollableModule, d as CdkVirtualForOf, r as CdkVirtualForOfContext, t as CdkVirtualScrollRepeater, e as CdkVirtualScrollViewport, v as CdkVirtualScrollable, g as CdkVirtualScrollableElement, f as CdkVirtualScrollableWindow, D as DEFAULT_SCROLL_TIME, E as ExtendedScrollToOptions, F as FixedSizeVirtualScrollStrategy, a as ScrollDispatcher, S as ScrollingModule, u as VIRTUAL_SCROLLABLE, V as VIRTUAL_SCROLL_STRATEGY, s as VirtualScrollStrategy, k as _Bottom, o as _End, l as _Left, m as _Right, n as _Start, j as _Top, h as _Without, p as _XAxis, i as _XOR, q as _YAxis, _ as _fixedSizeVirtualScrollStrategyFactory } from '../scrolling-module.d-
|
|
1
|
+
export { c as CdkFixedSizeVirtualScroll, C as CdkScrollable, b as CdkScrollableModule, d as CdkVirtualForOf, r as CdkVirtualForOfContext, t as CdkVirtualScrollRepeater, e as CdkVirtualScrollViewport, v as CdkVirtualScrollable, g as CdkVirtualScrollableElement, f as CdkVirtualScrollableWindow, D as DEFAULT_SCROLL_TIME, E as ExtendedScrollToOptions, F as FixedSizeVirtualScrollStrategy, a as ScrollDispatcher, S as ScrollingModule, u as VIRTUAL_SCROLLABLE, V as VIRTUAL_SCROLL_STRATEGY, s as VirtualScrollStrategy, k as _Bottom, o as _End, l as _Left, m as _Right, n as _Start, j as _Top, h as _Without, p as _XAxis, i as _XOR, q as _YAxis, _ as _fixedSizeVirtualScrollStrategyFactory } from '../scrolling-module.d-BvCGMKMo.js';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { OnDestroy } from '@angular/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -151,7 +151,7 @@ declare class CdkScrollable implements OnInit, OnDestroy {
|
|
|
151
151
|
|
|
152
152
|
declare const VIRTUAL_SCROLLABLE: InjectionToken<CdkVirtualScrollable>;
|
|
153
153
|
/**
|
|
154
|
-
* Extending the
|
|
154
|
+
* Extending the {@link CdkScrollable} to be used as scrolling container for virtual scrolling.
|
|
155
155
|
*/
|
|
156
156
|
declare abstract class CdkVirtualScrollable extends CdkScrollable {
|
|
157
157
|
constructor(...args: unknown[]);
|
package/table/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { TemplateRef, ElementRef, OnChanges, IterableDiffers, IterableDiffer, SimpleChanges, IterableChanges, OnDestroy, ViewContainerRef, InjectionToken, AfterContentInit, AfterContentChecked, OnInit, ChangeDetectorRef, TrackByFunction, EventEmitter, QueryList } from '@angular/core';
|
|
4
4
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { D as DataSource, C as CollectionViewer } from '../data-source.d-Bblv7Zvh.js';
|
|
6
|
-
import { a as _ViewRepeater } from '../view-repeater.d-
|
|
7
|
-
import { S as ScrollingModule } from '../scrolling-module.d-
|
|
6
|
+
import { a as _ViewRepeater } from '../view-repeater.d-BKljR8u8.js';
|
|
7
|
+
import { S as ScrollingModule } from '../scrolling-module.d-BvCGMKMo.js';
|
|
8
8
|
import '../number-property.d-CJVxXUcb.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -524,7 +524,7 @@ declare class CdkTable<T> implements AfterContentInit, AfterContentChecked, Coll
|
|
|
524
524
|
/**
|
|
525
525
|
* Whether the sticky styler should recalculate cell widths when applying sticky styles. If
|
|
526
526
|
* `false`, cached values will be used instead. This is only applicable to tables with
|
|
527
|
-
*
|
|
527
|
+
* {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.
|
|
528
528
|
*/
|
|
529
529
|
private _forceRecalculateCellWidths;
|
|
530
530
|
/**
|
package/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AsyncFactoryFn, g as AsyncOptionPredicate, f as AsyncPredicate, B as BaseHarnessFilters, C as ComponentHarness, e as ComponentHarnessConstructor, j as ContentContainerComponentHarness, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader, k as HarnessPredicate, h as HarnessQuery, i as LocatorFactory, L as LocatorFnResult, M as ModifierKeys, T as TestElement, a as TestKey, b as TextOptions } from '../harness-environment.d-
|
|
1
|
+
export { A as AsyncFactoryFn, g as AsyncOptionPredicate, f as AsyncPredicate, B as BaseHarnessFilters, C as ComponentHarness, e as ComponentHarnessConstructor, j as ContentContainerComponentHarness, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader, k as HarnessPredicate, h as HarnessQuery, i as LocatorFactory, L as LocatorFnResult, M as ModifierKeys, T as TestElement, a as TestKey, b as TextOptions } from '../harness-environment.d-C-TBj7IN.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Returns an error which reports that no keys have been specified.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as webdriver from 'selenium-webdriver';
|
|
2
|
-
import { T as TestElement, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader } from '../../harness-environment.d-
|
|
2
|
+
import { T as TestElement, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader } from '../../harness-environment.d-C-TBj7IN.js';
|
|
3
3
|
|
|
4
4
|
/** A `TestElement` implementation for WebDriver. */
|
|
5
5
|
declare class SeleniumWebDriverElement implements TestElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HarnessEnvironment, d as HarnessLoader, T as TestElement, C as ComponentHarness, e as ComponentHarnessConstructor, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData } from '../../harness-environment.d-
|
|
1
|
+
import { H as HarnessEnvironment, d as HarnessLoader, T as TestElement, C as ComponentHarness, e as ComponentHarnessConstructor, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData } from '../../harness-environment.d-C-TBj7IN.js';
|
|
2
2
|
import { ComponentFixture } from '@angular/core/testing';
|
|
3
3
|
|
|
4
4
|
/** Options to configure the environment. */
|
|
@@ -29,13 +29,13 @@ interface _ViewRepeaterItemInsertArgs<C> {
|
|
|
29
29
|
*/
|
|
30
30
|
type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (record: IterableChangeRecord<R>, adjustedPreviousIndex: number | null, currentIndex: number | null) => _ViewRepeaterItemInsertArgs<C>;
|
|
31
31
|
/**
|
|
32
|
-
* Extracts the value of an item from an
|
|
32
|
+
* Extracts the value of an item from an {@link IterableChangeRecord}.
|
|
33
33
|
*
|
|
34
34
|
* @template T The type for the embedded view's $implicit property.
|
|
35
35
|
* @template R The type for the item in each IterableDiffer change record.
|
|
36
36
|
*/
|
|
37
37
|
type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;
|
|
38
|
-
/** Indicates how a view was changed by a
|
|
38
|
+
/** Indicates how a view was changed by a {@link _ViewRepeater}. */
|
|
39
39
|
declare enum _ViewRepeaterOperation {
|
|
40
40
|
/** The content of an existing view was replaced with another item. */
|
|
41
41
|
REPLACED = 0,
|
|
@@ -47,7 +47,8 @@ declare enum _ViewRepeaterOperation {
|
|
|
47
47
|
REMOVED = 3
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* Meta data describing the state of a view after it was updated by a
|
|
50
|
+
* Meta data describing the state of a view after it was updated by a
|
|
51
|
+
* {@link _ViewRepeater}.
|
|
51
52
|
*
|
|
52
53
|
* @template R The type for the item in each IterableDiffer change record.
|
|
53
54
|
* @template C The type for the context passed to each embedded view.
|
|
@@ -68,7 +69,7 @@ interface _ViewRepeaterItemChange<R, C> {
|
|
|
68
69
|
*/
|
|
69
70
|
type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;
|
|
70
71
|
/**
|
|
71
|
-
* Describes a strategy for rendering items in a
|
|
72
|
+
* Describes a strategy for rendering items in a {@link ViewContainerRef}.
|
|
72
73
|
*
|
|
73
74
|
* @template T The type for the embedded view's $implicit property.
|
|
74
75
|
* @template R The type for the item in each IterableDiffer change record.
|
|
@@ -79,7 +80,7 @@ interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
|
|
|
79
80
|
detach(): void;
|
|
80
81
|
}
|
|
81
82
|
/**
|
|
82
|
-
* Injection token for
|
|
83
|
+
* Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
|
|
83
84
|
* @docs-private
|
|
84
85
|
*/
|
|
85
86
|
declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispose-view-repeater-strategy-Cvpav0PR.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/collections/dispose-view-repeater-strategy.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n EmbeddedViewRef,\n IterableChangeRecord,\n IterableChanges,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n _ViewRepeater,\n _ViewRepeaterItemChanged,\n _ViewRepeaterItemContext,\n _ViewRepeaterItemContextFactory,\n _ViewRepeaterItemValueResolver,\n _ViewRepeaterOperation,\n} from './view-repeater';\n\n/**\n * A repeater that destroys views when they are removed from a\n * `ViewContainerRef`. When new items are inserted into the container,\n * the repeater will always construct a new embedded view for each item.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nexport class _DisposeViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>>\n implements _ViewRepeater<T, R, C>\n{\n applyChanges(\n changes: IterableChanges<R>,\n viewContainerRef: ViewContainerRef,\n itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>,\n itemValueResolver: _ViewRepeaterItemValueResolver<T, R>,\n itemViewChanged?: _ViewRepeaterItemChanged<R, C>,\n ) {\n changes.forEachOperation(\n (\n record: IterableChangeRecord<R>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null,\n ) => {\n let view: EmbeddedViewRef<C> | undefined;\n let operation: _ViewRepeaterOperation;\n if (record.previousIndex == null) {\n const insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex);\n view = viewContainerRef.createEmbeddedView(\n insertContext.templateRef,\n insertContext.context,\n insertContext.index,\n );\n operation = _ViewRepeaterOperation.INSERTED;\n } else if (currentIndex == null) {\n viewContainerRef.remove(adjustedPreviousIndex!);\n operation = _ViewRepeaterOperation.REMOVED;\n } else {\n view = viewContainerRef.get(adjustedPreviousIndex!) as EmbeddedViewRef<C>;\n viewContainerRef.move(view!, currentIndex);\n operation = _ViewRepeaterOperation.MOVED;\n }\n\n if (itemViewChanged) {\n itemViewChanged({\n context: view?.context,\n operation,\n record,\n });\n }\n },\n );\n }\n\n detach() {}\n}\n"],"names":[],"mappings":";;AAuBA;;;;;;;;AAQG;MACU,4BAA4B,CAAA;IAGvC,YAAY,CACV,OAA2B,EAC3B,gBAAkC,EAClC,kBAA4D,EAC5D,iBAAuD,EACvD,eAAgD,EAAA;QAEhD,OAAO,CAAC,gBAAgB,CACtB,CACE,MAA+B,EAC/B,qBAAoC,EACpC,YAA2B,KACzB;AACF,YAAA,IAAI,IAAoC;AACxC,YAAA,IAAI,SAAiC;AACrC,YAAA,IAAI,MAAM,CAAC,aAAa,IAAI,IAAI,EAAE;gBAChC,MAAM,aAAa,GAAG,kBAAkB,CAAC,MAAM,EAAE,qBAAqB,EAAE,YAAY,CAAC;AACrF,gBAAA,IAAI,GAAG,gBAAgB,CAAC,kBAAkB,CACxC,aAAa,CAAC,WAAW,EACzB,aAAa,CAAC,OAAO,EACrB,aAAa,CAAC,KAAK,CACpB;AACD,gBAAA,SAAS,GAAG,sBAAsB,CAAC,QAAQ;;AACtC,iBAAA,IAAI,YAAY,IAAI,IAAI,EAAE;AAC/B,gBAAA,gBAAgB,CAAC,MAAM,CAAC,qBAAsB,CAAC;AAC/C,gBAAA,SAAS,GAAG,sBAAsB,CAAC,OAAO;;iBACrC;AACL,gBAAA,IAAI,GAAG,gBAAgB,CAAC,GAAG,CAAC,qBAAsB,CAAuB;AACzE,gBAAA,gBAAgB,CAAC,IAAI,CAAC,IAAK,EAAE,YAAY,CAAC;AAC1C,gBAAA,SAAS,GAAG,sBAAsB,CAAC,KAAK;;YAG1C,IAAI,eAAe,EAAE;AACnB,gBAAA,eAAe,CAAC;oBACd,OAAO,EAAE,IAAI,EAAE,OAAO;oBACtB,SAAS;oBACT,MAAM;AACP,iBAAA,CAAC;;AAEN,SAAC,CACF;;AAGH,IAAA,MAAM;AACP;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recycle-view-repeater-strategy-SfuyU210.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/collections/array-data-source.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/collections/view-repeater.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk/collections/recycle-view-repeater-strategy.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Observable, isObservable, of as observableOf} from 'rxjs';\nimport {DataSource} from './data-source';\n\n/** DataSource wrapper for a native array. */\nexport class ArrayDataSource<T> extends DataSource<T> {\n constructor(private _data: readonly T[] | Observable<readonly T[]>) {\n super();\n }\n\n connect(): Observable<readonly T[]> {\n return isObservable(this._data) ? this._data : observableOf(this._data);\n }\n\n disconnect() {}\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n InjectionToken,\n IterableChangeRecord,\n IterableChanges,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\n/**\n * The context for an embedded view in the repeater's view container.\n *\n * @template T The type for the embedded view's $implicit property.\n */\nexport interface _ViewRepeaterItemContext<T> {\n $implicit?: T;\n}\n\n/**\n * The arguments needed to construct an embedded view for an item in a view\n * container.\n *\n * @template C The type for the context passed to each embedded view.\n */\nexport interface _ViewRepeaterItemInsertArgs<C> {\n templateRef: TemplateRef<C>;\n context?: C;\n index?: number;\n}\n\n/**\n * A factory that derives the embedded view context for an item in a view\n * container.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nexport type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (\n record: IterableChangeRecord<R>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null,\n) => _ViewRepeaterItemInsertArgs<C>;\n\n/**\n * Extracts the value of an item from an `IterableChangeRecord`.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n */\nexport type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;\n\n/** Indicates how a view was changed by a `_ViewRepeater`. */\nexport enum _ViewRepeaterOperation {\n /** The content of an existing view was replaced with another item. */\n REPLACED,\n /** A new view was created with `createEmbeddedView`. */\n INSERTED,\n /** The position of a view changed, but the content remains the same. */\n MOVED,\n /** A view was detached from the view container. */\n REMOVED,\n}\n\n/**\n * Meta data describing the state of a view after it was updated by a `_ViewRepeater`.\n *\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nexport interface _ViewRepeaterItemChange<R, C> {\n /** The view's context after it was changed. */\n context?: C;\n /** Indicates how the view was changed. */\n operation: _ViewRepeaterOperation;\n /** The view's corresponding change record. */\n record: IterableChangeRecord<R>;\n}\n\n/**\n * Type for a callback to be executed after a view has changed.\n *\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nexport type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;\n\n/**\n * Describes a strategy for rendering items in a `ViewContainerRef`.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nexport interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {\n applyChanges(\n changes: IterableChanges<R>,\n viewContainerRef: ViewContainerRef,\n itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>,\n itemValueResolver: _ViewRepeaterItemValueResolver<T, R>,\n itemViewChanged?: _ViewRepeaterItemChanged<R, C>,\n ): void;\n\n detach(): void;\n}\n\n/**\n * Injection token for `_ViewRepeater`. This token is for use by Angular Material only.\n * @docs-private\n */\nexport const _VIEW_REPEATER_STRATEGY = new InjectionToken<\n _ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>\n>('_ViewRepeater');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n EmbeddedViewRef,\n IterableChangeRecord,\n IterableChanges,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n _ViewRepeater,\n _ViewRepeaterItemChanged,\n _ViewRepeaterItemContext,\n _ViewRepeaterItemContextFactory,\n _ViewRepeaterItemInsertArgs,\n _ViewRepeaterItemValueResolver,\n _ViewRepeaterOperation,\n} from './view-repeater';\n\n/**\n * A repeater that caches views when they are removed from a\n * `ViewContainerRef`. When new items are inserted into the container,\n * the repeater will reuse one of the cached views instead of creating a new\n * embedded view. Recycling cached views reduces the quantity of expensive DOM\n * inserts.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nexport class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>>\n implements _ViewRepeater<T, R, C>\n{\n /**\n * The size of the cache used to store unused views.\n * Setting the cache size to `0` will disable caching. Defaults to 20 views.\n */\n viewCacheSize: number = 20;\n\n /**\n * View cache that stores embedded view instances that have been previously stamped out,\n * but don't are not currently rendered. The view repeater will reuse these views rather than\n * creating brand new ones.\n *\n * TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance.\n */\n private _viewCache: EmbeddedViewRef<C>[] = [];\n\n /** Apply changes to the DOM. */\n applyChanges(\n changes: IterableChanges<R>,\n viewContainerRef: ViewContainerRef,\n itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>,\n itemValueResolver: _ViewRepeaterItemValueResolver<T, R>,\n itemViewChanged?: _ViewRepeaterItemChanged<R, C>,\n ) {\n // Rearrange the views to put them in the right location.\n changes.forEachOperation(\n (\n record: IterableChangeRecord<R>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null,\n ) => {\n let view: EmbeddedViewRef<C> | undefined;\n let operation: _ViewRepeaterOperation;\n if (record.previousIndex == null) {\n // Item added.\n const viewArgsFactory = () =>\n itemContextFactory(record, adjustedPreviousIndex, currentIndex);\n view = this._insertView(\n viewArgsFactory,\n currentIndex!,\n viewContainerRef,\n itemValueResolver(record),\n );\n operation = view ? _ViewRepeaterOperation.INSERTED : _ViewRepeaterOperation.REPLACED;\n } else if (currentIndex == null) {\n // Item removed.\n this._detachAndCacheView(adjustedPreviousIndex!, viewContainerRef);\n operation = _ViewRepeaterOperation.REMOVED;\n } else {\n // Item moved.\n view = this._moveView(\n adjustedPreviousIndex!,\n currentIndex!,\n viewContainerRef,\n itemValueResolver(record),\n );\n operation = _ViewRepeaterOperation.MOVED;\n }\n\n if (itemViewChanged) {\n itemViewChanged({\n context: view?.context,\n operation,\n record,\n });\n }\n },\n );\n }\n\n detach() {\n for (const view of this._viewCache) {\n view.destroy();\n }\n this._viewCache = [];\n }\n\n /**\n * Inserts a view for a new item, either from the cache or by creating a new\n * one. Returns `undefined` if the item was inserted into a cached view.\n */\n private _insertView(\n viewArgsFactory: () => _ViewRepeaterItemInsertArgs<C>,\n currentIndex: number,\n viewContainerRef: ViewContainerRef,\n value: T,\n ): EmbeddedViewRef<C> | undefined {\n const cachedView = this._insertViewFromCache(currentIndex!, viewContainerRef);\n if (cachedView) {\n cachedView.context.$implicit = value;\n return undefined;\n }\n\n const viewArgs = viewArgsFactory();\n return viewContainerRef.createEmbeddedView(\n viewArgs.templateRef,\n viewArgs.context,\n viewArgs.index,\n );\n }\n\n /** Detaches the view at the given index and inserts into the view cache. */\n private _detachAndCacheView(index: number, viewContainerRef: ViewContainerRef) {\n const detachedView = viewContainerRef.detach(index) as EmbeddedViewRef<C>;\n this._maybeCacheView(detachedView, viewContainerRef);\n }\n\n /** Moves view at the previous index to the current index. */\n private _moveView(\n adjustedPreviousIndex: number,\n currentIndex: number,\n viewContainerRef: ViewContainerRef,\n value: T,\n ): EmbeddedViewRef<C> {\n const view = viewContainerRef.get(adjustedPreviousIndex!) as EmbeddedViewRef<C>;\n viewContainerRef.move(view, currentIndex);\n view.context.$implicit = value;\n return view;\n }\n\n /**\n * Cache the given detached view. If the cache is full, the view will be\n * destroyed.\n */\n private _maybeCacheView(view: EmbeddedViewRef<C>, viewContainerRef: ViewContainerRef) {\n if (this._viewCache.length < this.viewCacheSize) {\n this._viewCache.push(view);\n } else {\n const index = viewContainerRef.indexOf(view);\n\n // The host component could remove views from the container outside of\n // the view repeater. It's unlikely this will occur, but just in case,\n // destroy the view on its own, otherwise destroy it through the\n // container to ensure that all the references are removed.\n if (index === -1) {\n view.destroy();\n } else {\n viewContainerRef.remove(index);\n }\n }\n }\n\n /** Inserts a recycled view from the cache at the given index. */\n private _insertViewFromCache(\n index: number,\n viewContainerRef: ViewContainerRef,\n ): EmbeddedViewRef<C> | null {\n const cachedView = this._viewCache.pop();\n if (cachedView) {\n viewContainerRef.insert(cachedView, index);\n }\n return cachedView || null;\n }\n}\n"],"names":["observableOf"],"mappings":";;;;AAWA;AACM,MAAO,eAAmB,SAAQ,UAAa,CAAA;AAC/B,IAAA,KAAA;AAApB,IAAA,WAAA,CAAoB,KAA8C,EAAA;AAChE,QAAA,KAAK,EAAE;QADW,IAAK,CAAA,KAAA,GAAL,KAAK;;IAIzB,OAA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