@nativescript-community/ui-collectionview-waterfall 5.3.7 → 5.3.8
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 +4 -0
- package/package.json +3 -3
- package/index.android.d.ts +0 -1
- package/index.android.js +0 -7
- package/index.android.js.map +0 -1
- package/index.d.ts +0 -1
- package/index.ios.d.ts +0 -1
- package/index.ios.js +0 -70
- package/index.ios.js.map +0 -1
- package/typings/objc!CollectionViewWaterfallLayout.d.ts +0 -28
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.8](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.7...v5.3.8) (2023-11-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-collectionview-waterfall
|
|
9
|
+
|
|
6
10
|
## [5.3.7](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.6...v5.3.7) (2023-11-24)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @nativescript-community/ui-collectionview-waterfall
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript-community/ui-collectionview-waterfall",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.8",
|
|
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.3.
|
|
41
|
+
"@nativescript-community/ui-collectionview": "^5.3.8"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "490b59ada806e7ff8b30c3f3575df280e8708b51"
|
|
44
44
|
}
|
package/index.android.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function install(): void;
|
package/index.android.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionView } from '@nativescript-community/ui-collectionview';
|
|
2
|
-
export default function install() {
|
|
3
|
-
CollectionView.registerLayoutStyle('waterfall', {
|
|
4
|
-
createLayout: (collectionview) => new androidx.recyclerview.widget.StaggeredGridLayoutManager(1, 1),
|
|
5
|
-
});
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=index.android.js.map
|
package/index.android.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,MAAM,CAAC,OAAO,UAAU,OAAO;IAC3B,cAAc,CAAC,mBAAmB,CAAC,WAAW,EAAE;QAC5C,YAAY,EAAE,CAAC,cAA8B,EAAE,EAAE,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC;KACtH,CAAC,CAAC;AACP,CAAC"}
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function install();
|
package/index.ios.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function install(): void;
|
package/index.ios.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { CollectionView } from '@nativescript-community/ui-collectionview';
|
|
2
|
-
var UICollectionViewWaterfallDelegateImpl = /** @class */ (function (_super) {
|
|
3
|
-
__extends(UICollectionViewWaterfallDelegateImpl, _super);
|
|
4
|
-
function UICollectionViewWaterfallDelegateImpl() {
|
|
5
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6
|
-
}
|
|
7
|
-
UICollectionViewWaterfallDelegateImpl.initWithOwner = function (owner) {
|
|
8
|
-
var result = UICollectionViewWaterfallDelegateImpl.new();
|
|
9
|
-
result._owner = new WeakRef(owner);
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
UICollectionViewWaterfallDelegateImpl.prototype.collectionViewWillDisplayCellForItemAtIndexPath = function (collectionView, cell, indexPath) {
|
|
13
|
-
var _a;
|
|
14
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
15
|
-
if (owner) {
|
|
16
|
-
owner.collectionViewWillDisplayCellForItemAtIndexPath(collectionView, cell, indexPath);
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
UICollectionViewWaterfallDelegateImpl.prototype.collectionViewDidSelectItemAtIndexPath = function (collectionView, indexPath) {
|
|
20
|
-
var _a;
|
|
21
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
22
|
-
if (owner) {
|
|
23
|
-
return owner.collectionViewDidSelectItemAtIndexPath(collectionView, indexPath);
|
|
24
|
-
}
|
|
25
|
-
return indexPath;
|
|
26
|
-
};
|
|
27
|
-
UICollectionViewWaterfallDelegateImpl.prototype.collectionViewLayoutSizeForItemAtIndexPath = function (collectionView, collectionViewLayout, indexPath) {
|
|
28
|
-
var _a;
|
|
29
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
30
|
-
if (owner) {
|
|
31
|
-
return owner.collectionViewLayoutSizeForItemAtIndexPath(collectionView, collectionViewLayout, indexPath);
|
|
32
|
-
}
|
|
33
|
-
return CGSizeZero;
|
|
34
|
-
};
|
|
35
|
-
UICollectionViewWaterfallDelegateImpl.prototype.scrollViewDidScroll = function (scrollView) {
|
|
36
|
-
var _a;
|
|
37
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
38
|
-
if (owner) {
|
|
39
|
-
owner.scrollViewDidScroll(scrollView);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
UICollectionViewWaterfallDelegateImpl.prototype.scrollViewDidEndDecelerating = function (scrollView) {
|
|
43
|
-
var _a;
|
|
44
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
|
|
45
|
-
if (owner) {
|
|
46
|
-
owner.scrollViewDidEndDecelerating(scrollView);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
UICollectionViewWaterfallDelegateImpl.ObjCProtocols = [UICollectionViewDelegate, CollectionViewWaterfallLayoutDelegate];
|
|
50
|
-
return UICollectionViewWaterfallDelegateImpl;
|
|
51
|
-
}(NSObject));
|
|
52
|
-
export default function install() {
|
|
53
|
-
CollectionView.registerLayoutStyle('waterfall', {
|
|
54
|
-
createLayout: (collectionview) => {
|
|
55
|
-
const layout = CollectionViewWaterfallLayout.new();
|
|
56
|
-
layout['columnCount'] = collectionview.computeSpanCount();
|
|
57
|
-
layout['minimumColumnSpacing'] = 0;
|
|
58
|
-
layout['minimumInteritemSpacing'] = 0;
|
|
59
|
-
return layout;
|
|
60
|
-
},
|
|
61
|
-
createDelegate: (collectionview) => UICollectionViewWaterfallDelegateImpl.initWithOwner(collectionview)
|
|
62
|
-
});
|
|
63
|
-
CollectionView.registerPlugin('waterfall', {
|
|
64
|
-
onLayout: (collectionview) => {
|
|
65
|
-
const layout = collectionview.nativeViewProtected.collectionViewLayout;
|
|
66
|
-
layout['columnCount'] = collectionview.computeSpanCount();
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=index.ios.js.map
|
package/index.ios.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare class CollectionViewWaterfallLayout extends UICollectionViewLayout {
|
|
2
|
-
static alloc(): CollectionViewWaterfallLayout; // inherited from NSObject
|
|
3
|
-
|
|
4
|
-
static new(): CollectionViewWaterfallLayout; // inherited from NSObject
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface CollectionViewWaterfallLayoutDelegate extends UICollectionViewDelegate {
|
|
8
|
-
collectionViewLayoutHeightForFooterInSection?(collectionView: UICollectionView, layout: UICollectionViewLayout, section: number): number;
|
|
9
|
-
|
|
10
|
-
collectionViewLayoutHeightForHeaderInSection?(collectionView: UICollectionView, layout: UICollectionViewLayout, section: number): number;
|
|
11
|
-
|
|
12
|
-
collectionViewLayoutInsetForFooterInSection?(collectionView: UICollectionView, layout: UICollectionViewLayout, section: number): UIEdgeInsets;
|
|
13
|
-
|
|
14
|
-
collectionViewLayoutInsetForHeaderInSection?(collectionView: UICollectionView, layout: UICollectionViewLayout, section: number): UIEdgeInsets;
|
|
15
|
-
|
|
16
|
-
collectionViewLayoutInsetForSection?(collectionView: UICollectionView, layout: UICollectionViewLayout, section: number): UIEdgeInsets;
|
|
17
|
-
|
|
18
|
-
collectionViewLayoutMinimumInteritemSpacingForSection?(collectionView: UICollectionView, layout: UICollectionViewLayout, section: number): number;
|
|
19
|
-
|
|
20
|
-
collectionViewLayoutSizeForItemAtIndexPath(collectionView: UICollectionView, layout: UICollectionViewLayout, indexPath: NSIndexPath): CGSize;
|
|
21
|
-
}
|
|
22
|
-
declare let CollectionViewWaterfallLayoutDelegate: {
|
|
23
|
-
prototype: CollectionViewWaterfallLayoutDelegate;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
declare let CollectionViewWaterfallLayoutVersionNumber: number;
|
|
27
|
-
|
|
28
|
-
declare let CollectionViewWaterfallLayoutVersionString: interop.Reference<number>;
|