@nativescript-community/ui-material-bottomnavigationbar
Advanced tools
Comparing version 4.0.6 to 4.0.8
@@ -26,2 +26,3 @@ import { BottomNavigationBarBase, BottomNavigationTabBase, activeColorCssProperty, inactiveColorCssProperty, tabsProperty, titleVisibilityProperty } from './bottomnavigationbar-common'; | ||
OnTabSelectedlistenerImpl = __decorate([ | ||
NativeClass, | ||
Interfaces([com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener]), | ||
@@ -49,2 +50,3 @@ __metadata("design:paramtypes", [BottomNavigationBar]) | ||
OnTabReselectedListenerImpl = __decorate([ | ||
NativeClass, | ||
Interfaces([com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener]), | ||
@@ -51,0 +53,0 @@ __metadata("design:paramtypes", [BottomNavigationBar]) |
@@ -0,16 +1,13 @@ | ||
var BottomNavigationBarDelegate_1; | ||
import { themer } from '@nativescript-community/ui-material-core'; | ||
import { Application, Screen, Utils, backgroundColorProperty } from '@nativescript/core'; | ||
import { BottomNavigationBarBase, BottomNavigationTabBase, activeColorCssProperty, inactiveColorCssProperty, tabsProperty, titleVisibilityProperty } from './bottomnavigationbar-common'; | ||
var BottomNavigationBarDelegate = /** @class */ (function (_super) { | ||
__extends(BottomNavigationBarDelegate, _super); | ||
function BottomNavigationBarDelegate() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
BottomNavigationBarDelegate.initWithOwner = function (owner) { | ||
var delegate = BottomNavigationBarDelegate.new(); | ||
let BottomNavigationBarDelegate = BottomNavigationBarDelegate_1 = class BottomNavigationBarDelegate extends NSObject { | ||
static initWithOwner(owner) { | ||
const delegate = BottomNavigationBarDelegate_1.new(); | ||
delegate._owner = new WeakRef(owner); | ||
return delegate; | ||
}; | ||
BottomNavigationBarDelegate.prototype.bottomNavigationBarDidSelectItem = function (navigationBar, item) { | ||
var owner = this._owner.get(); | ||
} | ||
bottomNavigationBarDidSelectItem(navigationBar, item) { | ||
const owner = this._owner.get(); | ||
if (!owner) { | ||
@@ -24,9 +21,9 @@ return; | ||
owner._emitTabSelected(item.tag); | ||
}; | ||
BottomNavigationBarDelegate.prototype.bottomNavigationBarShouldSelectItem = function (bottomNavigationBar, item) { | ||
var owner = this._owner.get(); | ||
} | ||
bottomNavigationBarShouldSelectItem(bottomNavigationBar, item) { | ||
const owner = this._owner.get(); | ||
if (!owner) { | ||
return true; | ||
} | ||
var bottomNavigationTab = owner.items[item.tag]; | ||
const bottomNavigationTab = owner.items[item.tag]; | ||
if (!bottomNavigationTab.isSelectable) { | ||
@@ -36,6 +33,8 @@ owner._emitTabPressed(item.tag); | ||
return bottomNavigationTab.isSelectable; | ||
}; | ||
BottomNavigationBarDelegate.ObjCProtocols = [MDCBottomNavigationBarDelegate]; | ||
return BottomNavigationBarDelegate; | ||
}(NSObject)); | ||
} | ||
}; | ||
BottomNavigationBarDelegate.ObjCProtocols = [MDCBottomNavigationBarDelegate]; | ||
BottomNavigationBarDelegate = BottomNavigationBarDelegate_1 = __decorate([ | ||
NativeClass | ||
], BottomNavigationBarDelegate); | ||
{ | ||
@@ -42,0 +41,0 @@ } |
@@ -6,2 +6,13 @@ # Change Log | ||
## [4.0.8](https://github.com/Akylas/nativescript-material-components/compare/v4.0.6...v4.0.8) (2020-08-15) | ||
### Bug Fixes | ||
* **angular:** v10 build scripting works now ([#167](https://github.com/Akylas/nativescript-material-components/issues/167)) ([05c2cb4](https://github.com/Akylas/nativescript-material-components/commit/05c2cb4b79ab6239dc4b4ee5084fed94d53e1920)) | ||
## [4.0.6](https://github.com/Akylas/nativescript-material-components/compare/v4.0.5...v4.0.6) (2020-08-08) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@nativescript-community/ui-material-bottomnavigationbar", | ||
"version": "4.0.6", | ||
"version": "4.0.8", | ||
"description": "NativeScript plugin to add a bottom navigation bar component for Android & iOS", | ||
@@ -45,5 +45,5 @@ "main": "bottomnavigationbar", | ||
"dependencies": { | ||
"@nativescript-community/ui-material-core": "^4.0.6" | ||
"@nativescript-community/ui-material-core": "^4.0.8" | ||
}, | ||
"gitHead": "39d3473799a4b61e6658c3b12d33b037978df80c" | ||
"gitHead": "28738301ad876f23fa533ca7e9e89f66db8b0e7e" | ||
} |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
81708
27
767
1