@angular/cdk 18.2.10 → 18.2.11
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/esm2022/table/sticky-styler.mjs +95 -5
- package/esm2022/tree/tree.mjs +16 -2
- package/esm2022/version.mjs +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/table.mjs +94 -4
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tree.mjs +16 -2
- 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/table/index.d.ts +20 -1
- 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', `~18.2.
|
|
32
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~18.2.11`);
|
|
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', `~18.2.
|
|
32
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~18.2.11`);
|
|
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/table/index.d.ts
CHANGED
|
@@ -1078,6 +1078,10 @@ export declare class StickyStyler {
|
|
|
1078
1078
|
private _isBrowser;
|
|
1079
1079
|
private readonly _needsPositionStickyOnElement;
|
|
1080
1080
|
private readonly _positionListener?;
|
|
1081
|
+
private _elemSizeCache;
|
|
1082
|
+
private _resizeObserver;
|
|
1083
|
+
private _updatedStickyColumnsParamsToReplay;
|
|
1084
|
+
private _stickyColumnsReplayTimeout;
|
|
1081
1085
|
private _cachedCellWidths;
|
|
1082
1086
|
private readonly _borderCellCss;
|
|
1083
1087
|
/**
|
|
@@ -1112,8 +1116,9 @@ export declare class StickyStyler {
|
|
|
1112
1116
|
* in this index position should be stuck to the end of the row.
|
|
1113
1117
|
* @param recalculateCellWidths Whether the sticky styler should recalculate the width of each
|
|
1114
1118
|
* column cell. If `false` cached widths will be used instead.
|
|
1119
|
+
* @param replay Whether to enqueue this call for replay after a ResizeObserver update.
|
|
1115
1120
|
*/
|
|
1116
|
-
updateStickyColumns(rows: HTMLElement[], stickyStartStates: boolean[], stickyEndStates: boolean[], recalculateCellWidths?: boolean): void;
|
|
1121
|
+
updateStickyColumns(rows: HTMLElement[], stickyStartStates: boolean[], stickyEndStates: boolean[], recalculateCellWidths?: boolean, replay?: boolean): void;
|
|
1117
1122
|
/**
|
|
1118
1123
|
* Applies sticky positioning to the row's cells if using the native table layout, and to the
|
|
1119
1124
|
* row itself otherwise.
|
|
@@ -1171,6 +1176,20 @@ export declare class StickyStyler {
|
|
|
1171
1176
|
* Non-sticky cells do not need to have a value set since their positions will not be applied.
|
|
1172
1177
|
*/
|
|
1173
1178
|
_getStickyEndColumnPositions(widths: number[], stickyStates: boolean[]): number[];
|
|
1179
|
+
/**
|
|
1180
|
+
* Retreives the most recently observed size of the specified element from the cache, or
|
|
1181
|
+
* meaures it directly if not yet cached.
|
|
1182
|
+
*/
|
|
1183
|
+
private _retrieveElementSize;
|
|
1184
|
+
/**
|
|
1185
|
+
* Conditionally enqueue the requested sticky update and clear previously queued updates
|
|
1186
|
+
* for the same rows.
|
|
1187
|
+
*/
|
|
1188
|
+
private _updateStickyColumnReplayQueue;
|
|
1189
|
+
/** Remove updates for the specified rows from the queue. */
|
|
1190
|
+
private _removeFromStickyColumnReplayQueue;
|
|
1191
|
+
/** Update _elemSizeCache with the observed sizes. */
|
|
1192
|
+
private _updateCachedSizes;
|
|
1174
1193
|
}
|
|
1175
1194
|
|
|
1176
1195
|
export declare interface StickyUpdate {
|
package/tree/index.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ export declare class CdkNestedTreeNode<T, K = T> extends CdkTreeNode<T, K> imple
|
|
|
116
116
|
export declare class CdkTree<T, K = T> implements AfterContentChecked, AfterContentInit, AfterViewInit, CollectionViewer, OnDestroy, OnInit {
|
|
117
117
|
private _differs;
|
|
118
118
|
private _changeDetectorRef;
|
|
119
|
+
private _elementRef;
|
|
119
120
|
private _dir;
|
|
120
121
|
/** Subject that emits when the component has been destroyed. */
|
|
121
122
|
private readonly _onDestroy;
|
|
@@ -327,7 +328,7 @@ export declare class CdkTree<T, K = T> implements AfterContentChecked, AfterCont
|
|
|
327
328
|
/** Given a CdkTreeNode, gets the nodes that renders that node's child data. */
|
|
328
329
|
_getNodeChildren(node: CdkTreeNode<T, K>): Observable<CdkTreeNode<T, K>[]>;
|
|
329
330
|
/** `keydown` event handler; this just passes the event to the `TreeKeyManager`. */
|
|
330
|
-
_sendKeydownToKeyManager(event: KeyboardEvent): void;
|
|
331
|
+
protected _sendKeydownToKeyManager(event: KeyboardEvent): void;
|
|
331
332
|
/** Gets all nested descendants of a given node. */
|
|
332
333
|
private _getDescendants;
|
|
333
334
|
/**
|
|
@@ -378,7 +379,7 @@ export declare class CdkTreeModule {
|
|
|
378
379
|
* Tree node for CdkTree. It contains the data in the tree node.
|
|
379
380
|
*/
|
|
380
381
|
export declare class CdkTreeNode<T, K = T> implements OnDestroy, OnInit, TreeKeyManagerItem {
|
|
381
|
-
|
|
382
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
382
383
|
protected _tree: CdkTree<T, K>;
|
|
383
384
|
protected _tabindex: number | null;
|
|
384
385
|
/**
|