@angular/cdk 21.0.0-next.2 → 21.0.0-next.3

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.
@@ -982,7 +982,7 @@
982
982
  "members": [
983
983
  {
984
984
  "name": "lockAxis",
985
- "type": "DragAxis | undefined",
985
+ "type": "DragAxis | null | undefined",
986
986
  "memberType": "property",
987
987
  "memberTags": [
988
988
  "optional"
@@ -1301,7 +1301,7 @@
1301
1301
  },
1302
1302
  {
1303
1303
  "name": "lockAxis",
1304
- "type": "DragAxis",
1304
+ "type": "DragAxis | null",
1305
1305
  "memberType": "property",
1306
1306
  "memberTags": [],
1307
1307
  "description": "Locks the position of the draggable elements inside the container along the specified axis.",
@@ -1599,7 +1599,7 @@
1599
1599
  "source": {
1600
1600
  "filePath": "/src/cdk/drag-drop/directives/drop-list.ts",
1601
1601
  "startLine": 36,
1602
- "endLine": 439
1602
+ "endLine": 436
1603
1603
  }
1604
1604
  },
1605
1605
  {
@@ -2733,7 +2733,7 @@
2733
2733
  },
2734
2734
  {
2735
2735
  "name": "lockAxis",
2736
- "type": "\"x\" | \"y\"",
2736
+ "type": "\"x\" | \"y\" | null",
2737
2737
  "memberType": "property",
2738
2738
  "memberTags": [],
2739
2739
  "description": "Locks the position of the draggable elements inside the container along the specified axis.",
@@ -4032,7 +4032,7 @@
4032
4032
  },
4033
4033
  {
4034
4034
  "name": "lockAxis",
4035
- "type": "DragAxis",
4035
+ "type": "DragAxis | null",
4036
4036
  "memberType": "property",
4037
4037
  "memberTags": [],
4038
4038
  "description": "Locks the position of the dragged element along the specified axis.",
@@ -4552,7 +4552,7 @@
4552
4552
  "source": {
4553
4553
  "filePath": "/src/cdk/drag-drop/directives/drag.ts",
4554
4554
  "startLine": 61,
4555
- "endLine": 622
4555
+ "endLine": 619
4556
4556
  }
4557
4557
  },
4558
4558
  {
@@ -4915,7 +4915,7 @@
4915
4915
  },
4916
4916
  {
4917
4917
  "name": "lockAxis",
4918
- "type": "\"x\" | \"y\"",
4918
+ "type": "\"x\" | \"y\" | null",
4919
4919
  "memberType": "property",
4920
4920
  "memberTags": [],
4921
4921
  "description": "Axis along which dragging is locked.",
@@ -27,7 +27,7 @@ declare const CDK_DRAG_CONFIG: InjectionToken<DragDropConfig>;
27
27
  * items and drop lists within a module or a component.
28
28
  */
29
29
  interface DragDropConfig extends Partial<DragRefConfig> {
30
- lockAxis?: DragAxis;
30
+ lockAxis?: DragAxis | null;
31
31
  dragStartDelay?: DragStartDelay;
32
32
  constrainPosition?: DragConstrainPosition;
33
33
  previewClass?: string | string[];
@@ -55,7 +55,7 @@ declare class DropListRef<T = any> {
55
55
  /** Whether sorting items within the list is disabled. */
56
56
  sortingDisabled: boolean;
57
57
  /** Locks the position of the draggable elements inside the container along the specified axis. */
58
- lockAxis: 'x' | 'y';
58
+ lockAxis: 'x' | 'y' | null;
59
59
  /**
60
60
  * Whether auto-scrolling the view when the user
61
61
  * moves their pointer close to the edges is disabled.
@@ -351,7 +351,7 @@ declare class CdkDropList<T = any> implements OnDestroy {
351
351
  */
352
352
  id: string;
353
353
  /** Locks the position of the draggable elements inside the container along the specified axis. */
354
- lockAxis: DragAxis;
354
+ lockAxis: DragAxis | null;
355
355
  /** Whether starting a dragging sequence from this container is disabled. */
356
356
  get disabled(): boolean;
357
357
  set disabled(value: boolean);
@@ -653,7 +653,7 @@ declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDestroy {
653
653
  /** Arbitrary data to attach to this drag instance. */
654
654
  data: T;
655
655
  /** Locks the position of the dragged element along the specified axis. */
656
- lockAxis: DragAxis;
656
+ lockAxis: DragAxis | null;
657
657
  /**
658
658
  * Selector that will be used to determine the root draggable element, starting from
659
659
  * the `cdkDrag` element and going up the DOM. Passing an alternate root element is useful
@@ -1050,7 +1050,7 @@ declare class DragRef<T = any> {
1050
1050
  */
1051
1051
  private _cachedShadowRoot;
1052
1052
  /** Axis along which dragging is locked. */
1053
- lockAxis: 'x' | 'y';
1053
+ lockAxis: 'x' | 'y' | null;
1054
1054
  /**
1055
1055
  * Amount of milliseconds to wait after the user has put their
1056
1056
  * pointer down before starting to drag the element.
package/fesm2022/cdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
3
  /** Current version of the Angular Component Development Kit. */
4
- const VERSION = new Version('21.0.0-next.2');
4
+ const VERSION = new Version('21.0.0-next.3');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=cdk.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/version.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 {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('21.0.0-next.2');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"cdk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/version.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 {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('21.0.0-next.3');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
@@ -615,7 +615,7 @@ class DragRef {
615
615
  */
616
616
  _cachedShadowRoot;
617
617
  /** Axis along which dragging is locked. */
618
- lockAxis;
618
+ lockAxis = null;
619
619
  /**
620
620
  * Amount of milliseconds to wait after the user has put their
621
621
  * pointer down before starting to drag the element.
@@ -2411,7 +2411,7 @@ class DropListRef {
2411
2411
  /** Whether sorting items within the list is disabled. */
2412
2412
  sortingDisabled = false;
2413
2413
  /** Locks the position of the draggable elements inside the container along the specified axis. */
2414
- lockAxis;
2414
+ lockAxis = null;
2415
2415
  /**
2416
2416
  * Whether auto-scrolling the view when the user
2417
2417
  * moves their pointer close to the edges is disabled.
@@ -3473,7 +3473,7 @@ class CdkDrag {
3473
3473
  /** Arbitrary data to attach to this drag instance. */
3474
3474
  data;
3475
3475
  /** Locks the position of the dragged element along the specified axis. */
3476
- lockAxis;
3476
+ lockAxis = null;
3477
3477
  /**
3478
3478
  * Selector that will be used to determine the root draggable element, starting from
3479
3479
  * the `cdkDrag` element and going up the DOM. Passing an alternate root element is useful
@@ -3843,9 +3843,7 @@ class CdkDrag {
3843
3843
  const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer, } = config;
3844
3844
  this.disabled = draggingDisabled == null ? false : draggingDisabled;
3845
3845
  this.dragStartDelay = dragStartDelay || 0;
3846
- if (lockAxis) {
3847
- this.lockAxis = lockAxis;
3848
- }
3846
+ this.lockAxis = lockAxis || null;
3849
3847
  if (constrainPosition) {
3850
3848
  this.constrainPosition = constrainPosition;
3851
3849
  }
@@ -4031,7 +4029,7 @@ class CdkDropList {
4031
4029
  */
4032
4030
  id = inject(_IdGenerator).getId('cdk-drop-list-');
4033
4031
  /** Locks the position of the draggable elements inside the container along the specified axis. */
4034
- lockAxis;
4032
+ lockAxis = null;
4035
4033
  /** Whether starting a dragging sequence from this container is disabled. */
4036
4034
  get disabled() {
4037
4035
  return this._disabled || (!!this._group && this._group.disabled);
@@ -4286,9 +4284,7 @@ class CdkDropList {
4286
4284
  this.sortingDisabled = sortingDisabled == null ? false : sortingDisabled;
4287
4285
  this.autoScrollDisabled = listAutoScrollDisabled == null ? false : listAutoScrollDisabled;
4288
4286
  this.orientation = listOrientation || 'vertical';
4289
- if (lockAxis) {
4290
- this.lockAxis = lockAxis;
4291
- }
4287
+ this.lockAxis = lockAxis || null;
4292
4288
  }
4293
4289
  /** Syncs up the registered drag items with underlying drop list ref. */
4294
4290
  _syncItemsWithRef(items) {