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

ng2-material-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-material-dropdown - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

15

dist/ng2-dropdown.bundle.js

@@ -634,3 +634,12 @@ (function webpackUniversalModuleDefinition(root, factory) {

Ng2DropdownMenu.prototype.updatePosition = function (position) {
var element = this.getMenuElement(), top = (position.top - 15) + "px", left = (position.left - 5) + "px";
var element = this.getMenuElement();
var top = (position.top - 15) + "px", left = (position.left - 5) + "px";
if (this.offset) {
var offset = this.offset.split(' ');
if (!offset[1]) {
offset[1] = '0';
}
top = (parseInt(top.replace('px', '')) + parseInt(offset[0])) + "px";
left = (parseInt(left.replace('px', '')) + parseInt(offset[1])) + "px";
}
this.renderer.setElementStyle(element, 'top', top);

@@ -667,2 +676,6 @@ this.renderer.setElementStyle(element, 'left', left);

__decorate([
core_1.Input(),
__metadata('design:type', String)
], Ng2DropdownMenu.prototype, "offset", void 0);
__decorate([
core_1.ContentChildren(ng2_menu_item_1.Ng2MenuItem),

@@ -669,0 +682,0 @@ __metadata('design:type', core_1.QueryList)

2

package.json
{
"name": "ng2-material-dropdown",
"version": "0.1.8",
"version": "0.1.9",
"description": "Angular 2 material-like Dropdown Component",

@@ -5,0 +5,0 @@ "scripts": {

@@ -64,4 +64,4 @@ # Angular2 Dropdown Component

- **`width`** - **`[?number]`**: this determines the width of the menu. Possible values are 2, 4 and 6. By default, this is set to 4
- **`offset`** - **`[?string]`**: offset to adjust the position of the dropdown with absolute values
`ng2-dropdown-button`

@@ -68,0 +68,0 @@ - **`showCaret`** - **`[?boolean]`** : if present, a caret will be appended to the button's text

@@ -16,3 +16,3 @@ import { EventEmitter } from '@angular/core';

onHide: EventEmitter<Ng2DropdownComponent>;
toggleMenu(position: ClientRect): void;
toggleMenu(position: ClientRect, focus: boolean): void;
}

@@ -19,0 +19,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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