ember-basic-dropdown
Advanced tools
Comparing version 3.0.0-beta.5 to 3.0.0-beta.6
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83204
1116