@angular/cdk 21.0.3 → 21.0.6
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/LICENSE +1 -1
- package/fesm2022/_a11y-module-chunk.mjs +22 -22
- package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
- package/fesm2022/_directionality-chunk.mjs +3 -3
- package/fesm2022/_focus-monitor-chunk.mjs +9 -9
- package/fesm2022/_id-generator-chunk.mjs +3 -3
- package/fesm2022/_list-key-manager-chunk.mjs +5 -5
- package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_overlay-module-chunk.mjs +49 -38
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +3 -3
- package/fesm2022/_style-loader-chunk.mjs +3 -3
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
- package/fesm2022/_visually-hidden-chunk.mjs +3 -3
- package/fesm2022/a11y.mjs +9 -9
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/bidi.mjs +7 -7
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/dialog.mjs +10 -10
- package/fesm2022/drag-drop.mjs +269 -266
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +4 -4
- package/fesm2022/listbox.mjs +10 -10
- package/fesm2022/menu.mjs +49 -49
- package/fesm2022/observers-private.mjs +3 -3
- package/fesm2022/observers.mjs +13 -13
- package/fesm2022/overlay.mjs +3 -3
- package/fesm2022/platform.mjs +4 -4
- package/fesm2022/portal.mjs +10 -10
- package/fesm2022/scrolling.mjs +40 -40
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +22 -22
- package/fesm2022/table.mjs +73 -73
- package/fesm2022/testing-testbed.mjs +7 -1
- package/fesm2022/testing-testbed.mjs.map +1 -1
- package/fesm2022/text-field.mjs +16 -16
- package/fesm2022/tree.mjs +25 -25
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/types/_overlay-module-chunk.d.ts +2 -0
- package/types/drag-drop.d.ts +23 -7
- package/types/testing-testbed.d.ts +3 -0
package/fesm2022/tree.mjs
CHANGED
|
@@ -124,7 +124,7 @@ class CdkTreeNodeOutlet {
|
|
|
124
124
|
constructor() {}
|
|
125
125
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
126
126
|
minVersion: "12.0.0",
|
|
127
|
-
version: "21.0.
|
|
127
|
+
version: "21.0.3",
|
|
128
128
|
ngImport: i0,
|
|
129
129
|
type: CdkTreeNodeOutlet,
|
|
130
130
|
deps: [],
|
|
@@ -132,7 +132,7 @@ class CdkTreeNodeOutlet {
|
|
|
132
132
|
});
|
|
133
133
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
134
134
|
minVersion: "14.0.0",
|
|
135
|
-
version: "21.0.
|
|
135
|
+
version: "21.0.3",
|
|
136
136
|
type: CdkTreeNodeOutlet,
|
|
137
137
|
isStandalone: true,
|
|
138
138
|
selector: "[cdkTreeNodeOutlet]",
|
|
@@ -141,7 +141,7 @@ class CdkTreeNodeOutlet {
|
|
|
141
141
|
}
|
|
142
142
|
i0.ɵɵngDeclareClassMetadata({
|
|
143
143
|
minVersion: "12.0.0",
|
|
144
|
-
version: "21.0.
|
|
144
|
+
version: "21.0.3",
|
|
145
145
|
ngImport: i0,
|
|
146
146
|
type: CdkTreeNodeOutlet,
|
|
147
147
|
decorators: [{
|
|
@@ -168,7 +168,7 @@ class CdkTreeNodeDef {
|
|
|
168
168
|
constructor() {}
|
|
169
169
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
170
170
|
minVersion: "12.0.0",
|
|
171
|
-
version: "21.0.
|
|
171
|
+
version: "21.0.3",
|
|
172
172
|
ngImport: i0,
|
|
173
173
|
type: CdkTreeNodeDef,
|
|
174
174
|
deps: [],
|
|
@@ -176,7 +176,7 @@ class CdkTreeNodeDef {
|
|
|
176
176
|
});
|
|
177
177
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
178
178
|
minVersion: "14.0.0",
|
|
179
|
-
version: "21.0.
|
|
179
|
+
version: "21.0.3",
|
|
180
180
|
type: CdkTreeNodeDef,
|
|
181
181
|
isStandalone: true,
|
|
182
182
|
selector: "[cdkTreeNodeDef]",
|
|
@@ -188,7 +188,7 @@ class CdkTreeNodeDef {
|
|
|
188
188
|
}
|
|
189
189
|
i0.ɵɵngDeclareClassMetadata({
|
|
190
190
|
minVersion: "12.0.0",
|
|
191
|
-
version: "21.0.
|
|
191
|
+
version: "21.0.3",
|
|
192
192
|
ngImport: i0,
|
|
193
193
|
type: CdkTreeNodeDef,
|
|
194
194
|
decorators: [{
|
|
@@ -825,7 +825,7 @@ class CdkTree {
|
|
|
825
825
|
}
|
|
826
826
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
827
827
|
minVersion: "12.0.0",
|
|
828
|
-
version: "21.0.
|
|
828
|
+
version: "21.0.3",
|
|
829
829
|
ngImport: i0,
|
|
830
830
|
type: CdkTree,
|
|
831
831
|
deps: [],
|
|
@@ -833,7 +833,7 @@ class CdkTree {
|
|
|
833
833
|
});
|
|
834
834
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
835
835
|
minVersion: "14.0.0",
|
|
836
|
-
version: "21.0.
|
|
836
|
+
version: "21.0.3",
|
|
837
837
|
type: CdkTree,
|
|
838
838
|
isStandalone: true,
|
|
839
839
|
selector: "cdk-tree",
|
|
@@ -881,7 +881,7 @@ class CdkTree {
|
|
|
881
881
|
}
|
|
882
882
|
i0.ɵɵngDeclareClassMetadata({
|
|
883
883
|
minVersion: "12.0.0",
|
|
884
|
-
version: "21.0.
|
|
884
|
+
version: "21.0.3",
|
|
885
885
|
ngImport: i0,
|
|
886
886
|
type: CdkTree,
|
|
887
887
|
decorators: [{
|
|
@@ -1098,7 +1098,7 @@ class CdkTreeNode {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1100
1100
|
minVersion: "12.0.0",
|
|
1101
|
-
version: "21.0.
|
|
1101
|
+
version: "21.0.3",
|
|
1102
1102
|
ngImport: i0,
|
|
1103
1103
|
type: CdkTreeNode,
|
|
1104
1104
|
deps: [],
|
|
@@ -1106,7 +1106,7 @@ class CdkTreeNode {
|
|
|
1106
1106
|
});
|
|
1107
1107
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1108
1108
|
minVersion: "16.1.0",
|
|
1109
|
-
version: "21.0.
|
|
1109
|
+
version: "21.0.3",
|
|
1110
1110
|
type: CdkTreeNode,
|
|
1111
1111
|
isStandalone: true,
|
|
1112
1112
|
selector: "cdk-tree-node",
|
|
@@ -1144,7 +1144,7 @@ class CdkTreeNode {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
i0.ɵɵngDeclareClassMetadata({
|
|
1146
1146
|
minVersion: "12.0.0",
|
|
1147
|
-
version: "21.0.
|
|
1147
|
+
version: "21.0.3",
|
|
1148
1148
|
ngImport: i0,
|
|
1149
1149
|
type: CdkTreeNode,
|
|
1150
1150
|
decorators: [{
|
|
@@ -1262,7 +1262,7 @@ class CdkNestedTreeNode extends CdkTreeNode {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1264
1264
|
minVersion: "12.0.0",
|
|
1265
|
-
version: "21.0.
|
|
1265
|
+
version: "21.0.3",
|
|
1266
1266
|
ngImport: i0,
|
|
1267
1267
|
type: CdkNestedTreeNode,
|
|
1268
1268
|
deps: [],
|
|
@@ -1270,7 +1270,7 @@ class CdkNestedTreeNode extends CdkTreeNode {
|
|
|
1270
1270
|
});
|
|
1271
1271
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1272
1272
|
minVersion: "14.0.0",
|
|
1273
|
-
version: "21.0.
|
|
1273
|
+
version: "21.0.3",
|
|
1274
1274
|
type: CdkNestedTreeNode,
|
|
1275
1275
|
isStandalone: true,
|
|
1276
1276
|
selector: "cdk-nested-tree-node",
|
|
@@ -1296,7 +1296,7 @@ class CdkNestedTreeNode extends CdkTreeNode {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
i0.ɵɵngDeclareClassMetadata({
|
|
1298
1298
|
minVersion: "12.0.0",
|
|
1299
|
-
version: "21.0.
|
|
1299
|
+
version: "21.0.3",
|
|
1300
1300
|
ngImport: i0,
|
|
1301
1301
|
type: CdkNestedTreeNode,
|
|
1302
1302
|
decorators: [{
|
|
@@ -1395,7 +1395,7 @@ class CdkTreeNodePadding {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1397
1397
|
minVersion: "12.0.0",
|
|
1398
|
-
version: "21.0.
|
|
1398
|
+
version: "21.0.3",
|
|
1399
1399
|
ngImport: i0,
|
|
1400
1400
|
type: CdkTreeNodePadding,
|
|
1401
1401
|
deps: [],
|
|
@@ -1403,7 +1403,7 @@ class CdkTreeNodePadding {
|
|
|
1403
1403
|
});
|
|
1404
1404
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1405
1405
|
minVersion: "16.1.0",
|
|
1406
|
-
version: "21.0.
|
|
1406
|
+
version: "21.0.3",
|
|
1407
1407
|
type: CdkTreeNodePadding,
|
|
1408
1408
|
isStandalone: true,
|
|
1409
1409
|
selector: "[cdkTreeNodePadding]",
|
|
@@ -1416,7 +1416,7 @@ class CdkTreeNodePadding {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
i0.ɵɵngDeclareClassMetadata({
|
|
1418
1418
|
minVersion: "12.0.0",
|
|
1419
|
-
version: "21.0.
|
|
1419
|
+
version: "21.0.3",
|
|
1420
1420
|
ngImport: i0,
|
|
1421
1421
|
type: CdkTreeNodePadding,
|
|
1422
1422
|
decorators: [{
|
|
@@ -1452,7 +1452,7 @@ class CdkTreeNodeToggle {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1454
1454
|
minVersion: "12.0.0",
|
|
1455
|
-
version: "21.0.
|
|
1455
|
+
version: "21.0.3",
|
|
1456
1456
|
ngImport: i0,
|
|
1457
1457
|
type: CdkTreeNodeToggle,
|
|
1458
1458
|
deps: [],
|
|
@@ -1460,7 +1460,7 @@ class CdkTreeNodeToggle {
|
|
|
1460
1460
|
});
|
|
1461
1461
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1462
1462
|
minVersion: "16.1.0",
|
|
1463
|
-
version: "21.0.
|
|
1463
|
+
version: "21.0.3",
|
|
1464
1464
|
type: CdkTreeNodeToggle,
|
|
1465
1465
|
isStandalone: true,
|
|
1466
1466
|
selector: "[cdkTreeNodeToggle]",
|
|
@@ -1482,7 +1482,7 @@ class CdkTreeNodeToggle {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
i0.ɵɵngDeclareClassMetadata({
|
|
1484
1484
|
minVersion: "12.0.0",
|
|
1485
|
-
version: "21.0.
|
|
1485
|
+
version: "21.0.3",
|
|
1486
1486
|
ngImport: i0,
|
|
1487
1487
|
type: CdkTreeNodeToggle,
|
|
1488
1488
|
decorators: [{
|
|
@@ -1513,7 +1513,7 @@ const EXPORTED_DECLARATIONS = [CdkNestedTreeNode, CdkTreeNodeDef, CdkTreeNodePad
|
|
|
1513
1513
|
class CdkTreeModule {
|
|
1514
1514
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1515
1515
|
minVersion: "12.0.0",
|
|
1516
|
-
version: "21.0.
|
|
1516
|
+
version: "21.0.3",
|
|
1517
1517
|
ngImport: i0,
|
|
1518
1518
|
type: CdkTreeModule,
|
|
1519
1519
|
deps: [],
|
|
@@ -1521,7 +1521,7 @@ class CdkTreeModule {
|
|
|
1521
1521
|
});
|
|
1522
1522
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1523
1523
|
minVersion: "14.0.0",
|
|
1524
|
-
version: "21.0.
|
|
1524
|
+
version: "21.0.3",
|
|
1525
1525
|
ngImport: i0,
|
|
1526
1526
|
type: CdkTreeModule,
|
|
1527
1527
|
imports: [CdkNestedTreeNode, CdkTreeNodeDef, CdkTreeNodePadding, CdkTreeNodeToggle, CdkTree, CdkTreeNode, CdkTreeNodeOutlet],
|
|
@@ -1529,14 +1529,14 @@ class CdkTreeModule {
|
|
|
1529
1529
|
});
|
|
1530
1530
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1531
1531
|
minVersion: "12.0.0",
|
|
1532
|
-
version: "21.0.
|
|
1532
|
+
version: "21.0.3",
|
|
1533
1533
|
ngImport: i0,
|
|
1534
1534
|
type: CdkTreeModule
|
|
1535
1535
|
});
|
|
1536
1536
|
}
|
|
1537
1537
|
i0.ɵɵngDeclareClassMetadata({
|
|
1538
1538
|
minVersion: "12.0.0",
|
|
1539
|
-
version: "21.0.
|
|
1539
|
+
version: "21.0.3",
|
|
1540
1540
|
ngImport: i0,
|
|
1541
1541
|
type: CdkTreeModule,
|
|
1542
1542
|
decorators: [{
|
package/package.json
CHANGED
|
@@ -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', `~21.0.
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~21.0.6`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -713,6 +713,8 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
|
|
|
713
713
|
private _getViewportMarginBottom;
|
|
714
714
|
/** Returns the DOMRect of the current origin. */
|
|
715
715
|
private _getOriginRect;
|
|
716
|
+
/** Gets the dimensions of the overlay container. */
|
|
717
|
+
private _getContainerRect;
|
|
716
718
|
}
|
|
717
719
|
/** A simple (x, y) coordinate. */
|
|
718
720
|
interface Point {
|
package/types/drag-drop.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, ElementRef, NgZone, OnDestroy, EventEmitter, AfterViewInit, TemplateRef, OnChanges, SimpleChanges, ViewContainerRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injector, ElementRef, NgZone, OnDestroy, EventEmitter, AfterViewInit, TemplateRef, OnChanges, SimpleChanges, ViewContainerRef, Renderer2 } from '@angular/core';
|
|
3
3
|
import { Direction } from './_bidi-module-chunk.js';
|
|
4
4
|
import { Subject, Observable } from 'rxjs';
|
|
5
5
|
import { ViewportRuler } from './scrolling.js';
|
|
@@ -41,6 +41,12 @@ interface DragDropConfig extends Partial<DragRefConfig> {
|
|
|
41
41
|
previewContainer?: 'global' | 'parent';
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Creates a `DropListRef` for an element, turning it into a drop list.
|
|
46
|
+
* @param injector Injector used to resolve dependencies.
|
|
47
|
+
* @param element Element to which to attach the drop list functionality.
|
|
48
|
+
*/
|
|
49
|
+
declare function createDropListRef<T = unknown>(injector: Injector, element: ElementRef<HTMLElement> | HTMLElement): DropListRef<T>;
|
|
44
50
|
/**
|
|
45
51
|
* Reference to a drop list. Used to manipulate or dispose of the container.
|
|
46
52
|
*/
|
|
@@ -924,6 +930,13 @@ interface Point {
|
|
|
924
930
|
* Same advantages and disadvantages as `parent`.
|
|
925
931
|
*/
|
|
926
932
|
type PreviewContainer = 'global' | 'parent' | ElementRef<HTMLElement> | HTMLElement;
|
|
933
|
+
/**
|
|
934
|
+
* Creates a `DragRef` for an element, turning it into a draggable item.
|
|
935
|
+
* @param injector Injector used to resolve dependencies.
|
|
936
|
+
* @param element Element to which to attach the dragging functionality.
|
|
937
|
+
* @param config Object used to configure the dragging behavior.
|
|
938
|
+
*/
|
|
939
|
+
declare function createDragRef<T = unknown>(injector: Injector, element: ElementRef<HTMLElement> | HTMLElement, config?: DragRefConfig): DragRef<T>;
|
|
927
940
|
/**
|
|
928
941
|
* Reference to a draggable item. Used to manipulate or dispose of the item.
|
|
929
942
|
*/
|
|
@@ -1320,23 +1333,26 @@ declare class DragRef<T = any> {
|
|
|
1320
1333
|
|
|
1321
1334
|
/**
|
|
1322
1335
|
* Service that allows for drag-and-drop functionality to be attached to DOM elements.
|
|
1336
|
+
* @deprecated Use the `createDragRef` or `createDropListRef` function for better tree shaking.
|
|
1337
|
+
* Will be removed in v23.
|
|
1338
|
+
* @breaking-change 23.0.0
|
|
1323
1339
|
*/
|
|
1324
1340
|
declare class DragDrop {
|
|
1325
|
-
private
|
|
1326
|
-
private _ngZone;
|
|
1327
|
-
private _viewportRuler;
|
|
1328
|
-
private _dragDropRegistry;
|
|
1329
|
-
private _renderer;
|
|
1341
|
+
private _injector;
|
|
1330
1342
|
constructor(...args: unknown[]);
|
|
1331
1343
|
/**
|
|
1332
1344
|
* Turns an element into a draggable item.
|
|
1333
1345
|
* @param element Element to which to attach the dragging functionality.
|
|
1334
1346
|
* @param config Object used to configure the dragging behavior.
|
|
1347
|
+
* @deprecated Use the `createDragRef` function that provides better tree shaking.
|
|
1348
|
+
* @breaking-change 23.0.0
|
|
1335
1349
|
*/
|
|
1336
1350
|
createDrag<T = any>(element: ElementRef<HTMLElement> | HTMLElement, config?: DragRefConfig): DragRef<T>;
|
|
1337
1351
|
/**
|
|
1338
1352
|
* Turns an element into a drop list.
|
|
1339
1353
|
* @param element Element to which to attach the drop list functionality.
|
|
1354
|
+
* @deprecated Use the `createDropListRef` function that provides better tree shaking.
|
|
1355
|
+
* @breaking-change 23.0.0
|
|
1340
1356
|
*/
|
|
1341
1357
|
createDropList<T = any>(element: ElementRef<HTMLElement> | HTMLElement): DropListRef<T>;
|
|
1342
1358
|
static ɵfac: i0.ɵɵFactoryDeclaration<DragDrop, never>;
|
|
@@ -1406,5 +1422,5 @@ declare class DragDropModule {
|
|
|
1406
1422
|
static ɵinj: i0.ɵɵInjectorDeclaration<DragDropModule>;
|
|
1407
1423
|
}
|
|
1408
1424
|
|
|
1409
|
-
export { CDK_DRAG_CONFIG, CDK_DRAG_HANDLE, CDK_DRAG_PARENT, CDK_DRAG_PLACEHOLDER, CDK_DRAG_PREVIEW, CDK_DROP_LIST, CDK_DROP_LIST_GROUP, CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDragPreview, CdkDropList, CdkDropListGroup, DragDrop, DragDropModule, DragDropRegistry, DragRef, DropListRef, copyArrayItem, moveItemInArray, transferArrayItem };
|
|
1425
|
+
export { CDK_DRAG_CONFIG, CDK_DRAG_HANDLE, CDK_DRAG_PARENT, CDK_DRAG_PLACEHOLDER, CDK_DRAG_PREVIEW, CDK_DROP_LIST, CDK_DROP_LIST_GROUP, CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDragPreview, CdkDropList, CdkDropListGroup, DragDrop, DragDropModule, DragDropRegistry, DragRef, DropListRef, copyArrayItem, createDragRef, createDropListRef, moveItemInArray, transferArrayItem };
|
|
1410
1426
|
export type { CdkDragDrop, CdkDragEnd, CdkDragEnter, CdkDragExit, CdkDragMove, CdkDragRelease, CdkDragSortEvent, CdkDragStart, DragAxis, DragConstrainPosition, DragDropConfig, DragRefConfig, DragStartDelay, DropListOrientation, Point, PreviewContainer };
|
|
@@ -43,6 +43,9 @@ declare class TestbedHarnessEnvironment extends HarnessEnvironment<Element> {
|
|
|
43
43
|
/**
|
|
44
44
|
* Waits for all scheduled or running async tasks to complete. This allows harness
|
|
45
45
|
* authors to wait for async tasks outside of the Angular zone.
|
|
46
|
+
*
|
|
47
|
+
* This only works when Zone.js is present _and_ patches are applied to the test framework
|
|
48
|
+
* by `zone.js/testing` (Jasmine and Jest only) or another script.
|
|
46
49
|
*/
|
|
47
50
|
waitForTasksOutsideAngular(): Promise<void>;
|
|
48
51
|
/** Gets the root element for the document. */
|