@nativescript-community/ui-collectionview-waterfall 5.1.1 → 5.1.2
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 +8 -0
- package/index.ios.js +16 -6
- package/index.ios.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.1.2](https://github.com/nativescript-community/ui-collectionview/compare/v5.1.1...v5.1.2) (2023-04-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-collectionview-waterfall
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [5.1.1](https://github.com/nativescript-community/ui-collectionview/compare/v5.1.0...v5.1.1) (2023-04-25)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @nativescript-community/ui-collectionview-waterfall
|
package/index.ios.js
CHANGED
|
@@ -4,34 +4,44 @@ var UICollectionViewWaterfallDelegateImpl = /** @class */ (function (_super) {
|
|
|
4
4
|
function UICollectionViewWaterfallDelegateImpl() {
|
|
5
5
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6
6
|
}
|
|
7
|
+
UICollectionViewWaterfallDelegateImpl.initWithOwner = function (owner) {
|
|
8
|
+
var result = UICollectionViewWaterfallDelegateImpl.new();
|
|
9
|
+
result._owner = new WeakRef(owner);
|
|
10
|
+
return result;
|
|
11
|
+
};
|
|
7
12
|
UICollectionViewWaterfallDelegateImpl.prototype.collectionViewWillDisplayCellForItemAtIndexPath = function (collectionView, cell, indexPath) {
|
|
8
|
-
var
|
|
13
|
+
var _a;
|
|
14
|
+
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
9
15
|
if (owner) {
|
|
10
16
|
owner.collectionViewWillDisplayCellForItemAtIndexPath(collectionView, cell, indexPath);
|
|
11
17
|
}
|
|
12
18
|
};
|
|
13
19
|
UICollectionViewWaterfallDelegateImpl.prototype.collectionViewDidSelectItemAtIndexPath = function (collectionView, indexPath) {
|
|
14
|
-
var
|
|
20
|
+
var _a;
|
|
21
|
+
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
15
22
|
if (owner) {
|
|
16
23
|
return owner.collectionViewDidSelectItemAtIndexPath(collectionView, indexPath);
|
|
17
24
|
}
|
|
18
25
|
return indexPath;
|
|
19
26
|
};
|
|
20
27
|
UICollectionViewWaterfallDelegateImpl.prototype.collectionViewLayoutSizeForItemAtIndexPath = function (collectionView, collectionViewLayout, indexPath) {
|
|
21
|
-
var
|
|
28
|
+
var _a;
|
|
29
|
+
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
22
30
|
if (owner) {
|
|
23
31
|
return owner.collectionViewLayoutSizeForItemAtIndexPath(collectionView, collectionViewLayout, indexPath);
|
|
24
32
|
}
|
|
25
33
|
return CGSizeZero;
|
|
26
34
|
};
|
|
27
35
|
UICollectionViewWaterfallDelegateImpl.prototype.scrollViewDidScroll = function (scrollView) {
|
|
28
|
-
var
|
|
36
|
+
var _a;
|
|
37
|
+
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
29
38
|
if (owner) {
|
|
30
39
|
owner.scrollViewDidScroll(scrollView);
|
|
31
40
|
}
|
|
32
41
|
};
|
|
33
42
|
UICollectionViewWaterfallDelegateImpl.prototype.scrollViewDidEndDecelerating = function (scrollView) {
|
|
34
|
-
var
|
|
43
|
+
var _a;
|
|
44
|
+
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
35
45
|
if (owner) {
|
|
36
46
|
owner.scrollViewDidEndDecelerating(scrollView);
|
|
37
47
|
}
|
|
@@ -48,7 +58,7 @@ export default function install() {
|
|
|
48
58
|
layout['minimumInteritemSpacing'] = 0;
|
|
49
59
|
return layout;
|
|
50
60
|
},
|
|
51
|
-
createDelegate: (collectionview) => UICollectionViewWaterfallDelegateImpl.
|
|
61
|
+
createDelegate: (collectionview) => UICollectionViewWaterfallDelegateImpl.initWithOwner(collectionview)
|
|
52
62
|
});
|
|
53
63
|
CollectionView.registerPlugin('waterfall', {
|
|
54
64
|
onLayout: (collectionview) => {
|
package/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"../src/","sources":["index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"../src/","sources":["index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmD3E,MAAM,CAAC,OAAO,UAAU,OAAO;IAC3B,cAAc,CAAC,mBAAmB,CAAC,WAAW,EAAE;QAC5C,YAAY,EAAE,CAAC,cAA8B,EAAE,EAAE;YAC7C,MAAM,MAAM,GAAG,6BAA6B,CAAC,GAAG,EAAE,CAAC;YACnD,MAAM,CAAC,aAAa,CAAC,GAAG,cAAc,CAAC,gBAAgB,EAAE,CAAC;YAC1D,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;YACnC,MAAM,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;YACtC,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,cAAc,EAAE,CAAC,cAA8B,EAAE,EAAE,CAAC,qCAAqC,CAAC,aAAa,CAAC,cAAc,CAAC;KAC1H,CAAC,CAAC;IACH,cAAc,CAAC,cAAc,CAAC,WAAW,EAAE;QACvC,QAAQ,EAAE,CAAC,cAA8B,EAAE,EAAE;YACzC,MAAM,MAAM,GAAG,cAAc,CAAC,mBAAmB,CAAC,oBAAoB,CAAC;YACvE,MAAM,CAAC,aAAa,CAAC,GAAG,cAAc,CAAC,gBAAgB,EAAE,CAAC;QAC9D,CAAC;KACJ,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript-community/ui-collectionview-waterfall",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "A NativeScript CollectionView waterfall Plugin.",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/nativescript-community/ui-collectionview#readme",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@nativescript-community/ui-collectionview": "^5.1.
|
|
41
|
+
"@nativescript-community/ui-collectionview": "^5.1.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a8b42c1fec503859b5bc851ee1f99427dca0abfe"
|
|
44
44
|
}
|