@angular/cdk 19.2.0-next.4 → 19.2.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/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('19.2.0-next.4');
4
+ const VERSION = new Version('19.2.0-rc.0');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=cdk.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.mjs","sources":["../../../../../../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('19.2.0-next.4');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"cdk.mjs","sources":["../../../../../../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('19.2.0-rc.0');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
@@ -4004,6 +4004,8 @@ class CdkDropList {
4004
4004
  /** Registers an items with the drop list. */
4005
4005
  addItem(item) {
4006
4006
  this._unsortedItems.add(item);
4007
+ // Only sync the items while dragging since this method is
4008
+ // called when items are being initialized one-by-one.
4007
4009
  if (this._dropListRef.isDragging()) {
4008
4010
  this._syncItemsWithRef();
4009
4011
  }
@@ -4011,9 +4013,8 @@ class CdkDropList {
4011
4013
  /** Removes an item from the drop list. */
4012
4014
  removeItem(item) {
4013
4015
  this._unsortedItems.delete(item);
4014
- if (this._dropListRef.isDragging()) {
4015
- this._syncItemsWithRef();
4016
- }
4016
+ // This method might be called on destroy so we always want to sync with the ref.
4017
+ this._syncItemsWithRef();
4017
4018
  }
4018
4019
  /** Gets the registered items in the list, sorted by their position in the DOM. */
4019
4020
  getSortedItems() {