Socket
Socket
Sign inDemoInstall

nativescript-floatingactionbutton

Package Overview
Dependencies
0
Maintainers
5
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.4 to 5.0.0

42

fab.android.js

@@ -21,13 +21,2 @@ "use strict";

this._android = new android.support.design.widget.FloatingActionButton(this._context);
var that = new WeakRef(this);
this._android.setOnClickListener(new android.view.View.OnClickListener({
get owner() {
return that.get();
},
onClick: function (v) {
if (this.owner) {
this.owner._emit('tap');
}
}
}));
return this._android;

@@ -38,2 +27,7 @@ };

this.nativeView.setId(this._androidViewId);
initializeClickListener();
var clickListener = new ClickListener(this);
this.nativeView.setOnClickListener(clickListener);
this.nativeView.clickListener = clickListener;
this.android.setScaleType(android.widget.ImageView.ScaleType.CENTER);
};

@@ -92,2 +86,28 @@ Fab.prototype[view_1.backgroundColorProperty.getDefault] = function () {

exports.Fab = Fab;
var ClickListener;
function initializeClickListener() {
if (ClickListener) {
return;
}
var ClickListenerImpl = (function (_super) {
__extends(ClickListenerImpl, _super);
function ClickListenerImpl(owner) {
var _this = _super.call(this) || this;
_this.owner = owner;
return global.__native(_this);
}
ClickListenerImpl.prototype.onClick = function (v) {
var owner = this.owner;
if (owner) {
owner._emit('tap');
}
};
ClickListenerImpl = __decorate([
Interfaces([android.view.View.OnClickListener]),
__metadata("design:paramtypes", [fab_common_1.FloatingActionButtonBase])
], ClickListenerImpl);
return ClickListenerImpl;
}(java.lang.Object));
ClickListener = ClickListenerImpl;
}
//# sourceMappingURL=fab.android.js.map

@@ -36,5 +36,5 @@ "use strict";

_super.prototype.onLayout.call(this, left, top, right, bottom);
this.centerIcon();
this._centerIcon();
};
Fab.prototype.centerIcon = function () {
Fab.prototype._centerIcon = function () {
var frame = this.nativeView.frame;

@@ -41,0 +41,0 @@ var width = frame.size.width;

{
"name": "nativescript-floatingactionbutton",
"version": "4.1.4",
"version": "5.0.0",
"description": "A NativeScript plugin for Material Design Floating Action Button.",

@@ -102,7 +102,7 @@ "main": "fab",

"devDependencies": {
"husky": "^0.14.3",
"lint-staged": "^7.2.2",
"prettier": "^1.14.2",
"tns-core-modules": "^4.2.0",
"tns-platform-declarations": "^4.2.0",
"husky": "^1.1.3",
"lint-staged": "^8.0.4",
"prettier": "^1.15.1",
"tns-core-modules": "^5.0.2",
"tns-platform-declarations": "^5.0.2",
"rimraf": "^2.6.2",

@@ -109,0 +109,0 @@ "tslint": "~5.11.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc