Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-basic-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
316
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-basic-dropdown - npm Package Compare versions

Comparing version 3.0.0-beta.5 to 3.0.0-beta.6

29

addon/components/basic-dropdown.ts
import Component from '@glimmer/component';
import { tracked } from "@glimmer/tracking";
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';

@@ -12,9 +13,9 @@ import { getOwner } from '@ember/application';

interface DropdownActions {
toggle: (...args: any[]) => any
close: (...args: any[]) => any
open: (...args: any[]) => any
reposition: (...args: any[]) => any
export interface DropdownActions {
toggle: (e?: Event) => void
close: (e?: Event, skipFocus?: boolean) => void
open: (e?: Event) => void
reposition: (...args: any[]) => undefined | RepositionChanges
}
export type Dropdown = {
export interface Dropdown {
uniqueId: string

@@ -76,6 +77,6 @@ disabled: boolean

private _actions: DropdownActions = {
open: this.open.bind(this),
close: this.close.bind(this),
toggle: this.toggle.bind(this),
reposition: this.reposition.bind(this)
open: this.open,
close: this.close,
toggle: this.toggle,
reposition: this.reposition,
};

@@ -126,3 +127,4 @@

// Methods
// Actions
@action
open(e?: Event): void {

@@ -142,2 +144,3 @@ if (this.isDestroyed) {

@action
close(e?: Event, skipFocus?: boolean): void {

@@ -170,2 +173,3 @@ if (this.isDestroyed) {

@action
toggle(e?: Event): void {

@@ -179,2 +183,3 @@ if (this.publicAPI.isOpen) {

@action
reposition(): undefined | RepositionChanges {

@@ -181,0 +186,0 @@ if (!this.publicAPI.isOpen) {

@@ -0,1 +1,4 @@

# 3.0.0-beta.6
- [CHORE] Improve exported types
# 3.0.0-beta.5

@@ -2,0 +5,0 @@ - [BUGFIX] Don't use typescript in /app folder

{
"name": "ember-basic-dropdown",
"version": "3.0.0-beta.5",
"version": "3.0.0-beta.6",
"description": "The default blueprint for ember-cli addons.",

@@ -5,0 +5,0 @@ "homepage": "http://ember-basic-dropdown.com",

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