@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 +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +4 -3
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/table.mjs +3 -0
- package/fesm2022/table.mjs.map +1 -1
- package/package.json +7 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
package/fesm2022/cdk.mjs
CHANGED
package/fesm2022/cdk.mjs.map
CHANGED
|
@@ -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-
|
|
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;;;;"}
|
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -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
|
-
|
|
4015
|
-
|
|
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() {
|