@nativescript-community/ui-material-bottom-navigation 7.0.21 → 7.0.24
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 +24 -0
- package/index.ios.js +20 -20
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,30 @@
|
|
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
|
+
## [7.0.24](https://github.com/nativescript-community/ui-material-components/compare/v7.0.23...v7.0.24) (2022-06-24)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [7.0.23](https://github.com/nativescript-community/ui-material-components/compare/v7.0.22...v7.0.23) (2022-06-23)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
## [7.0.22](https://github.com/nativescript-community/ui-material-components/compare/v7.0.21...v7.0.22) (2022-06-22)
|
23
|
+
|
24
|
+
**Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
6
30
|
## [7.0.21](https://github.com/nativescript-community/ui-material-components/compare/v7.0.20...v7.0.21) (2022-06-21)
|
7
31
|
|
8
32
|
**Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
|
package/index.ios.js
CHANGED
@@ -78,17 +78,17 @@ var MDTabBarControllerImpl = /** @class */ (function (_super) {
|
|
78
78
|
};
|
79
79
|
return MDTabBarControllerImpl;
|
80
80
|
}(UITabBarController));
|
81
|
-
var
|
82
|
-
__extends(
|
83
|
-
function
|
81
|
+
var BNTabBarControllerDelegateImpl = /** @class */ (function (_super) {
|
82
|
+
__extends(BNTabBarControllerDelegateImpl, _super);
|
83
|
+
function BNTabBarControllerDelegateImpl() {
|
84
84
|
return _super !== null && _super.apply(this, arguments) || this;
|
85
85
|
}
|
86
|
-
|
87
|
-
var delegate =
|
86
|
+
BNTabBarControllerDelegateImpl.initWithOwner = function (owner) {
|
87
|
+
var delegate = BNTabBarControllerDelegateImpl.alloc().init();
|
88
88
|
delegate._owner = owner;
|
89
89
|
return delegate;
|
90
90
|
};
|
91
|
-
|
91
|
+
BNTabBarControllerDelegateImpl.prototype.tabBarControllerShouldSelectViewController = function (tabBarController, viewController) {
|
92
92
|
// TODO
|
93
93
|
// if (Trace.isEnabled()) {
|
94
94
|
// Trace.write("TabView.delegate.SHOULD_select(" + tabBarController + ", " + viewController + ");", Trace.categories.Debug);
|
@@ -120,7 +120,7 @@ var UITabBarControllerDelegateImpl = /** @class */ (function (_super) {
|
|
120
120
|
tabBarController._willSelectViewController = viewController;
|
121
121
|
return true;
|
122
122
|
};
|
123
|
-
|
123
|
+
BNTabBarControllerDelegateImpl.prototype.tabBarControllerDidSelectViewController = function (tabBarController, viewController) {
|
124
124
|
// TODO
|
125
125
|
// if (Trace.isEnabled()) {
|
126
126
|
// Trace.write("TabView.delegate.DID_select(" + tabBarController + ", " + viewController + ");", Trace.categories.Debug);
|
@@ -131,20 +131,20 @@ var UITabBarControllerDelegateImpl = /** @class */ (function (_super) {
|
|
131
131
|
}
|
132
132
|
tabBarController._willSelectViewController = undefined;
|
133
133
|
};
|
134
|
-
|
135
|
-
return
|
134
|
+
BNTabBarControllerDelegateImpl.ObjCProtocols = [UITabBarControllerDelegate];
|
135
|
+
return BNTabBarControllerDelegateImpl;
|
136
136
|
}(NSObject));
|
137
|
-
var
|
138
|
-
__extends(
|
139
|
-
function
|
137
|
+
var BNNavigationControllerDelegateImpl = /** @class */ (function (_super) {
|
138
|
+
__extends(BNNavigationControllerDelegateImpl, _super);
|
139
|
+
function BNNavigationControllerDelegateImpl() {
|
140
140
|
return _super !== null && _super.apply(this, arguments) || this;
|
141
141
|
}
|
142
|
-
|
143
|
-
var delegate =
|
142
|
+
BNNavigationControllerDelegateImpl.initWithOwner = function (owner) {
|
143
|
+
var delegate = BNNavigationControllerDelegateImpl.alloc().init();
|
144
144
|
delegate._owner = owner;
|
145
145
|
return delegate;
|
146
146
|
};
|
147
|
-
|
147
|
+
BNNavigationControllerDelegateImpl.prototype.navigationControllerWillShowViewControllerAnimated = function (navigationController, viewController, animated) {
|
148
148
|
// TODO
|
149
149
|
// if (Trace.isEnabled()) {
|
150
150
|
// Trace.write("TabView.moreNavigationController.WILL_show(" + navigationController + ", " + viewController + ", " + animated + ");", Trace.categories.Debug);
|
@@ -157,7 +157,7 @@ var UINavigationControllerDelegateImpl = /** @class */ (function (_super) {
|
|
157
157
|
owner._handleTwoNavigationBars(backToMoreWillBeVisible);
|
158
158
|
}
|
159
159
|
};
|
160
|
-
|
160
|
+
BNNavigationControllerDelegateImpl.prototype.navigationControllerDidShowViewControllerAnimated = function (navigationController, viewController, animated) {
|
161
161
|
// TODO
|
162
162
|
// if (Trace.isEnabled()) {
|
163
163
|
// Trace.write("TabView.moreNavigationController.DID_show(" + navigationController + ", " + viewController + ", " + animated + ");", Trace.categories.Debug);
|
@@ -169,8 +169,8 @@ var UINavigationControllerDelegateImpl = /** @class */ (function (_super) {
|
|
169
169
|
owner._onViewControllerShown(viewController);
|
170
170
|
}
|
171
171
|
};
|
172
|
-
|
173
|
-
return
|
172
|
+
BNNavigationControllerDelegateImpl.ObjCProtocols = [UINavigationControllerDelegate];
|
173
|
+
return BNNavigationControllerDelegateImpl;
|
174
174
|
}(NSObject));
|
175
175
|
function updateBackgroundPositions(tabStrip, tabStripItem) {
|
176
176
|
let bgView = tabStripItem.bgView;
|
@@ -247,8 +247,8 @@ let BottomNavigation = class BottomNavigation extends TabNavigationBase {
|
|
247
247
|
}
|
248
248
|
initNativeView() {
|
249
249
|
super.initNativeView();
|
250
|
-
this.mDelegate =
|
251
|
-
this.mMoreNavigationControllerDelegate =
|
250
|
+
this.mDelegate = BNTabBarControllerDelegateImpl.initWithOwner(new WeakRef(this));
|
251
|
+
this.mMoreNavigationControllerDelegate = BNNavigationControllerDelegateImpl.initWithOwner(new WeakRef(this));
|
252
252
|
if (!this.tabStrip) {
|
253
253
|
this.viewController.tabBar.hidden = true;
|
254
254
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-material-bottom-navigation",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.24",
|
4
4
|
"description": "Material Design Bottom Navigation bars allow movement between primary destinations in an app. Tapping on a bottom navigation icon takes you directly to the associated view or refreshes the currently active view.",
|
5
5
|
"main": "bottomnavigation",
|
6
6
|
"sideEffects": false,
|
@@ -51,8 +51,8 @@
|
|
51
51
|
},
|
52
52
|
"readmeFilename": "README.md",
|
53
53
|
"dependencies": {
|
54
|
-
"@nativescript-community/ui-material-core": "^7.0.
|
55
|
-
"@nativescript-community/ui-material-core-tabs": "^7.0.
|
54
|
+
"@nativescript-community/ui-material-core": "^7.0.24",
|
55
|
+
"@nativescript-community/ui-material-core-tabs": "^7.0.24"
|
56
56
|
},
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "f889849cd6c37c56cebe7d1ce71577e9912237b4"
|
58
58
|
}
|