@nativescript-community/ui-collectionview 5.3.28 → 5.3.29

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.3.29](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.28...v5.3.29) (2024-03-22)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-collectionview
9
+
6
10
  ## [5.3.28](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.27...v5.3.28) (2024-03-22)
7
11
 
8
12
  **Note:** Version bump only for package @nativescript-community/ui-collectionview
package/index.ios.js CHANGED
@@ -1295,6 +1295,19 @@ var UICollectionViewDelegateFixedSizeImpl = /** @class */ (function (_super) {
1295
1295
  owner.scrollViewDidEndScrollingAnimation(scrollView);
1296
1296
  }
1297
1297
  };
1298
+ UICollectionViewDelegateFixedSizeImpl.prototype.collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath = function (collectionView, currentIndexPath, proposedIndexPath) {
1299
+ var _a;
1300
+ if (currentIndexPath === proposedIndexPath) {
1301
+ return proposedIndexPath;
1302
+ }
1303
+ var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
1304
+ if (owner && !owner._canReorderToPosition(currentIndexPath.row, proposedIndexPath.row, owner.getItemAtIndex(proposedIndexPath.row))) {
1305
+ return currentIndexPath;
1306
+ }
1307
+ owner._reorderItemInSource(currentIndexPath.row, proposedIndexPath.row, false);
1308
+ owner.clearCachedSize(currentIndexPath.row, proposedIndexPath.row);
1309
+ return proposedIndexPath;
1310
+ };
1298
1311
  UICollectionViewDelegateFixedSizeImpl.ObjCProtocols = [UICollectionViewDelegate, UICollectionViewDelegateFlowLayout];
1299
1312
  return UICollectionViewDelegateFixedSizeImpl;
1300
1313
  }(NSObject));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-collectionview",
3
- "version": "5.3.28",
3
+ "version": "5.3.29",
4
4
  "description": "Allows you to easily add a collection view (grid list view) to your projects. Supports vertical and horizontal modes, templating, and more.",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
@@ -56,5 +56,5 @@
56
56
  },
57
57
  "license": "Apache-2.0",
58
58
  "readmeFilename": "README.md",
59
- "gitHead": "21d5a025c398f64ef0c3438916d55f94c3f73fbd"
59
+ "gitHead": "01cd691e74b1935a12db0e8da1558ea97dcea948"
60
60
  }