New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nativescript-community/ui-material-bottomnavigationbar

Package Overview
Dependencies
Maintainers
6
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-community/ui-material-bottomnavigationbar - npm Package Compare versions

Comparing version 4.0.8 to 4.0.9

62

bottomnavigationbar.android.js

@@ -7,25 +7,26 @@ import { BottomNavigationBarBase, BottomNavigationTabBase, activeColorCssProperty, inactiveColorCssProperty, tabsProperty, titleVisibilityProperty } from './bottomnavigationbar-common';

}
let OnTabSelectedlistenerImpl = class OnTabSelectedlistenerImpl extends java.lang.Object {
constructor(owner) {
super();
this.owner = owner;
return global.__native(this);
var OnTabSelectedlistenerImpl = /** @class */ (function (_super) {
__extends(OnTabSelectedlistenerImpl, _super);
function OnTabSelectedlistenerImpl(owner) {
var _this = _super.call(this) || this;
_this.owner = owner;
// necessary when extending TypeScript constructors
return global.__native(_this);
}
OnTabSelectedlistenerImpl.prototype.onNavigationItemSelected = function (menuItem) {
var index = menuItem.getItemId();
var bottomNavigationTab = this.owner.items[index];
if (bottomNavigationTab.isSelectable) {
this.owner._emitTabSelected(index);
}
onNavigationItemSelected(menuItem) {
const index = menuItem.getItemId();
const bottomNavigationTab = this.owner.items[index];
if (bottomNavigationTab.isSelectable) {
this.owner._emitTabSelected(index);
}
else {
this.owner._emitTabPressed(index);
}
return bottomNavigationTab.isSelectable;
else {
this.owner._emitTabPressed(index);
}
return bottomNavigationTab.isSelectable;
};
OnTabSelectedlistenerImpl = __decorate([
NativeClass,
Interfaces([com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener]),
__metadata("design:paramtypes", [BottomNavigationBar])
Interfaces([com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener])
], OnTabSelectedlistenerImpl);
return OnTabSelectedlistenerImpl;
}(java.lang.Object));
OnTabSelectedlistener = OnTabSelectedlistenerImpl;

@@ -39,17 +40,18 @@ return OnTabSelectedlistener;

}
let OnTabReselectedListenerImpl = class OnTabReselectedListenerImpl extends java.lang.Object {
constructor(owner) {
super();
this.owner = owner;
return global.__native(this);
}
onNavigationItemReselected(menuItem) {
this.owner._emitTabReselected(menuItem.getItemId());
}
var OnTabReselectedListenerImpl = /** @class */ (function (_super) {
__extends(OnTabReselectedListenerImpl, _super);
function OnTabReselectedListenerImpl(owner) {
var _this = _super.call(this) || this;
_this.owner = owner;
// necessary when extending TypeScript constructors
return global.__native(_this);
}
OnTabReselectedListenerImpl.prototype.onNavigationItemReselected = function (menuItem) {
this.owner._emitTabReselected(menuItem.getItemId());
};
OnTabReselectedListenerImpl = __decorate([
NativeClass,
Interfaces([com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener]),
__metadata("design:paramtypes", [BottomNavigationBar])
Interfaces([com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener])
], OnTabReselectedListenerImpl);
return OnTabReselectedListenerImpl;
}(java.lang.Object));
OnTabReselectedListener = OnTabReselectedListenerImpl;

@@ -56,0 +58,0 @@ return OnTabReselectedListener;

@@ -1,13 +0,16 @@

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';
let BottomNavigationBarDelegate = BottomNavigationBarDelegate_1 = class BottomNavigationBarDelegate extends NSObject {
static initWithOwner(owner) {
const delegate = BottomNavigationBarDelegate_1.new();
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();
delegate._owner = new WeakRef(owner);
return delegate;
}
bottomNavigationBarDidSelectItem(navigationBar, item) {
const owner = this._owner.get();
};
BottomNavigationBarDelegate.prototype.bottomNavigationBarDidSelectItem = function (navigationBar, item) {
var owner = this._owner.get();
if (!owner) {

@@ -21,9 +24,9 @@ return;

owner._emitTabSelected(item.tag);
}
bottomNavigationBarShouldSelectItem(bottomNavigationBar, item) {
const owner = this._owner.get();
};
BottomNavigationBarDelegate.prototype.bottomNavigationBarShouldSelectItem = function (bottomNavigationBar, item) {
var owner = this._owner.get();
if (!owner) {
return true;
}
const bottomNavigationTab = owner.items[item.tag];
var bottomNavigationTab = owner.items[item.tag];
if (!bottomNavigationTab.isSelectable) {

@@ -33,8 +36,6 @@ owner._emitTabPressed(item.tag);

return bottomNavigationTab.isSelectable;
}
};
BottomNavigationBarDelegate.ObjCProtocols = [MDCBottomNavigationBarDelegate];
BottomNavigationBarDelegate = BottomNavigationBarDelegate_1 = __decorate([
NativeClass
], BottomNavigationBarDelegate);
};
BottomNavigationBarDelegate.ObjCProtocols = [MDCBottomNavigationBarDelegate];
return BottomNavigationBarDelegate;
}(NSObject));
{

@@ -41,0 +42,0 @@ }

{
"name": "@nativescript-community/ui-material-bottomnavigationbar",
"version": "4.0.8",
"version": "4.0.9",
"description": "NativeScript plugin to add a bottom navigation bar component for Android & iOS",

@@ -47,3 +47,3 @@ "main": "bottomnavigationbar",

},
"gitHead": "28738301ad876f23fa533ca7e9e89f66db8b0e7e"
"gitHead": "bd4421242dd4aba6711039ed7c499b3647bdbebc"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc