@angular/cdk 19.0.0-next.8 → 19.0.0-rc.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/fesm2022/a11y.mjs +326 -282
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +44 -49
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +22 -23
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +34 -30
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/collections.mjs +31 -29
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +214 -135
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +732 -494
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +21 -20
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +79 -67
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +247 -231
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +16 -13
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +26 -28
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +423 -293
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +51 -52
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +115 -83
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +10 -11
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +191 -175
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +104 -78
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +469 -279
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs +6 -0
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +16 -7
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs +7 -2
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +56 -49
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +243 -134
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/scrolling/index.d.ts +1 -1
- package/table/index.d.ts +21 -2
- package/tree/index.d.ts +3 -2
|
@@ -29,7 +29,7 @@ function default_1() {
|
|
|
29
29
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
30
30
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
31
31
|
// dependencies in new CLI projects.
|
|
32
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.0-
|
|
32
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.0-rc.0`);
|
|
33
33
|
// Add a task to run the package manager. This is necessary because we updated the
|
|
34
34
|
// workspace "package.json" file and we want lock files to reflect the new version range.
|
|
35
35
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
@@ -29,7 +29,7 @@ function default_1() {
|
|
|
29
29
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
30
30
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
31
31
|
// dependencies in new CLI projects.
|
|
32
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.0-
|
|
32
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.0-rc.0`);
|
|
33
33
|
// Add a task to run the package manager. This is necessary because we updated the
|
|
34
34
|
// workspace "package.json" file and we want lock files to reflect the new version range.
|
|
35
35
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
package/scrolling/index.d.ts
CHANGED
|
@@ -207,7 +207,7 @@ export declare abstract class CdkVirtualScrollable extends CdkScrollable {
|
|
|
207
207
|
*/
|
|
208
208
|
abstract measureBoundingClientRectWithScrollOffset(from: 'left' | 'top' | 'right' | 'bottom'): number;
|
|
209
209
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualScrollable, never>;
|
|
210
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualScrollable, never, never, {}, {}, never, never,
|
|
210
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualScrollable, never, never, {}, {}, never, never, true, never>;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
/**
|
package/table/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare abstract class BaseRowDef implements OnChanges {
|
|
|
51
51
|
/** Gets this row def's relevant cell template from the provided column def. */
|
|
52
52
|
extractCellTemplate(column: CdkColumnDef): TemplateRef<any>;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseRowDef, never>;
|
|
54
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRowDef, never, never, {}, {}, never, never,
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRowDef, never, never, {}, {}, never, never, true, never>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -1063,6 +1063,10 @@ export declare class StickyStyler {
|
|
|
1063
1063
|
private _isBrowser;
|
|
1064
1064
|
private readonly _needsPositionStickyOnElement;
|
|
1065
1065
|
private readonly _positionListener?;
|
|
1066
|
+
private _elemSizeCache;
|
|
1067
|
+
private _resizeObserver;
|
|
1068
|
+
private _updatedStickyColumnsParamsToReplay;
|
|
1069
|
+
private _stickyColumnsReplayTimeout;
|
|
1066
1070
|
private _cachedCellWidths;
|
|
1067
1071
|
private readonly _borderCellCss;
|
|
1068
1072
|
/**
|
|
@@ -1097,8 +1101,9 @@ export declare class StickyStyler {
|
|
|
1097
1101
|
* in this index position should be stuck to the end of the row.
|
|
1098
1102
|
* @param recalculateCellWidths Whether the sticky styler should recalculate the width of each
|
|
1099
1103
|
* column cell. If `false` cached widths will be used instead.
|
|
1104
|
+
* @param replay Whether to enqueue this call for replay after a ResizeObserver update.
|
|
1100
1105
|
*/
|
|
1101
|
-
updateStickyColumns(rows: HTMLElement[], stickyStartStates: boolean[], stickyEndStates: boolean[], recalculateCellWidths?: boolean): void;
|
|
1106
|
+
updateStickyColumns(rows: HTMLElement[], stickyStartStates: boolean[], stickyEndStates: boolean[], recalculateCellWidths?: boolean, replay?: boolean): void;
|
|
1102
1107
|
/**
|
|
1103
1108
|
* Applies sticky positioning to the row's cells if using the native table layout, and to the
|
|
1104
1109
|
* row itself otherwise.
|
|
@@ -1156,6 +1161,20 @@ export declare class StickyStyler {
|
|
|
1156
1161
|
* Non-sticky cells do not need to have a value set since their positions will not be applied.
|
|
1157
1162
|
*/
|
|
1158
1163
|
_getStickyEndColumnPositions(widths: number[], stickyStates: boolean[]): number[];
|
|
1164
|
+
/**
|
|
1165
|
+
* Retreives the most recently observed size of the specified element from the cache, or
|
|
1166
|
+
* meaures it directly if not yet cached.
|
|
1167
|
+
*/
|
|
1168
|
+
private _retrieveElementSize;
|
|
1169
|
+
/**
|
|
1170
|
+
* Conditionally enqueue the requested sticky update and clear previously queued updates
|
|
1171
|
+
* for the same rows.
|
|
1172
|
+
*/
|
|
1173
|
+
private _updateStickyColumnReplayQueue;
|
|
1174
|
+
/** Remove updates for the specified rows from the queue. */
|
|
1175
|
+
private _removeFromStickyColumnReplayQueue;
|
|
1176
|
+
/** Update _elemSizeCache with the observed sizes. */
|
|
1177
|
+
private _updateCachedSizes;
|
|
1159
1178
|
}
|
|
1160
1179
|
|
|
1161
1180
|
export declare interface StickyUpdate {
|
package/tree/index.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export declare class CdkNestedTreeNode<T, K = T> extends CdkTreeNode<T, K> imple
|
|
|
114
114
|
export declare class CdkTree<T, K = T> implements AfterContentChecked, AfterContentInit, AfterViewInit, CollectionViewer, OnDestroy, OnInit {
|
|
115
115
|
private _differs;
|
|
116
116
|
private _changeDetectorRef;
|
|
117
|
+
private _elementRef;
|
|
117
118
|
private _dir;
|
|
118
119
|
/** Subject that emits when the component has been destroyed. */
|
|
119
120
|
private readonly _onDestroy;
|
|
@@ -325,7 +326,7 @@ export declare class CdkTree<T, K = T> implements AfterContentChecked, AfterCont
|
|
|
325
326
|
/** Given a CdkTreeNode, gets the nodes that renders that node's child data. */
|
|
326
327
|
_getNodeChildren(node: CdkTreeNode<T, K>): Observable<CdkTreeNode<T, K>[]>;
|
|
327
328
|
/** `keydown` event handler; this just passes the event to the `TreeKeyManager`. */
|
|
328
|
-
_sendKeydownToKeyManager(event: KeyboardEvent): void;
|
|
329
|
+
protected _sendKeydownToKeyManager(event: KeyboardEvent): void;
|
|
329
330
|
/** Gets all nested descendants of a given node. */
|
|
330
331
|
private _getDescendants;
|
|
331
332
|
/**
|
|
@@ -376,7 +377,7 @@ export declare class CdkTreeModule {
|
|
|
376
377
|
* Tree node for CdkTree. It contains the data in the tree node.
|
|
377
378
|
*/
|
|
378
379
|
export declare class CdkTreeNode<T, K = T> implements OnDestroy, OnInit, TreeKeyManagerItem {
|
|
379
|
-
|
|
380
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
380
381
|
protected _tree: CdkTree<T, K>;
|
|
381
382
|
protected _tabindex: number | null;
|
|
382
383
|
/**
|